1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00

Merge pull request #10219 from openshift-cherrypick-robot/cherry-pick-10214-to-release-4.20

[release-4.20] OCPBUGS-73785: ensure deterministic zone ordering for control plane machines
This commit is contained in:
openshift-merge-bot[bot]
2026-01-16 20:07:46 +00:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -157,6 +157,9 @@ func (c *ClusterAPI) Generate(ctx context.Context, dependencies asset.Parents) e
if err != nil {
logrus.Warn(errors.Wrap(err, "failed to filter zone list"))
}
// Sort the zones by lexical order to ensure CAPI and MAPI machines
// are distributed to zones in the same order.
slices.Sort(mpool.Zones)
}
tags, err := aws.CapaTagsFromUserTags(clusterID.InfraID, installConfig.Config.Platform.AWS.UserTags)

View File

@@ -252,6 +252,9 @@ func (m *Master) Generate(ctx context.Context, dependencies asset.Parents) error
if err != nil {
logrus.Warn(errors.Wrap(err, "failed to filter zone list"))
}
// Sort the zones by lexical order to ensure CAPI and MAPI machines
// are distributed to zones in the same order.
slices.Sort(mpool.Zones)
}
pool.Platform.AWS = &mpool