Skip to content

Commit 38bee18

Browse files
author
Jordan Pittier
committed
Cinder: Set os_privileged_user credentials (for os-assisted-snapshots)
When calling os-assisted-snapshots APIs, Cinder often (by default) needs to pass an admin token to Nova. Currently it uses the credentials of the current user. This will cause calls to Nova APIs for assisted volume snapshots to fail. Configuration options should be added to specify different credentials for talking to Nova. Change-Id: I9e3ed53f4e1349d57a0c33518445f54ac63e36ec Related-Bug: #1308736
1 parent 041fd16 commit 38bee18

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/cinder

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ function configure_cinder {
299299
iniset $CINDER_CONF DEFAULT ssl_key_file "$CINDER_SSL_KEY"
300300
fi
301301

302+
# Set os_privileged_user credentials (used for os-assisted-snapshots)
303+
iniset $CINDER_CONF DEFAULT os_privileged_user_name nova
304+
iniset $CINDER_CONF DEFAULT os_privileged_user_password "$SERVICE_PASSWORD"
305+
iniset $CINDER_CONF DEFAULT os_privileged_user_tenant "$SERVICE_TENANT_NAME"
306+
302307
}
303308

304309
# create_cinder_accounts() - Set up common required cinder accounts

0 commit comments

Comments
 (0)