]> git.proxmox.com Git - pve-manager.git/commitdiff
ceph: disable OSD unit in destroyosd
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 10 Oct 2017 09:54:54 +0000 (11:54 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 10 Oct 2017 10:17:17 +0000 (12:17 +0200)
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>
PVE/API2/Ceph.pm

index f89b7bfefe0a8f8d9665240b1e58ba377677b1d2..e523ecac1a1e413283f614991cc0e2b653afb6af 100644 (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";