Donot repeatly show Locked ported updating from pvc

Skip showing some locked ports repeatly when event coming.

Change-Id: Iad9e9b28d474ff3a7418c858108dabdeb649a47e
Closes-Bug: #1439066
This commit is contained in:
Jerry Cai 2015-04-01 16:51:09 +08:00
parent eac3b89426
commit c0df42479f
1 changed files with 4 additions and 1 deletions

View File

@ -1142,8 +1142,11 @@ class PowerVCNeutronAgent(object):
local_id, local_device_id)
self.local.set_port_device_id(local_port,
local_device_id)
elif pvc_device == constants.POWERVC_LOCKDEVICE_ID:
LOG.debug(_("Lock port, skip updating local port: %s"),
local_id)
else:
LOG.info(_("Unable to update local port %s. Local "
LOG.warning(_("Unable to update local port %s. Local "
"instance for PowerVC %s can not be found"),
local_id, pvc_device)
# Do any of the other fields in the ports need to be updated