]> 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 51612/head
authorAdam King <adking@redhat.com>
Tue, 2 May 2023 22:59:18 +0000 (18:59 -0400)
committerAdam King <adking@redhat.com>
Sun, 21 May 2023 19:56:27 +0000 (15:56 -0400)
commit693c1ed74f44ca1c89efa6a57adfd36c39e37948
tree9ca845ada997585d345dd2a9e682818bda196f87
parent27a865affcf39d7194e263edf28f33ca9e93ef2f
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