diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index aaacb17..dc6e79d 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@ -13,6 +13,7 @@ use PVE::Cluster qw(cfs_read_file);; use PVE::JSONSchema qw(get_standard_option); use PVE::ProcFSTools; use PVE::RADOS; +use PVE::RPCEnvironment; use PVE::Storage::Plugin; use PVE::Tools qw(run_command trim file_read_firstline); @@ -27,6 +28,9 @@ my $get_parent_image_name = sub { my $librados_connect = sub { my ($scfg, $storeid, $options) = @_; + $options->{timeout} = 60 + if !defined($options->{timeout}) && PVE::RPCEnvironment->is_worker(); + my $librados_config = PVE::CephConfig::ceph_connect_option($scfg, $storeid, $options->%*); my $rados = PVE::RADOS->new(%$librados_config);