quads
quads copied to clipboard
[RFE] preset the nowipe attribute with an argparse command for --define-cloud
This is related to https://github.com/redhat-performance/quads/issues/359
In the OSP/OCP use cases, an expansion would necessitate either manually using mod-cloud to change the wipe settings to no-wipe, operating interactively with add-schedule to be prompted for wipe to no-wipe conversion, or remembering to pass an auto-answer prompt to confirm the conversion of wipe settings to no-wipe.
If you know up front that an allocation is going to be for OCP/OSP, you will want wipe at the initial allocation time, but no-wipe after the initial validation succeeds. I suggest that at the time a cloud is defined, we pass:
--auto-no-wipe
The effect would be that when the cloud is released post-validation, if the cloud has wipe set, then it automatically converts to no-wipe. This simple automation step would avoid the need to either manually use mod-cloud to toggle wipe to false, or to run add-schedule interactively. Having an auto-no-wipe option on the cloud would improve automation and make for fewer manual steps by the operator.
Ideally this should be a part of https://github.com/redhat-performance/quads/issues/359
Kambiz
This can save some time up-front and is still checked in #359 when a cloud is defined or if it isn't adjusted later via --mod-cloud
.
Thanks for filing a separate RFE, while related in category this change is more of a core/command enhancement and the latter is a very specific fail-safe. Keeping the two as separate issues/patches will keep the code change-sets smaller and easier to implement.