From 53705632509cc93e87378c32c703c8d8d8d05b79 Mon Sep 17 00:00:00 2001 From: Bharat Kumar Kobagana Date: Wed, 18 Feb 2015 16:16:28 +0530 Subject: [PATCH] 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 --- cinder/compute/nova.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.45.2