[Branch 25.03] Role assignment and DPU backports#86
Merged
crypticC0der merged 4 commits intocanonical:branch-25.03from Apr 21, 2026
Merged
[Branch 25.03] Role assignment and DPU backports#86crypticC0der merged 4 commits intocanonical:branch-25.03from
crypticC0der merged 4 commits intocanonical:branch-25.03from
Conversation
This allows the integration tests to invoke snaps (such as juju). In more recent versions of TOX, all environment variables are cut off from the subprocess invokation. Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com> (cherry picked from commit c906d3c)
Add RoleHandler that integrates with the role-distributor charm via the role-assignment relation. Roles use MicroOVN taxonomy: central (OVN central services), chassis (data plane), and gateway. Key design decisions: - Role assignment is a durable source of truth, re-evaluated on update-status, ovsdb-cms ready/broken, and cluster-changed events. - Applied roles are cached in StoredState for idempotency; the cache is invalidated when _dataplane_mode() mutates central outside RoleHandler. - Gateway config reads fail closed: transient ovs-vsctl failures block rather than clobbing existing ovn-cms-options from an assumed-empty value. - Relation broken keeps workload state unchanged but clears the cache and recomputes unit status. - The relation is optional; backward compatibility is preserved when no role-assignment relation exists. Assisted-By: Claude Code (claude-opus-4-6) Assisted-By: Codex (gpt-5.4-xhigh) Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com> (cherry picked from commit 1993b74)
we cannot remove doca-openvswitch-switch as it is depended on, so we remove ovs-vsctl. openvswitch-switch is marked as held by maas so we need to force remove it. Signed-off-by: MJ Ponsonby <mj.ponsonby@canonical.com> (cherry picked from commit 697a4fe)
Signed-off-by: MJ Ponsonby <mj.ponsonby@canonical.com>
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.
No description provided.