Bug 1831801 - tempest.api.volume.test_volumes_snapshots_list.VolumesSnapshotListTestJSON.test_snapshot_list_param_marker fails due to snapshot issue
Summary: tempest.api.volume.test_volumes_snapshots_list.VolumesSnapshotListTestJSON.te...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tempest
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: z12
: 13.0 (Queens)
Assignee: Chandan Kumar
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-05 16:33 UTC by Alfredo
Modified: 2020-10-28 18:27 UTC (History)
6 users (show)

Fixed In Version: openstack-tempest-18.0.0-16.el7ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-28 18:26:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1752228 0 None None None 2020-05-05 17:16:55 UTC
OpenStack gerrit 548444 0 None MERGED Fix test_snapshot_list_param_marker when using predefined user 2021-02-03 22:34:43 UTC
Red Hat Product Errata RHBA-2020:4387 0 None None None 2020-10-28 18:27:38 UTC

Comment 1 Martin Kopec 2020-05-05 17:12:10 UTC
Description of problem:
The tempest test fails sometimes due to a problem with the snapshot the test is looking for. This is probably a problem with a race condition. 

Version-Release number of selected component (if applicable):
openstack-tempest-18.0.0-13.el7ost.noarch

How reproducible:
Sometimes

Actual results:
Traceback (most recent call last):
testtools.testresult.real._StringException: pythonlogging:'': {{{
2020-05-04 19:23:55,356 4189 INFO     [tempest.lib.common.rest_client] Request (VolumesSnapshotListTestJSON:test_snapshot_list_param_marker): 200 GET http://10.0.0.114:8776/v3/a68e774077ad4d9c9674253e4c3d890a/snapshots?marker=c3914f88-4ed3-4fa7-b7ca-b9a71dc489d6 0.408s
2020-05-04 19:23:55,356 4189 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '668', 'content-location': 'http://10.0.0.114:8776/v3/a68e774077ad4d9c9674253e4c3d890a/snapshots?marker=c3914f88-4ed3-4fa7-b7ca-b9a71dc489d6', u'x-compute-request-id': 'req-d079fad7-622e-46ae-96e9-5db7102e496e', u'vary': 'OpenStack-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'volume 3.0', u'connection': 'close', u'date': 'Mon, 04 May 2020 23:23:54 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-d079fad7-622e-46ae-96e9-5db7102e496e'}
        Body: {"snapshots": [{"status": "available", "size": 1, "metadata": {}, "name": "tempest-VolumesSnapshotListTestJSON-Snapshot-1594199555", "volume_id": "5e8200a3-9641-4ece-b237-c4627a8134f2", "created_at": "2020-05-04T23:23:52.000000", "description": null, "id": "5e7eab91-353c-44e9-82c9-7534ef747e9a", "updated_at": "2020-05-04T23:23:53.000000"}, {"status": "available", "size": 1, "metadata": {}, "name": "tempest-VolumesSnapshotListTestJSON-Snapshot-123573773", "volume_id": "5e8200a3-9641-4ece-b237-c4627a8134f2", "created_at": "2020-05-04T23:23:49.000000", "description": null, "id": "8990a4c6-b513-46c8-8022-fb4eac8f2f51", "updated_at": "2020-05-04T23:23:50.000000"}]}
}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tempest/api/volume/test_volumes_snapshots_list.py", line 160, in test_snapshot_list_param_marker
    self.assertEqual(self.snapshot_id_list[:1], fetched_list_id)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [u'8990a4c6-b513-46c8-8022-fb4eac8f2f51']
actual    = [u'5e7eab91-353c-44e9-82c9-7534ef747e9a',
 u'8990a4c6-b513-46c8-8022-fb4eac8f2f51']

Expected results:
Test expected to pass

Comment 15 errata-xmlrpc 2020-10-28 18:26:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 13 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4387


Note You need to log in before you can comment on or make changes to this bug.