]> git.puffer.fish Git - mirror/pve-network.git/commit
debian: migrate legacy mac/ipam cache/state files
authorStefan Hanreich <s.hanreich@proxmox.com>
Tue, 19 Nov 2024 13:30:56 +0000 (14:30 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Nov 2024 15:41:33 +0000 (16:41 +0100)
commitd0628dfddf6ad0fe0303870f5fe9e8b16d548a14
tree74cd7a752fedd7109c450cd0c58ad84c3aca9332
parentcbc70c81b9a2647a20903b27cabb14c1d6dc6d76
debian: migrate legacy mac/ipam cache/state files

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>
debian/libpve-network-perl.postinst [new file with mode: 0644]