cfg.StrOpt('sf_account_prefix',
default=None,
- help='Create SolidFire accounts with this prefix. Uses current '
- 'hostname if unset (default).'),
+ help='Create SolidFire accounts with this prefix. Any string '
+ 'can be used here, but the string \"hostname\" is special '
+ 'and will create a prefix using the cinder node hostsname '
+ '(previous default behavior). The default is NO prefix.'),
cfg.IntOpt('sf_api_port',
default=443,
def _get_sf_account_name(self, project_id):
"""Build the SolidFire account name to use."""
- prefix = self.configuration.sf_account_prefix or socket.gethostname()
+ prefix = self.configuration.sf_account_prefix or ''
+ if prefix == 'hostname':
+ prefix = socket.gethostname()
return '%s%s%s' % (prefix, '-' if prefix else '', project_id)
def _get_sfaccount(self, project_id):
# Allow tenants to specify QOS on create (boolean value)
#sf_allow_tenant_qos=false
-# Create SolidFire accounts with this prefix. Uses current
-# hostname if unset (default). (string value)
+# Create SolidFire accounts with this prefix. Any string can
+# be used here, but the string "hostname" is special and will
+# create a prefix using the cinder node hostsname (previous
+# default behavior). The default is NO prefix. (string value)
#sf_account_prefix=<None>
# SolidFire API port. Useful if the device api is behind a