Pearl1594 opened a new pull request #4312:
URL: https://github.com/apache/cloudstack/pull/4312


   ## Description
   On running the reboot SSVM smoke test, the health check script fails to 
detect the mounted NFS stores post reboot. Increasing the wait time between 
reboot and running of the ssvm-check.sh helps ensure there is sufficient time 
for the SSVM to get configured.
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the 
boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [X] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ## How Has This Been Tested?
   
   With a 30s wait/ sleep - there have been intermittent failures with the test:
   ```
   nosetests --with-xunit --xunit-file=results.xml --with-marvin 
--marvin-config=/marvin/ref-trl-1543-v-M7-pearl-dsilva-advanced-cfg -s -a 
tags=xx --hypervisor=vmware /marvin/tests/smoke/test_ssvm.py 
   
   ==== Marvin Init Started ====
   
   === Marvin Parse Config Successful ===
   
   === Marvin Setting TestData Successful===
   
   ==== Log Folder Path: /marvin/MarvinLogs/Sep_09_2020_06_07_53_TJ2GQX. All 
logs will be available here ====
   
   === Marvin Init Logging Successful===
   
   ==== Marvin Init Successful ====
   ====Trying SSH Connection: Host:10.10.3.147 User:root                        
           Port:22 RetryCnt:60===
   ===SSH to Host 10.10.3.147 port : 22 SUCCESSFUL===
   {Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa 
-ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.10.7.90 
/usr/local/cloud/systemvm/ssvm-check.sh |grep -e ERROR -e WARNING -e FAIL via 
Host: 10.10.3.147} {returns: [u'ERROR: NFS is not currently mounted', u'Tests 
Complete. Look for ERROR or WARNING above.']}
   === TestName: test_07_reboot_ssvm | Status : FAILED ===
   ```
   
   On increasing it to 90s:
   ```
   [root@ref-trl-1543-v-M7-pearl-dsilva-marvin ~]# nosetests --with-xunit 
--xunit-file=results.xml --with-marvin 
--marvin-config=/marvin/ref-trl-1543-v-M7-pearl-dsilva-advanced-cfg -s -a 
tags=xx --hypervisor=vmware /marvin/tests/smoke/test_ssvm.py 
   
   ==== Marvin Init Started ====
   
   === Marvin Parse Config Successful ===
   
   === Marvin Setting TestData Successful===
   
   ==== Log Folder Path: /marvin/MarvinLogs/Sep_09_2020_06_09_45_N33PNR. All 
logs will be available here ====
   
   === Marvin Init Logging Successful===
   
   ==== Marvin Init Successful ====
   ====Trying SSH Connection: Host:10.10.3.147 User:root                        
           Port:22 RetryCnt:60===
   ===SSH to Host 10.10.3.147 port : 22 SUCCESSFUL===
   {Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa 
-ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.10.7.90 
/usr/local/cloud/systemvm/ssvm-check.sh |grep -e ERROR -e WARNING -e FAIL via 
Host: 10.10.3.147} {returns: [u'Tests Complete. Look for ERROR or WARNING 
above.']}
   ====Trying SSH Connection: Host:10.10.3.147 User:root                        
           Port:22 RetryCnt:60===
   ====Trying SSH Connection: Host:10.10.3.147 User:root                        
           Port:22 RetryCnt:60===
   ===SSH to Host 10.10.3.147 port : 22 SUCCESSFUL===
   ===SSH to Host 10.10.3.147 port : 22 SUCCESSFUL===
   {Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa 
-ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.10.7.90 
systemctl is-active cloud via Host: 10.10.3.147} {returns: [u'active']}
   {Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa 
-ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.10.7.90 
systemctl is-active cloud via Host: 10.10.3.147} {returns: [u'active']}
   ====Trying SSH Connection: Host:10.10.3.147 User:root                        
           Port:22 RetryCnt:60===
   ====Trying SSH Connection: Host:10.10.3.147 User:root                        
           Port:22 RetryCnt:60===
   ====Trying SSH Connection: Host:10.10.3.147 User:root                        
           Port:22 RetryCnt:60===
   ===SSH to Host 10.10.3.147 port : 22 SUCCESSFUL===
   ===SSH to Host 10.10.3.147 port : 22 SUCCESSFUL===
   ===SSH to Host 10.10.3.147 port : 22 SUCCESSFUL===
   {Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa 
-ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.10.7.90 
cat /var/cache/cloud/cmdline | xargs | sed "s/ /\n/g" | grep eth1ip= | sed 
"s/\=/ /g" | awk '{print $2}' via Host: 10.10.3.147} {returns: [u'10.10.7.90']}
   {Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa 
-ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.10.7.90 
cat /var/cache/cloud/cmdline | xargs | sed "s/ /\n/g" | grep eth1ip= | sed 
"s/\=/ /g" | awk '{print $2}' via Host: 10.10.3.147} {returns: [u'10.10.7.90']}
   {Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa 
-ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.10.7.90 
cat /var/cache/cloud/cmdline | xargs | sed "s/ /\n/g" | grep eth1ip= | sed 
"s/\=/ /g" | awk '{print $2}' via Host: 10.10.3.147} {returns: [u'10.10.7.90']}
   === TestName: test_07_reboot_ssvm | Status : SUCCESS ===
   
   ===final results are now copied to: /marvin//MarvinLogs/test_ssvm_MRZ93U===
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to