You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
$ ./620_proxy_entrypoint_command_test.sh
Proxy uses correct entrypoint and command with weavewait
...
test #3 "proxy docker_on 192.168.48.11 run -e 'WEAVE_CIDR=10.2.1.1/24' --entrypoint='grep' false ^1$ /sys/class/net/ethwe/carrier" failed:
program terminated with code 1 instead of 0
Running the failing command repeatedly on the host produces a failure about half the time...
root@host1:~# docker -H localhost:12375 run -e 'WEAVE_CIDR=10.2.1.1/24' --entrypoint='grep' false ^1$ /sys/class/net/ethwe/carrier
1
root@host1:~# docker -H localhost:12375 run -e 'WEAVE_CIDR=10.2.1.1/24' --entrypoint='grep' false ^1$ /sys/class/net/ethwe/carrier
1
FATA[0000] Error response from daemon: Container bf6d0a5ae5735d4443613cc165e3e4ac4e62639e720120c98aead839db59092d died
root@host1:~# docker -H localhost:12375 run -e 'WEAVE_CIDR=10.2.1.1/24' --entrypoint='grep' false ^1$ /sys/class/net/ethwe/carrier
1
FATA[0000] Error response from daemon: Container 885c2204b90952cc0274c196b63d5b890cc84750ff0934bf67153280e7a0be3f died
The log of the failed container contains 1.
The text was updated successfully, but these errors were encountered:
weave attach adds the network interface, which causes weavewait to run the main command. Then, weave attach carries on doing network-stuff. If the container exits before weave attach is finished, then weave attach throws the Container <...> died error. Making the weavewait interval longer causes the race condition to be less likely, but doesn't fix it.
Options:
Special-case and ignore that error (bleh)
Make weave attach atomic, from container's perspective (probably not possible...)
Change weavewait to block on USR2 signal, not the interface (IMO, the nicest option)
So, we can't make weave attach "atomic" because the route needs to be setup after the interface is up, and the arp update needs to use the interface to ping our neighbours.
I'm seeing the following every now and then...
Running the failing command repeatedly on the host produces a failure about half the time...
The log of the failed container contains
1
.The text was updated successfully, but these errors were encountered: