atsign-foundation / at_server

The software implementation of Atsign's core technology
https://docs.atsign.com
BSD 3-Clause "New" or "Revised" License
40 stars 12 forks source link

Move (some) canary secondaries from hornet to canary #411

Closed cpswan closed 2 years ago

cpswan commented 3 years ago

Describe the solution you'd like Reconfigure ingress so that canaries can be moved to canary cluster

Describe alternatives you've considered We already went with the alternative of having some secondaries configured to use

athandle commented 3 years ago

@cpswan is this for @kumarnarendra701 ? Not sure what I have to do in this

cpswan commented 3 years ago

@athandle we'll have to update a bunch of entries on the root server to make this work.

kumarnarendra701 commented 2 years ago

@cpswan - Please confirm what details need to update for which atsign.

cpswan commented 2 years ago

Maybe the best way to explain it is in terms of what stays the same, and what's different:

Stays the same:

Different:

athandle commented 2 years ago

@cpswan do we need API to update the root entry or we need UI also? uuid.domain:port is the current entry Mentioned below are 4 parameters that are required { atsign:${atsign}, uuid:${uuid}, domain:${domain}, port:${port} }

cpswan commented 2 years ago

At this stage just the API, as I'd expect that we'll be using scripts to make the moves

athandle commented 2 years ago

Curl example Buzz(dev) RootURL: https://root-manager-b.dev.atsign.cloud Hornet(prod) RootURL: https://root-api.prod.atsign.cloud ACCESS_TOKEN_SECRET is in .env file of project curl --location --request POST 'RootURL/api/atsign-infra/create' \ --header 'authorization: ACCESS_TOKEN_SECRET' \ --header 'Content-Type: application/json' \ --data-raw '{"atsign":"atsigntobeupdated", "uuid":"uuidofatsign", "port":"portnumber", "domain":"buzz.do-sf2.atsign.zone"}'

cpswan commented 2 years ago

Thanks @athandle

I now have the first secondary relocated.

kumarnarendra701 commented 2 years ago

@cpswan - Please check and confirm if we can close this ticket.

cpswan commented 2 years ago

This ticket wasn't just for registry work. I've kept it open whilst developing the script for secondary migration.

I still need to fix certs for the migrated secondaries, and automate how that gets done going forward.

cpswan commented 2 years ago

Scripts now completed for migrating and fixing certs.

@cconstab just waiting on you for https://github.com/atsign-company/secondaries-scripts/pull/11