Skip to content
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

HAProxyController reports failure when stopping if network has already been stopped #319

Open
johnmccabe opened this issue May 23, 2016 · 0 comments
Labels

Comments

@johnmccabe
Copy link
Member

johnmccabe commented May 23, 2016

Deploying the HAProxyController in an app with other containers results in the proxy going on fire when the application is stopped due to the bridged network already have being removed by the point the proxy entity attempts to shutdown.

Thrown when stopping (machine).

Failure running task ssh: ( if test "$UID" -eq 0; then ( docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge ); else sudo -E -n -S -- docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge; fi ) (dPIe2RYs): SSH task ended with exit code 1 when 0 was required, in Task[ssh: ( if test "$UID" -eq 0; then ( docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge ); else sudo -E -n -S -- docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge; fi )]@dPIe2RYs: ( if test "$UID" -eq 0; then ( docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge ); else sudo -E -n -S -- docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge; fi )

Comparing with a VanillaDockerApplication this same error is ignored with the entity proceeding to shutdown without throwing an error.

Thrown when stopping (process)

Error invoking stop at DockerContainerImpl{id=I2fmfeD9}: SSH task ended with exit code 1 when 0 was required, in Task[ssh: ( if test "$UID" -eq 0; then ( docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge ); else sudo -E -n -S -- docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge; fi )]@Tdv5ySdI: ( if test "$UID" -eq 0; then ( docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge ); else sudo -E -n -S -- docker network inspect --format="{{ len .Containers }}" wxw6w38u_bridge; fi )

Invoking the stop effector a second time clears removes the app.

@grkvlt grkvlt added the 1.x label Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants