-
Notifications
You must be signed in to change notification settings - Fork 554
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
runtime: Add 'creating' to state status #507
Conversation
This is a breaking change for callers who depend on the initial status being On the other hand, we allow runtimes to add other statuses as they see fit (which I don't like), so callers should arguably be (somehow) prepared to gracefully accept unknown statuses. In that case, we don't have a contract with the callers that this addition breaks, and the rc process can continue forward without restarting. |
Looks good to me. However, this should be noted as a breaking change as creating is a newly discussed state. RunC 1.0rc does not currently include the creating state. Bit late in the release cycle to be adding new stuff. |
On Tue, Jul 12, 2016 at 07:29:24AM -0700, Mike Brown wrote:
I agree 1, but I have trouble squaring that with our allowing
If the consensus on state status extension is that this is a breaking |
By breaking I meant .. makes runC not compatible with the spec, not without a PR. I don't see this spec and runc as two different runtimes. Maybe I'm reading it wrong. The text does say MAY be one of ... and does not say MUST include these.. |
On Tue, Jul 12, 2016 at 01:20:38PM -0700, Mike Brown wrote:
This is probably true of many spec PRs ;). For instance, it is still
It does, I'm just not sure how clients are supposed to process the |
I think having a I'd be curious about other maintainer's thoughts about whether a new state is warranted before refactoring though (is there an issue tracking this already?) |
@wking its hard to review any of your PRs because you cram so many changes into each one. Please start doing formatting and random changes in separate PRs so we can actually review the changes that you are proposing and not have to filter though all these random changes. Seriously, just look at the diff and try to find the actual change for the new state. |
On Fri, Nov 04, 2016 at 03:48:28PM -0700, Tianon Gravi wrote:
I tried to break it up into reasonably atomic commits 1. I'm happy
Not that I'm aware of. |
@wking we review PRs not commits as the PR is the unit that gets merged. Its good to split into separate commits to make view easier just as long as the commits are actually related to one another. |
On Fri, Nov 04, 2016 at 03:52PM -0700, Michael Crosby wrote:
I sat down to do this just now and noticed it was already done :p. As the topic post here points out, “This PR builds on #465, so that should get reviewed first”. |
1a962c0
to
d69038d
Compare
d69038d
to
cfc27a8
Compare
cfc27a8
to
08d52a0
Compare
We can address this post 1.0. |
To distinguish between "we're still setting this container up" and "we're finished setting up; you can call 'start' if you like". Also reference the lifecycle steps, because you can't be too explicit Signed-off-by: W. Trevor King <wking@tremily.us>
08d52a0
to
65d9d6b
Compare
To distinguish between "we're still setting this container up" and
"we're finished setting up; you can call 'start' if you like".
Also reference the lifecycle steps, because you can't be too explicit
Also relax the
pid
requirement from “always” to “only forcreated
and
running
”. During thecreating
phase we may not have acontainer process yet (e.g. if we're still reading the configuration
or setting up cgroups), and in the
stopped
phase the PID is nolonger meaningful.
Some discussion with @mikebrow around this starting here.
This PR builds on #465, so that should get reviewed first.