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

Don't cleanup entries belonging to provider of equivalent zone #257

Merged
merged 1 commit into from
May 30, 2022

Conversation

MartinWeindel
Copy link
Member

@MartinWeindel MartinWeindel commented May 30, 2022

What this PR does / why we need it:
With introduction of a qualified zone id which includes the provider type, DNS entries are only created or updated during zone reconciliation of the zone identified by this qualified zone id.
But for deletion of DNS entries and cleanup of orphan records this separation did not work. After resyncing the zone state DNS records are deleted because the assignment to a provider type is not taken into consideration. If a hosted zone is both accessed directly and remotely ("central DNS proxy"), DNS entries belonging to one of them appear to be orphaned, but are belonging to the other one in fact.
This wrong behaviour is fixed here by excluding DNS entries belonging to such a "equivalent" zone on cleanup.

Which issue(s) this PR fixes:
Fixes #256

Special notes for your reviewer:

Release note:

Don't cleanup entries belonging to a provider of  an equivalent zone.

@MartinWeindel MartinWeindel requested a review from mandelsoft as a code owner May 30, 2022 13:08
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label May 30, 2022
@gardener-robot-ci-3 gardener-robot-ci-3 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels May 30, 2022
@gardener-robot gardener-robot added needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) labels May 30, 2022
@MartinWeindel MartinWeindel force-pushed the fix-remote-data-race branch from 67e696a to 89507db Compare May 30, 2022 13:47
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label May 30, 2022
@MartinWeindel MartinWeindel changed the title Don't cleanup entries belonging to sibling provider Don't cleanup entries belonging to provider of equivalent zone May 30, 2022
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label May 30, 2022
@MartinWeindel MartinWeindel force-pushed the fix-remote-data-race branch from 89507db to 4975e92 Compare May 30, 2022 14:03
@gardener-robot-ci-2 gardener-robot-ci-2 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels May 30, 2022
@MartinWeindel MartinWeindel merged commit 9dae8fa into master May 30, 2022
@MartinWeindel MartinWeindel deleted the fix-remote-data-race branch May 30, 2022 14:39
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrating from direct access to remote access cause race condition
6 participants