-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman: Add pasta to podman info #18640
podman: Add pasta to podman info #18640
Conversation
LGTM |
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.
Thanks, some small comments and please also adjust the example output in https://github.com/containers/podman/blob/main/docs/source/markdown/podman-info.1.md to include the new output
libpod/networking_slirp4netns.go
Outdated
@@ -64,6 +64,7 @@ type slirp4netnsNetworkOptions struct { | |||
const ( | |||
ipv6ConfDefaultAcceptDadSysctl = "/proc/sys/net/ipv6/conf/default/accept_dad" | |||
slirp4netnsBinaryName = "slirp4netns" | |||
pastaBinaryName = "passt" |
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.
move the definition to networking_pasta_linux.go
libpod/info_linux.go
Outdated
@@ -71,6 +71,21 @@ func (r *Runtime) setPlatformHostInfo(info *define.HostInfo) error { | |||
info.Slirp4NetNS = program | |||
} | |||
|
|||
info.Pasta = define.PastaInfo{} |
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.
this line isn't necessary
@HirazawaUi thank you for your PR, but why not spend a few seconds to add tests? Here's a simple one-liner that could prevent future regressions: diff --git a/test/system/005-info.bats b/test/system/005-info.bats
index f8a14ef1c..2f974439d 100644
--- a/test/system/005-info.bats
+++ b/test/system/005-info.bats
@@ -43,6 +43,7 @@ host.conmon.package | .*conmon.*
host.cgroupManager | \\\(systemd\\\|cgroupfs\\\)
host.cgroupVersion | v[12]
host.ociRuntime.path | $expr_path
+host.pasta | .*executable.*package.*
store.configFile | $expr_path
store.graphDriverName | [a-z0-9]\\\+\\\$
store.graphRoot | $expr_path |
LGTM in general, once the other comments are addressed. Thanks @HirazawaUi ! |
Thanks for reminder |
bd59c7b
to
f0399b4
Compare
Thanks for reminder, I have adjusted the example output |
@@ -87,6 +87,15 @@ host: | |||
spec: 1.0.0 | |||
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL | |||
os: linux | |||
pasta: | |||
executable: /usr/bin/passt | |||
package: passt-0^20221116.gace074c-1.fc35.aarch64 |
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.
Sigh. I'm really sorry, I really appreciate your updating the documentation.... but I think a casual reader might be confused by the mix of fc34/fc35 and amd64/aarch64 in this output. Could you massage it a little please? Change fc35 to fc34, and aarch64 to amd64 in all the new additions? (The output does not need to reflect True Reality™, it just needs to be internally consistent). Thank you!
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.
Sigh. I'm really sorry, I really appreciate your updating the documentation.... but I think a casual reader might be confused by the mix of fc34/fc35 and amd64/aarch64 in this output. Could you massage it a little please? Change fc35 to fc34, and aarch64 to amd64 in all the new additions? (The output does not need to reflect True Reality™, it just needs to be internally consistent). Thank you!
All right
[NO NEW TESTS NEEDED] Fixes: containers#18561 Signed-off-by: binghongtao <[email protected]>
f0399b4
to
977b3cd
Compare
LGTM! @containers/podman-maintainers PTAL. |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: HirazawaUi, Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[NO NEW TESTS NEEDED]
Fixes: #18561
Does this PR introduce a user-facing change?