Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

weave launch failure reported incorrectly #522

Closed
rade opened this issue Apr 7, 2015 · 3 comments
Closed

weave launch failure reported incorrectly #522

rade opened this issue Apr 7, 2015 · 3 comments
Labels
Milestone

Comments

@rade
Copy link
Member

rade commented Apr 7, 2015

# weave launch -foo
Failure during network configuration for container 3b6d181fc93f96207976e102311ea49daf381d3927f06b0904c68cc31a78826b:
Cannot open network namespace "10107": No such file or directory

This should have reported "Container 3b6d181fc93f96207976e102311ea49daf381d3927f06b0904c68cc31a78826b died". And I am quite sure it used to. I even get the same problem when running with --local. I wonder whether something has changed in docker that delays the updating of the container's metadata on death, because inserting a 'sleep 1' just before we run docker inspect makes the issue go away.

@rade rade added the chore label Apr 7, 2015
@rade
Copy link
Member Author

rade commented Apr 7, 2015

I guess we could dispense with docker inspect and directly check whether the $CONTAINER_PID is dead (kill -0 $CONTAINER_PID).

However, having just tried that, I still get the same result. Which is odd.

@rade rade modified the milestone: 0.10.0 Apr 9, 2015
@bboreham
Copy link
Contributor

It seems to me there has always been a race between the weave script doing its check on why network setup has failed and Docker finding out that the process has died. Your test with kill -0 runs into the same problem: until the parent has waited on the dead process it still exists as a zombie.

@rade rade closed this as completed in 59ae50e Apr 11, 2015
@rade
Copy link
Member Author

rade commented Apr 11, 2015

I must have been imagining things... The kill -0 works for me all the time now. Whereas the original docker inspect consistently fails to detect the dead weave in time.

@rade rade added bug and removed chore labels Apr 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants