Bug 1837719 - Update package to upstream tag 1.1.0 of manila-tempest-plugin
Summary: Update package to upstream tag 1.1.0 of manila-tempest-plugin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-manila-tests-tempest
Version: 16.1 (Train)
Hardware: All
OS: All
medium
medium
Target Milestone: z2
: 16.1 (Train on RHEL 8.2)
Assignee: Goutham Pacha Ravi
QA Contact: lkuchlan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-19 20:01 UTC by Goutham Pacha Ravi
Modified: 2020-10-28 15:38 UTC (History)
10 users (show)

Fixed In Version: python-manila-tests-tempest-1.1.0-0.20200728080410.eba8fa9.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1837771 (view as bug list)
Environment:
Last Closed: 2020-10-28 15:37:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 742311 0 None MERGED Initial Victoria release of manila-tempest-plugin 2020-10-28 23:22:50 UTC
RDO 28654 0 None None None 2020-07-28 07:34:33 UTC
Red Hat Product Errata RHEA-2020:4284 0 None None None 2020-10-28 15:38:12 UTC

Description Goutham Pacha Ravi 2020-05-19 20:01:55 UTC
Description of problem:

Manila's tempest plugin is a branchless project (https://opendev.org/openstack/manila-tempest-plugin). It is used to test all supported branches of openstack/manila, including upstream's stable/queens (OSP 13), stable/stein (OSP 15), stable/train (OSP 16, 16.1, ...)

A number of bug fixes have been committed to this repository since the release that is used by python-manila-tests-tempest. These bugfixes enable testing manila with CephFS via the native protocol as well as NFS. There are even new test cases that were added to cover older versions of the Manila API - a bulk of these are scenario tests that are extremely useful to test the data path on shared file systems.

The manila community plans to tag a 1.0.1 release of this tempest plugin project upstream very soon. We should update to using this release to test manila in all the releases we continue to maintain and ship.

Comment 3 Lucio Seki 2020-05-27 18:52:44 UTC
This affects NetApp Manila NFS/CIFS driver while running certification tests for Red Hat OpenStack Platform 16.

The currently available manila-tempest-plugin package for RHEL8.1 is python3-manila-tempest-tests-0.4.0, which does not have some bugfixes included.

In particular, the following tests are failing:

```
manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_get_share_export_location_by_member[api_with_backend,positive]
...
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/manila_tempest_tests/tests/api/admin/test_export_locations.py", line 152, in test_get_share_export_location_by_member
    self.share['id'], export_location['id'])
  File "/usr/lib/python3.6/site-packages/manila_tempest_tests/services/share/v2/json/shares_client.py", line 316, in get_share_export_location
    version=version)
  File "/usr/lib/python3.6/site-packages/manila_tempest_tests/services/share/v2/json/shares_client.py", line 78, in get
    resp, body = super(SharesV2Client, self).get(url, headers=headers)
  File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 298, in get
    return self.request('GET', url, extra_headers, headers)
  File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 687, in request
    self._error_checker(resp, resp_body)
  File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 788, in _error_checker
    raise exceptions.Forbidden(resp_body, resp=resp)
tempest.lib.exceptions.Forbidden: Forbidden
Details: {'code': 403, 'message': "Policy doesn't allow share:get to be performed."}
```
```
manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_list_share_export_locations_by_member[api_with_backend,positive]
...
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/manila_tempest_tests/tests/api/admin/test_export_locations.py", line 139, in test_list_share_export_locations_by_member
    self.share['id'])
  File "/usr/lib/python3.6/site-packages/manila_tempest_tests/services/share/v2/json/shares_client.py", line 324, in list_share_export_locations
    version=version)
  File "/usr/lib/python3.6/site-packages/manila_tempest_tests/services/share/v2/json/shares_client.py", line 78, in get
    resp, body = super(SharesV2Client, self).get(url, headers=headers)
  File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 298, in get
    return self.request('GET', url, extra_headers, headers)
  File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 687, in request
    self._error_checker(resp, resp_body)
  File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 788, in _error_checker
    raise exceptions.Forbidden(resp_body, resp=resp)
tempest.lib.exceptions.Forbidden: Forbidden
Details: {'code': 403, 'message': "Policy doesn't allow share:get to be performed."}
```

They were already fixed [0], but the currently available manila-tempest-plugin package does not have this bugfix applied.

The lack of an updated package makes it slower to have the certification published, as it requires an exception to be created for those failures.

[0] https://review.opendev.org/#/c/714181/

Comment 4 Paul Grist 2020-07-07 21:38:22 UTC
Can we get an update on the status of this one?  Did it make it into 16.1 or do we need to target for z2?

Comment 5 Goutham Pacha Ravi 2020-07-08 01:27:28 UTC
(In reply to Paul Grist from comment #4)
> Can we get an update on the status of this one?  Did it make it into 16.1 or
> do we need to target for z2?

Hi Paul, 

We'll need to retarget this one to z2. We haven't finished the upstream tagging yet.

Comment 7 Goutham Pacha Ravi 2020-07-28 07:38:24 UTC
Upstream Tag that contains the fixes is now 1.1.0

Comment 10 lkuchlan 2020-09-29 13:28:34 UTC
Tested using:
python3-manila-tests-tempest-1.1.0-0.20200728083439.eba8fa9.el8ost.noarch

Comment 15 errata-xmlrpc 2020-10-28 15:37:32 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 16.1 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/RHEA-2020:4284


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