5 Commits

Author SHA1 Message Date
Guillaume Boutry
0cc6521539
[clusterd] apply modification due to microcluster lts
Sunbeam snap is now based on microcluster LTS. This new version brings
breaking changes, such as moving endpoints to different api groups, and
renaming the cluster groups into core.

Change-Id: I93ffd4a12d0e66ffa43fe94291a24611670896ac
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
2024-09-23 18:20:27 +02:00
Guillaume Boutry
c81a45e5f9
[sunbeam-clusterd] implement tls certificates interface
Optionally allow clusterd to be integrated with tls certificates
interface. When integrated, get a certificates managed by the leader
replacing the cluster certificates auto-generated by microcluster.

Change-Id: Ia019bd533962976ddc68e2b93bcdcbe28a5cff9c
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
2024-06-27 15:54:11 +02:00
Guillaume Boutry
a4582d130a
Disable scale tests on clusterd
Disable scale tests on clusterd until they are more stable.

Change-Id: I02ac5a375b04f5b5589b8a44161061682ba8029c
2024-01-31 21:19:31 +01:00
Guillaume Boutry
abf7310786
Handle member removal gracefully
If roles are not settled (voters is not an odd number), leaving the
cluster might break things. Waiting for roles to settle before leaving,
and afterwards on the leader.
Pass force=1 when deleting cluster member.
Cluster removal happens when a juju unit is departing.

Change-Id: Ic9a7273be36a6cbb117b74bcfd94cef116a3b603
2024-01-30 11:27:21 +01:00
Guillaume Boutry
619976fe43
Implement sunbeam-clusterd
Sunbeam-clusterd can scale up and down.
Currently, the external address in bound to the peers relationship.
Exposes the action `get-credentials` which returns the URL. In the long
term, it will return the credentials to access securely clusterd.

Change-Id: I8b91efe6d96198f5ad3634b9747161225381ded6
2024-01-25 12:30:54 +01:00