Deny changing of interfaces when node status is 'provisioned'

It can help in situation when the first deployment task is started
(task may affect network interfaces) but the report from astute about
starting of deployment for that node is not received by receiverd yet.

Change-Id: I47c58ffa54856cb3dd969de08b703fb1bb73973b
Partial-Bug: #1532823
(cherry picked from commit c467fedf9d)
This commit is contained in:
Aleksey Kasatkin 2016-01-28 16:28:35 +02:00
parent 41170db11c
commit 4bf1d56c5f
3 changed files with 2 additions and 3 deletions

View File

@ -355,7 +355,6 @@ class Node(NailgunObject):
"""
return instance.status not in (
consts.NODE_STATUSES.discover,
consts.NODE_STATUSES.provisioned,
consts.NODE_STATUSES.error,
)

View File

@ -106,7 +106,7 @@ class TestNodeCollectionNICsHandler(BaseIntegrationTest):
consts.NODE_STATUSES.discover: False,
consts.NODE_STATUSES.error: False,
consts.NODE_STATUSES.provisioning: True,
consts.NODE_STATUSES.provisioned: False,
consts.NODE_STATUSES.provisioned: True,
consts.NODE_STATUSES.deploying: True,
consts.NODE_STATUSES.ready: True,
consts.NODE_STATUSES.removing: True}

View File

@ -406,7 +406,7 @@ class TestHandlers(BaseIntegrationTest):
consts.NODE_STATUSES.discover: False,
consts.NODE_STATUSES.error: False,
consts.NODE_STATUSES.provisioning: True,
consts.NODE_STATUSES.provisioned: False,
consts.NODE_STATUSES.provisioned: True,
consts.NODE_STATUSES.deploying: True,
consts.NODE_STATUSES.ready: True,
consts.NODE_STATUSES.removing: True}