Repository navigation
Conversation
On 2024.1/2025.1 the compute and network roles are mutually exclusive unless feature.split-roles is enabled. The local provider enforces this at bootstrap/join, but the MAAS provider did not: a machine tagged with both roles passed `sunbeam deployment validate` and the deployment only failed much later, while reapplying the openstack-hypervisor plan. - Add MachineRoleCombinationCheck, a per-machine check run by `sunbeam deployment validate` (via DeploymentMachinesCheck) and `sunbeam deployment machine validate`, so the problem is reported before bootstrap. - MaasAddMachinesToClusterdStep fails early as a backstop, so `sunbeam cluster bootstrap` / `deploy` stop before any machine is deployed if validation was skipped. Both checks are skipped when feature.split-roles is enabled. The error tells the user to remove one of the tags, or to enable split roles together with the gates it requires (feature.microovn-sdn); the required gates are read from FEATURE_GATES rather than hard-coded. Closes-Bug: https://bugs.launchpad.net/snap-openstack/+bug/2140652 Assisted-By: Claude Opus 5.5 Signed-off-by: Richard Kosegi <richard.kosegi@dnation.cloud> (cherry picked from commit 30c430b)
Author
|
this is cherry-pick of #1066 to stable/2024.1 |
gboutry
approved these changes
Dec 3, 2026
Collaborator
|
Let's wait for 2025.1 to land before 2024.1 |
hemanthnakkina
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On 2024.1/2025.1 the compute and network roles are mutually exclusive
unless feature.split-roles is enabled. The local provider enforces this
at bootstrap/join, but the MAAS provider did not: a machine tagged with
both roles passed
sunbeam deployment validateand the deployment onlyfailed much later, while reapplying the openstack-hypervisor plan.
sunbeam deployment validate(via DeploymentMachinesCheck) andsunbeam deployment machine validate, so the problem is reportedbefore bootstrap.
sunbeam cluster bootstrap/deploystop before any machine isdeployed if validation was skipped.
Both checks are skipped when feature.split-roles is enabled. The error
tells the user to remove one of the tags, or to enable split roles
together with the gates it requires (feature.microovn-sdn); the
required gates are read from FEATURE_GATES rather than hard-coded.
Closes-Bug: https://bugs.launchpad.net/snap-openstack/+bug/2140652
Assisted-By: Claude Opus 5.5
Signed-off-by: Richard Kosegi richard.kosegi@dnation.cloud
Links
Jira card: OPEN-5029