class VolumeReplicationController(wsgi.Controller):
- """The Volume Replication API controller for the Openstack API."""
+ """The Volume Replication API controller for the OpenStack API."""
def __init__(self, *args, **kwargs):
super(VolumeReplicationController, self).__init__(*args, **kwargs)
class DotHillFCDriver(cinder.volume.driver.FibreChannelDriver):
- """Openstack Fibre Channel cinder drivers for DotHill Arrays.
+ """OpenStack Fibre Channel cinder drivers for DotHill Arrays.
Version history:
0.1 - Base version developed for HPMSA FC drivers:
class DotHillISCSIDriver(cinder.volume.driver.ISCSIDriver):
- """Openstack iSCSI cinder drivers for DotHill Arrays.
+ """OpenStack iSCSI cinder drivers for DotHill Arrays.
Version history:
0.1 - Base structure for DotHill iSCSI drivers based on HPMSA FC
name = 'world wide port names'
else:
msg = (_("FC is the protocol but wwpns are "
- "not supplied by Openstack."))
+ "not supplied by OpenStack."))
LOG.error(msg)
raise exception.VolumeBackendAPIException(data=msg)
# Get vol info from the volume name obtained from the reference
vol_info = self.APIExecutor.get_vol_info(target_vol_name)
- # Check if volume is already managed by Openstack
+ # Check if volume is already managed by OpenStack
if vol_info['agent-type'] == AGENT_TYPE_OPENSTACK:
- msg = (_('Volume %s is already managed by Openstack.')
+ msg = (_('Volume %s is already managed by OpenStack.')
% target_vol_name)
raise exception.ManageExistingAlreadyManaged(
volume_ref=volume['id'])
if vol_info['online']:
msg = (_('Volume %s is online. Set volume to offline for '
- 'managing using Openstack.') % target_vol_name)
+ 'managing using OpenStack.') % target_vol_name)
raise exception.InvalidVolume(reason=msg)
# edit the volume
# check agent type
vol_info = self.APIExecutor.get_vol_info(vol_name)
if vol_info['agent-type'] != AGENT_TYPE_OPENSTACK:
- msg = (_('Only volumes managed by Openstack can be unmanaged.'))
+ msg = (_('Only volumes managed by OpenStack can be unmanaged.'))
raise exception.InvalidVolume(reason=msg)
# update the agent-type to None
# under the License.
"""
-Violin Memory 6000 Series All-Flash Array Common Driver for Openstack Cinder
+Violin Memory 6000 Series All-Flash Array Common Driver for OpenStack Cinder
Provides common (ie., non-protocol specific) management functions for
V6000 series flash arrays.
# under the License.
"""
-Violin Memory Fibre Channel Driver for Openstack Cinder
+Violin Memory Fibre Channel Driver for OpenStack Cinder
Provides fibre channel specific LUN services for V6000 series flash
arrays.
return self._convert_wwns_vmem_to_openstack(active_gw_fcp_wwns)
def _convert_wwns_openstack_to_vmem(self, wwns):
- """Convert a list of Openstack WWNs to VMEM compatible WWN strings.
+ """Convert a list of OpenStack WWNs to VMEM compatible WWN strings.
Input format is '50014380186b3f65', output format is
'wwn.50:01:43:80:18:6b:3f:65'.
Arguments:
- wwns -- list of Openstack-based WWN strings.
+ wwns -- list of OpenStack-based WWN strings.
Returns:
output -- list of VMEM-based WWN strings.
return output
def _convert_wwns_vmem_to_openstack(self, wwns):
- """Convert a list of VMEM WWNs to Openstack compatible WWN strings.
+ """Convert a list of VMEM WWNs to OpenStack compatible WWN strings.
Input format is 'wwn.50:01:43:80:18:6b:3f:65', output format
is '50014380186b3f65'.
wwns -- list of VMEM-based WWN strings.
Returns:
- output -- list of Openstack-based WWN strings.
+ output -- list of OpenStack-based WWN strings.
"""
output = []
for w in wwns:
# under the License.
"""
-Violin Memory iSCSI Driver for Openstack Cinder
+Violin Memory iSCSI Driver for OpenStack Cinder
Provides iSCSI specific LUN services for V6000 series flash arrays.
"""Get a random target IP for OpenStack to connect to.
For the non-multipath case we pick a single random target for
- the Openstack infrastructure to use. This at least allows us
+ the OpenStack infrastructure to use. This at least allows us
to evenly distribute LUN connections across the storage
cluster.
"""
support['thin-clones'] = True
# Make sure ISE support necessary features
if not support['clones']:
- LOG.error(_LE("ISE FW version is not compatible with Openstack!"))
+ LOG.error(_LE("ISE FW version is not compatible with OpenStack!"))
RaiseXIODriverException()
# set up thin provisioning support
self.configuration.san_thin_provision = support['thin-clones']
# Log host creation.
LOG.debug("Create host %(host)s; %(endpoint)s",
{'host': hostname, 'endpoint': endpoint_str})
- # Issue REST call to create host entry of Openstack type.
+ # Issue REST call to create host entry of OpenStack type.
params = {}
params = {'name': hostname, 'endpoint': endpoint_str,
'os': 'openstack'}
LOG.error(_LE("Host could not be found!"))
RaiseXIODriverException()
elif string.upper(host['type']) != 'OPENSTACK':
- # Make sure host type is marked as Openstack host
+ # Make sure host type is marked as OpenStack host
params = {'os': 'openstack'}
resp = self._send_cmd('PUT', host['locator'], params)
status = resp['status']