Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test/system: Fix the IPv6 address mismatch error#27623

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
huangyum wants to merge1 commit intocontainers:main
base:main
Choose a base branch
Loading
fromhuangyum:ipv6

Conversation

@huangyum
Copy link

@huangyumhuangyum commentedNov 28, 2025
edited
Loading

For IPv6 addresses within the same scope group, Linux kernel preserves insertion order, where the first inserted address appears last. As a result, the ordering inside pasta differs from the host, causing a test to fail when they compare only the first address on each side. Fix this by checking that the container’s first address matches any of the host’s addresses.

Checklist

Ensure you have completed the following checklist for your pull request to be reviewed:

  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all
    commits. (git commit -s). (If needed, usegit commit -s --amend). The author email must match
    the sign-off email address. SeeCONTRIBUTING.md
    for more information.
  • Referenced issues usingFixes: #00000 in commit message (if applicable)
  • Tests have been added/updated (or no tests are needed)
  • Documentation has been updated (or no documentation changes are needed)
  • All commits passmake validatepr (format/lint checks)
  • Release note entered in the section below (orNone if no user-facing changes)

Does this PR introduce a user-facing change?

None

NONE

For IPv6 addresses within the same scope group, Linux kernel preservesinsertion order, where the first inserted address appears last. As aresult, the ordering inside pasta differs from the host, causing atest to fail when they compare only the first address on each side.Fix this by checking that the container’s first address matches any ofthe host’s addresses.Signed-off-by: Yumei Huang <yuhuang@redhat.com>
@openshift-ciopenshift-cibot added do-not-merge/release-note-label-neededEnforce release-note requirement, even if just None release-note-none and removed do-not-merge/release-note-label-neededEnforce release-note requirement, even if just None labelsNov 28, 2025
Copy link
Member

@Honny1Honny1 left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.

PTAL@Luap99

@openshift-ci
Copy link
Contributor

[APPROVALNOTIFIER] This PR isAPPROVED

This pull-request has been approved by:Honny1,huangyum

The full list of commands accepted by this bot can be foundhere.

The pull request process is describedhere

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-ciopenshift-cibot added the approvedIndicates a PR has been approved by an approver from all required OWNERS files. labelNov 28, 2025
Copy link
Member

@Luap99Luap99 left a comment

Choose a reason for hiding this comment

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

Comment on lines +312 to +313
echo"${host_addresses}"| grep -qw"${container_address}"
assert$? -eq 0"Container address not matching host"
Copy link
Member

Choose a reason for hiding this comment

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

can't you just useassert "${host_addresses}" =~ "${container_address}"?

Right this the assert for exit code is unnecessary as the command run with set -e meaining if the grep fails it exits right away without reaching the exit code check anyway.
And then then generally leads to a poor error message compared to our assert helper.

local ifname="${2:-$(default_ifname"${ip_ver}")}"

local expr='[.[0].addr_info[] | select(.deprecated != true)]'
ip -j -"${ip_ver}" addr show"${ifname}"| jq -rM"${expr}"| greplocal| cut -d'"' -f4| tr'\n'''
Copy link
Member

Choose a reason for hiding this comment

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

Why all this grep, cur, tr thing? If we only want the local addresses we can just add them to the jq filter.

'[.[0].addr_info[] | select(.deprecated != true)].[].local'

which seems to return the same result unless I am missing something

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Luap99Luap99Luap99 left review comments

@Honny1Honny1Honny1 approved these changes

Assignees

No one assigned

Labels

approvedIndicates a PR has been approved by an approver from all required OWNERS files.release-note-none

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@huangyum@Honny1@Luap99

[8]ページ先頭

©2009-2025 Movatter.jp