-
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
Inspect network info of a joined network namespace #13366
Inspect network info of a joined network namespace #13366
Conversation
d60f0f8
to
6c0c418
Compare
6c0c418
to
3598684
Compare
I think your changes are breaking the tests because you do not handle setns correctly. Please use |
Hint: You can always check the status of 'main' here: https://cirrus-ci.com/github/containers/podman/main I agree with Paul, these don't look like systemic errors/failings. |
f4f6c7b
to
1f2ad7a
Compare
d0275c8
to
f6f2385
Compare
@Luap99 @mheon thanks for the support. I found the culprit, it turned out usage of the following causes random failures in other test-cases on CI, no idea though why. |
libpod/networking_linux.go
Outdated
subnets := make([]types.NetAddress, 0) | ||
for _, address := range addrs { | ||
if ipnet, ok := address.(*net.IPNet); ok { | ||
subnets = append(subnets, types.NetAddress{ |
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 think you should skip ipv6 link local addresses
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.
Done
test/e2e/run_networking_test.go
Outdated
|
||
It("podman run newtork inspect fails gracefully on non-reachable network ns", func() { | ||
SkipIfRootless("ip netns is not supported for rootless users") | ||
SkipIfContainerized("Cannot be run within a container.") |
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.
Cannot be run within a container
, why? please provide the reason for this in the message
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 thought we can't create further network namespace inside container, but let's see if I was wrong.
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.
Obviously I was wrong, so removed SkipIfContainerized
.
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.
Ok, I should add since I removed the SkipIfContainerized
it seems that following setup presents a flake
https://cirrus-ci.com/task/5610690273607680
int podman fedora-35 rootless host
[+2250s] Summarizing 3 Failures:
[+2250s]
[+2250s] [Fail] podman system service verify pprof endpoints [It] are not available
[+2250s] /var/tmp/go/src/github.com/containers/podman/test/e2e/system_service_test.go:117
I can't establish any link to these test-cases though.
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.
Don't worry about this one: #12624
We can restart failed tests manually.
39d31e1
to
a4da9c7
Compare
9965838
to
3eaec1d
Compare
501776d
to
20244fa
Compare
Closes: containers#13150 Signed-off-by: 😎 Mostafa Emami <[email protected]>
20244fa
to
611b45c
Compare
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: idleroamer, 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 |
/lgtm |
Display network info of a joined network namespace upon inspect
Join network namespace and query interfaces/IPs/gateway
Closes: #13150
Signed-off-by: 😎 Mostafa Emami [email protected]