Fix error when senlin do health check a cluster
When cluster doing resize/scale create nodes, and physcical id of this nodes not found. And cluster was attached a policy health check will do health check cluster. So on, cluster being recover that nodes and emit error log on senlin-engine.log Change-Id: Icece85bd60faa8b9f2fd18bfe953ebeed91f0091
This commit is contained in:
parent
c993775bd4
commit
581e11640d
|
@ -1556,6 +1556,9 @@ class ServerProfile(base.Profile):
|
|||
consts.VS_DELETED]
|
||||
|
||||
if not obj.physical_id:
|
||||
if obj.status == 'BUILD' or obj.status == 'CREATING':
|
||||
return True
|
||||
|
||||
LOG.info('%s for %s: server has no physical ID.',
|
||||
consts.POLL_STATUS_FAIL, obj.name)
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue