Skip to content

Bug 2047445: Filter out empty lines and link-local addrs from nmcli output - #2933

Closed
cybertron wants to merge 1 commit into
openshift:masterfrom
cybertron:filter-empty-lines
Closed

Bug 2047445: Filter out empty lines and link-local addrs from nmcli output#2933
cybertron wants to merge 1 commit into
openshift:masterfrom
cybertron:filter-empty-lines

Conversation

@cybertron

Copy link
Copy Markdown
Member

For some reason the nmcli call to determine the number of ipv6
addresses on an interface is sometimes returning a blank line as
part of the output. This causes a single address to look like 2
because we're just checking the line count and makes us incorrectly
set "ipv6.may-fail no" on the interface. This causes the connection
to fail and prevents ovs-configuration from completing.

Here's some example output from an affected system:

[root@master-0-0 core]# nmcli -m multiline --get-values ip6.address conn show 84a523ff-ee8a-4a29-94ca-47590eb0cb76
IP6.ADDRESS[1]:fe80::5054:ff:fe6e:6923/64

[root@master-0-0 core]#

Additionally, we have seen another case where the link-local address
from both the baremetal and provisioning networks shows up in the
output of this command. That will also fail because we're just
looking for line count > 1.

This change alters the logic to filter out blank lines and any
link-local addresses, then sees if anything is left. This should be
less prone to false positive results.

- What I did

- How to verify it

- Description for the changelog

For some reason the nmcli call to determine the number of ipv6
addresses on an interface is sometimes returning a blank line as
part of the output. This causes a single address to look like 2
because we're just checking the line count and makes us incorrectly
set "ipv6.may-fail no" on the interface. This causes the connection
to fail and prevents ovs-configuration from completing.

Here's some example output from an affected system:

[root@master-0-0 core]# nmcli -m multiline --get-values ip6.address conn show 84a523ff-ee8a-4a29-94ca-47590eb0cb76
IP6.ADDRESS[1]:fe80::5054:ff:fe6e:6923/64

[root@master-0-0 core]#

Additionally, we have seen another case where the link-local address
from both the baremetal and provisioning networks shows up in the
output of this command. That will also fail because we're just
looking for line count > 1.

This change alters the logic to filter out blank lines and any
link-local addresses, then sees if anything is left. This should be
less prone to false positive results.
@openshift-ci openshift-ci Bot added the bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. label Jan 27, 2022
@openshift-ci

openshift-ci Bot commented Jan 27, 2022

Copy link
Copy Markdown
Contributor

@cybertron: This pull request references Bugzilla bug 2047445, which is invalid:

  • expected the bug to target the "4.10.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

Bug 2047445: Filter out empty lines and link-local addrs from nmcli output

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci Bot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Jan 27, 2022
@openshift-ci

openshift-ci Bot commented Jan 27, 2022

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cybertron
To complete the pull request process, please assign yuqi-zhang after the PR has been reviewed.
You can assign the PR to them by writing /assign @yuqi-zhang in a comment when ready.

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

Details 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 requested review from jkyros and mkenigs January 27, 2022 21:39
@cybertron

Copy link
Copy Markdown
Member Author

/bugzilla refresh

@openshift-ci

openshift-ci Bot commented Jan 27, 2022

Copy link
Copy Markdown
Contributor

@cybertron: This pull request references Bugzilla bug 2047445, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @anuragthehatter

Details

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci Bot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jan 27, 2022
@cybertron

Copy link
Copy Markdown
Member Author

/test e2e-metal-ipi-ovn-dualstack

@openshift-ci

openshift-ci Bot commented Jan 28, 2022

Copy link
Copy Markdown
Contributor

@cybertron: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-workers-rhel8 44ca5fd link false /test e2e-aws-workers-rhel8
ci/prow/e2e-agnostic-upgrade 44ca5fd link true /test e2e-agnostic-upgrade
ci/prow/e2e-aws-workers-rhel7 44ca5fd link false /test e2e-aws-workers-rhel7
ci/prow/e2e-vsphere-upgrade 44ca5fd link false /test e2e-vsphere-upgrade
ci/prow/okd-e2e-aws 44ca5fd link false /test okd-e2e-aws
ci/prow/e2e-aws-upgrade-single-node 44ca5fd link false /test e2e-aws-upgrade-single-node
ci/prow/e2e-ovn-step-registry 44ca5fd link false /test e2e-ovn-step-registry
ci/prow/e2e-aws-serial 44ca5fd link false /test e2e-aws-serial
ci/prow/e2e-aws 44ca5fd link true /test e2e-aws
ci/prow/e2e-aws-disruptive 44ca5fd link false /test e2e-aws-disruptive
ci/prow/e2e-aws-single-node 44ca5fd link false /test e2e-aws-single-node

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@cybertron

Copy link
Copy Markdown
Member Author

We've decided to go with #2934 instead.

@cybertron cybertron closed this Jan 28, 2022
@openshift-ci

openshift-ci Bot commented Jan 28, 2022

Copy link
Copy Markdown
Contributor

@cybertron: This pull request references Bugzilla bug 2047445. The bug has been updated to no longer refer to the pull request using the external bug tracker.

Details

In response to this:

Bug 2047445: Filter out empty lines and link-local addrs from nmcli output

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

Labels

bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant