ceph: disable OSD unit in destroyosd

while OSDs units should only be runtime enable and disappear on reboots,
this serves as an additional safeguard to ensure no leftover units can
exist.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2017-10-10 11:54:54 +02:00 committed by Wolfgang Bumiller
parent f4fe197db4
commit 8ccae777f0

View File

@ -379,7 +379,10 @@ __PACKAGE__->register_method ({
print "destroy OSD $osdsection\n";
eval { PVE::CephTools::ceph_service_cmd('stop', $osdsection); };
eval {
PVE::CephTools::ceph_service_cmd('stop', $osdsection);
PVE::CephTools::ceph_service_cmd('disable', $osdsection);
};
warn $@ if $@;
print "Remove $osdsection from the CRUSH map\n";