Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

kill: Don't return an error if container state is 'created' - #245

Merged
sboeuf merged 1 commit into
masterfrom
sboeuf/fix_kill
Jun 27, 2017
Merged

kill: Don't return an error if container state is 'created'#245
sboeuf merged 1 commit into
masterfrom
sboeuf/fix_kill

Conversation

@sboeuf

Copy link
Copy Markdown

Regarding a recent update of the OCI specification, we don't want to generate an error when 'kill' command is called on a container which has been created but not started.

This is basically a no-op in our case.

@sboeuf

Copy link
Copy Markdown
Author

This PR refers to opencontainers/runtime-spec#875

@coveralls

coveralls commented Jun 23, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.08%) to 47.083% when pulling 01df368 on sboeuf/fix_kill into 2c431f7 on master.

Comment threadkill.go Outdated
if status.State.State != vc.StateRunning {
// container MUST be created or running
if status.State.State == vc.StateReady {
ccLog.Infof("Container state 'created', nothing to do")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which container?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated :)

@jodh-intel

jodh-intel commented Jun 26, 2017

Copy link
Copy Markdown

lgtm

Approved with PullApproveApproved with PullApprove

@coveralls

coveralls commented Jun 26, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.08%) to 47.083% when pulling bcba230 on sboeuf/fix_kill into 2c431f7 on master.

@amshinde

amshinde commented Jun 26, 2017

Copy link
Copy Markdown
Contributor

lgtm

Approved with PullApprove

@coveralls

coveralls commented Jun 27, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.08%) to 47.664% when pulling c19e8fa on sboeuf/fix_kill into 9c2b909 on master.

Regarding a recent update of the OCI specification, we don't want to
generate an error when 'kill' command is called on a container which
has been created but not started.
This is basically a no-op in our case.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
@coveralls

coveralls commented Jun 27, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.08%) to 47.664% when pulling 780f52d on sboeuf/fix_kill into 157d907 on master.

@sboeuf
sboeuf merged commit 4ffb2c4 into masterJun 27, 2017
@sboeuf
sboeuf deleted the sboeuf/fix_kill branch June 27, 2017 14:35
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@sboeuf@coveralls@jodh-intel@amshinde