Skip to content

CORENET-6276: Use priorityClass from HostedControlPlane for OVN and NNI#2769

Merged
openshift-merge-bot[bot] merged 4 commits intoopenshift:masterfrom
bradbehle:ovn-nni-use-configured-prio-class
Aug 21, 2025
Merged

CORENET-6276: Use priorityClass from HostedControlPlane for OVN and NNI#2769
openshift-merge-bot[bot] merged 4 commits intoopenshift:masterfrom
bradbehle:ovn-nni-use-configured-prio-class

Conversation

@bradbehle
Copy link
Copy Markdown
Contributor

priorityClass can be specified in the HostedControlPlane for hypershift managed clusters. When it is specified, it should be used by the control plane components. Currently the cluster-network-operator deployment and the multus-admission-controller deployment do use the priority class that is specified, but the ovnkube-control-plane and network-node-identity deployments do not, they use a hardcoded value.

This change updates the ovnkube-control-plane and network-node-identity deployments to use teh priorityClass from the HostedControlPlane if it is specified

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 6, 2025
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@bradbehle: This pull request references CORENET-6276 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set.

Details

In response to this:

priorityClass can be specified in the HostedControlPlane for hypershift managed clusters. When it is specified, it should be used by the control plane components. Currently the cluster-network-operator deployment and the multus-admission-controller deployment do use the priority class that is specified, but the ovnkube-control-plane and network-node-identity deployments do not, they use a hardcoded value.

This change updates the ovnkube-control-plane and network-node-identity deployments to use teh priorityClass from the HostedControlPlane if it is specified

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot requested review from bpickard22 and ricky-rav August 6, 2025 21:09
@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 6, 2025
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 6, 2025

Hi @bradbehle. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@rtheis
Copy link
Copy Markdown

rtheis commented Aug 6, 2025

/ok-to-test

@openshift-ci openshift-ci Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 6, 2025
@rtheis
Copy link
Copy Markdown

rtheis commented Aug 7, 2025

/retest-required

Comment thread pkg/network/ovn_kubernetes.go Outdated
data.Data["HCPNodeSelector"] = bootstrapResult.OVN.OVNKubernetesConfig.HyperShiftConfig.HCPNodeSelector
data.Data["HCPLabels"] = bootstrapResult.OVN.OVNKubernetesConfig.HyperShiftConfig.HCPLabels
data.Data["HCPTolerations"] = bootstrapResult.OVN.OVNKubernetesConfig.HyperShiftConfig.HCPTolerations
data.Data["PriorityClass"] = bootstrapResult.Infra.HostedControlPlane.PriorityClass
Copy link
Copy Markdown

@rtheis rtheis Aug 7, 2025

Choose a reason for hiding this comment

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

I think this needs to be bootstrapResult.OVN.OVNKubernetesConfig.HyperShiftConfig.PriorityClass to match the rest of the code and may explain why PR tests are failing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I changed the code as you suggested and added the PriorityClass to the OVNHyperShiftBootstrapResult struct and used it from there.

@bradbehle bradbehle force-pushed the ovn-nni-use-configured-prio-class branch from dabae8c to bb74597 Compare August 7, 2025 19:02
@rtheis
Copy link
Copy Markdown

rtheis commented Aug 8, 2025

/retest-required

Copy link
Copy Markdown

@rtheis rtheis left a comment

Choose a reason for hiding this comment

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

/lgtm

Comment thread pkg/network/ovn_kubernetes.go Outdated
productFlavor = "managed"
data.Data["CAConfigMap"] = bootstrapResult.OVN.OVNKubernetesConfig.HyperShiftConfig.CAConfigMap
data.Data["CAConfigMapKey"] = bootstrapResult.OVN.OVNKubernetesConfig.HyperShiftConfig.CAConfigMapKey
data.Data["PriorityClass"] = bootstrapResult.OVN.OVNKubernetesConfig.HyperShiftConfig.PriorityClass
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It seems a bit odd to set this here rather than where data.Data["HCPTolerations"] is set but I don't think we get different results. I'll defer to Red Hat on the correct thing to do.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, @bradbehle would you mind moving all 3 vars to the block that sets the HCP vars from bootstrap?

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 8, 2025

@rtheis: changing LGTM is restricted to collaborators

Details

In response to this:

/lgtm

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-sigs/prow repository.

@rtheis
Copy link
Copy Markdown

rtheis commented Aug 9, 2025

/retest-required

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 11, 2025

priorityClass can be specified in the HostedControlPlane for hypershift managed clusters. When it is specified, it should be used by the control plane components. Currently the cluster-network-operator deployment and the multus-admission-controller deployment do use the priority class that is specified, but the ovnkube-control-plane and network-node-identity deployments do not, they use a hardcoded value.

This change updates the ovnkube-control-plane and network-node-identity deployments to use teh priorityClass from the HostedControlPlane if it is specified

@bradbehle @csrwng Don't we also need it for cloud-network-config-controller? It is currently hard-coded as: hypershift-control-plane

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 11, 2025
priorityClass can be specified in the HostedControlPlane for hypershift
managed clusters.  When it is specified, it should be used by the control
plane components.  Currently the cluster-network-operator deployment and
the multus-admission-controller deployment do use the priority class that
is specified, but the ovnkube-control-plane and network-node-identity
deployments do not, they use a hardcoded value.

This change updates the ovnkube-control-plane and network-node-identity
deployments to use teh priorityClass from the HostedControlPlane if
it is specified
Addressing review comment that suggested that PriorityClass be set
in the OVNHyperShiftBootstrapResult and then read from there to match
the other code.
@bradbehle bradbehle force-pushed the ovn-nni-use-configured-prio-class branch from bb74597 to 0d6da2f Compare August 13, 2025 19:53
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 13, 2025
@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 14, 2025

/lgtm

@openshift-ci openshift-ci Bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 14, 2025
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 67399b9 and 2 for PR HEAD 0d6da2f in total

@rtheis
Copy link
Copy Markdown

rtheis commented Aug 14, 2025

/retest-required

@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 Aug 19, 2025
@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 19, 2025

/hold cancel

@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 Aug 19, 2025
@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 19, 2025

/test e2e-aws-ovn-upgrade

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 76c7185 and 1 for PR HEAD 0d6da2f in total

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 76c7185 and 2 for PR HEAD 0d6da2f in total

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 20, 2025

/tide refresh

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD f41e188 and 2 for PR HEAD 0d6da2f in total

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 20, 2025

/retest-required

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 20, 2025

/override ci/prow/e2e-metal-ipi-ovn-dualstack-bgp-local-gw

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 20, 2025

@kyrtapz: Overrode contexts on behalf of kyrtapz: ci/prow/e2e-metal-ipi-ovn-dualstack-bgp-local-gw

Details

In response to this:

/override ci/prow/e2e-metal-ipi-ovn-dualstack-bgp-local-gw

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-sigs/prow repository.

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD f41e188 and 2 for PR HEAD 0d6da2f in total

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 21, 2025

/override ci/prow/e2e-metal-ipi-ovn-dualstack-bgp-local-gw

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 21, 2025

@kyrtapz: Overrode contexts on behalf of kyrtapz: ci/prow/e2e-metal-ipi-ovn-dualstack-bgp-local-gw

Details

In response to this:

/override ci/prow/e2e-metal-ipi-ovn-dualstack-bgp-local-gw

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-sigs/prow repository.

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 21, 2025

This is a hypershift specific change, overrding unrelated jobs (they passed in previous runs):
/override ci/prow/e2e-aws-ovn-upgrade
/override ci/prow/e2e-aws-ovn-upgrade-ipsec
/override ci/prow/e2e-aws-ovn-windows
/override ci/prow/e2e-gcp-ovn-upgrade
/override ci/prow/e2e-metal-ipi-ovn-dualstack-bgp
/override ci/prow/e2e-metal-ipi-ovn-ipv6
/override ci/prow/e2e-ovn-ipsec-step-registry

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 21, 2025

@kyrtapz: Overrode contexts on behalf of kyrtapz: ci/prow/e2e-aws-ovn-upgrade, ci/prow/e2e-aws-ovn-upgrade-ipsec, ci/prow/e2e-aws-ovn-windows, ci/prow/e2e-gcp-ovn-upgrade, ci/prow/e2e-metal-ipi-ovn-dualstack-bgp, ci/prow/e2e-metal-ipi-ovn-ipv6, ci/prow/e2e-ovn-ipsec-step-registry

Details

In response to this:

This is a hypershift specific change, overrding unrelated jobs (they passed in previous runs):
/override ci/prow/e2e-aws-ovn-upgrade
/override ci/prow/e2e-aws-ovn-upgrade-ipsec
/override ci/prow/e2e-aws-ovn-windows
/override ci/prow/e2e-gcp-ovn-upgrade
/override ci/prow/e2e-metal-ipi-ovn-dualstack-bgp
/override ci/prow/e2e-metal-ipi-ovn-ipv6
/override ci/prow/e2e-ovn-ipsec-step-registry

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-sigs/prow repository.

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 21, 2025

