[tempest] Quota tests for microversion 2.53 are failing in stable branches

Bug #1874242 reported by Carlos Eduardo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
High
Carlos Eduardo

Bug Description

After https://review.opendev.org/#/c/712786/ being merged, the following test is failing while being executed on stable branches:

- manila_tempest_tests.tests.api.test_quotas.SharesQuotasTest.test_show_quotas_detail_5___2_53___True_
- manila_tempest_tests.tests.api.test_quotas.SharesQuotasTest.test_show_quotas_detail_6___2_53___False_

The stacktrace:
Captured traceback:
~~~~~~~~~~~~~~~~~~~
     Traceback (most recent call last):'
       File "/usr/local/lib/python3.6/dist-packages/ddt.py", line 145, in wrapper'
         return func(self, *args, **kwargs)'
       File "/opt/stack/new/manila-tempest-plugin/manila_tempest_tests/tests/api/test_quotas.py", line 102, in test_show_quotas_detail'
         quotas = self.shares_v2_client.detail_quotas(**quota_args)'
       File "/opt/stack/new/manila-tempest-plugin/manila_tempest_tests/services/share/v2/json/shares_client.py", line 1027, in detail_quotas'
         resp, body = self.get(url, version=version)'
       File "/opt/stack/new/manila-tempest-plugin/manila_tempest_tests/services/share/v2/json/shares_client.py", line 78, in get'
         resp, body = super(SharesV2Client, self).get(url, headers=headers)'
       File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 298, in get'
         return self.request('GET', url, extra_headers, headers)"
       File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 687, in request'
         self._error_checker(resp, resp_body)'
       File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 868, in _error_checker'
         resp=resp)'
     tempest.lib.exceptions.UnexpectedResponseCode: Unexpected response code received'
     Details: 406'
...

Body: '{"computeFault": {"code": 406, "message": "Version 2.53 is not supported by the API. Minimum is 2.0 and maximum is 2.51."}}''

Both tests should be skipped if microversion 2.53 is not supported.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila-tempest-plugin (master)

Fix proposed to branch: master
Review: https://review.opendev.org/721849

Changed in manila:
assignee: nobody → Carlos Eduardo (silvacarlose)
status: New → In Progress
Changed in manila:
importance: Undecided → High
milestone: none → ussuri-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila-tempest-plugin (master)

Reviewed: https://review.opendev.org/721849
Committed: https://git.openstack.org/cgit/openstack/manila-tempest-plugin/commit/?id=a44ebfbb534d8e31e674a1f0aed9a77985d4a11a
Submitter: Zuul
Branch: master

commit a44ebfbb534d8e31e674a1f0aed9a77985d4a11a
Author: silvacarloss <email address hidden>
Date: Wed Apr 22 12:26:45 2020 +0000

    Fix failing quota tests in stable branches

    Some tests were being executed even if their microversion was not
    supported. Fix this issue by skipping those tests if the
    microversion is not supported.

    Change-Id: I19e16465d82fe093ab861faf81d21ab821825e84
    Closes-Bug: #1874242

Changed in manila:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.