-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/add maintenance steps #398
Conversation
5d44997
to
dd789b3
Compare
- Add core watcher module - Refactor guests_on_hypervisor
- fix/Read watcher configuration from clusterdb to build watcher client - doc/Update guests_on_hypervisor func docstring - doc/Add comment for TIMEOUT and TIMEOUT_INTERVAL variables
…her action - Refactor: Replace timeout decorator by tenacity - Fix: Raise exception on failed watcher action
- Add EnableHypervisorStep, RunWatcherHostMaintenanceStep, and RunWatcherWorkloadBalancingStep
dd789b3
to
13e055a
Compare
run_sync(self.jhelper.run_action(self.unit, self.model, "enable")) | ||
except ActionFailedException as e: | ||
LOG.debug(str(e)) | ||
return Result(ResultType.FAILED, "Failed to enable hypervisor unit") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add unit name in error message. Helps user not to bother about mapping unit name to node name.
f" | parameters: {action.input_parameters}\n" | ||
) | ||
question = ConfirmQuestion( | ||
("Confirm to run operations for cluster:\n" f"{action_operation_msg}"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update in Github Conversation first commit message box with the UX along with output.
Is the user will be prompted to accept the actions for every Step that contains has_prompts as True? In other words, user accepts the actions for Hypervisor maintenance using watcher once and then after some time for Storage related?
Do you have plan to add maintenance commands that list all actions required across hypervisor/k8s/microceph?
Do you have plan to add flag to proceed with maintenance without prompts once user has reviewed the actionplan in total?
Move to #409 |
blocked by: #397