Repair log parameter error
Multi-parameters should form a dict type Change-Id: Ia883de6a0e34cebd28ba7fb0ecd105acb6cf2830
This commit is contained in:
parent
3b5ef5d625
commit
c4dfbd5855
@ -110,9 +110,9 @@ class VMWorkloadConsolidation(base.ServerConsolidationBaseStrategy):
|
|||||||
return state.value
|
return state.value
|
||||||
else:
|
else:
|
||||||
LOG.error(_LE('Unexpexted resource state type, '
|
LOG.error(_LE('Unexpexted resource state type, '
|
||||||
'state=%(state)s, state_type=%(st)s.'),
|
'state=%(state)s, state_type=%(st)s.') % dict(
|
||||||
state=state,
|
state=state,
|
||||||
st=type(state))
|
st=type(state)))
|
||||||
raise exception.WatcherException
|
raise exception.WatcherException
|
||||||
|
|
||||||
def add_action_enable_compute_node(self, node):
|
def add_action_enable_compute_node(self, node):
|
||||||
@ -161,9 +161,9 @@ class VMWorkloadConsolidation(base.ServerConsolidationBaseStrategy):
|
|||||||
# migration mechanism to move non active VMs.
|
# migration mechanism to move non active VMs.
|
||||||
LOG.error(
|
LOG.error(
|
||||||
_LE('Cannot live migrate: instance_uuid=%(instance_uuid)s, '
|
_LE('Cannot live migrate: instance_uuid=%(instance_uuid)s, '
|
||||||
'state=%(instance_state)s.'),
|
'state=%(instance_state)s.') % dict(
|
||||||
instance_uuid=instance_uuid,
|
instance_uuid=instance_uuid,
|
||||||
instance_state=instance_state_str)
|
instance_state=instance_state_str))
|
||||||
return
|
return
|
||||||
|
|
||||||
migration_type = 'live'
|
migration_type = 'live'
|
||||||
@ -240,10 +240,8 @@ class VMWorkloadConsolidation(base.ServerConsolidationBaseStrategy):
|
|||||||
|
|
||||||
if not instance_ram_util or not instance_disk_util:
|
if not instance_ram_util or not instance_disk_util:
|
||||||
LOG.error(
|
LOG.error(
|
||||||
_LE('No values returned by %(resource_id)s '
|
_LE('No values returned by %s for memory.usage '
|
||||||
'for memory.usage or disk.root.size'),
|
'or disk.root.size'), instance_uuid)
|
||||||
resource_id=instance_uuid
|
|
||||||
)
|
|
||||||
raise exception.NoDataFound
|
raise exception.NoDataFound
|
||||||
|
|
||||||
self.ceilometer_instance_data_cache[instance_uuid] = dict(
|
self.ceilometer_instance_data_cache[instance_uuid] = dict(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user