mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 21:13:45 +00:00
fix osd remove
This commit is contained in:
parent
4c917e974d
commit
cee8e2b661
@ -1159,7 +1159,7 @@ __PACKAGE__->register_method ({
|
|||||||
'--', $param->{dev}]);
|
'--', $param->{dev}]);
|
||||||
};
|
};
|
||||||
|
|
||||||
return $rpcenv->fork_worker('cephcreateods', $param->{dev}, $authuser, $worker);
|
return $rpcenv->fork_worker('cephcreateosd', $param->{dev}, $authuser, $worker);
|
||||||
}});
|
}});
|
||||||
|
|
||||||
__PACKAGE__->register_method ({
|
__PACKAGE__->register_method ({
|
||||||
@ -1216,13 +1216,13 @@ __PACKAGE__->register_method ({
|
|||||||
my $worker = sub {
|
my $worker = sub {
|
||||||
my $upid = shift;
|
my $upid = shift;
|
||||||
|
|
||||||
print "destroy OSD $param->{osdid}\n";
|
print "destroy OSD $osdsection\n";
|
||||||
|
|
||||||
eval { &$ceph_service_cmd('stop', $osdsection); };
|
eval { &$ceph_service_cmd('stop', $osdsection); };
|
||||||
warn $@ if $@;
|
warn $@ if $@;
|
||||||
|
|
||||||
print "Remove $osdsection from the CRUSH map\n";
|
print "Remove $osdsection from the CRUSH map\n";
|
||||||
&$run_ceph_cmd(['osd', 'crush', 'remove', $osdid]);
|
&$run_ceph_cmd(['osd', 'crush', 'remove', $osdsection]);
|
||||||
|
|
||||||
print "Remove the $osdsection authentication key.\n";
|
print "Remove the $osdsection authentication key.\n";
|
||||||
&$run_ceph_cmd(['auth', 'del', $osdsection]);
|
&$run_ceph_cmd(['auth', 'del', $osdsection]);
|
||||||
@ -1231,7 +1231,7 @@ __PACKAGE__->register_method ({
|
|||||||
&$run_ceph_cmd(['osd', 'rm', $osdid]);
|
&$run_ceph_cmd(['osd', 'rm', $osdid]);
|
||||||
};
|
};
|
||||||
|
|
||||||
return $rpcenv->fork_worker('cephdestroyods', $osdsection, $authuser, $worker);
|
return $rpcenv->fork_worker('cephdestroyosd', $osdsection, $authuser, $worker);
|
||||||
}});
|
}});
|
||||||
|
|
||||||
__PACKAGE__->register_method ({
|
__PACKAGE__->register_method ({
|
||||||
|
Loading…
Reference in New Issue
Block a user