-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman checkpoint restore --ignore-static-mac does not change mac address #16666
Comments
@adrianreber PTAL |
OK, I am pretty sure I broke this with the 4.0 rewrite due to not correctly understanding what the restore behaviour is/was. So looking back at the v3 version I think the correct behaviour should be:
@adrianreber @rst0git Does this sound right? |
My thoughts are the same. This probably broke with the new network backend and because there are no tests. I was not involved in that part of the code so that I am not sure it is very important, but maybe someone depends on it. So maybe it should be fixed if possible. At this point I actually do not remember why the switches exist for a IPs and or MAC. @Luap99 Your list sounds correct. |
I will fix it, I just needed to know if my thoughts are correct. |
Fix in #16800 |
With the 4.0 network rewrite I introduced a regression in 094e1d7. It only covered the case where a checkpoint is restored via --import. The normal restore path was not covered since the static ip/mac are now part in an extra db bucket. This commit fixes that by changing the config in the db. Note that there were no test for --ignore-static-ip/mac so I added a big system test which should cover all cases (even the ones that already work). This is not exactly pretty but I don't have to enough time to come up with something better at the moment. Fixes containers#16666 Signed-off-by: Paul Holzinger <[email protected]>
/kind bug
Description
Podman's checkpoint restore does not honour
--ignore-static-mac
(ignore-static-ip
untested)Steps to reproduce the issue:
Describe the results you received:
The mac address stays the same, while reading the man page it gives me the impression that the set mac address should change.
Describe the results you expected:
A changed MAC address
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No, not with the latest Git master
Additional environment details (AWS, VirtualBox, physical, etc.):
Virtual machine/hardware (also reproducible on Arch Linux)
The text was updated successfully, but these errors were encountered: