]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Thu, 9 Nov 2023 19:31:48 +0000 (14:31 -0500)
commit434e5fe6aa69cad11454d437002015cff55b727a
tree5344600833227a3f57a53a5f778818db6f8d99db
parent50aab7dadbcbb2e9752f15e99789fcfea17b9279
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>
src/pybind/mgr/cephadm/module.py