]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: disallow changing OSD service type to non-OSD types 62984/head
authorJoshua Blanch <joshua.blanch@clyso.com>
Fri, 25 Apr 2025 21:04:28 +0000 (21:04 +0000)
committerJoshua Blanch <joshua.blanch@clyso.com>
Mon, 5 May 2025 16:07:01 +0000 (16:07 +0000)
commitdd7d1196af1e9a318facca3134fc6bdc3f5d5471
tree187e00b27a5aa444dc929bc9881d7599cb0bd5d9
parented7bb4ff3ac6ebb1744b4046a70223cf76b75aab
mgr/cephadm: disallow changing OSD service type to non-OSD types

Prevent accidental or invalid service type changes for OSD daemons by
enforcing that an OSD's service type cannot be changed to a different
service type (e.g., mon, mds, etc.)

Fixes: https://tracker.ceph.com/issues/71087
Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py