Currently, the all_tenants=1 search option is being passed all the
time for 'nova delete' commands in order to enable 'nova delete' by
name to work across tenants, for those that have all_tenants access
in the nova policy.json. This however breaks all 'nova delete' for
non-admins when policy has been configured to allow only admin to
list servers across all_tenants.
This patch changes 'nova delete' to take an option --all-tenants to
get the functionality to delete by name across tenants. This is
similar to how 'nova list --all-tenants' works.
Reviewed: https:/ /review. openstack. org/169952 /git.openstack. org/cgit/ openstack/ python- novaclient/ commit/ ?id=14cada7d0d8 518bebbf0705be1 a93514f9d7dad4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 14cada7d0d8518b ebbf0705be1a935 14f9d7dad4
Author: melanie witt <email address hidden>
Date: Thu Apr 2 00:03:30 2015 +0000
Add --all-tenants option to 'nova delete'
Currently, the all_tenants=1 search option is being passed all the
time for 'nova delete' commands in order to enable 'nova delete' by
name to work across tenants, for those that have all_tenants access
in the nova policy.json. This however breaks all 'nova delete' for
non-admins when policy has been configured to allow only admin to
list servers across all_tenants.
This patch changes 'nova delete' to take an option --all-tenants to
get the functionality to delete by name across tenants. This is
similar to how 'nova list --all-tenants' works.
Closes-Bug: #1439381
Change-Id: I204daaf5c0f4da b7c93ef0bd85ffa b3529ca352a