-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLOUDSTACK-9854: Fix test_primary_storage test failure due to live migration #2021
Conversation
0c6fdf5
to
2542e12
Compare
@blueorangutan package |
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-603 |
@blueorangutan test |
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Trillian test result (tid-967)
|
2542e12
to
271467b
Compare
Thanks @borisstoyanov, I made little refactor due to failure, can you please re kick tests? |
@blueorangutan package |
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-604 |
@blueorangutan test |
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
a189dc1
to
437d4ba
Compare
@karuturi sure, done! I rebased master and pushed, now Travis passes! |
Trillian test result (tid-968)
|
437d4ba
to
11562dc
Compare
LGTM for the code changes |
Wonderful. Seeing green travis after a long time :) 👍 |
CLOUDSTACK-9854: Fix test_primary_storage test failure due to live migrationFix for test_primary_storage integration tests on simulator. When finding storage pool migration options for volume on running vm, API returns None as hypervisor doesn't support live migration. ```` 2017-03-28 06:07:55,958 - DEBUG - ========Sending GET Cmd : findStoragePoolsForMigration======= 2017-03-28 06:07:55,977 - DEBUG - Response : None 2017-03-28 06:07:55,983 - CRITICAL - EXCEPTION: test_03_migration_options_storage_tags: ['Traceback (most recent call last):\n', ' File "/opt/python/2.7.12/lib/python2.7/unittest/case.py", line 329, in run\n testMethod()\n', ' File "/home/travis/.local/lib/python2.7/site-packages/marvin/lib/decoratorGenerators.py", line 30, in test_wrapper\n return test(self, *args, **kwargs)\n', ' File "/home/travis/build/apache/cloudstack/test/integration/smoke/test_primary_storage.py", line 547, in test_03_migration_options_storage_tags\n pools_suitable = filter(lambda p : p.suitableformigration, pools_response)\n', "TypeError: 'NoneType' object is not iterable\n"] ```` So we simply stop vm before sending findStoragePoolsForMigration command * pr/2021: CLOUDSTACK-9854: Fix test_primary_storage test failure due to live migration Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
Fix for test_primary_storage integration tests on simulator.
When finding storage pool migration options for volume on running vm, API returns None as hypervisor doesn't support live migration.
So we simply stop vm before sending findStoragePoolsForMigration command