71a080b226
When a non user calls revert to snapshot using the snapshot name the client returns a failure status: $ cinder --os-volume-api-version 3.59 revert-to-snapshot snap1 ERROR: No snapshot with a name or ID of 'snap1' exists. The revert to snapshot API requires an UUID, so the cinderclient lists the snapshots passing "all_tenants=1" and the name of the snapshot to find its first when it's not a UUID. The problem that we were only removing the "all_tenants" filter for admins, leaving it for normal users and passing it to the DB which wouldn't understand that filter and return None. This patch ensure we always remove the "all_tenants" filter (as we do in other places) before calling the OVO method to list snapshots. Change-Id: I5fd3d7840b36f6805143cd1b837258232e7bc58a Fixes-Bug: #1889758 |
||
---|---|---|
api-ref/source | ||
cinder | ||
contrib/block-box | ||
doc | ||
etc/cinder | ||
playbooks | ||
rally-jobs | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.pylintrc | ||
.stestr.conf | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
bindep.txt | ||
driver-requirements.txt | ||
lower-constraints.txt | ||
reno.yaml | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
OpenStack Cinder
OpenStack Cinder is a storage service for an open cloud computing service.
You can learn more about Cinder at:
Getting Started
If you'd like to run from the master branch, you can clone the git repo:
git clone https://opendev.org/openstack/cinder
If you'd like to contribute, please see the information in CONTRIBUTING.rst
You can raise bugs on Launchpad