The return value of get_static_service_stats(...) is fetched through PVE::Cluster::get_guest_config_properties(...), which in turn reads all guest configuration files with a memdb_read_nolock(...) in the pmxcfs.
As PVE::AbstractConfig::load_config(...) internally gets the content of the guest configuration file through cfs_read_file(...), which in turn receives the return value of the equivalent memdb_read(...) from a CFS_IPC_GET_CONFIG message, the fallback is likely to fail as well. Signed-off-by: Daniel Kral <[email protected]> --- src/PVE/HA/Resources/PVECT.pm | 1 - src/PVE/HA/Resources/PVEVM.pm | 1 - 2 files changed, 2 deletions(-) diff --git a/src/PVE/HA/Resources/PVECT.pm b/src/PVE/HA/Resources/PVECT.pm index 4cbf6db3..b9ce2ac3 100644 --- a/src/PVE/HA/Resources/PVECT.pm +++ b/src/PVE/HA/Resources/PVECT.pm @@ -163,7 +163,6 @@ sub get_static_stats { my ($class, $haenv, $id, $service_node) = @_; my $conf = $haenv->get_static_service_stats($id); - $conf = PVE::LXC::Config->load_config($id, $service_node) if !defined($conf); return { maxcpu => PVE::LXC::Config->get_derived_property($conf, 'max-cpu'), diff --git a/src/PVE/HA/Resources/PVEVM.pm b/src/PVE/HA/Resources/PVEVM.pm index 7586da84..303334ba 100644 --- a/src/PVE/HA/Resources/PVEVM.pm +++ b/src/PVE/HA/Resources/PVEVM.pm @@ -184,7 +184,6 @@ sub get_static_stats { my ($class, $haenv, $id, $service_node) = @_; my $conf = $haenv->get_static_service_stats($id); - $conf = PVE::QemuConfig->load_config($id, $service_node) if !defined($conf); return { maxcpu => PVE::QemuConfig->get_derived_property($conf, 'max-cpu'), -- 2.47.3
