Add missing ws seperator between words
This is to add missing ws seperator between words, usually in log messages. Change-Id: I71bf4c5b5be4dbc89a28bf243b7d11cf1d612ab4
This commit is contained in:
parent
c1de096098
commit
8545ba2af7
|
@ -76,7 +76,7 @@ def create_resource_class(req):
|
||||||
except exception.MaxDBRetriesExceeded:
|
except exception.MaxDBRetriesExceeded:
|
||||||
raise webob.exc.HTTPConflict(
|
raise webob.exc.HTTPConflict(
|
||||||
_('Max retries of DB transaction exceeded attempting '
|
_('Max retries of DB transaction exceeded attempting '
|
||||||
'to create resource class: %(name)s, please'
|
'to create resource class: %(name)s, please '
|
||||||
'try again.') %
|
'try again.') %
|
||||||
{'name': data['name']})
|
{'name': data['name']})
|
||||||
|
|
||||||
|
|
|
@ -3698,7 +3698,7 @@ def _get_traits_by_provider_tree(ctx, root_ids):
|
||||||
:param root_ids: list of root resource provider IDs
|
:param root_ids: list of root resource provider IDs
|
||||||
"""
|
"""
|
||||||
if not root_ids:
|
if not root_ids:
|
||||||
raise ValueError(_("Expected root_ids to be a list of root resource"
|
raise ValueError(_("Expected root_ids to be a list of root resource "
|
||||||
"provider internal IDs, but got an empty list."))
|
"provider internal IDs, but got an empty list."))
|
||||||
|
|
||||||
rpt = sa.alias(_RP_TBL, name='rpt')
|
rpt = sa.alias(_RP_TBL, name='rpt')
|
||||||
|
|
|
@ -456,7 +456,7 @@ class DbCommands(object):
|
||||||
|
|
||||||
@args('--version', metavar='<version>', help=argparse.SUPPRESS)
|
@args('--version', metavar='<version>', help=argparse.SUPPRESS)
|
||||||
@args('--local_cell', action='store_true',
|
@args('--local_cell', action='store_true',
|
||||||
help='Only sync db in the local cell: do not attempt to fan-out'
|
help='Only sync db in the local cell: do not attempt to fan-out '
|
||||||
'to all cells')
|
'to all cells')
|
||||||
@args('version2', metavar='VERSION', nargs='?', help='Database version')
|
@args('version2', metavar='VERSION', nargs='?', help='Database version')
|
||||||
def sync(self, version=None, local_cell=False, version2=None):
|
def sync(self, version=None, local_cell=False, version2=None):
|
||||||
|
@ -1413,9 +1413,10 @@ class CellV2Commands(object):
|
||||||
if instance:
|
if instance:
|
||||||
say('The instance with uuid %s has been deleted.'
|
say('The instance with uuid %s has been deleted.'
|
||||||
% uuid)
|
% uuid)
|
||||||
say('Execute `nova-manage db archive_deleted_rows`'
|
say('Execute '
|
||||||
'command to archive this deleted instance and'
|
'`nova-manage db archive_deleted_rows` '
|
||||||
'remove its instance_mapping.')
|
'command to archive this deleted '
|
||||||
|
'instance and remove its instance_mapping.')
|
||||||
return 3
|
return 3
|
||||||
except exception.InstanceNotFound:
|
except exception.InstanceNotFound:
|
||||||
# instance is archived
|
# instance is archived
|
||||||
|
|
|
@ -317,7 +317,7 @@ class ProviderTree(object):
|
||||||
# that don't wind up at the root, which means we can't have
|
# that don't wind up at the root, which means we can't have
|
||||||
# cycles. But to quell the paranoia...
|
# cycles. But to quell the paranoia...
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
_("Unexpectedly failed to find parents already in the"
|
_("Unexpectedly failed to find parents already in the "
|
||||||
"tree for any of the following: %s") %
|
"tree for any of the following: %s") %
|
||||||
','.join(set(to_add_by_uuid)))
|
','.join(set(to_add_by_uuid)))
|
||||||
|
|
||||||
|
|
|
@ -698,12 +698,12 @@ http://man7.org/linux/man-pages/man7/random.7.html.
|
||||||
cfg.ListOpt('uid_maps',
|
cfg.ListOpt('uid_maps',
|
||||||
default=[],
|
default=[],
|
||||||
help='List of uid targets and ranges.'
|
help='List of uid targets and ranges.'
|
||||||
'Syntax is guest-uid:host-uid:count'
|
'Syntax is guest-uid:host-uid:count. '
|
||||||
'Maximum of 5 allowed.'),
|
'Maximum of 5 allowed.'),
|
||||||
cfg.ListOpt('gid_maps',
|
cfg.ListOpt('gid_maps',
|
||||||
default=[],
|
default=[],
|
||||||
help='List of guid targets and ranges.'
|
help='List of guid targets and ranges.'
|
||||||
'Syntax is guest-gid:host-gid:count'
|
'Syntax is guest-gid:host-gid:count. '
|
||||||
'Maximum of 5 allowed.'),
|
'Maximum of 5 allowed.'),
|
||||||
cfg.IntOpt('realtime_scheduler_priority',
|
cfg.IntOpt('realtime_scheduler_priority',
|
||||||
default=1,
|
default=1,
|
||||||
|
|
|
@ -64,7 +64,7 @@ has no effect.
|
||||||
|
|
||||||
Possible values:
|
Possible values:
|
||||||
|
|
||||||
* '%(client_ip)s "%(request_line)s" status: %(status_code)s'
|
* '%(client_ip)s "%(request_line)s" status: %(status_code)s '
|
||||||
'len: %(body_length)s time: %(wall_seconds).7f' (default)
|
'len: %(body_length)s time: %(wall_seconds).7f' (default)
|
||||||
* Any formatted string formed by specific values.
|
* Any formatted string formed by specific values.
|
||||||
"""),
|
"""),
|
||||||
|
|
|
@ -3018,7 +3018,7 @@ class API(base_api.NetworkAPI):
|
||||||
self._get_pci_devices_from_migration_context(migration_context,
|
self._get_pci_devices_from_migration_context(migration_context,
|
||||||
migration)
|
migration)
|
||||||
if old_pci_devices and new_pci_devices:
|
if old_pci_devices and new_pci_devices:
|
||||||
LOG.debug("Determining PCI devices mapping using migration"
|
LOG.debug("Determining PCI devices mapping using migration "
|
||||||
"context: old_pci_devices: %(old)s, "
|
"context: old_pci_devices: %(old)s, "
|
||||||
"new_pci_devices: %(new)s",
|
"new_pci_devices: %(new)s",
|
||||||
{'old': [dev for dev in old_pci_devices],
|
{'old': [dev for dev in old_pci_devices],
|
||||||
|
|
|
@ -1779,7 +1779,7 @@ def load_compute_driver(virtapi, compute_driver=None):
|
||||||
LOG.exception(_("Unable to load the virtualization driver"))
|
LOG.exception(_("Unable to load the virtualization driver"))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
LOG.exception("Compute driver '%s' from 'nova.virt' is not of type"
|
LOG.exception("Compute driver '%s' from 'nova.virt' is not of type "
|
||||||
"'%s'", compute_driver, str(ComputeDriver))
|
"'%s'", compute_driver, str(ComputeDriver))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ class SerialProxy(threading.Thread):
|
||||||
self._sock.listen(1)
|
self._sock.listen(1)
|
||||||
except socket.error as err:
|
except socket.error as err:
|
||||||
self._sock.close()
|
self._sock.close()
|
||||||
msg = (_('Failed to initialize serial proxy on'
|
msg = (_('Failed to initialize serial proxy on '
|
||||||
'%(addr)s:%(port)s, handling connections '
|
'%(addr)s:%(port)s, handling connections '
|
||||||
'to instance %(instance_name)s. Error: %(error)s') %
|
'to instance %(instance_name)s. Error: %(error)s') %
|
||||||
{'addr': self._addr,
|
{'addr': self._addr,
|
||||||
|
|
|
@ -305,7 +305,7 @@ class NWFilterFirewall(base_firewall.FirewallDriver):
|
||||||
self._conn.nwfilterLookupByName(instance_filter_name)
|
self._conn.nwfilterLookupByName(instance_filter_name)
|
||||||
except libvirt.libvirtError:
|
except libvirt.libvirtError:
|
||||||
name = instance.name
|
name = instance.name
|
||||||
LOG.debug('The nwfilter(%(instance_filter_name)s) for'
|
LOG.debug('The nwfilter(%(instance_filter_name)s) for '
|
||||||
'%(name)s is not found.',
|
'%(name)s is not found.',
|
||||||
{'instance_filter_name': instance_filter_name,
|
{'instance_filter_name': instance_filter_name,
|
||||||
'name': name},
|
'name': name},
|
||||||
|
|
|
@ -77,7 +77,7 @@ class ConfigDrivePowerVM(object):
|
||||||
# will default to generic vif.
|
# will default to generic vif.
|
||||||
for vif in network_info:
|
for vif in network_info:
|
||||||
if vif.get('type') is not 'ovs':
|
if vif.get('type') is not 'ovs':
|
||||||
LOG.debug('Changing vif type from %(type)s to vif for vif'
|
LOG.debug('Changing vif type from %(type)s to vif for vif '
|
||||||
'%(id)s.', {'type': vif.get('type'),
|
'%(id)s.', {'type': vif.get('type'),
|
||||||
'id': vif.get('id')})
|
'id': vif.get('id')})
|
||||||
vif['type'] = 'vif'
|
vif['type'] = 'vif'
|
||||||
|
|
|
@ -360,8 +360,7 @@ def find_guest_agent(base_dir):
|
||||||
# required
|
# required
|
||||||
LOG.info('XenServer tools installed in this '
|
LOG.info('XenServer tools installed in this '
|
||||||
'image are capable of network injection. '
|
'image are capable of network injection. '
|
||||||
'Networking files will not be'
|
'Networking files will not be manipulated')
|
||||||
'manipulated')
|
|
||||||
return True
|
return True
|
||||||
xe_daemon_filename = os.path.join(base_dir,
|
xe_daemon_filename = os.path.join(base_dir,
|
||||||
'usr', 'sbin', 'xe-daemon')
|
'usr', 'sbin', 'xe-daemon')
|
||||||
|
|
|
@ -367,7 +367,7 @@ class XenAPIOpenVswitchDriver(XenVIFDriver):
|
||||||
host_network.brctl_del_if(self._session, qbr_name, port_name)
|
host_network.brctl_del_if(self._session, qbr_name, port_name)
|
||||||
self._delete_net_dev(port_name)
|
self._delete_net_dev(port_name)
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.debug("Fail to delete linux port %(port_name)s on bridge"
|
LOG.debug("Fail to delete linux port %(port_name)s on bridge "
|
||||||
"%(qbr_name)s",
|
"%(qbr_name)s",
|
||||||
{'port_name': port_name, 'qbr_name': qbr_name})
|
{'port_name': port_name, 'qbr_name': qbr_name})
|
||||||
|
|
||||||
|
|
|
@ -793,7 +793,7 @@ class VMOps(object):
|
||||||
if rescue:
|
if rescue:
|
||||||
if not image_meta.properties.obj_attr_is_set(
|
if not image_meta.properties.obj_attr_is_set(
|
||||||
"hw_auto_disk_config"):
|
"hw_auto_disk_config"):
|
||||||
LOG.debug("'hw_auto_disk_config' value not found in"
|
LOG.debug("'hw_auto_disk_config' value not found in "
|
||||||
"rescue image_properties. Setting value to %s",
|
"rescue image_properties. Setting value to %s",
|
||||||
auto_disk_config, instance=instance)
|
auto_disk_config, instance=instance)
|
||||||
else:
|
else:
|
||||||
|
@ -1156,7 +1156,7 @@ class VMOps(object):
|
||||||
undo_mgr, old_vdi_ref)
|
undo_mgr, old_vdi_ref)
|
||||||
transfer_vhd_to_dest(new_vdi_ref, new_vdi_uuid)
|
transfer_vhd_to_dest(new_vdi_ref, new_vdi_uuid)
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
LOG.exception(_("_migrate_disk_resizing_down failed. Restoring"
|
LOG.exception(_("_migrate_disk_resizing_down failed. Restoring "
|
||||||
"orig vm"), instance=instance)
|
"orig vm"), instance=instance)
|
||||||
undo_mgr._rollback()
|
undo_mgr._rollback()
|
||||||
raise exception.InstanceFaultRollback(error)
|
raise exception.InstanceFaultRollback(error)
|
||||||
|
@ -2369,8 +2369,8 @@ class VMOps(object):
|
||||||
# passed from admin user, so we need this check until
|
# passed from admin user, so we need this check until
|
||||||
# block_migration flag is removed from API
|
# block_migration flag is removed from API
|
||||||
if not pooled_migrate:
|
if not pooled_migrate:
|
||||||
reason = _("Destination host is not in the same shared storage"
|
reason = _("Destination host is not in the same shared "
|
||||||
"pool as source host %s.") % src
|
"storage pool as source host %s.") % src
|
||||||
raise exception.MigrationPreCheckError(reason=reason)
|
raise exception.MigrationPreCheckError(reason=reason)
|
||||||
# TODO(johngarbutt) we currently assume
|
# TODO(johngarbutt) we currently assume
|
||||||
# instance is on a SR shared with other destination
|
# instance is on a SR shared with other destination
|
||||||
|
|
Loading…
Reference in New Issue