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

Ensure stable provider result in method DNSProviders.LookupFor #172

Merged
merged 1 commit into from
May 3, 2021

Conversation

MartinWeindel
Copy link
Member

What this PR does / why we need it:
DNS entries of a hosted DNS zone are updated per account hash, which is calculated from credentials and other properties. If there are multiple providers with different account hashes but with the same zone(s) a problem was observed. DNS entries which can be assigned to multiple account hashes go to state Stale temporarily and it is tried to recreate the DNS records on zone reconciliations. This is caused by flipping account hash assignments of the DNS entries, caused by an instable iteration order in the method DNSProviders.LookupFor which returned potential different provider for the same DNS name on each call.
The user are not directly affected by this bug, but it causes additional work load and additional requests (creation of already existing records and reload of zone state as zone cache is discarded because of failed creation).

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

ensure stable provider result in method DNSProviders.LookupFor

@gardener-robot gardener-robot added needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Apr 30, 2021
@gardener-robot-ci-3 gardener-robot-ci-3 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 Apr 30, 2021
@gardener-robot-ci-2 gardener-robot-ci-2 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 Apr 30, 2021
@mandelsoft mandelsoft merged commit 482676c into master May 3, 2021
@MartinWeindel MartinWeindel deleted the fix-provider-order branch May 3, 2021 16:40
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/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants