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

2089 fix restart runtime error #2409

Merged
merged 2 commits into from Nov 4, 2013

Conversation

Projects
None yet
4 participants
@pnasrat
Contributor

pnasrat commented Oct 27, 2013

Tested with unittest and latest reproducer in bug.

root@precise64:/vagrant# ID=$(docker run -d busybox sleep 60)
root@precise64:/vagrant# invoke-rc.d docker restart
invoke-rc.d: unknown initscript, /etc/init.d/docker not found.
root@precise64:/vagrant# docker kill $ID
68cfb88cf047
root@precise64:/vagrant# docker start $ID
68cfb88cf047
root@precise64:/vagrant# docker ps
ID                  IMAGE               COMMAND             CREATED             STATUS              PORTS
68cfb88cf047        busybox:latest      sleep 60            10 seconds ago      Up 8 seconds
@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Oct 27, 2013

Contributor

Issue #2089

Contributor

pnasrat commented Oct 27, 2013

Issue #2089

@tianon

This comment has been minimized.

Show comment
Hide comment
@tianon

tianon Oct 27, 2013

Member

Oops, I forgot that invoke-rc.d only works for init scripts (not upstart). If you replace that with service docker restart it will probably not error out and should give you a ghost like it's supposed to.

Member

tianon commented Oct 27, 2013

Oops, I forgot that invoke-rc.d only works for init scripts (not upstart). If you replace that with service docker restart it will probably not error out and should give you a ghost like it's supposed to.

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Oct 27, 2013

Contributor

I actually just copied and pasted the wrong block (I reran with initctl stop). Let me just confirm that.

Contributor

pnasrat commented Oct 27, 2013

I actually just copied and pasted the wrong block (I reran with initctl stop). Let me just confirm that.

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Oct 27, 2013

Contributor
# ID=$(docker run -d busybox sleep 600)
Unable to find image 'busybox' (tag: latest) locally
Pulling repository busybox
e9aa60c60128: Download complete
# service docker restart
docker stop/waiting
docker start/running, process 10109
# docker kill $ID
8b4af5160c62
# docker inspect $ID | grep Ghost
        "Ghost": true
# docker start $ID
8b4af5160c62
# docker -v
Docker version 0.6.4-dev, build 877be37-dirty
# docker ps
ID                  IMAGE               COMMAND             CREATED              STATUS              PORTS
8b4af5160c62        busybox:latest      sleep 600           About a minute ago   Up 52 seconds
Contributor

pnasrat commented Oct 27, 2013

# ID=$(docker run -d busybox sleep 600)
Unable to find image 'busybox' (tag: latest) locally
Pulling repository busybox
e9aa60c60128: Download complete
# service docker restart
docker stop/waiting
docker start/running, process 10109
# docker kill $ID
8b4af5160c62
# docker inspect $ID | grep Ghost
        "Ghost": true
# docker start $ID
8b4af5160c62
# docker -v
Docker version 0.6.4-dev, build 877be37-dirty
# docker ps
ID                  IMAGE               COMMAND             CREATED              STATUS              PORTS
8b4af5160c62        busybox:latest      sleep 600           About a minute ago   Up 52 seconds
@tianon

This comment has been minimized.

Show comment
Hide comment
@tianon

tianon Oct 28, 2013

Member

Cool! Major +1 from me for taking care of this! (although, IANTM)

Member

tianon commented Oct 28, 2013

Cool! Major +1 from me for taking care of this! (although, IANTM)

@vieux

View changes

Show outdated Hide outdated container.go
@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Oct 29, 2013

Contributor

@vieux please take another look - I've made an explicit nil network ip check and both unit and manual test still passes.

Contributor

pnasrat commented Oct 29, 2013

@vieux please take another look - I've made an explicit nil network ip check and both unit and manual test still passes.

@vieux

This comment has been minimized.

Show comment
Hide comment
@vieux

vieux Oct 31, 2013

Collaborator

LGTM, ping @crosbymichael

Collaborator

vieux commented Oct 31, 2013

LGTM, ping @crosbymichael

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Nov 3, 2013

Contributor

Need to rebase having some test failure issues. Will ping PR when fixed.

Contributor

pnasrat commented Nov 3, 2013

Need to rebase having some test failure issues. Will ping PR when fixed.

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Nov 3, 2013

Contributor

Have fixed up and my test passes with the signature change but getting failures

https://gist.github.com/pnasrat/d1fcd6bab3d2028c6c82

@ecnahc515 is also seeing the lxc-kill failures

Contributor

pnasrat commented Nov 3, 2013

Have fixed up and my test passes with the signature change but getting failures

https://gist.github.com/pnasrat/d1fcd6bab3d2028c6c82

@ecnahc515 is also seeing the lxc-kill failures

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Nov 3, 2013

Contributor

Actually I misread the output and it passes after I updated the host docker to be the same version https://gist.github.com/pnasrat/d1fcd6bab3d2028c6c82

@crosbymichael should be ready for review.

Contributor

pnasrat commented Nov 3, 2013

Actually I misread the output and it passes after I updated the host docker to be the same version https://gist.github.com/pnasrat/d1fcd6bab3d2028c6c82

@crosbymichael should be ready for review.

@crosbymichael

This comment has been minimized.

Show comment
Hide comment
@crosbymichael

crosbymichael Nov 4, 2013

Contributor

LGTM

Contributor

crosbymichael commented Nov 4, 2013

LGTM

crosbymichael added a commit that referenced this pull request Nov 4, 2013

Merge pull request #2409 from pnasrat/2089-fix-restart-runtime-error
Fix restart runtime error with ghost container networking

@crosbymichael crosbymichael merged commit 35690e7 into moby:master Nov 4, 2013

marcusmartins added a commit to marcusmartins/docker that referenced this pull request Nov 3, 2017

Bump docker/swarmkit to ce5f7b8a6f5a1b1e4a29cafdf887304e400e08a9
Upgrade swarmkit dependency.

Changes:
ce5f7b8a (HEAD -> master, origin/master, origin/HEAD) Merge pull request #2411 from crunchywelch/2401-arm64_support
b0856099 Merge pull request #2423 from thaJeztah/new-misty-handle
2bd294fc Update Misty's GitHub handle
0769c605 Comments for orphaned state/task reaper. (#2421)
de950a7e Generic resource cli (#2347)
312be598 Provide custom gRPC dialer to override default proxy dialer (#2419)
4f12bf79 Merge pull request #2415 from cheyang/master
8f9f7dc1 add pid limits
da5ee2a6 Merge pull request #2409 from dperny/workaround-attachments
0c7b2fc2 Delete node attachments when node is removed
9d702763 normalize "aarch64" architectures to "arm64"

docker/swarmkit@28f91d8...ce5f7b8

Signed-off-by: Marcus Martins <marcus@docker.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment