Skip to content

Commit 97f74ce

Browse files
committed
Running on vm22 and testing with sudo
1 parent 241b97c commit 97f74ce

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/e2e-k8s-server-66.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ jobs:
146146
echo "::set-output name=mnodes::$MNODES"
147147
echo "::set-output name=storage_private_ips::$STORAGE_PRIVATE_IPS"
148148
149+
ssh -i ~/.ssh/simplyblock-us-east-2.pem -o StrictHostKeyChecking=no root@${MNODES} <<EOF
150+
iptables -P INPUT ACCEPT
151+
iptables -P OUTPUT ACCEPT
152+
iptables -P FORWARD ACCEPT
153+
iptables -F
154+
EOF
155+
149156
./bootstrap-k3s.sh --k8s-snode
150157
151158
id: bootstrap_cluster
@@ -193,15 +200,15 @@ jobs:
193200
helm install spdk-csi ./ \
194201
--namespace spdk-csi \
195202
--create-namespace \
196-
--set csiConfig.simplybk.uuid="$CLUSTER_ID" \
197-
--set csiConfig.simplybk.ip="http://$MNODES/" \
198-
--set csiSecret.simplybk.secret="$CLUSTER_SECRET" \
203+
--set csiConfig.simplybk.uuid="${CLUSTER_ID}" \
204+
--set csiConfig.simplybk.ip="${API_INVOKE_URL}" \
205+
--set csiSecret.simplybk.secret="${CLUSTER_SECRET}" \
199206
--set image.simplyblock.tag="main" \
200207
--set logicalVolume.pool_name="testing1" \
201208
--set logicalVolume.snapshot="True" \
202209
--set image.spdkcsi.tag=latest \
203-
--set logicalVolume.distr_ndcs="$NDCS" \
204-
--set logicalVolume.distr_npcs="$NPCS" \
210+
--set logicalVolume.distr_ndcs="${NDCS}" \
211+
--set logicalVolume.distr_npcs="${NPCS}" \
205212
--set storagenode.create=true \
206213
--set cachingnode.create=false \
207214
--set logicalVolume.encryption=true \
@@ -232,8 +239,8 @@ jobs:
232239
- name: Check Cluster Status
233240
run: |
234241
CLUSTER_API_GATEWAY_ENDPOINT="http://192.168.10.66/"
235-
CLUSTER_UUID="$CLUSTER_ID"
236-
CLUSTER_SECRET="$CLUSTER_SECRET"
242+
CLUSTER_UUID="${CLUSTER_ID}"
243+
CLUSTER_SECRET="${CLUSTER_SECRET}"
237244
n=0
238245
until [ "$n" -ge 60 ]
239246
do

0 commit comments

Comments
 (0)