# TODO(uni): template elements of 'host', 'service' and 'disabled'
# should be deprecated to make ServicesUpdateTemplate consistent
# with ServicesIndexTemplate. Still keeping it here for API
- # compability sake.
+ # compatibility sake.
root = xmlutil.TemplateElement('host')
root.set('host')
root.set('service')
raise webob.exc.HTTPBadRequest()
# NOTE(uni): deprecating service request key, binary takes precedence
- # Still keeping service key here for API compability sake.
+ # Still keeping service key here for API compatibility sake.
service = body.get('service', '')
binary = body.get('binary', '')
binary_key = binary or service
def _get_volume_size_gb(self, volume):
"""Return the size in gigabytes of the given volume.
- Raises exception.InvalidParameterValue if voluem size is 0.
+ Raises exception.InvalidParameterValue if volume size is 0.
"""
if int(volume['size']) == 0:
errmsg = _("need non-zero volume size")
"""Detach the volume from instance_name.
connection_properties for iSCSI must include:
- target_portal - ip and optional port
+ target_portal - IP and optional port
target_iqn - iSCSI Qualified Name
target_lun - LUN id of the volume
"""
def get_fc_hbas_info(self):
"""Get Fibre Channel WWNs and device paths from the system, if any."""
- # Note(walter-boring) modern linux kernels contain the FC HBA's in /sys
+ # Note(walter-boring) modern Linux kernels contain the FC HBA's in /sys
# and are obtainable via the systool app
hbas = self.get_fc_hbas()
if not hbas:
def get_fc_wwpns(self):
"""Get Fibre Channel WWPNs from the system, if any."""
- # Note(walter-boring) modern linux kernels contain the FC HBA's in /sys
+ # Note(walter-boring) modern Linux kernels contain the FC HBA's in /sys
# and are obtainable via the systool app
hbas = self.get_fc_hbas()
def get_fc_wwnns(self):
"""Get Fibre Channel WWNNs from the system, if any."""
- # Note(walter-boring) modern linux kernels contain the FC HBA's in /sys
+ # Note(walter-boring) modern Linux kernels contain the FC HBA's in /sys
# and are obtainable via the systool app
hbas = self.get_fc_hbas()
if not hbas: