OCPBUGS-64775: use CAPZ to provision ssh rule#10162
Conversation
|
@patrickdillon: This pull request references Jira Issue OCPBUGS-64775, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
/jira refresh |
|
@patrickdillon: This pull request references Jira Issue OCPBUGS-64775, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
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. |
|
Linter is failing for unused var will clean it up on the next pass |
|
we can see the e2e azure job, the bootstrap bundle that the CI step collects was successfully gathered: https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_installer/10162/pull-ci-openshift-installer-main-e2e-azure-ovn/2000577150435987456/artifacts/e2e-azure-ovn/ipi-install-install/ This indicates the SSH rule works |
A change to CAPZ[0], creates an SSH rule if one is not specified in the cluster spec. Prior to this commit, we had been creating the SSH rule with installer SDK hooks, which is still somewhat necessary to add the inbound NAT rules, because we are not yet using CAPZ to provision a public load balancer. But we can use CAPZ to just create the rule, which will stop CAPZ from preventing a redundant SSH rule which we were leaking during bootstrap destroy. This change will also result in creating an SSH rule for private clusters which is fine, and something we do on other providers. 0: kubernetes-sigs/cluster-api-provider-azure#5525
0adb754 to
7ce936d
Compare
|
pushed linter fix |
tthvo
left a comment
There was a problem hiding this comment.
/lgtm
IIUC, the problem arised when CAPZ checked the cluster spec, saw ssh missing and created a duplicate ssh rule with some name that the installer didn't know about in order to destroy.
With this PR, we can ensure only a single ssh rule is created by CAPZ with a well-known name that the installer already has a logic to destroy 👍 LGTM!
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sadasu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/label acknowledge-critical-fixes-only |
|
/test e2e-azure-ovn |
|
/cherry-pick release-4.21 |
|
@patrickdillon: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
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. |
|
/test azure-ovn-marketplace-images |
1 similar comment
|
/test azure-ovn-marketplace-images |
|
@patrickdillon: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/payload-job periodic-ci-openshift-openshift-tests-private-release-4.21-amd64-nightly-azure-ipi-marketplace-mini-perm-f7 |
|
@tthvo: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/2b0cfa60-dad7-11f0-872b-bf9fd0884fd5-0 |
|
pre-merge test:
/verified by jima |
|
@jinyunma: This PR has been marked as verified by DetailsIn response to this:
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. |
fdf08d7
into
openshift:main
|
@patrickdillon: Jira Issue Verification Checks: Jira Issue OCPBUGS-64775 Jira Issue OCPBUGS-64775 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 DetailsIn response to this:
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. |
|
@patrickdillon: new pull request created: #10172 DetailsIn response to this:
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. |
|
Fix included in accepted release 4.22.0-0.nightly-2025-12-18-234253 |
A change to CAPZ[0], creates an SSH rule if one is not specified in the cluster spec. Prior to this commit, we had been creating the SSH rule with installer SDK hooks, which is still somewhat necessary to add the inbound NAT rules, because we are not yet using CAPZ to provision a public load balancer.
But we can use CAPZ to just create the rule, which will stop CAPZ from preventing a redundant SSH rule which we were leaking during bootstrap destroy.
This change will also result in creating an SSH rule for private clusters which is fine, and something we do on other providers.
0: kubernetes-sigs/cluster-api-provider-azure#5525