Repository navigation
build(clusterd): upgrade MicroCluster to v3.1.3 LTS - #1049
hemanthnakkina wants to merge 1 commit into
Conversation
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
left a comment
There was a problem hiding this comment.
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.
| 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. |
There was a problem hiding this comment.
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}") |
There was a problem hiding this comment.
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?
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