Skip to content

fix: add --dns-zone-rg-name to Azure self-managed destroy step - #78516

Merged
openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
bryan-cox:fix-sm-azure
Apr 29, 2026
Merged

fix: add --dns-zone-rg-name to Azure self-managed destroy step#78516
openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
bryan-cox:fix-sm-azure

Conversation

@bryan-cox

@bryan-cox bryan-cox commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

  • OCPBUGS-84251: fix(azure): detect and replace stale role assignments on cluster re-creation hypershift#8322 made --dns-zone-rg-name a required flag on hypershift destroy cluster azure
  • Two destroy chains were not passing it, causing every Azure HyperShift job to fail during cleanup and leak Azure clusters:
    • hypershift-destroy-nested-management-cluster: used by e2e-azure-self-managed jobs — adds --dns-zone-rg-name=os4-common to the destroy command (matching the create step)
    • hypershift-azure-destroy: used by AKS conformance and 12+ cucushift Azure HyperShift workflows — adds DNS_ZONE_RG_NAME env var (default os4-common, matching the create chain) and passes it to the destroy command

Test plan

  • Verify rehearsal of pull-ci-openshift-hypershift-main-e2e-azure-self-managed passes the destroy step

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated Azure management cluster destruction to include DNS zone resource group configuration.
    • Made the DNS zone resource group name configurable (defaults to os4-common) and passed to the destroy operation so teardown targets the correct DNS zone, improving cleanup reliability.

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. The destroy-management-cluster step
in the self-managed workflow was not passing it, causing every
e2e-azure-self-managed run to fail during cleanup and leak Azure
clusters.

The create step already passes --dns-zone-rg-name=os4-common; this
adds the same flag to the destroy step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Added DNS resource group configuration to HyperShift Azure destroy chains so the Azure destroy command includes a --dns-zone-rg-name argument to specify the DNS zone resource group.

Changes

Cohort / File(s) Summary
Azure Nested Management Cluster Destroy Chain
ci-operator/step-registry/hypershift/destroy-nested-management-cluster/hypershift-destroy-nested-management-cluster-chain.yaml
Added --dns-zone-rg-name=os4-common to the hypershift destroy cluster azure command.
Azure Destroy Chain (env var added)
ci-operator/step-registry/hypershift/azure/destroy/hypershift-azure-destroy-chain.yaml
Introduced DNS_ZONE_RG_NAME env var (default: os4-common) and forward it as --dns-zone-rg-name to the HyperShift CLI during Azure cluster destroy.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 12
✅ Passed checks (12 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title clearly and accurately describes the main change: adding the --dns-zone-rg-name flag to the Azure self-managed destroy step to fix cleanup failures.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR modifies CI/CD configuration YAML files that define HyperShift cluster destruction steps, not Ginkgo test files. The changes add DNS zone resource group arguments and environment variables to cluster destruction commands, neither involving dynamic test names in test definitions.
Test Structure And Quality ✅ Passed This pull request contains only YAML configuration files for CI/CD pipeline step chains, not Ginkgo test code. The PR modifies pipeline definitions to add the --dns-zone-rg-name flag to Azure destroy commands.
Microshift Test Compatibility ✅ Passed This PR does not add new Ginkgo e2e tests; it only modifies YAML configuration files in ci-operator/step-registry/ for HyperShift cluster destruction on Azure.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This PR modifies CI operator step registry YAML files containing shell commands for cluster destruction, not Ginkgo e2e tests. The custom check for SNO compatibility is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed PR modifies CI operator step-registry configuration files that add CLI arguments to HyperShift destroy commands; does not introduce Kubernetes scheduling constraints, pod affinity, node selectors, topology spread constraints, or replica count logic.
Ote Binary Stdout Contract ✅ Passed The OTE Binary Stdout Contract check is not applicable to this pull request as it only modifies YAML configuration files, not Go source code.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed This PR modifies YAML CI/CD configuration files, not Ginkgo e2e tests. The check for IPv4 assumptions and external connectivity is not applicable.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci
openshift-ci Bot requested review from jparrill and sjenning April 28, 2026 22:28
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 28, 2026
@bryan-cox

Copy link
Copy Markdown
Member Author

/pj-rehearse pull-ci-openshift-hypershift-main-e2e-azure-self-managed

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@bryan-cox: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@bryan-cox

Copy link
Copy Markdown
Member Author

/pj-rehearse pull-ci-openshift-hypershift-main-e2e-azure-self-managed

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@bryan-cox: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. Two destroy chains were not passing
it, causing every Azure HyperShift job to fail during cleanup and leak
Azure clusters.

hypershift-destroy-nested-management-cluster: used by
e2e-azure-self-managed jobs. The create step already passes
--dns-zone-rg-name=os4-common; adds the same to the destroy step.

hypershift-azure-destroy: used by AKS conformance and 12+ cucushift
Azure HyperShift workflows. Adds DNS_ZONE_RG_NAME env var (default
os4-common) matching the create chain, and passes it to the destroy
command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bryan-cox

Copy link
Copy Markdown
Member Author

/pj-rehearse pull-ci-openshift-hypershift-main-e2e-azure-self-managed

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@bryan-cox: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@bryan-cox: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-cluster-storage-operator-main-hypershift-e2e-openstack-aws-csi-cinder openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-main-hypershift-e2e-openstack-aws-csi-manila openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-5.1-hypershift-e2e-openstack-aws-csi-cinder openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-5.1-hypershift-e2e-openstack-aws-csi-manila openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-5.0-hypershift-e2e-openstack-aws-csi-cinder openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-5.0-hypershift-e2e-openstack-aws-csi-manila openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.23-hypershift-e2e-openstack-aws-csi-cinder openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.23-hypershift-e2e-openstack-aws-csi-manila openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.22-hypershift-e2e-openstack-aws-csi-cinder openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.22-hypershift-e2e-openstack-aws-csi-manila openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.21-hypershift-e2e-openstack-aws-csi-cinder openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.21-hypershift-e2e-openstack-aws-csi-manila openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.20-hypershift-e2e-openstack-aws-csi-cinder openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.20-hypershift-e2e-openstack-aws-csi-manila openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.19-hypershift-e2e-openstack-aws-csi-cinder openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.19-hypershift-e2e-openstack-aws-csi-manila openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.18-hypershift-e2e-openstack-aws-csi-cinder openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.18-hypershift-e2e-openstack-aws-csi-manila openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-hypershift-main-agentic-qe-aws openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-release-5.1-agentic-qe-aws openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-release-5.0-agentic-qe-aws openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-release-4.23-agentic-qe-aws openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-release-4.22-agentic-qe-aws openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-main-e2e-v2-aws-backuprestore openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-release-5.1-e2e-v2-aws-backuprestore openshift/hypershift presubmit Registry content changed

A total of 472 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs.

A full list of affected jobs can be found here

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@coderabbitai coderabbitai Bot left a comment

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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
ci-operator/step-registry/hypershift/azure/destroy/hypershift-azure-destroy-chain.yaml (1)

45-55: ⚠️ Potential issue | 🟠 Major

Remove eval and quote all command arguments (lines 40–54).

The COMMAND array is built with unquoted variable expansions ($CLI, ${AZURE_CREDS}, ${CLUSTER_NAME}, ${HC_LOCATION}, ${DNS_ZONE_RG_NAME}) and executed via eval, which is unsafe. Unquoted expansions can cause word-splitting and enable command injection if DNS_ZONE_RG_NAME or other environment variables are controlled. Execute the array directly and quote all arguments.

Suggested hardening diff
-      COMMAND=(
-        $CLI destroy cluster azure \
-        --azure-creds=${AZURE_CREDS} \
-        --name ${CLUSTER_NAME} \
-        --location ${HC_LOCATION} \
-        --dns-zone-rg-name=${DNS_ZONE_RG_NAME} \
-        --cluster-grace-period 40m
-      )
+      COMMAND=(
+        "$CLI" destroy cluster azure
+        "--azure-creds=${AZURE_CREDS}"
+        "--name=${CLUSTER_NAME}"
+        "--location=${HC_LOCATION}"
+        "--dns-zone-rg-name=${DNS_ZONE_RG_NAME}"
+        "--cluster-grace-period=40m"
+      )
@@
-        COMMAND+=(--resource-group-name "$(<"${SHARED_DIR}/resourcegroup")")
+        COMMAND+=("--resource-group-name" "$(<"${SHARED_DIR}/resourcegroup")")
@@
-      eval "${COMMAND[@]}"
+      "${COMMAND[@]}"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@ci-operator/step-registry/hypershift/azure/destroy/hypershift-azure-destroy-chain.yaml`
around lines 45 - 55, The COMMAND array is being executed via eval with unquoted
variable expansions which risks word-splitting and injection; stop using eval
and run the array directly, and ensure each variable is added as its own quoted
argument. Change any appends like
COMMAND+=(--dns-zone-rg-name=${DNS_ZONE_RG_NAME}) to
COMMAND+=(--dns-zone-rg-name "${DNS_ZONE_RG_NAME}") and the conditional to
COMMAND+=(--resource-group-name "$( < "${SHARED_DIR}/resourcegroup" )"), then
replace eval "${COMMAND[@]}" with a direct exec "${COMMAND[@]}" so the shell
preserves argument boundaries.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In
`@ci-operator/step-registry/hypershift/azure/destroy/hypershift-azure-destroy-chain.yaml`:
- Around line 45-55: The COMMAND array is being executed via eval with unquoted
variable expansions which risks word-splitting and injection; stop using eval
and run the array directly, and ensure each variable is added as its own quoted
argument. Change any appends like
COMMAND+=(--dns-zone-rg-name=${DNS_ZONE_RG_NAME}) to
COMMAND+=(--dns-zone-rg-name "${DNS_ZONE_RG_NAME}") and the conditional to
COMMAND+=(--resource-group-name "$( < "${SHARED_DIR}/resourcegroup" )"), then
replace eval "${COMMAND[@]}" with a direct exec "${COMMAND[@]}" so the shell
preserves argument boundaries.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: c0c73d3c-e058-4e68-a898-128368e3a7c7

📥 Commits

Reviewing files that changed from the base of the PR and between 6267003 and 3d21ec5.

📒 Files selected for processing (1)
  • ci-operator/step-registry/hypershift/azure/destroy/hypershift-azure-destroy-chain.yaml

@csrwng

csrwng commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 28, 2026
@openshift-ci

openshift-ci Bot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bryan-cox, csrwng

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 commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

@bryan-cox: The following test 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/rehearse/openshift/hypershift/main/e2e-azure-self-managed 3d21ec5 link unknown /pj-rehearse pull-ci-openshift-hypershift-main-e2e-azure-self-managed

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.

@bryan-cox

Copy link
Copy Markdown
Member Author

/pj-rehearse ack

This fixed the issue with deleting azure self managed clusters so merging that for now. I will take a look at why the create cluster failed in more detail outside of here.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@bryan-cox: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Apr 29, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit fa2a5f5 into openshift:main Apr 29, 2026
11 of 12 checks passed
Prucek pushed a commit to Prucek/release that referenced this pull request Apr 29, 2026
…hift#78516)

* fix: add --dns-zone-rg-name to Azure self-managed destroy step

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. The destroy-management-cluster step
in the self-managed workflow was not passing it, causing every
e2e-azure-self-managed run to fail during cleanup and leak Azure
clusters.

The create step already passes --dns-zone-rg-name=os4-common; this
adds the same flag to the destroy step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add --dns-zone-rg-name to Azure destroy steps

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. Two destroy chains were not passing
it, causing every Azure HyperShift job to fail during cleanup and leak
Azure clusters.

hypershift-destroy-nested-management-cluster: used by
e2e-azure-self-managed jobs. The create step already passes
--dns-zone-rg-name=os4-common; adds the same to the destroy step.

hypershift-azure-destroy: used by AKS conformance and 12+ cucushift
Azure HyperShift workflows. Adds DNS_ZONE_RG_NAME env var (default
os4-common) matching the create chain, and passes it to the destroy
command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
BATMAN-JD pushed a commit to BATMAN-JD/release that referenced this pull request May 1, 2026
…hift#78516)

* fix: add --dns-zone-rg-name to Azure self-managed destroy step

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. The destroy-management-cluster step
in the self-managed workflow was not passing it, causing every
e2e-azure-self-managed run to fail during cleanup and leak Azure
clusters.

The create step already passes --dns-zone-rg-name=os4-common; this
adds the same flag to the destroy step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add --dns-zone-rg-name to Azure destroy steps

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. Two destroy chains were not passing
it, causing every Azure HyperShift job to fail during cleanup and leak
Azure clusters.

hypershift-destroy-nested-management-cluster: used by
e2e-azure-self-managed jobs. The create step already passes
--dns-zone-rg-name=os4-common; adds the same to the destroy step.

hypershift-azure-destroy: used by AKS conformance and 12+ cucushift
Azure HyperShift workflows. Adds DNS_ZONE_RG_NAME env var (default
os4-common) matching the create chain, and passes it to the destroy
command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
andrej1991 pushed a commit to andrej1991/release that referenced this pull request Jul 6, 2026
…hift#78516)

* fix: add --dns-zone-rg-name to Azure self-managed destroy step

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. The destroy-management-cluster step
in the self-managed workflow was not passing it, causing every
e2e-azure-self-managed run to fail during cleanup and leak Azure
clusters.

The create step already passes --dns-zone-rg-name=os4-common; this
adds the same flag to the destroy step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add --dns-zone-rg-name to Azure destroy steps

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. Two destroy chains were not passing
it, causing every Azure HyperShift job to fail during cleanup and leak
Azure clusters.

hypershift-destroy-nested-management-cluster: used by
e2e-azure-self-managed jobs. The create step already passes
--dns-zone-rg-name=os4-common; adds the same to the destroy step.

hypershift-azure-destroy: used by AKS conformance and 12+ cucushift
Azure HyperShift workflows. Adds DNS_ZONE_RG_NAME env var (default
os4-common) matching the create chain, and passes it to the destroy
command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
TimurMP pushed a commit to TimurMP/release that referenced this pull request Jul 8, 2026
…hift#78516)

* fix: add --dns-zone-rg-name to Azure self-managed destroy step

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. The destroy-management-cluster step
in the self-managed workflow was not passing it, causing every
e2e-azure-self-managed run to fail during cleanup and leak Azure
clusters.

The create step already passes --dns-zone-rg-name=os4-common; this
adds the same flag to the destroy step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add --dns-zone-rg-name to Azure destroy steps

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. Two destroy chains were not passing
it, causing every Azure HyperShift job to fail during cleanup and leak
Azure clusters.

hypershift-destroy-nested-management-cluster: used by
e2e-azure-self-managed jobs. The create step already passes
--dns-zone-rg-name=os4-common; adds the same to the destroy step.

hypershift-azure-destroy: used by AKS conformance and 12+ cucushift
Azure HyperShift workflows. Adds DNS_ZONE_RG_NAME env var (default
os4-common) matching the create chain, and passes it to the destroy
command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
SachinNinganure pushed a commit to SachinNinganure/release that referenced this pull request Jul 20, 2026
…hift#78516)

* fix: add --dns-zone-rg-name to Azure self-managed destroy step

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. The destroy-management-cluster step
in the self-managed workflow was not passing it, causing every
e2e-azure-self-managed run to fail during cleanup and leak Azure
clusters.

The create step already passes --dns-zone-rg-name=os4-common; this
adds the same flag to the destroy step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add --dns-zone-rg-name to Azure destroy steps

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. Two destroy chains were not passing
it, causing every Azure HyperShift job to fail during cleanup and leak
Azure clusters.

hypershift-destroy-nested-management-cluster: used by
e2e-azure-self-managed jobs. The create step already passes
--dns-zone-rg-name=os4-common; adds the same to the destroy step.

hypershift-azure-destroy: used by AKS conformance and 12+ cucushift
Azure HyperShift workflows. Adds DNS_ZONE_RG_NAME env var (default
os4-common) matching the create chain, and passes it to the destroy
command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
malingatembo pushed a commit to malingatembo/release that referenced this pull request Aug 5, 2026
…hift#78516)

* fix: add --dns-zone-rg-name to Azure self-managed destroy step

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. The destroy-management-cluster step
in the self-managed workflow was not passing it, causing every
e2e-azure-self-managed run to fail during cleanup and leak Azure
clusters.

The create step already passes --dns-zone-rg-name=os4-common; this
adds the same flag to the destroy step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add --dns-zone-rg-name to Azure destroy steps

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. Two destroy chains were not passing
it, causing every Azure HyperShift job to fail during cleanup and leak
Azure clusters.

hypershift-destroy-nested-management-cluster: used by
e2e-azure-self-managed jobs. The create step already passes
--dns-zone-rg-name=os4-common; adds the same to the destroy step.

hypershift-azure-destroy: used by AKS conformance and 12+ cucushift
Azure HyperShift workflows. Adds DNS_ZONE_RG_NAME env var (default
os4-common) matching the create chain, and passes it to the destroy
command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
TimurMP pushed a commit to TimurMP/release that referenced this pull request Sep 5, 2026
…hift#78516)

* fix: add --dns-zone-rg-name to Azure self-managed destroy step

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. The destroy-management-cluster step
in the self-managed workflow was not passing it, causing every
e2e-azure-self-managed run to fail during cleanup and leak Azure
clusters.

The create step already passes --dns-zone-rg-name=os4-common; this
adds the same flag to the destroy step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add --dns-zone-rg-name to Azure destroy steps

openshift/hypershift#8322 made --dns-zone-rg-name a required flag on
`hypershift destroy cluster azure`. Two destroy chains were not passing
it, causing every Azure HyperShift job to fail during cleanup and leak
Azure clusters.

hypershift-destroy-nested-management-cluster: used by
e2e-azure-self-managed jobs. The create step already passes
--dns-zone-rg-name=os4-common; adds the same to the destroy step.

hypershift-azure-destroy: used by AKS conformance and 12+ cucushift
Azure HyperShift workflows. Adds DNS_ZONE_RG_NAME env var (default
os4-common) matching the create chain, and passes it to the destroy
command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants