Relaxed the rules for stage_administrative_update() as per
recommendation in the Launchpad.
The provisioning state should have transitioned to 'provisioning' on
the host-unlock, it was observed to be still 'unprovisioned'. This
commit makes the transition to PROVISIONED ('provisioned') less
restrictive, to also allow transition when constants.UNPROVISIONED
(not just the current constants.PROVISIONING) since the operational
state is being set to 'enabled’ (which can only be True if it is
unlocked-enabled, i.e. after provisioning).
The transition to PROVISIONING should've occured on the host-unlock
operation e.g., when following log occurs
"stage_administrative_update: provisioning"; which checks for whether
UNPROVISIONED or None there so this would align the OPERATIONAL_ENABLED
status with the PROVISIONED as well.
Reviewed: https:/ /review. opendev. org/739628 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=5ee1dc120b6 fc1fa8cc4011b87 79fe4da525fd58
Committed: https:/
Submitter: Zuul
Branch: master
commit 5ee1dc120b6fc1f a8cc4011b8779fe 4da525fd58
Author: Kristine Bujold <email address hidden>
Date: Mon Jul 6 20:55:48 2020 -0400
Relax rules when transitioning to provisioned
Relaxed the rules for stage_administr ative_update( ) as per
recommendation in the Launchpad.
The provisioning state should have transitioned to 'provisioning' on UNPROVISIONED PROVISIONING) since the operational enabled, i.e. after provisioning).
the host-unlock, it was observed to be still 'unprovisioned'. This
commit makes the transition to PROVISIONED ('provisioned') less
restrictive, to also allow transition when constants.
(not just the current constants.
state is being set to 'enabled’ (which can only be True if it is
unlocked-
The transition to PROVISIONING should've occured on the host-unlock administrative_ update: provisioning"; which checks for whether
operation e.g., when following log occurs
"stage_
UNPROVISIONED or None there so this would align the OPERATIONAL_ENABLED
status with the PROVISIONED as well.
Closes-Bug: 1864874 5b6f22007e81b2b 3f468f3e629
Change-Id: Iaf093046dd3c31
Signed-off-by: Kristine Bujold <email address hidden>