Skip to content

OCPBUGS-18517: Kuryr: Set MTU on Bootstrap, not Render phase#1988

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
dulek:fix-panic-mtu
Sep 8, 2023
Merged

OCPBUGS-18517: Kuryr: Set MTU on Bootstrap, not Render phase#1988
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
dulek:fix-panic-mtu

Conversation

@dulek
Copy link
Copy Markdown
Contributor

@dulek dulek commented Sep 6, 2023

Since #1952 network.Render is no longer supplied with operConfig used later, but a copy of it. This means that MTU set by Kuryr's render phase won't be used for setting the Network.Status and will lead to panic.

We have this issue because for Kuryr default MTU is detected on bootstrap phase and there's no fixed value.

This commit solves this by making "0" a default value for Kuryr's MTU. Having 0 means that Kuryr will attempt to autodetect the MTU. Moreover the MTU on KuryrConfig will now be set on bootstrap phase, so update of the OperConfig done after the bootstrap phase will make sure to update it too.

@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 6, 2023

/test e2e-openstack-kuryr

@dulek dulek changed the title Kuryr: Set MTU on Bootstrap, not Render phase OCPBUGS-18517: Kuryr: Set MTU on Bootstrap, not Render phase Sep 6, 2023
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 6, 2023
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@dulek: This pull request references Jira Issue OCPBUGS-18517, which is invalid:

  • expected the bug to target the "4.14.0" version, but no target version was set

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

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Since #1952 network.Render is no longer supplied with operConfig used later, but a copy of it. This means that MTU set by Kuryr's render phase won't be used for setting the Network.Status and will lead to panic.

We have this issue because for Kuryr default MTU is detected on bootstrap phase and there's no fixed value.

This commit solves this by making "0" a default value for Kuryr's MTU. Having 0 means that Kuryr will attempt to autodetect the MTU. Moreover the MTU on KuryrConfig will now be set on bootstrap phase, so update of the OperConfig done after the bootstrap phase will make sure to update it too.

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
Copy Markdown
Contributor Author

dulek commented Sep 6, 2023

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Sep 6, 2023
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@dulek: This pull request references Jira Issue OCPBUGS-18517, which is valid. The bug has been moved to the POST state.

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

No GitHub users were found matching the public email listed for the QA contact in Jira (itbrown@redhat.com), skipping review request.

Details

In response to this:

/jira 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-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Sep 6, 2023
Copy link
Copy Markdown
Member

@gryf gryf left a comment

Choose a reason for hiding this comment

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

LGTM

@gryf
Copy link
Copy Markdown
Member

gryf commented Sep 6, 2023

/lgtm
/approve

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 6, 2023
Since openshift#1952 `network.Render` is no longer supplied with operConfig used
later, but a copy of it. This means that MTU set by Kuryr's render phase
won't be used for setting the Network.Status and will lead to panic.

We have this issue because for Kuryr default MTU is detected on
bootstrap phase and there's no fixed value.

This commit solves this by making "0" a default value for Kuryr's MTU.
Having 0 means that Kuryr will attempt to autodetect the MTU. Moreover
the MTU on KuryrConfig will now be set on bootstrap phase, so update of
the OperConfig done after the bootstrap phase will make sure to update
it too.
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 6, 2023
@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 6, 2023

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 6, 2023
@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 6, 2023

/test e2e-openstack-kuryr

@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 6, 2023

/test e2e-aws-sdn-multi

@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 6, 2023

/test e2e-aws-sdn-network-migration-rollback

@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 6, 2023

/test e2e-openstack-sdn

@MaysaMacedo
Copy link
Copy Markdown
Contributor

/test e2e-openstack-kuryr

1 similar comment
@MaysaMacedo
Copy link
Copy Markdown
Contributor

/test e2e-openstack-kuryr

@MaysaMacedo
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 7, 2023
@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 8, 2023

/hold cancel

The Kuryr jobs still fails the tests and we link this with upgrade of our testing cloud to OSP 17.1. This PR however unblocks the job to pass the installation, so it's a significant progress. I'd like to get this merged even with the job failing.

