[pve-devel] [RFC ha-manager v3 15/15] manager: persistently migrate ha groups to ha rules
Michael Köppl
m.koeppl at proxmox.com
Tue Jul 22 18:56:52 CEST 2025
On 7/22/25 18:38, Michael Köppl wrote:
> This results in the following error:
> Abort HA group migration: failed to remove group config: No such file
> or directory
>
> The value in $ha_groups_config is only part of the path to the
> groups.cfg file. It works for the remaining functions here because the
> cfs_write_file() and cfs_read_file() functions append prepend "/etc/pve/".
>
> Could be fixed by:
> my $group_config_file = "/etc/pve/" . $ha_groups_config;
>
> unlink $group_config_file or die "failed to remove group config: $!\n";
>
> or something similar.
>
> This throws an error, stopping the migration since it depends on all
> nodes having the correct version, because the value in
> $version_info->{$node} is a string. Could be fixed by:
>
> my $node_version_info = eval { decode_json($version_info->{$node}) };
> return $node_version_info->{version};
>
>> +}
>> +
Sent follow-up patches with fixes for these:
https://lore.proxmox.com/pve-devel/20250722165428.90281-1-m.koeppl@proxmox.com/
More information about the pve-devel
mailing list