-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing a Microcloud cluster member does not remove the underlying LXD cluster member #160
Comments
@masnax @markylaing do you know what the expected behaviour here is? Thanks |
It looks like the CLI only removes the microcluster member and does not make any calls to LXD, Ceph, or OVN microcloud/microcloud/cmd/microcloud/cluster_members.go Lines 118 to 140 in da6d8a4
I agree with @gabrielmougard this should remove the node from all of them. We will need to figure out what to do with running instances, especially those on local storage. |
@markylaing there is this #33, which previously mentionned the problem we're trying to solve. |
I think it would be fair to error out if trying to remove a node with local instances. The user should sort out what they want to do with those instances first before removing the node. Maybe a I think it would make sense for the time being to look into adding a Supposedly MicroOVN fully supports this already, so that one is straightforward. LXD can check for local instances and fail if MicroCeph won't work for now though, so we will need to error if that's installed. We could have an |
Sounds good! |
MicroOVN uses a microcluster hook to define how a member is removed:
Since microceph also uses microcluster it can do the same. We'll just need to implement the logic for LXD. |
Having a simple 3 nodes cluster configuration like so:
When I want to remove a microcloud node with
microcloud cluster remove v3
for example, this works as expected (for example, I go onv2
a list the microcloud members)But on every node, if I do a
lxc cluster list
, I see all the members:This behaviour is not very 'symmetric' with
microcloud init
that creates underlying LXD cluster members. I would expectmicrocloud cluster remove <node_name>
to remove the underlying LXD cluster member (the one listed withlxc cluster list
) as well.I'm also curious to know how it behaves with microceph/microovn: does a
microcloud cluster remove <node_name>
triggers an automaticmicroceph cluster remove <node_name>
/microovn cluster remove <node_name>
as well ? I don't know what is the expected behaviour here, but I'd say that if we remove a microcloud node, we also would like to remove its associated node in the microceph / microovm cluster as they are meant to work all together..The text was updated successfully, but these errors were encountered: