-
Notifications
You must be signed in to change notification settings - Fork 13
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
ROX-26276: update DNS after cluster reassignment #2064
Conversation
678895b
to
b750f06
Compare
b750f06
to
a2d7c73
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change Admin Endpoint for assign-cluster to reset tenant to "provisioning" which will trigger resending of routes from FS -> Update in DB -> Upsert operation through cname_mgr -> Updated CNAME record after migration
This is the one that makes me nervous. It's adding complexity to the state flow that other pieces may not be expecting - i.e. in the future, whenever we're reasoning about Provisioning and Ready, it's no longer a one-way transition.
I didn't like that part as well. The alternative I thought of was to have FS always report the routes as opposed to only reporting routes if the tenant is not in ready state yet. That would essentially make the state flow one-way but bloat every state communications request from FS to FM with additional data that is not necessary in most cases (if routes already created). A third idea would be to adjust the FM <- FS polling API so that we additional to the state report the value of RoutesCreated boolean for a tenant and act based on that. What approach would you choose or do you have a different idea? |
bc046d8
to
f6d4a7b
Compare
/retest |
b7312af
to
ebb9556
Compare
/retest |
internal/dinosaur/pkg/migrations/20241022160000_add_entered_provisioning_to_central_request.go
Show resolved
Hide resolved
/retest |
LGTM, thanks for the changes! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ebensh, johannes94 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
Description
UPSERT
type requests to Route53, this way we can Update and Create CNAME records with the same operationEnteredProvisioning
to work around timeout issues, since CreatedAt is not a valid reference time for provisioning after reassignment. Adjusted preparing and provisioning operations to set and act according to the new field if present.Checklist (Definition of Done)
Test manual
ROX-12345: ...
Test manual
make deploy/bootstrap deploy/dev
RHACS_CLUSTER_MIGRATION=true
on FM--enable-central-external-certificate=true
on FM