[pve-devel] [PATCH manager 1/1] status: rrddata: use fixed pve-node-9.0 path
Laurențiu Leahu-Vlăducu
l.leahu-vladucu at proxmox.com
Fri Sep 12 19:48:56 CEST 2025
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>
> ---
> PVE/API2/Nodes.pm | 13 ++++++-------
> 1 file changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
> index f4f8b37d..303c1852 100644
> --- a/PVE/API2/Nodes.pm
> +++ b/PVE/API2/Nodes.pm
> @@ -865,10 +865,9 @@ __PACKAGE__->register_method({
> code => sub {
> my ($param) = @_;
>
> - my $path = "pve-node-9.0/$param->{node}";
> - $path = "pve2-node/$param->{node}" 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-node-9.0/$param->{node}", $param->{timeframe}, $param->{ds}, $param->{cf},
> + );
>
> },
> });
> @@ -909,9 +908,9 @@ __PACKAGE__->register_method({
> code => sub {
> my ($param) = @_;
>
> - my $path = "pve-node-9.0/$param->{node}";
> - $path = "pve2-node/$param->{node}" 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-node-9.0/$param->{node}", $param->{timeframe}, $param->{cf},
> + );
> },
> });
>
More information about the pve-devel
mailing list