]> 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 51217/head
authorAdam King <adking@redhat.com>
Tue, 2 May 2023 22:59:18 +0000 (18:59 -0400)
committerAdam King <adking@redhat.com>
Wed, 24 May 2023 17:34:44 +0000 (13:34 -0400)
commitdc5326c3c3765d570ebc5faa95e9de76c04cefe0
treebd7b79665784dd012bc80936fc88cb6ef42cb017
parentaa55eeee2daa34fc49424b40b8d76cb8ab4bc11c
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>
(cherry picked from commit 8aab7beefbb52f47573ad7fce932552ad5c0b2fa)
src/pybind/mgr/cephadm/services/cephadmservice.py