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
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user