You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ceph_migrate refactor restart mgr handler as task to fix role usage
This is a follow-up to #1089.
Refactor `restart mgr` operation: remove handler, add explicit task.
Previously, restarting the Ceph manager (`mgr`) used an Ansible handler,
which delayed execution until the playbook's end. This caused issues for
Ceph failover, as the action needed to occur immediately after MON host
removal. Additionally, the handler restarted the manager from the
controller node, but the correct approach is to run `cephadm` directly
on a ComputeHCI node.
This update removes the handler file and replaces it with an explicit
task that runs right after the MON removal block in `drain.yaml`. The
task directly runs `cephadm shell -- ceph mgr fail` on a ComputeHCI
node when available, which ensures prompt and correct manager failover.
- Deleted the now-unneeded `handlers/main.yml`.
- Added a dedicated task to restart mgr after host removal, delegating
to ComputeHCI if present.
Signed-off-by: Roberto Alfieri <[email protected]>
0 commit comments