Fix prestage orchestration details for skipped subclouds
Ensure that the 'details' field reflects the reason a subcloud is
skipped during prestage orchestration.
We use a new exception, StrategySkippedException, to signal the
OrchThread that a subcloud is being skipped. This immediately
transitions the subcloud strategy to complete, while preserving
the reason for skipping in the strategy_step details.
NOTE: this update also includes a minor update
to the API parameters file, which was missed in the
original feature commit (api-ref/source/parameters.yaml)
Test Plan:
PASS:
- normal prestage orchestration
- prestage orchestration with non-AIO-SX subcloud
- subcloud is skipped
- details populated and reported in details column
of 'dcmanager strategy-step list'
- subcloud deploy_status is returned to 'complete'
- verify feature logging
Reviewed: https:/ /review. opendev. org/c/starlingx /distcloud/ +/832286 /opendev. org/starlingx/ distcloud/ commit/ 9c4d1e9965ffccd 9ce7b53e82dbe7b 84c3b89f61
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 9c4d1e9965ffccd 9ce7b53e82dbe7b 84c3b89f61
Author: Kyle MacLeod <email address hidden>
Date: Mon Mar 7 11:34:00 2022 -0500
Fix prestage orchestration details for skipped subclouds
Ensure that the 'details' field reflects the reason a subcloud is
skipped during prestage orchestration.
We use a new exception, StrategySkipped Exception, to signal the
OrchThread that a subcloud is being skipped. This immediately
transitions the subcloud strategy to complete, while preserving
the reason for skipping in the strategy_step details.
NOTE: this update also includes a minor update source/ parameters. yaml)
to the API parameters file, which was missed in the
original feature commit (api-ref/
Test Plan:
PASS:
- normal prestage orchestration
- prestage orchestration with non-AIO-SX subcloud
- subcloud is skipped
- details populated and reported in details column
of 'dcmanager strategy-step list'
- subcloud deploy_status is returned to 'complete'
- verify feature logging
Closes-Bug: 1963967 10872716b718130 a3a27006c36
Signed-off-by: Kyle MacLeod <email address hidden>
Change-Id: I3408f274e3e044