manila_tempest_plugin is missing the get_default_share_type function is the internal client

Bug #1905796 reported by Victoria Martinez de la Cruz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Victoria Martinez de la Cruz

Bug Description

An internal shares client is being used to perform calls to the manila server [0] from the manila tempest tests. This client is missing a function to call to the list default share types endpoint [1]. We need this function to get the default share type when running scenario tests.

Currently we are using the get share types endpoint [2]. This is wrong, since the get share types endpoints expect an ID, not a name. But, luckily, in most cases (since we call the default share type "default" in our CI) this was working.

In deployments in which the default share type is named different to "default", the scenario tests are broken (e.g. when deploying manila with cephfs backends, the default share types are called cephfsnative and cephfsnfs respectively)

[0] https://github.com/openstack/manila-tempest-plugin/blob/master/manila_tempest_tests/services/share/json/shares_client.py
[1] https://docs.openstack.org/api-ref/shared-file-system/?expanded=show-share-type-detail-detail,list-default-share-types-detail#list-default-share-types
[2] https://github.com/openstack/manila-tempest-plugin/blob/master/manila_tempest_tests/tests/scenario/manager_share.py#L454-L456

Changed in manila:
assignee: nobody → Victoria Martinez de la Cruz (vkmc)
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :
Changed in manila:
milestone: none → wallaby-2
status: Triaged → Fix Released
Revision history for this message
Vida Haririan (vhariria) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila-tempest-plugin stein-last

This issue was fixed in the openstack/manila-tempest-plugin stein-last release.

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.