-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fixing container restore issue due to different IDs #284
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
Conversation
restore.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this defer will fire after handleContainerstatus() returns, is this intentional? if so, why not just call Destroy() without the defer?
|
@crosbymichael |
e0cf420 to
aa099e9
Compare
|
@crosbymichael |
restore.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is should have multiple return results, because you are not using the first one.
|
@crosbymichael |
Signed-off-by: rajasec <[email protected]> Fixed review comment Signed-off-by: Rajasekaran <[email protected]> Fixing review comments Signed-off-by: Rajasekaran <[email protected]>
aa099e9 to
c19ea71
Compare
|
@crosbymichael Somehow jenkins failed due to hugetlb issues in localtest. Even I've seen in other PR where it failed in hugetlb. |
|
@crosbymichael |
config: Single, unified config file
This has been stale since cb2da54 (config: Single, unified config file, 2015-12-28, opencontainers#284), when we dropped the attempt to distinguish between platform-independent and platform-dependent configuration. Signed-off-by: W. Trevor King <[email protected]>
@crosbymichael @LK4D4 @mrunalp
With latest runc I started the container using runc start, post that in a different terminal (/home/raj)
I have done the checkpoint using runc --id=runc checkpoint. Checkpoint was successfull as expected.
checkpoint directory created in /home/raj.
From /home/raj While I tried to restore, I gave "runc restore" ( forget to mention the --id=runc), so it picked up the current working directory and started the container ( as checkpoint directory exists in current folder)
Here is the problem:
Under /run/opencontainers/containers you can see two folders, one is with runc and another is with raj. Both containers contains the same cgroup.img so if you to try stop either one of the container, cgroup path failed to remove.
This fix the above problem, if an container does not exists or already destroyed. if user does "restore", do not start the create any new containers just by looking into checkpoint folder alone.
Signed-off-by: rajasec [email protected]