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

Bug 1828752: regression: logical_router_port mac address is case sensitive #163

Conversation

danwinship
Copy link
Contributor

backports the fix for MAC address case-sensitivity, fixing 4.3→4.4 upgrades (including for OKD)

when we moved all the MAC address from string to net.HardwareAddr it
had a side effect. the String() function of that struct always returns
the MAC address with lower case letters. however, before that move the
MAC addresses were all upper case.

so, when you upgrade a cluster to the latest ovn-k8s code the
ovnkube-master doesn't come up and errors out with the following error

-----8<------
port already exists with mac 0A:58:64:40:8B:09\n", error: OVN command
'/usr/bin/ovn-nbctl lrp-add GR_node1 rtoj-GR_node1 0a:58:64:40:8b:09
100.64.139.9/29'
-----8<------

this commit, for short term, deletes the logical router port and adds
it back so that all the ports going forward will have MAC address that
has lower case letters.

upon upgrading a cluster to this commit ovnkube-master will delete the
the existing port with upper case MAC address and add it back with
lower case MAC address. on subsequent restarts of the ovnkube-master,
the lrp-del followed by lrp-add will be a no-op.

eventually, we can remove this commit.

Signed-off-by: Girish Moodalbail <gmoodalbail@nvidia.com>
@openshift-ci-robot openshift-ci-robot added 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. labels May 13, 2020
@openshift-ci-robot
Copy link
Contributor

@danwinship: This pull request references Bugzilla bug 1828752, 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.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.4.z) matches configured target release for branch (4.4.z)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 1824522 is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA))
  • dependent Bugzilla bug 1824522 targets the "4.5.0" release, which is one of the valid target releases: 4.5.0, 4.5.z
  • bug has dependents

In response to this:

Bug 1828752: regression: logical_router_port mac address is case sensitive

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 13, 2020
@danwinship
Copy link
Contributor Author

/cc @dcbw

@dcbw
Copy link
Contributor

dcbw commented May 13, 2020

/lgtm
/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship, dcbw

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-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 13, 2020
@openshift-ci-robot
Copy link
Contributor

@danwinship: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-gcp-ovn 50f854f link /test e2e-gcp-ovn

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@sdodson sdodson added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label May 13, 2020
@openshift-merge-robot openshift-merge-robot merged commit 0a811ef into openshift:release-4.4 May 13, 2020
@openshift-ci-robot
Copy link
Contributor

@danwinship: All pull requests linked via external trackers have merged: openshift/ovn-kubernetes#163. Bugzilla bug 1828752 has been moved to the MODIFIED state.

In response to this:

Bug 1828752: regression: logical_router_port mac address is case sensitive

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
approved Indicates a PR has been approved by an approver from all required OWNERS files. 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. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants