summaryrefslogtreecommitdiff
path: root/debian/libpve-network-perl.postinst
AgeCommit message (Collapse)Author
2024-11-20d/postinst: do not break, if ipam-file moves failStoiko Ivanov
failing a package-install does not help repairing the situation - so inform the user about the issue instead of erroring out. The copy could fail if a node is not quorate, so writes in /etc/pve are a bit more likely to fail adapts the change introduced in d0628df ("debian: migrate legacy mac/ipam cache/state files") Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2024-11-19debian: migrate legacy mac/ipam cache/state filesStefan Hanreich
We opted for a simple copy of the legacy file to the new location, since any other migration path would be too strenuous. The worst-case scenario of failures with this approach is losing IPAM / MAC entries that are created during the update window in the legacy files by nodes that are not yet updated to the new version. Those can be fixed by a simple start / stop of the affected VMs, triggering a rewrite of the IPAM database. Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com> [ TL: output message if files get moved and add todo-comment ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>