Passing privileged user to create nova assisted snapshots
This patch passes privileged user to create nova assisted snapshots. We can pass privileged user credentials through cinder.conf as below: os_privileged_user_name = <user> os_privileged_user_password = <password> os_privileged_user_tenant = <tenant> Closes-Bug: 1308736 Change-Id: I004f3962f7c83113bed6bd9e3ccd002f017bd260
This commit is contained in:
parent
22a3ba50e8
commit
5370563250
|
@ -169,14 +169,14 @@ class API(base.Base):
|
|||
new_volume_id)
|
||||
|
||||
def create_volume_snapshot(self, context, volume_id, create_info):
|
||||
nova = novaclient(context, admin_endpoint=True)
|
||||
nova = novaclient(context, admin_endpoint=True, privileged_user=True)
|
||||
|
||||
nova.assisted_volume_snapshots.create(
|
||||
volume_id,
|
||||
create_info=create_info)
|
||||
|
||||
def delete_volume_snapshot(self, context, snapshot_id, delete_info):
|
||||
nova = novaclient(context, admin_endpoint=True)
|
||||
nova = novaclient(context, admin_endpoint=True, privileged_user=True)
|
||||
|
||||
nova.assisted_volume_snapshots.delete(
|
||||
snapshot_id,
|
||||
|
|
Loading…
Reference in New Issue