Skip to content

Conversation

@wking
Copy link
Contributor

@wking wking commented Jan 25, 2018

The runtime-spec defines a creating status and requires the create operation to finish creating the container. Our command line API also requires the create command to block until creation completes:

Callers MAY block on this command's successful exit to trigger post-create activity.

runc does not support creating yet, and it seems to return from create before having quite finished (or we wouldn't have needed the code I'm removing in this pull request). However, both of those are runc problems. These tests are about validating spec compliance, not about working around runc's issues, so remove the crutches.

I've opened opencontainers/runc#1703 and opencontainers/runc#1704 on the path to fixing both of these issues upstream in runc, but I don't think we need to wait for those to land before dropping the workarounds here.

@wking wking force-pushed the create-exit-timing branch from b3453b3 to 0291a97 Compare January 26, 2018 00:57
@liangchenye
Copy link
Member

liangchenye commented Jan 26, 2018

LGTM

Approved with PullApprove

1 similar comment
@zhouhao3
Copy link

zhouhao3 commented Jan 29, 2018

LGTM

Approved with PullApprove

@zhouhao3
Copy link

@wking need rebase.

The runtime-spec defines a 'creating' status [1] and requires the
'create' operation to finish creating the container [2,3].  Our command
line API also requires the 'create' command to block until creation
completes:

  Callers MAY block on this command's successful exit to trigger
  post-create activity.

runc does not support 'creating' yet [4], and it seems to return from
'create' before having quite finished (or we wouldn't have needed the
code I'm removing in this commit).  However, both of those are runc
problems.  These tests are about validating spec compliance, not about
working around runc's issues, so remove the crutches.

[1]: https://github.com/opencontainers/runtime-spec/blame/v1.0.1/runtime.md#L19
[2]: https://github.com/opencontainers/runtime-spec/blame/v1.0.1/runtime.md#L54
[3]: https://github.com/opencontainers/runtime-spec/blame/v1.0.1/runtime.md#L101
[4]: opencontainers#557 (comment)

Signed-off-by: W. Trevor King <wking@tremily.us>
@wking wking force-pushed the create-exit-timing branch from 0291a97 to c76062f Compare January 29, 2018 17:23
@wking
Copy link
Contributor Author

wking commented Jan 29, 2018 via email

@liangchenye
Copy link
Member

liangchenye commented Jan 30, 2018

LGTM

Approved with PullApprove

@zhouhao3
Copy link

zhouhao3 commented Jan 30, 2018

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit eaecd9f into opencontainers:master Jan 30, 2018
@wking wking deleted the create-exit-timing branch January 30, 2018 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants