Skip to content

build(clusterd): upgrade MicroCluster to v3.1.3 LTS - #1049

Open
hemanthnakkina wants to merge 1 commit into
canonical:mainfrom
hemanthnakkina:feat/microcluster-v3
Open

hemanthnakkina wants to merge 1 commit into
canonical:mainfrom
hemanthnakkina:feat/microcluster-v3

Conversation

@hemanthnakkina

@hemanthnakkina hemanthnakkina commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Port the daemon and database bindings to the v3 API. Preserve the Sunbeam schema and existing clusterd state across the upgrade.

Revoke join tokens through the local control endpoint and recognize wrapped token errors.
Document the rolling refresh and revert checks.

Assisted-By: codex-gpt6.2-sol

QA steps

Deploy suneam single node

Links

Jira card: OPEN-4996

Port the daemon and database bindings to the v3 API.
Preserve the Sunbeam schema and existing clusterd state
across the upgrade.

Revoke join tokens through the local control endpoint
and recognize wrapped token errors.
Document the rolling refresh and revert checks.

Assisted-By: codex-gpt6.2-sol

@gboutry gboutry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested a three-node clusterd upgrade and rollback locally. Both worked and preserved the existing state. Before merging, I’d like to run the same check with the built snap through the normal MAAS refresh flow. We’ll also need to update the sunbeam-clusterd charm.

Comment on lines +39 to +41
Start with healthy membership and quorum. When the schema version
stays the same, refresh one clusterd member at a time and wait for it to
come back online before refreshing the next member.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MAAS refresh moves on as soon as the charm action returns. Could we test this on three units and check that clusterd can read the database before moving on to the next unit? Please cover a same-schema revert and a schema-changing upgrade too, since the latter can leave refreshed units waiting for their peers.

Raises TokenNotFoundException if token does not exist.
"""
self._delete(f"/core/1.0/tokens/{name}")
self._delete(f"/core/control/tokens/{name}")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got a 404 in both directions when the client and daemon were on different versions. Both matching pairs worked. The CLI normally talks to the daemon from its own snap. Could we document the new route for direct API callers and check token revocation after refresh and revert?

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.

2 participants