Tempest test 'test_list_shares_with_detail_filter_by_extra_specs' fails
with following error from time to time:
ValueError: Share 'cdd499f7-6b02-4f47-8b39-7093b4d07e11' listed with
extra_specs filter has nonexistent share type 'share-type-1283899337'.
It happens because list of share types is taken for each step of a loop
Get list of share types only once and before taking list of shares, in
that case we will have share objects with still existing share types.
Reviewed: https:/ /review. openstack. org/221236 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=06e95784473 2682c549814babb 6a28d6962131c6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 06e957844732682 c549814babb6a28 d6962131c6
Author: Valeriy Ponomaryov <email address hidden>
Date: Tue Sep 8 13:19:15 2015 +0300
Fix concurrency issue in tempest test
Tempest test 'test_list_ shares_ with_detail_ filter_ by_extra_ specs' fails
with following error from time to time:
ValueError: Share 'cdd499f7- 6b02-4f47- 8b39-7093b4d07e 11' listed with type-1283899337 '.
extra_specs filter has nonexistent share type 'share-
It happens because list of share types is taken for each step of a loop
Get list of share types only once and before taking list of shares, in
that case we will have share objects with still existing share types.
Change-Id: I0c29d163852555 99b902757544e31 ebbec79ca84
Closes-Bug: #1493125