cannot show volumes with name for non-admins

Bug #1917574 reported by Rajat Dhasmana
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Rajat Dhasmana

Bug Description

Starting with microversion 3.31, the filters does not reject all_tenants for non-admins as done before resulting in failing to show volumes with name

MV < 3.31 works

stack@ubuntu2004:~/cinder$ cinder show v1
+------------------------------+--------------------------------------+
| Property | Value |
+------------------------------+--------------------------------------+
| attached_servers | [] |
| attachment_ids | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2021-03-02T10:19:00.000000 |
| description | None |
| encrypted | False |
| id | d276939c-33fe-43ac-bde5-3dd9885d4f03 |
| metadata | |
| multiattach | False |
| name | v1 |
| os-vol-tenant-attr:tenant_id | e4234242ec314a049a0a9737e6dd4ce6 |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| updated_at | 2021-03-02T10:19:01.000000 |
| user_id | b91a2ca23437473580ed7aa1e4c59faa |
| volume_type | ceph |
+------------------------------+--------------------------------------+

MV >=3.31 fails

stack@ubuntu2004:~/cinder$ cinder --os-volume-api-version 3.31 show v1
ERROR: No volume with a name or ID of 'v1' exists.

Tags: admin cli volume
Revision history for this message
Rajat Dhasmana (whoami-rajat) wrote :
Changed in cinder:
assignee: nobody → Rajat Dhasmana (whoami-rajat)
Changed in cinder:
status: New → In Progress
importance: Undecided → High
Changed in cinder:
status: In Progress → Fix Committed
milestone: none → 19.0.0
tags: added: admin cli volume
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 18.0.0.0rc2

This issue was fixed in the openstack/cinder 18.0.0.0rc2 release candidate.

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Is there a chance to backport the fix further than wallaby? It seems to affect all stable releases at least back to stein.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 19.0.0.0b1

This issue was fixed in the openstack/cinder 19.0.0.0b1 development milestone.

Eric Harney (eharney)
Changed in cinder:
status: Fix Committed → 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.