-
Notifications
You must be signed in to change notification settings - Fork 346
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
[Do Not Merge]: Track runc missing options and commands #1613
Conversation
@adrianreber For context, this is part of the work I am doing on |
pub lazy_pages: bool, | ||
/// Pass a file descriptor fd to criu | ||
#[clap(long)] | ||
pub status_fd: Option<u32>, // TODO: Is u32 the right type? |
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.
For what it's worth, I am not sure how file descriptors should be passed around in that context.
Not sure this is a good idea. Podman tries to figure out certain features of crun and runc by parsing the help output. The expectation is, that if it is listed in the help output it is supported. In the case of youki it is not really important as checkpoint is still hidden behind |
I was not aware of this behaviour of |
It is only during restore: https://github.com/containers/podman/blob/main/pkg/checkpoint/crutils/checkpoint_restore_utils.go#L229 |
@adrianreber OK, I understand your constraints. In any case, the changes in this PR are not for immediate consumption. It's more "If you need to implement this or that option, feel free to grab it from this branch". I will try to maintain two parallel branches:
I'll try to reorder and cleanup the commits in these branches to rebase |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1613 +/- ##
==========================================
- Coverage 68.83% 68.74% -0.10%
==========================================
Files 120 122 +2
Lines 13109 13197 +88
==========================================
+ Hits 9024 9072 +48
- Misses 4085 4125 +40 |
BTW, podman should use the feature command to verify the futures of the oci runtimes |
On 7 Mar 2023, at 03:36, Toru Komatsu ***@***.***> wrote:
Not sure this is a good idea. Podman tries to figure out certain features of crun and runc by parsing the help output. The expectation is, that if it is listed in the help output it is supported.
In the case of youki it is not really important as checkpoint is still hidden behind checkpointt.
BTW, podman should use the feature command to verify the futures of the oci runtimes
opencontainers/runtime-spec#1130
Interesting. I was not aware of this command, and it’s not implemented in Youki yet, but it's tracked.
#815
|
Add the missing command-line options as documented for runc, and also reorder the options to match the documentation: https://github.com/opencontainers/runc/blob/main/man/runc-checkpoint.8.md (This does not mean that they are necessarily implemented) Signed-off-by: Christophe de Dinechin <[email protected]>
The --no-pivot option is documented in https://github.com/opencontainers/runc/blob/main/man/runc-create.8.md Also change the options order in order to match the doc, this makes the code a bit easier to maintain. Signed-off-by: Christophe de Dinechin <[email protected]>
d51aeaf
to
173b011
Compare
@@ -0,0 +1,7 @@ | |||
use clap::Parser; |
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.
May I ask you to update the README for liboci-cli?
https://github.com/containers/youki/tree/main/crates/liboci-cli
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.
I apologize for the inconvenience, but for commands that are not yet implemented, you should make it clear in the prefix in the comment section of each option.
Then they should appear in the help command.
@utam0k Not an inconvenience at all. Thanks for pointing that out, I'll work on it. |
Add the missing command-line options for the exec subcommand. Reference: https://github.com/opencontainers/runc/blob/main/man/runc-exec.8.md Signed-off-by: Christophe de Dinechin <[email protected]>
Also change the order to match the documentation in https://github.com/opencontainers/runc/blob/main/man/runc-run.8.md Signed-off-by: Christophe de Dinechin <[email protected]>
Add command-line options as documented in https://github.com/opencontainers/runc/blob/main/man/runc-update.8.md Signed-off-by: Christophe de Dinechin <[email protected]>
Add the missing bundle option, as documented in https://github.com/opencontainers/runc/blob/main/man/runc-spec.8.md Signed-off-by: Christophe de Dinechin <[email protected]>
The 'features' subcommand is not publicly documented yet, but it was introduced in `runc` in opencontainers/runc#3296. Signed-off-by: Christophe de Dinechin <[email protected]>
The `features` subcommand is implemented in `runc`, but not documented. See opencontainers/runc#3296 Signed-off-by: Christophe de Dinechin <[email protected]> Suggested-by: Toru Komatsu <[email protected]>
Add the command-line options documented in https://github.com/opencontainers/runc/blob/main/man/runc-list.8.md Signed-off-by: Christophe de Dinechin <[email protected]>
Given this PR is stale for more than a year, I will close this. Please re-open when needed. |
DO NOT MERGE - FOR REFERENCE / CHERRY-PICKING ONLY
Add the missing command-line options and subcommands in
liboci-cli
, as documented forrunc
, including:no_pivot
option for createAlso add the missing undocumented
features
subcommand fromrunc
(This does not mean that they are necessarily implemented)
@adrianreber In case you need to sync the options for this command.
Context: The
ociplex
tool needs the additional options to be able to pass them down to some other runtime.