Functional tests "test_list_shares_by_{filter}" fail sporadically on the gate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-manilaclient |
Fix Released
|
Medium
|
Goutham Pacha Ravi |
Bug Description
Observed on
The test "manilaclient.
ft1.16: manilaclient.
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
raise mismatch_error
testtools.
It looks like the test filters the shares by status and then a migration occurs on the share by the time it retrieves the share details.
tags: | added: tests |
tags: | added: low-hanging-fruit |
Changed in python-manilaclient: | |
importance: | Undecided → Medium |
tags: | added: wallaby-rc-bugsquash |
Changed in python-manilaclient: | |
status: | In Progress → Fix Released |
This behavior is observed for other tests as well:
test_list_ shares_ by_share_ network
fail
[x]
ft1.19: manilaclient. tests.functiona l.test_ shares_ listing. SharesListReadW riteTest. test_list_ shares_ by_share_ networktesttool s.testresult. real._StringExc eption: Traceback (most recent call last): new/python- manilaclient/ manilaclient/ tests/functiona l/test_ shares_ listing. py", line 237, in test_list_ shares_ by_share_ network _list_shares( {'share_ network' : share_network_id}) new/python- manilaclient/ manilaclient/ tests/functiona l/test_ shares_ listing. py", line 173, in _list_shares assertEqual( v, get[k]) new/python- manilaclient/ .tox/functional /lib/python3. 6/site- packages/ testtools/ testcase. py", line 415, in assertEqual assertThat( observed, matcher, message) new/python- manilaclient/ .tox/functional /lib/python3. 6/site- packages/ testtools/ testcase. py", line 502, in assertThat matchers. _impl.MismatchE rror: !=: 732d-418a- b285-b401d664d3 00' d386-4ced- ae74-2540be854f d7'
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
raise mismatch_error
testtools.
reference = '48fdf8ca-
actual = 'c5eb386b-
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/ 0ca91287acffece 4f78451e160fafa 040a988f5a/ manilaclient/ tests/functiona l/test_ shares_ listing. py#L154- L173