]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm:improve validation of orch device zap 43560/head
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 14 Oct 2021 00:06:30 +0000 (13:06 +1300)
committerPaul Cuzner <pcuzner@redhat.com>
Fri, 15 Oct 2021 01:30:15 +0000 (14:30 +1300)
commitb7782084ac9657be9b2da6ebd56b5029cf859225
treefeaa3ff5cce77a8009f700d4d7ab7f417fc6a460
parentc7419c8c43d3c311d51e260351b4123f1784705e
mgr/cephadm:improve validation of orch device zap

Improve the logic in the function to :
1. check that the host exists
2. check the host isn't in maintenance
3. check the disk exists on the host
4. check the disk isn't supporting a known OSD
5. check that the disk doesn't belong to another cluster

In addition the command now returns a completion message so
you know it worked.

Fixes: https://tracker.ceph.com/issues/52919
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
src/pybind/mgr/cephadm/module.py