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

GC: remove DNS records for last server uninstall #74

Merged
merged 1 commit into from Mar 18, 2021

Conversation

flo-renaud
Copy link

The uninstallation of the last server with GC role can
happen after various code paths:

  • server-del + uninstall
  • direct uninstall

In order to detect that the last GC is being uninstalled, the
code relies on the output of server-role-find(GC, enabled).
The current server is the last GC in the following cases:

  • EmptyResult exception
  • 0 result
  • 1 result corresponding to the current server.

In all the above cases, the uninstaller must remove GC DNS records.
Fixes: https://pagure.io/freeipa/issue/8758

Signed-off-by: Florence Blanc-Renaud flo@redhat.com

The uninstallation of the last server with GC role can
happen after various code paths:
- server-del + uninstall
- direct uninstall

In order to detect that the last GC is being uninstalled, the
code relies on the output of server-role-find(GC, enabled).
The current server is the last GC in the following cases:
- EmptyResult exception
- 0 result
- 1 result corresponding to the current server.

In all the above cases, the uninstaller must remove GC DNS records.
Fixes: https://pagure.io/freeipa/issue/8758

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
@abbra
Copy link
Owner

abbra commented Mar 18, 2021

LGTM

@abbra abbra closed this Mar 18, 2021
@abbra abbra reopened this Mar 18, 2021
@abbra abbra merged commit 19e6d79 into abbra:gc-wip Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants