Skip to content

refac(gcp): drop the pre-multi-DC environment mirrors - #658

Open
NJona wants to merge 1 commit into
multi-dc-10-multi-dc-tests-docsfrom
multi-dc-11-drop-legacy-env-mirror
Open

refac(gcp): drop the pre-multi-DC environment mirrors#658
NJona wants to merge 1 commit into
multi-dc-10-multi-dc-tests-docsfrom
multi-dc-11-drop-legacy-env-mirror

Conversation

@NJona

@NJona NJona commented Aug 7, 2026

Copy link
Copy Markdown
Member

The migration to DataCenters is complete: no step reads the top-level
ControlPlaneNodes, CephNodes, GatewayIP, PublicGatewayIP or SshProxyIP
fields of CodesphereEnvironment any more. So mirrorPrimaryDataCenter has
nothing left to serve and goes away, along with the eight call sites that
kept it up to date.

The fields themselves stay, read-only: ensureDataCenters still adopts
them into the primary data center, which is what makes an infra file
written by an OMS from before multi-DC support usable for cleanup and
restart-vms. They are no longer written, so a fresh infra file describes
its data centers only under "datacenters" — omitempty keeps the obsolete
keys out of it instead of writing them empty.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com
Signed-off-by: Jona Neef Jona.Neef.97@gmail.com

@NJona
NJona force-pushed the multi-dc-11-drop-legacy-env-mirror branch from 46a15e1 to b1f5fb3 Compare August 10, 2026 14:16
@NJona
NJona force-pushed the multi-dc-11-drop-legacy-env-mirror branch from 5b3f214 to a843543 Compare August 10, 2026 15:47
@NJona
NJona force-pushed the multi-dc-11-drop-legacy-env-mirror branch 2 times, most recently from 8ad6a81 to c308bea Compare August 12, 2026 09:49
@NJona
NJona force-pushed the multi-dc-11-drop-legacy-env-mirror branch from c308bea to e40263e Compare August 13, 2026 12:48
@NJona
NJona force-pushed the multi-dc-11-drop-legacy-env-mirror branch from aa5765b to 6a96deb Compare August 14, 2026 07:01
The migration to DataCenters is complete: no step reads the top-level
ControlPlaneNodes, CephNodes, GatewayIP, PublicGatewayIP or SshProxyIP
fields of CodesphereEnvironment any more. So mirrorPrimaryDataCenter has
nothing left to serve and goes away, along with the eight call sites that
kept it up to date.

The fields themselves stay, read-only: ensureDataCenters still adopts
them into the primary data center, which is what makes an infra file
written by an OMS from before multi-DC support usable for cleanup and
restart-vms. They are no longer written, so a fresh infra file describes
its data centers only under "datacenters" — omitempty keeps the obsolete
keys out of it instead of writing them empty.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Jona Neef <Jona.Neef.97@gmail.com>
@NJona
NJona force-pushed the multi-dc-11-drop-legacy-env-mirror branch from 6a96deb to 4bd7326 Compare August 14, 2026 07:15
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.

1 participant