]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: verify mon spec exists before trying to grab from spec store 51321/head
authorAdam King <adking@redhat.com>
Tue, 2 May 2023 22:59:18 +0000 (18:59 -0400)
committerAdam King <adking@redhat.com>
Tue, 2 May 2023 22:59:18 +0000 (18:59 -0400)
commit8aab7beefbb52f47573ad7fce932552ad5c0b2fa
tree0e70a5f7c164f1b8c00893bd7e4b549728b6fd0a
parentcd63ffa4d67606874bbf869ac185850dba9fca18
mgr/cephadm: verify mon spec exists before trying to grab from spec store

In a normal deployment, we generally shouldn't have
to worry about this. This is more for teuthology
which does deployments in a weird way that can cause
there to be no mon spec in the cluster. Fixes an issue
seen when backporting the mon crush location work
to quincy where an upgrade test would fail with

```
[WRN] UPGRADE_REDEPLOY_DAEMON: Upgrading daemon mon.b on host smithi047 failed.
    Upgrade daemon: mon.b: Service mon not found.
```

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/services/cephadmservice.py