Comment 1 for bug 1821945

Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

This behavior is observed for other tests as well:

test_list_shares_by_share_network
fail
[x]

ft1.19: manilaclient.tests.functional.test_shares_listing.SharesListReadWriteTest.test_list_shares_by_share_networktesttools.testresult.real._StringException: Traceback (most recent call last):
  File "/opt/stack/new/python-manilaclient/manilaclient/tests/functional/test_shares_listing.py", line 237, in test_list_shares_by_share_network
    self._list_shares({'share_network': share_network_id})
  File "/opt/stack/new/python-manilaclient/manilaclient/tests/functional/test_shares_listing.py", line 173, in _list_shares
    self.assertEqual(v, get[k])
  File "/opt/stack/new/python-manilaclient/.tox/functional/lib/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/opt/stack/new/python-manilaclient/.tox/functional/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = '48fdf8ca-732d-418a-b285-b401d664d300'
actual = 'c5eb386b-d386-4ced-ae74-2540be854fd7'

This failure was also because there was a migration on the concerned share that completed between the "list" and the "get" calls here: https://opendev.org/openstack/python-manilaclient/src/commit/0ca91287acffece4f78451e160fafa040a988f5a/manilaclient/tests/functional/test_shares_listing.py#L154-L173