Skip to content
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

pasta: Re-enable "Local forwarder, IPv4" test now that packages in CI images are fixed #17713

Merged
merged 2 commits into from
Mar 8, 2023

Conversation

sbrivio-rh
Copy link
Collaborator

This fixes #17074.

Does this PR introduce a user-facing change?

None

They include Fedora package passt-0^20230227.gc538ee8-1.fc37 and
passt-0.0~git20230227.c538ee8-1 for Debian, so that we can re-enable
the "Local Forwarder, IPv4" test for pasta(1).

Signed-off-by: Stefano Brivio <[email protected]>
@sbrivio-rh sbrivio-rh changed the title pasta: Re-enable "Local forwarder, IPv4" test now that packages in CI images are fixed WIP (testing): pasta: Re-enable "Local forwarder, IPv4" test now that packages in CI images are fixed Mar 8, 2023
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 8, 2023
skip_if_no_ipv4 "IPv4 not routable on the host"

run_podman run --dns 198.51.100.1 \
--net=pasta:--dns-forward,198.51.100.1 $IMAGE nslookup 127.0.0.1
--net=pasta:--dns-forward,198.51.100.1 $IMAGE nslookup 127.0.0.1 || :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see your commit message but why try to handle different behaviour? Wouldn't it be better to just nslookup google.com? We already do this in other tests so we know it works in all environments where the tests are run at the moment.

Also if a test accepts a unknown exit code write it as run_podman ? arguments...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see your commit message but why try to handle different behaviour? Wouldn't it be better to just nslookup google.com? We already do this in other tests so we know it works in all environments where the tests are run at the moment.

Two reasons, but not necessarily very practical:

  • I'm not really fond of hardcoding in tests of publicly available software the domain name of a given company. I'm also not sure that google.com can be universally resolved. I kind of expect DNS censorship to be implemented with DNS poisoning rather than just dropping queries, but I wouldn't be so sure
  • the host resolver might be temporarily unable to contact an upstream DNS, but this shouldn't affect this test in particular.

If you have a strong preference toward that, I'll change it, it's probably theoretical problems I'm posing.

Also if a test accepts a unknown exit code write it as run_podman ? arguments...

Oh, I didn't know that, I'll change it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can keep your version, the test does its job. Not depending an a particular name is properly better but as said above we already use it so one more wouldn't make a difference.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also if a test accepts a unknown exit code write it as run_podman ? arguments...

Oh, I didn't know that, I'll change it.

Done.

…ponse

This case is fixed by passt commit bad252687271 ("conf, udp: Allow
any loopback address to be used as resolver") and the fix is now
available in packages included by the CI images.

Note that, depending on the resolver on the host, we might get
1.0.0.127.in-addr.arpa resolved to localhost, or simply NXDOMAIN for
it: accept a failure on the nslookup command, as long as we have a
response for 1.0.0.127.in-addr.arpa in the output. If we have any
response, that means we could talk to the resolver.

Signed-off-by: Stefano Brivio <[email protected]>
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 8, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, sbrivio-rh

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 8, 2023
@sbrivio-rh sbrivio-rh changed the title WIP (testing): pasta: Re-enable "Local forwarder, IPv4" test now that packages in CI images are fixed pasta: Re-enable "Local forwarder, IPv4" test now that packages in CI images are fixed Mar 8, 2023
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 8, 2023
@mheon
Copy link
Member

mheon commented Mar 8, 2023

/lgtm
/hold

Restarted two Cirrus infra flakes

@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Mar 8, 2023
@rhatdan
Copy link
Member

rhatdan commented Mar 8, 2023

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 8, 2023
@openshift-merge-robot openshift-merge-robot merged commit 747369c into containers:main Mar 8, 2023
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new pasta system test fails: podman networking with pasta(1) - Local forwarder, IPv4
5 participants