Skip to content

Allow restore network to have network connectivity #17

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

Closed
wants to merge 16 commits into from
Closed

Allow restore network to have network connectivity #17

wants to merge 16 commits into from

Conversation

huikang
Copy link

@huikang huikang commented Sep 7, 2015

Reuse the endpoint of the checkpointed container when restore.
Pass veth pair name to ciur when restore a checkpointed container.

Signed-off-by: Hui Kang [email protected]

Saied Kazemi and others added 16 commits August 28, 2015 09:40
Methods for checkpointing and restoring containers were added to the
native driver.  The LXC driver returns an error message that these
methods are not implemented yet.

Signed-off-by: Saied Kazemi <[email protected]>

Conflicts:
	daemon/execdriver/native/create.go
	daemon/execdriver/native/driver.go
	daemon/execdriver/native/init.go
Docker-DCO-1.1-Signed-off-by: Ross Boucher <[email protected]> (github: boucher)
Support was added to the daemon to use the Checkpoint and Restore methods
of the native exec driver for checkpointing and restoring containers.

Signed-off-by: Saied Kazemi <[email protected]>

Conflicts:
	api/server/server.go
	daemon/container.go
	daemon/daemon.go
	daemon/networkdriver/bridge/driver.go
	daemon/state.go
	vendor/src/github.com/docker/libnetwork/ipallocator/allocator.go
Restore failed if network resource not released during checkpoint,
e.g., a container with port open with -p

Signed-off-by: Hui Kang <[email protected]>

Conflicts:
	daemon/container.go
Docker-DCO-1.1-Signed-off-by: Ross Boucher <[email protected]> (github: boucher)
Add a basic test for checkpoint/restore to the integration tests

Docker-DCO-1.1-Signed-off-by: Ross Boucher <[email protected]> (github: boucher)
Docker-DCO-1.1-Signed-off-by: Ross Boucher <[email protected]> (github: boucher)
Docker-DCO-1.1-Signed-off-by: Ross Boucher <[email protected]> (github: boucher)
Docker-DCO-1.1-Signed-off-by: Ross Boucher <[email protected]> (github: boucher)
Docker-DCO-1.1-Signed-off-by: Ross Boucher <[email protected]> (github: boucher)
Docker-DCO-1.1-Signed-off-by: Hui Kang <[email protected]> (github: huikang)
Docker-DCO-1.1-Signed-off-by: Mark Oates [email protected] (github: fl0yd)
Docker-DCO-1.1-Signed-off-by: Ross Boucher <[email protected]> (github: boucher)
Reuse the endpoint of the checkpointed container when restore.
Pass veth pair name to ciur when restore a checkpointed container.

Signed-off-by: Hui Kang <[email protected]>
@boucher
Copy link
Owner

boucher commented Oct 2, 2015

hey @huikang, I had to rebase again, and unfortunately this code no longer works. Even adapted to use moby/libnetwork#518, the network no longer functions after a restore. I haven't been able to track down the problem yet.

@huikang
Copy link
Author

huikang commented Oct 2, 2015

@boucher Thanks for letting me know. I will look at the problem soon.

@boucher boucher force-pushed the cr-combined branch 3 times, most recently from 5dda3d1 to 183488f Compare October 6, 2015 18:13
@huikang
Copy link
Author

huikang commented Oct 18, 2015

@boucher I have been able to re-created the patch as of here.
#19

Maybe we should close this PR and move the discussion over there. Thanks.

@boucher
Copy link
Owner

boucher commented Oct 18, 2015

Ok, closing this.

@boucher boucher closed this Oct 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants