]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: warn when draining host explicitly listed in placement
authorAdam King <adking@redhat.com>
Mon, 16 Oct 2023 19:15:54 +0000 (15:15 -0400)
committerAdam King <adking@redhat.com>
Wed, 13 Mar 2024 02:42:25 +0000 (22:42 -0400)
commita88e30deda19b9f1544c1ca1f731f0fa647991c0
tree9948a94c9c48b09e1c4dfa516c52202b5d42bc7e
parent72c1a99511a49f5c0bf124b1f0b2f4da78a18e6f
mgr/cephadm: warn when draining host explicitly listed in placement

In the case you apply a spec like

```
service_type: node-exporter
placement:
  hosts:
  - host3
```

and then you run `ceph orch host drain host3`, cephadm will remove
the daemon from that host and the placement would now match nothing.

This is definitely an issue that should be able to be bypassed as
it generally isn't serious, but it would be good to let users
know they have the host listed explicitly in placements like this
when they want to drain it.

Fixes: https://tracker.ceph.com/issues/63220
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 434e5fe6aa69cad11454d437002015cff55b727a)
src/pybind/mgr/cephadm/module.py