@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 Sep 8, 2023
@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 8, 2023

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. and removed jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Sep 8, 2023
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@dulek: This pull request references Jira Issue OCPBUGS-18517, which is invalid:

  • expected the bug to target the "4.15.0" version, but it targets "4.14.0" instead

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

Details

In response to this:

/jira 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.

@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 8, 2023

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 8, 2023
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@dulek: This pull request references Jira Issue OCPBUGS-18517, which is valid.

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

No GitHub users were found matching the public email listed for the QA contact in Jira (itbrown@redhat.com), skipping review request.

Details

In response to this:

/jira 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.

@knobunc
Copy link
Copy Markdown
Contributor

knobunc commented Sep 8, 2023

/approve
/acknowledge-critical-fixes-only

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 8, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 8, 2023
@knobunc
Copy link
Copy Markdown
Contributor

knobunc commented Sep 8, 2023

/label acknowledge-critical-fixes-only

@openshift-ci openshift-ci Bot added the acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. label Sep 8, 2023
@dulek
Copy link
Copy Markdown
Contributor Author

dulek commented Sep 8, 2023

/cherry-pick release-4.14

@openshift-cherrypick-robot
Copy link
Copy Markdown

@dulek: once the present PR merges, I will cherry-pick it on top of release-4.14 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-4.14

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
Copy Markdown
Contributor Author

dulek commented Sep 8, 2023

/retest-required

Just to be sure if UI isn't hiding some label to me.

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 6e0b2dc and 2 for PR HEAD aec54c5 in total

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 8, 2023

@dulek: 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-network-mtu-migration-ovn-ipv4 aec54c5 link false /test e2e-network-mtu-migration-ovn-ipv4
ci/prow/e2e-vsphere-ovn aec54c5 link false /test e2e-vsphere-ovn
ci/prow/e2e-network-mtu-migration-ovn-ipv6 aec54c5 link false /test e2e-network-mtu-migration-ovn-ipv6
ci/prow/e2e-openstack-ovn aec54c5 link false /test e2e-openstack-ovn
ci/prow/e2e-openstack-sdn aec54c5 link false /test e2e-openstack-sdn
ci/prow/e2e-vsphere-ovn-dualstack aec54c5 link false /test e2e-vsphere-ovn-dualstack
ci/prow/e2e-network-mtu-migration-sdn-ipv4 aec54c5 link false /test e2e-network-mtu-migration-sdn-ipv4
ci/prow/e2e-metal-ipi-ovn-ipv6-ipsec aec54c5 link false /test e2e-metal-ipi-ovn-ipv6-ipsec
ci/prow/e2e-openstack-kuryr aec54c5 link false /test e2e-openstack-kuryr

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.

@openshift-merge-robot openshift-merge-robot merged commit 692a344 into openshift:master Sep 8, 2023
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@dulek: Jira Issue OCPBUGS-18517: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-18517 has been moved to the MODIFIED state.

Details

In response to this:

Since #1952 network.Render is no longer supplied with operConfig used later, but a copy of it. This means that MTU set by Kuryr's render phase won't be used for setting the Network.Status and will lead to panic.

We have this issue because for Kuryr default MTU is detected on bootstrap phase and there's no fixed value.

This commit solves this by making "0" a default value for Kuryr's MTU. Having 0 means that Kuryr will attempt to autodetect the MTU. Moreover the MTU on KuryrConfig will now be set on bootstrap phase, so update of the OperConfig done after the bootstrap phase will make sure to update it too.

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-cherrypick-robot
Copy link
Copy Markdown

@dulek: new pull request created: #1995

Details

In response to this:

/cherry-pick release-4.14

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 added a commit to dulek/cluster-network-operator that referenced this pull request Sep 19, 2023
PR openshift#1988 introduced a bug causing upgrades to fail, because even when
Kuryr MTU was detected from the previous version of the KuryrConfig,
CNO would override it to 0. This commit fixes that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants