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

OCPBUGS-44507: Check public zone for stray record set #9365

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rna-afk
Copy link
Contributor

@rna-afk rna-afk commented Jan 14, 2025

The azure destroyer checks for all the record sets present in the resource group and deletes them. But in the case where the resource group is destroyed before the destroy cluster is called, there will be stray record sets that don't get cleaned up. This frequently occurs in the azure test environment where the reaper deletes the resource group after sometime but fails to clean up these stray record sets.

Adding the fix in the off chance this scenario happens in the customer world.

@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 Jan 14, 2025
@openshift-ci-robot
Copy link
Contributor

@rna-afk: This pull request references Jira Issue OCPBUGS-44507, which is invalid:

  • expected the bug to target the "4.19.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.

In response to this:

The azure destroyer checks for all the record sets present in the resource group and deletes them. But in the case where the resource group is destroyed before the destroy cluster is called, there will be stray record sets that don't get cleaned up. This frequently occurs in the azure test environment where the reaper deletes the resource group after sometime but fails to clean up these stray record sets.

Adding the fix in the off chance this scenario happens in the customer world.

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 jhixson74 and mtulio January 14, 2025 22:22
@rna-afk
Copy link
Contributor Author

rna-afk commented Jan 14, 2025

/jira refresh

@openshift-ci-robot
Copy link
Contributor

@rna-afk: This pull request references Jira Issue OCPBUGS-44507, which is invalid:

  • expected the bug to target the "4.19.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.

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

@rna-afk
Copy link
Contributor Author

rna-afk commented Jan 14, 2025

/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 Jan 14, 2025
@openshift-ci-robot
Copy link
Contributor

@rna-afk: This pull request references Jira Issue OCPBUGS-44507, 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.19.0) matches configured target version for branch (4.19.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @gpei

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

@openshift-ci openshift-ci bot requested a review from gpei January 14, 2025 22:54
@rna-afk rna-afk force-pushed the destroy_basedomain_records branch from 003e406 to 97fa94a Compare January 14, 2025 22:59
@patrickdillon
Copy link
Contributor

patrickdillon commented Jan 16, 2025

If I understand this approach correctly, I think there is a non-zero chance to delete a record set that belongs to a different cluster. I'm not 100% certain that could happen, but if the crtieria for deletion does not include the infra id that risk really increases. Azure is unique among cloud providers in allowing metadata to be attached to record sets. We can use that as a surefire method to determine that a record set is the correct one to delete. i.e. make sure record sets are labeled at creation and check the label at deletion.

@rna-afk rna-afk force-pushed the destroy_basedomain_records branch from 97fa94a to 6555096 Compare January 16, 2025 16:40
Copy link
Contributor

openshift-ci bot commented Jan 16, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from rna-afk. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@rna-afk rna-afk force-pushed the destroy_basedomain_records branch from 6555096 to 055ab58 Compare January 21, 2025 05:08
@rna-afk rna-afk force-pushed the destroy_basedomain_records branch from 055ab58 to d8ac8a4 Compare January 22, 2025 20:58
@rna-afk rna-afk force-pushed the destroy_basedomain_records branch from d8ac8a4 to 3d549df Compare January 23, 2025 17:14
The azure destroyer checks for all the record sets present
in the resource group and deletes them. But in the case where
the resource group is destroyed before the destroy cluster
is called, there will be stray record sets that don't get cleaned
up. This frequently occurs in the azure test environment where
the reaper deletes the resource group after sometime but fails to
clean up these stray record sets.

Adding the fix in the off chance this scenario happens in the
customer world.
@rna-afk rna-afk force-pushed the destroy_basedomain_records branch from 3d549df to 5b91b6b Compare January 24, 2025 22:35
Copy link
Contributor

openshift-ci bot commented Jan 25, 2025

@rna-afk: 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-azure-ovn-resourcegroup 5b91b6b link false /test e2e-azure-ovn-resourcegroup
ci/prow/e2e-azurestack 5b91b6b link false /test e2e-azurestack
ci/prow/e2e-vsphere-host-groups-ovn-custom-no-upgrade 5b91b6b link false /test e2e-vsphere-host-groups-ovn-custom-no-upgrade
ci/prow/e2e-azure-default-config 5b91b6b link false /test e2e-azure-default-config
ci/prow/golint 5b91b6b link true /test golint
ci/prow/e2e-azure-ovn-shared-vpc 5b91b6b link false /test e2e-azure-ovn-shared-vpc

Full PR test history. Your PR dashboard.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants