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 1972631: Workaround OVN bug causing subports to be DOWN #525

Merged

Conversation

dulek
Copy link
Contributor

@dulek dulek commented Jun 16, 2021

Neutron should make a subport that is already attached to a trunk ACTIVE
immediately. Unfortunately there seems to be an OVN bug causing an event
triggering this to be lost, leaving the port in DOWN state forever. This
is a disaster for Kuryr, because we can't proceed to wire the pods in
such case.

This commit attempts to workaround this by making Kuryr reattach the
ports that are in DOWN state for more than 90 seconds after they're
plugged.

Change-Id: If9a3968d68dced588614cd5521d4a111e78d435f

Neutron should make a subport that is already attached to a trunk ACTIVE
immediately. Unfortunately there seems to be an OVN bug causing an event
triggering this to be lost, leaving the port in DOWN state forever. This
is a disaster for Kuryr, because we can't proceed to wire the pods in
such case.

This commit attempts to workaround this by making Kuryr reattach the
ports that are in DOWN state for more than 90 seconds after they're
plugged.

Change-Id: If9a3968d68dced588614cd5521d4a111e78d435f
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 16, 2021

@dulek: This pull request references Bugzilla bug 1972631, which is invalid:

  • expected dependent Bugzilla bug 1969397 to be in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE), but it is ON_QA 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.

In response to this:

Bug 1972631: Workaround OVN bug causing subports to be DOWN

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/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jun 16, 2021
@openshift-ci openshift-ci bot requested review from celebdor and luis5tb June 16, 2021 10:56
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 16, 2021
@dulek dulek requested a review from MaysaMacedo June 16, 2021 10:56
@MaysaMacedo
Copy link
Contributor

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 16, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dulek, MaysaMacedo

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 lgtm Indicates that a PR is ready to be merged. label Jun 16, 2021
@openshift-bot
Copy link
Contributor

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 17, 2021

@openshift-bot: This pull request references Bugzilla bug 1972631, which is invalid:

  • expected dependent Bugzilla bug 1969397 to be in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE), but it is ON_QA 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.

In response to this:

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

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.

@dulek
Copy link
Contributor Author

dulek commented Jun 17, 2021

/bugzilla refresh

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 17, 2021

@dulek: This pull request references Bugzilla bug 1972631, 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.7.z) matches configured target release for branch (4.7.z)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 1969397 is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE))
  • dependent Bugzilla bug 1969397 targets the "4.8.0" release, which is one of the valid target releases: 4.8.0
  • bug has dependents

Requesting review from QA contact:
/cc @eurijon

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 Jun 17, 2021
@openshift-ci openshift-ci bot requested a review from eurijon June 17, 2021 15:53
@bparees bparees added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jun 23, 2021
@openshift-merge-robot openshift-merge-robot merged commit c7654fb into openshift:release-4.7 Jun 23, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 23, 2021

@dulek: All pull requests linked via external trackers have merged:

Bugzilla bug 1972631 has been moved to the MODIFIED state.

In response to this:

Bug 1972631: Workaround OVN bug causing subports to be DOWN

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.

@dulek
Copy link
Contributor Author

dulek commented Jun 24, 2021

/cherry-pick release-4.6

@openshift-cherrypick-robot

@dulek: #525 failed to apply on top of branch "release-4.6":

Applying: Workaround OVN bug causing subports to be DOWN
Using index info to reconstruct a base tree...
M	kuryr_kubernetes/controller/drivers/base.py
M	kuryr_kubernetes/controller/drivers/nested_macvlan_vif.py
M	kuryr_kubernetes/controller/drivers/nested_vlan_vif.py
M	kuryr_kubernetes/controller/drivers/neutron_vif.py
M	kuryr_kubernetes/controller/drivers/sriov.py
M	kuryr_kubernetes/controller/drivers/vif_pool.py
M	kuryr_kubernetes/controller/handlers/kuryrnetwork.py
M	kuryr_kubernetes/controller/handlers/kuryrnetwork_population.py
M	kuryr_kubernetes/controller/handlers/kuryrnetworkpolicy.py
M	kuryr_kubernetes/controller/handlers/kuryrport.py
M	kuryr_kubernetes/controller/handlers/lbaas.py
M	kuryr_kubernetes/controller/handlers/loadbalancer.py
A	kuryr_kubernetes/controller/handlers/machine.py
M	kuryr_kubernetes/controller/handlers/namespace.py
M	kuryr_kubernetes/controller/handlers/pod_label.py
M	kuryr_kubernetes/controller/handlers/vif.py
M	kuryr_kubernetes/handlers/retry.py
M	kuryr_kubernetes/tests/unit/controller/handlers/test_kuryrport.py
M	kuryr_kubernetes/tests/unit/handlers/test_retry.py
Falling back to patching base and 3-way merge...
Auto-merging kuryr_kubernetes/tests/unit/handlers/test_retry.py
Auto-merging kuryr_kubernetes/tests/unit/controller/handlers/test_kuryrport.py
Auto-merging kuryr_kubernetes/handlers/retry.py
Auto-merging kuryr_kubernetes/controller/handlers/vif.py
Auto-merging kuryr_kubernetes/controller/handlers/pod_label.py
Auto-merging kuryr_kubernetes/controller/handlers/namespace.py
CONFLICT (modify/delete): kuryr_kubernetes/controller/handlers/machine.py deleted in HEAD and modified in Workaround OVN bug causing subports to be DOWN. Version Workaround OVN bug causing subports to be DOWN of kuryr_kubernetes/controller/handlers/machine.py left in tree.
Auto-merging kuryr_kubernetes/controller/handlers/loadbalancer.py
Auto-merging kuryr_kubernetes/controller/handlers/lbaas.py
CONFLICT (content): Merge conflict in kuryr_kubernetes/controller/handlers/lbaas.py
Auto-merging kuryr_kubernetes/controller/handlers/kuryrport.py
Auto-merging kuryr_kubernetes/controller/handlers/kuryrnetworkpolicy.py
CONFLICT (content): Merge conflict in kuryr_kubernetes/controller/handlers/kuryrnetworkpolicy.py
Auto-merging kuryr_kubernetes/controller/handlers/kuryrnetwork_population.py
Auto-merging kuryr_kubernetes/controller/handlers/kuryrnetwork.py
Auto-merging kuryr_kubernetes/controller/drivers/vif_pool.py
Auto-merging kuryr_kubernetes/controller/drivers/sriov.py
Auto-merging kuryr_kubernetes/controller/drivers/neutron_vif.py
Auto-merging kuryr_kubernetes/controller/drivers/nested_vlan_vif.py
Auto-merging kuryr_kubernetes/controller/drivers/nested_macvlan_vif.py
Auto-merging kuryr_kubernetes/controller/drivers/base.py
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Workaround OVN bug causing subports to be DOWN
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.6

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