Trivial fix typos
Change-Id: Icd38d004eb89f1902365d71d64aa34a65eee9d37
This commit is contained in:
parent
faf610f766
commit
7404ba21b8
@ -312,7 +312,7 @@ Retype volume
|
|||||||
|
|
||||||
Change type of existing volume. Specify the ``os-retype`` action in the request body.
|
Change type of existing volume. Specify the ``os-retype`` action in the request body.
|
||||||
|
|
||||||
Change the volume type of exisiting volume, Cinder may migrate the volume to
|
Change the volume type of existing volume, Cinder may migrate the volume to
|
||||||
proper volume host according to the new volume type.
|
proper volume host according to the new volume type.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
@ -309,7 +309,7 @@ Retype a volume
|
|||||||
|
|
||||||
Change type of existing volume. Specify the ``os-retype`` action in the request body.
|
Change type of existing volume. Specify the ``os-retype`` action in the request body.
|
||||||
|
|
||||||
Change the volume type of exisiting volume, Cinder may migrate the volume to
|
Change the volume type of existing volume, Cinder may migrate the volume to
|
||||||
proper volume host according to the new volume type.
|
proper volume host according to the new volume type.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
@ -163,7 +163,7 @@ class VolumeAttachment(base.CinderPersistentObject, base.CinderObject,
|
|||||||
|
|
||||||
@base.CinderObjectRegistry.register
|
@base.CinderObjectRegistry.register
|
||||||
class VolumeAttachmentList(base.ObjectListBase, base.CinderObject):
|
class VolumeAttachmentList(base.ObjectListBase, base.CinderObject):
|
||||||
# Versoin 1.0: Iniitial version
|
# Version 1.0: Initial version
|
||||||
# Version 1.1: Remove volume_id in get_by_host|instance
|
# Version 1.1: Remove volume_id in get_by_host|instance
|
||||||
VERSION = '1.1'
|
VERSION = '1.1'
|
||||||
|
|
||||||
|
@ -1783,7 +1783,7 @@ class MigrateVD(object):
|
|||||||
Returns a boolean indicating whether the migration occurred, as well as
|
Returns a boolean indicating whether the migration occurred, as well as
|
||||||
model_update.
|
model_update.
|
||||||
|
|
||||||
:param ctxt: Context
|
:param context: Context
|
||||||
:param volume: A dictionary describing the volume to migrate
|
:param volume: A dictionary describing the volume to migrate
|
||||||
:param host: A dictionary describing the host to migrate to, where
|
:param host: A dictionary describing the host to migrate to, where
|
||||||
host['host'] is its name, and host['capabilities'] is a
|
host['host'] is its name, and host['capabilities'] is a
|
||||||
|
@ -134,7 +134,7 @@ class HttpClient(object):
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
url = asyncTask.get('returnValue')
|
url = asyncTask.get('returnValue')
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
LOG.debug('_get_async_url: Atttribute Error. (%r)', asyncTask)
|
LOG.debug('_get_async_url: Attribute Error. (%r)', asyncTask)
|
||||||
url = 'api/rest/ApiConnection/AsyncTask/'
|
url = 'api/rest/ApiConnection/AsyncTask/'
|
||||||
|
|
||||||
# Blank URL
|
# Blank URL
|
||||||
|
@ -2030,7 +2030,7 @@ class VMAXCommon(object):
|
|||||||
def get_target_wwns_list(self, storage_system, volume, connector):
|
def get_target_wwns_list(self, storage_system, volume, connector):
|
||||||
"""Find target WWN list.
|
"""Find target WWN list.
|
||||||
|
|
||||||
:param storageSystem: the storage system name
|
:param storage_system: the storage system name
|
||||||
:param connector: the connector dict
|
:param connector: the connector dict
|
||||||
:returns: list -- targetWwns, the target WWN list
|
:returns: list -- targetWwns, the target WWN list
|
||||||
:raises: VolumeBackendAPIException
|
:raises: VolumeBackendAPIException
|
||||||
|
@ -917,7 +917,7 @@ class VMAXProvisionV3(object):
|
|||||||
"""Extend a volume instance.
|
"""Extend a volume instance.
|
||||||
|
|
||||||
:param conn: connection to the ecom server
|
:param conn: connection to the ecom server
|
||||||
:param storageConfigservice: the storage configuration service
|
:param storageConfigService: the storage configuration service
|
||||||
:param volumeInstanceName: the volume instance name
|
:param volumeInstanceName: the volume instance name
|
||||||
:param volumeName: the volume name (String)
|
:param volumeName: the volume name (String)
|
||||||
:param volumeSize: the volume size
|
:param volumeSize: the volume size
|
||||||
|
@ -649,7 +649,7 @@ class VMAXUtils(object):
|
|||||||
def convert_gb_to_bits(self, strGbSize):
|
def convert_gb_to_bits(self, strGbSize):
|
||||||
"""Convert GB(string) to bytes(string).
|
"""Convert GB(string) to bytes(string).
|
||||||
|
|
||||||
:param strGB: string -- The size in GB
|
:param strGbSize: string -- The size in GB
|
||||||
:returns: string -- The size in bytes
|
:returns: string -- The size in bytes
|
||||||
"""
|
"""
|
||||||
strBitsSize = six.text_type(int(strGbSize) * units.Gi)
|
strBitsSize = six.text_type(int(strGbSize) * units.Gi)
|
||||||
@ -2011,8 +2011,8 @@ class VMAXUtils(object):
|
|||||||
def get_random_pg_from_list(portgroupnames):
|
def get_random_pg_from_list(portgroupnames):
|
||||||
"""From list of portgroup, choose one randomly
|
"""From list of portgroup, choose one randomly
|
||||||
|
|
||||||
:param portGroupNames: list of available portgroups
|
:param portgroupnames: list of available portgroups
|
||||||
:returns: portGroupName - the random portgroup
|
:returns: portgroupname - the random portgroup
|
||||||
"""
|
"""
|
||||||
portgroupname = (
|
portgroupname = (
|
||||||
portgroupnames[random.randint(0, len(portgroupnames) - 1)])
|
portgroupnames[random.randint(0, len(portgroupnames) - 1)])
|
||||||
@ -2676,7 +2676,7 @@ class VMAXUtils(object):
|
|||||||
|
|
||||||
:param conn: connection to the ecom server
|
:param conn: connection to the ecom server
|
||||||
:param storagegroup: the storagegroup instance name
|
:param storagegroup: the storagegroup instance name
|
||||||
:param extraSpecs: extra specifications
|
:param extraspecs: extra specifications
|
||||||
"""
|
"""
|
||||||
modifiedInstance = None
|
modifiedInstance = None
|
||||||
if type(storagegroup) is pywbem.cim_obj.CIMInstance:
|
if type(storagegroup) is pywbem.cim_obj.CIMInstance:
|
||||||
@ -2802,7 +2802,7 @@ class VMAXUtils(object):
|
|||||||
def change_compression_type(self, isSourceCompressionDisabled, newType):
|
def change_compression_type(self, isSourceCompressionDisabled, newType):
|
||||||
"""Check if volume type have different compression types.
|
"""Check if volume type have different compression types.
|
||||||
|
|
||||||
:param isCompressionDisabled: from source
|
:param isSourceCompressionDisabled: from source
|
||||||
:param newType: from target
|
:param newType: from target
|
||||||
:returns: boolean
|
:returns: boolean
|
||||||
"""
|
"""
|
||||||
|
@ -396,7 +396,7 @@ class NexentaISCSIDriver(driver.ISCSIDriver):
|
|||||||
def retype(self, context, volume, new_type, diff, host):
|
def retype(self, context, volume, new_type, diff, host):
|
||||||
"""Convert the volume to be of the new type.
|
"""Convert the volume to be of the new type.
|
||||||
|
|
||||||
:param ctxt: Context
|
:param context: Context
|
||||||
:param volume: A dictionary describing the volume to migrate
|
:param volume: A dictionary describing the volume to migrate
|
||||||
:param new_type: A dictionary describing the volume type to convert to
|
:param new_type: A dictionary describing the volume type to convert to
|
||||||
:param diff: A dictionary with the difference between the two types
|
:param diff: A dictionary with the difference between the two types
|
||||||
|
@ -245,7 +245,7 @@ class NexentaNfsDriver(nfs.NfsDriver): # pylint: disable=R0921
|
|||||||
def retype(self, context, volume, new_type, diff, host):
|
def retype(self, context, volume, new_type, diff, host):
|
||||||
"""Convert the volume to be of the new type.
|
"""Convert the volume to be of the new type.
|
||||||
|
|
||||||
:param ctxt: Context
|
:param context: Context
|
||||||
:param volume: A dictionary describing the volume to migrate
|
:param volume: A dictionary describing the volume to migrate
|
||||||
:param new_type: A dictionary describing the volume type to convert to
|
:param new_type: A dictionary describing the volume type to convert to
|
||||||
:param diff: A dictionary with the difference between the two types
|
:param diff: A dictionary with the difference between the two types
|
||||||
|
@ -227,7 +227,7 @@ class BrcdHTTPFCZoneClient(object):
|
|||||||
raise exception.BrocadeZoningHttpException(reason=msg)
|
raise exception.BrocadeZoningHttpException(reason=msg)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def get_parsed_data(self, data, delim1, demil2):
|
def get_parsed_data(self, data, delim1, delim2):
|
||||||
"""Return the sub string between the delimiters.
|
"""Return the sub string between the delimiters.
|
||||||
|
|
||||||
:param data: String to manipulate
|
:param data: String to manipulate
|
||||||
@ -238,7 +238,7 @@ class BrcdHTTPFCZoneClient(object):
|
|||||||
try:
|
try:
|
||||||
start = data.index(delim1)
|
start = data.index(delim1)
|
||||||
start = start + len(delim1)
|
start = start + len(delim1)
|
||||||
end = data.index(demil2)
|
end = data.index(delim2)
|
||||||
return data[start:end]
|
return data[start:end]
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
msg = (_("Error while parsing the data: %s.") % six.text_type(e))
|
msg = (_("Error while parsing the data: %s.") % six.text_type(e))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user