-
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
Use existing interface to request IP address during restore #2061
Use existing interface to request IP address during restore #2061
Conversation
can you add an integration test for this please |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@adrianreber Can you answer @baude |
@baude I will add a test to verify that the IP address is the same before and after checkpoint/restore. I have to re-work this anyway to not modify |
I also added a test to verify that the IP does not change after restoring from checkpoint and I re-enabled the test with established TCP connections. |
Code looks fine over here, just a small comment from me |
Is |
|
Oh, it's failing in CI. Hmmm. Try a |
Yes, it is a CI failure.
Doesn't change anything locally except removing |
Try squashing your commits down into one - it looks like it's failing trying to build an individual commit |
59e72f0
to
8d432a7
Compare
Same CI failure ( |
Run the make locally to see if it creates a new json file. |
Alright, going to take a shot at nuking easyjson from orbit. #2105 |
Signed-off-by: Adrian Reber <[email protected]>
Restoring a container from a checkpoint should give the container the same IP as before checkpointing. This adds a test to make sure the IP stays the same. Signed-off-by: Adrian Reber <[email protected]>
The initial implementation to request the same IP address for a container during a restore was based on environment variables influencing CNI. With this commit the IP address selection switches to Podman's internal static IP API. This commit does a comment change in libpod/container_easyjson.go to avoid unnecessary re-generation of libpod/container_easyjson.go during build as this fails in CI. The reason for this is that make sees that libpod/container_easyjson.go needs to be re-created. The commit, however, only changes a part of libpod/container.go which is marked as 'ffjson: skip'. Signed-off-by: Adrian Reber <[email protected]>
@mheon @rhatdan Thanks for all your help. I was finally able to solve it. The problem was that To solve it I changed a comment in |
LGTM |
/lgtm |
The initial implementation to request the same IP address for a
container during a restore was based on environment variables
influencing CNI.
With this commit the IP address selection switches to Podman's internal
static IP API.
Signed-off-by: Adrian Reber [email protected]