/test hypershift-e2e-aks

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 21, 2025

/retest-required

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD f41e188 and 2 for PR HEAD 0d6da2f in total

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 21, 2025

/override ci/prow/e2e-ovn-ipsec-step-registry

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 21, 2025

@kyrtapz: Overrode contexts on behalf of kyrtapz: ci/prow/e2e-ovn-ipsec-step-registry

Details

In response to this:

/override ci/prow/e2e-ovn-ipsec-step-registry

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-sigs/prow repository.

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 21, 2025

/override ci/prow/e2e-aws-ovn-upgrade

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 21, 2025

@kyrtapz: Overrode contexts on behalf of kyrtapz: ci/prow/e2e-aws-ovn-upgrade

Details

In response to this:

/override ci/prow/e2e-aws-ovn-upgrade

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-sigs/prow repository.

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 21, 2025

/test hypershift-e2e-aks

1 similar comment
@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 21, 2025

/test hypershift-e2e-aks

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 21, 2025

@bradbehle: 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-vsphere-ovn-dualstack-primaryv6 bb74597 link false /test e2e-vsphere-ovn-dualstack-primaryv6
ci/prow/e2e-openstack-ovn 0d6da2f link false /test e2e-openstack-ovn
ci/prow/e2e-vsphere-ovn 0d6da2f link false /test e2e-vsphere-ovn
ci/prow/e2e-ovn-hybrid-step-registry 0d6da2f link false /test e2e-ovn-hybrid-step-registry
ci/prow/e2e-vsphere-ovn-dualstack 0d6da2f link false /test e2e-vsphere-ovn-dualstack
ci/prow/4.20-upgrade-from-stable-4.19-e2e-aws-ovn-upgrade 0d6da2f link false /test 4.20-upgrade-from-stable-4.19-e2e-aws-ovn-upgrade
ci/prow/e2e-aws-ovn-serial 0d6da2f link false /test e2e-aws-ovn-serial
ci/prow/e2e-aws-ovn-local-to-shared-gateway-mode-migration 0d6da2f link false /test e2e-aws-ovn-local-to-shared-gateway-mode-migration
ci/prow/4.20-upgrade-from-stable-4.19-e2e-azure-ovn-upgrade 0d6da2f link false /test 4.20-upgrade-from-stable-4.19-e2e-azure-ovn-upgrade
ci/prow/4.20-upgrade-from-stable-4.19-e2e-gcp-ovn-upgrade 0d6da2f link false /test 4.20-upgrade-from-stable-4.19-e2e-gcp-ovn-upgrade
ci/prow/e2e-ovn-step-registry 0d6da2f link false /test e2e-ovn-step-registry
ci/prow/okd-scos-e2e-aws-ovn 0d6da2f link false /test okd-scos-e2e-aws-ovn
ci/prow/e2e-aws-ovn-single-node 0d6da2f link false /test e2e-aws-ovn-single-node
ci/prow/e2e-network-mtu-migration-ovn-ipv4 0d6da2f link false /test e2e-network-mtu-migration-ovn-ipv4
ci/prow/security 0d6da2f link false /test security
ci/prow/e2e-aws-hypershift-ovn-kubevirt 0d6da2f link false /test e2e-aws-hypershift-ovn-kubevirt

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-sigs/prow repository. I understand the commands that are listed here.

@kyrtapz
Copy link
Copy Markdown
Contributor

kyrtapz commented Aug 21, 2025

https://redhat-external.slack.com/archives/C01C8502FMM/p1755787091649519
/override ci/prow/hypershift-e2e-aks

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 21, 2025

@kyrtapz: Overrode contexts on behalf of kyrtapz: ci/prow/hypershift-e2e-aks

Details

In response to this:

https://redhat-external.slack.com/archives/C01C8502FMM/p1755787091649519
/override ci/prow/hypershift-e2e-aks

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-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot Bot merged commit c765f72 into openshift:master Aug 21, 2025
25 of 40 checks passed
@openshift-bot
Copy link
Copy Markdown
Contributor

[ART PR BUILD NOTIFIER]

Distgit: cluster-network-operator
This PR has been included in build cluster-network-operator-container-v4.21.0-202508212332.p0.gc765f72.assembly.stream.el9.
All builds following this will include this PR.

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. 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants