diff --git a/systemvm/agent/scripts/ssvm-check.sh b/systemvm/agent/scripts/ssvm-check.sh index 2abab81da72..c549818d103 100644 --- a/systemvm/agent/scripts/ssvm-check.sh +++ b/systemvm/agent/scripts/ssvm-check.sh @@ -118,7 +118,7 @@ fi # check for connectivity to the management server echo ================================================ echo Management server is $MGMTSERVER. Checking connectivity. -socatout=$(echo | socat - TCP:$MGMTSERVER:8250,connect-timeout=3 2>&1) +socatout=$(echo | socat - TCP:$MGMTSERVER:8250,connect-timeout=3 | tr -d '\0' 2>&1) if [ $? -eq 0 ] then echo "Good: Can connect to management server port 8250" @@ -141,6 +141,6 @@ else fi echo ================================================ -echo Tests Complete. Look for ERROR or WARNING above. +echo Tests Complete. Look for ERROR or WARNING above. exit 0 diff --git a/test/integration/smoke/test_ssvm.py b/test/integration/smoke/test_ssvm.py index ad5c4ab344b..75e7538b047 100644 --- a/test/integration/smoke/test_ssvm.py +++ b/test/integration/smoke/test_ssvm.py @@ -874,6 +874,8 @@ class TestSSVMs(cloudstackTestCase): # Wait for the agent to be up self.waitForSystemVMAgent(ssvm_response.name) + # Wait until NFS stores mounted before running the script + time.sleep(30) # Call to verify cloud process is running self.test_03_ssvm_internals()