From 041f706577476729cee2a9bd2b605aadf4bc5775 Mon Sep 17 00:00:00 2001 From: John Griffith Date: Thu, 30 Jul 2015 11:43:00 -0600 Subject: [PATCH] Use prefix for SolidFire template account The SolidFire template account was not using the account_prefix setting when the account was created. This means that if a deployment is configured to use the prefix, that calls to make the actual clone will fail because the clone routine prepends the prefix from the config settings on every lookup. This patch just adds the same account adjustment that we use in our regular account creation routines. Change-Id: I4d3c22f96c9ca90192b88f1802997c8680b81483 Closes-Bug: #1479897 --- cinder/volume/drivers/solidfire.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cinder/volume/drivers/solidfire.py b/cinder/volume/drivers/solidfire.py index fa32d54ee..1efb6ee9c 100644 --- a/cinder/volume/drivers/solidfire.py +++ b/cinder/volume/drivers/solidfire.py @@ -166,6 +166,11 @@ class SolidFireDriver(san.SanISCSIDriver): def _create_template_account(self, account_name): # We raise an API exception if the account doesn't exist + + # We need to take account_prefix settings into consideration + # This just uses the same method to do template account create + # as we use for any other OpenStack account + account_name = self._get_sf_account_name(account_name) try: id = self._issue_api_request( 'GetAccountByName', -- 2.45.2