[pve-devel] [PATCH qemu-server 1/1] status: rrddata: use fixed pve-vm-9.0 path
Laurențiu Leahu-Vlăducu
l.leahu-vladucu at proxmox.com
Fri Sep 12 19:48:41 CEST 2025
This patch needs a (very small) rebase to apply correctly.
Reviewed-by: Laurențiu Leahu-Vlăducu <l.leahu-vladucu at proxmox.com>
Tested-by: Laurențiu Leahu-Vlăducu <l.leahu-vladucu at proxmox.com>
On 05.09.25 15:55, Aaron Lauterer wrote:
> Because we now always create it, should it not exists and old data is
> used from the old files.
>
> Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
> ---
> src/PVE/API2/Qemu.pm | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm
> index 2acacc22..69b533f2 100644
> --- a/src/PVE/API2/Qemu.pm
> +++ b/src/PVE/API2/Qemu.pm
> @@ -1630,9 +1630,9 @@ __PACKAGE__->register_method({
> code => sub {
> my ($param) = @_;
>
> - my $path = "pve-vm-9.0/$param->{vmid}";
> - $path = "pve2-vm/$param->{vmid}" if !-e "/var/lib/rrdcached/db/${path}";
> - return PVE::RRD::create_rrd_graph($path, $param->{timeframe}, $param->{ds}, $param->{cf});
> + return PVE::RRD::create_rrd_graph(
> + "pve-vm-9.0/$param->{vmid}", $param->{timeframe}, $param->{ds}, $param->{cf},
> + );
>
> },
> });
> @@ -1674,9 +1674,9 @@ __PACKAGE__->register_method({
> code => sub {
> my ($param) = @_;
>
> - my $path = "pve-vm-9.0/$param->{vmid}";
> - $path = "pve2-vm/$param->{vmid}" if !-e "/var/lib/rrdcached/db/${path}";
> - return PVE::RRD::create_rrd_data($path, $param->{timeframe}, $param->{cf});
> + return PVE::RRD::create_rrd_data(
> + "pve-vm-9.0/$param->{vmid}", $param->{timeframe}, $param->{cf},
> + );
> },
> });
>
More information about the pve-devel
mailing list