From: Bharat Kumar Kobagana Date: Wed, 18 Feb 2015 10:46:28 +0000 (+0530) Subject: Passing privileged user to create nova assisted snapshots X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=53705632509cc93e87378c32c703c8d8d8d05b79;p=openstack-build%2Fcinder-build.git 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 = os_privileged_user_password = os_privileged_user_tenant = Closes-Bug: 1308736 Change-Id: I004f3962f7c83113bed6bd9e3ccd002f017bd260 --- diff --git a/cinder/compute/nova.py b/cinder/compute/nova.py index 2a2fc82d9..a5b84e4d2 100644 --- a/cinder/compute/nova.py +++ b/cinder/compute/nova.py @@ -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,