Skip to content

Check container is running before trying to kill it and log kill event#12085

Closed
runcom wants to merge 1 commit intomoby:masterfrom
runcom:12083-check-container-running-kill-before-event
Closed

Check container is running before trying to kill it and log kill event#12085
runcom wants to merge 1 commit intomoby:masterfrom
runcom:12083-check-container-running-kill-before-event

Conversation

@runcom
Copy link
Member

@runcom runcom commented Apr 4, 2015

Fixes: #12083

I'm opening this if the linked issue is ok, otherwise ignore (and sorry, close) this!

Also, I've modified TestNetworkNat in integration-cli because with this I discovered that at the end of the test, a kill command was run against the first container but the container was just stopped (received message with nc and exited) so now it would fail. Turns out that kill command wasn't needed there. (If I am right, but I highly doubt :))

There are also two other test failing because of this, TestPostContainersAttach and TestPostContainersAttachStderr under integration/, because they both try to kill an already stopped container. I've just commented the kill command but waiting feedbacks on what to do here.

Signed-off-by: Antonio Murdaca [email protected]

@runcom runcom force-pushed the 12083-check-container-running-kill-before-event branch 6 times, most recently from 7b4f9e7 to db320b4 Compare April 4, 2015 23:48
@runcom runcom changed the title Check container is running before trying to kill it and log event kill Check container is running before trying to kill it and log kill event Apr 4, 2015
@runcom runcom force-pushed the 12083-check-container-running-kill-before-event branch 2 times, most recently from 5e93c7d to ce716ff Compare April 6, 2015 19:23
@runcom runcom force-pushed the 12083-check-container-running-kill-before-event branch from ce716ff to e403f68 Compare April 8, 2015 12:30
@LK4D4
Copy link
Contributor

LK4D4 commented Apr 13, 2015

Event issue was fixed by @duglin IIRC.
But returning errors from Kill will break API I think. And that is undesired behavior.

@runcom
Copy link
Member Author

runcom commented Apr 13, 2015

yes it was meant for future version maybe..it that doesn't apply you can close this i think

@LK4D4
Copy link
Contributor

LK4D4 commented Apr 13, 2015

@runcom You can close it yourself :)

@runcom runcom closed this Apr 13, 2015
@runcom runcom deleted the 12083-check-container-running-kill-before-event branch June 10, 2015 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kill command log a kill event even if the container is not running

4 participants