-
Notifications
You must be signed in to change notification settings - Fork 880
doc: stage1-implementors-guide.md: clarify pid vs ppid #2397
Conversation
@@ -50,10 +50,10 @@ An alternative stage 1 could forego systemd-nspawn and systemd altogether, or re | |||
All that is required is an executable at the place indicated by the `coreos.com/rkt/stage1/run` entrypoint that knows how to apply the pod manifest and prepared ACI file-systems to good effect. | |||
|
|||
The resolved entrypoint must inform rkt of its PID for the benefit of `rkt enter`. | |||
Stage 1 must write the host PIDs of the pod's process #1 and that process's parent to these two files, respectively: | |||
Stage 1 implementors have two options for doing so; only one must be implemented: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only? Or maybe "at least". But i'm not sure if it's true - in kvm flavor i was writing into ppid
file, and this led to hang in endless loop, in entering process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was waiting for a child process of lkvm. But that child process does not exist.
I think that "only" is better. If both "pid" and "ppid" exist, which one is stage0 supposed to use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without "pid" entering process hangs. So this "only" still leads to mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please either fix that in this PR or file a follow up and land this as-is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR updated.
0c53237
to
2343d0a
Compare
2343d0a
to
0e8debe
Compare
Clarify that only one file must be written among pid / ppid. Reword the description. With the kvm flavor, the pid 1 of the container was not visible on the host. The new wording does not make that assumption.
@jellonek as our lead other implementer - does this make sense to you now? |
@jellonek please let us know if not and follow up |
Clarify that only one file must be written among pid / ppid.
Reword the description. With the kvm flavor, the pid 1 of the container
was not visible on the host. The new wording does not make that
assumption.
/cc @jellonek @jonboulle @s-urbaniak PTAL
Related to: #2389