feat: add role-assignment requirer integration#72
Draft
gboutry wants to merge 4 commits intocanonical:mainfrom
Draft
feat: add role-assignment requirer integration#72gboutry wants to merge 4 commits intocanonical:mainfrom
gboutry wants to merge 4 commits intocanonical:mainfrom
Conversation
This prevents maturin from trying to download cargo (which fails in the charmcraft build container on building puccinialin) and instead uses a well defined rust toolchain version. Follows examples from the data platform team[0]. 0: https://github.com/canonical/opensearch-operator/blob/2ce3ea4186d193b7bef0ba5baa06d900168b8d67/charmcraft.yaml#L77 Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
Ensure setuptools-scm cyclic dependencies affected versions are excluded from the build dependencies. Related-Bug: pypa/setuptools-scm#1302 Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
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>
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>
e91f3f2 to
cf6b237
Compare
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.
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:
Requires: