cloud-platform-deployment-manager
cloud-platform-deployment-manager copied to clipboard
SetSystemReady & SetSystemType During Restore and Fix Host Status Update in Day-2
SetSystemReady & SetSystemType During Restore
This commit sets SystemReady and SystemType during restore so that all
other reconcilers can reconcile when subsequent DM configurations are
applied post upgrade.
Test Cases:
1. PASS: Verify Day-1 configuration applied after successful restore
gets reconciled.
2. PASS: Verify Day-2 configuration applied after successful restore
gets reconciled.
3. PASS: Verify all other reconcilers are not notified due to change in
state caused in SystemReconciler during restore.
Fix Host Administrative / Operational / Availability Update in Day-2
After introducing the "restore-in-progress" annotation a check on
ObservedGeneration v/s Generation and Reconciled status were added to
allow the reconciliation.
This prevents Host reconciler from updating Administrative / Operational
/ Availability status in Day-2 activity when VIM host strategties are
used for locking and unlocking the system.
The check has been modified to include 'DeploymentScope == "bootstrap"'
with which Host controller is expected to update these statuses.
TestCases:
1. PASS: Apply a Day-2 configuration with Host resource that requires
lock/unlock and verify that Administrative / Operational /
Availability statuses are updated.