Commit 707a6c6f authored by Dietmar Maurer's avatar Dietmar Maurer

ceph: re-open rados connection inside worker process

parent addd0cbf
......@@ -825,6 +825,8 @@ __PACKAGE__->register_method ({
my $worker = sub {
my $upid = shift;
$rados = PVE::RADOS->new(); # reopen
$rados->mon_command({ prefix => "mon remove", name => $monid, format => 'plain' });
eval { &$ceph_service_cmd('stop', $monsection); };
......@@ -1286,7 +1288,6 @@ __PACKAGE__->register_method ({
my $bindata = $rados->mon_command({ prefix => 'auth get client.bootstrap-osd', format => 'plain' });
PVE::Tools::file_set_contents($ceph_bootstrap_osd_keyring, $bindata);
};
my $worker = sub {
my $upid = shift;
......@@ -1372,6 +1373,8 @@ __PACKAGE__->register_method ({
my $worker = sub {
my $upid = shift;
$rados = PVE::RADOS->new(); # reopen
print "destroy OSD $osdsection\n";
eval { &$ceph_service_cmd('stop', $osdsection); };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment