Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test-containerd/instantiate_vm_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ sleep 360
TIMEOUT=10
i=0
mkdir -p ~/.ssh
while [ $i -lt $TIMEOUT ] && ! ssh -vvv -i /etc/ssh-volume/ssh-privatekey ubuntu@$IP echo OK
while [ $i -lt $TIMEOUT ] && ! ssh -vvv -i /etc/ssh-volume/containerd-key ubuntu@$IP echo OK
do
if ! ssh-keyscan -t rsa $IP >> ~/.ssh/known_hosts; then echo "keyscan failed, try again"; fi
i=$((i+1))
Expand All @@ -130,7 +130,7 @@ if [ "$i" == "$TIMEOUT" ]; then
sleep 360
# And try to connect again
j=0
while [ $j -lt $TIMEOUT ] && ! ssh -vvv -i /etc/ssh-volume/ssh-privatekey ubuntu@$IP echo OK
while [ $j -lt $TIMEOUT ] && ! ssh -vvv -i /etc/ssh-volume/containerd-key ubuntu@$IP echo OK
do
if ! ssh-keyscan -t rsa $IP >> ~/.ssh/known_hosts; then echo "keyscan failed, try again"; fi
j=$((j+1))
Expand All @@ -142,9 +142,9 @@ if [ "$i" == "$TIMEOUT" ]; then
fi

# Get test script and execute it
ssh ubuntu@$IP -i /etc/ssh-volume/ssh-privatekey wget https://raw.githubusercontent.com/ppc64le-cloud/docker-ce-build/main/test-containerd/test_on_powervs.sh
ssh ubuntu@$IP -i /etc/ssh-volume/ssh-privatekey sudo bash test_on_powervs.sh $RUNC_FLAVOR $TEST_RUNTIME
scp -i /etc/ssh-volume/ssh-privatekey "ubuntu@$IP:/home/containerd_test/containerd/*.xml" ${OUTPUT}
ssh ubuntu@$IP -i /etc/ssh-volume/containerd-key wget https://raw.githubusercontent.com/ppc64le-cloud/docker-ce-build/main/test-containerd/test_on_powervs.sh
ssh ubuntu@$IP -i /etc/ssh-volume/containerd-key sudo bash test_on_powervs.sh $RUNC_FLAVOR $TEST_RUNTIME
scp -i /etc/ssh-volume/containerd-key "ubuntu@$IP:/home/containerd_test/containerd/*.xml" ${OUTPUT}

delete_vm $ID
sleep 120
Expand Down