-
Notifications
You must be signed in to change notification settings - Fork 933
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
Unable to join LXD Cluster on 6.1 #13793
Comments
One Try again.... Cluster join works with minimal Initialization.
(finaly this both work)
|
Another Error.
|
joining lxd3 not work.
|
Thanks @TorbenMartin, I am able to reproduce this with 6.1/stable and Ubuntu 24.04 VMs. We are looking into this. |
When defining networks in a cluster, you first need to use For your reference: https://documentation.ubuntu.com/lxd/en/latest/howto/cluster_config_networks/. |
I was waiting one night. And now can join Cluster with LXD3
|
Please can you provide output of |
I've not been able to reproduce this issue with:
host 1
host 2
|
@boltmark do you have a reproducer? |
|
@TorbenMartin and its working now? |
To reproduce, initialize lxd on a node and add a storage pool other than the default. Then, run @TorbenMartin Can you confirm that this works when using fresh VMs that have not previously initialized lxd or do not have any existing storage volumes other than default? |
@boltmark please can you post your reproducer steps in full |
i not initialize lxd many times.
----->
Here LXD2v2:
|
it was working add server2 to server1 in cluster when i init the first Node with --minimal this test VMs are a fresh auto/cloud-init installation by the Host. Host + VMs have same Kernel.
The VMs are connected into a Network that i created in LXD on the Host. I just upgraded the Host a few days ago from LXD 5.21 to 6.1 |
Im still quite confused what the reproducer steps are fot a fresh system. What are you doing differently compared to my working example above? |
Its sounding like you have some existing state. |
Did you run this Ubuntu 24.04 VMs on a LXD Hypervisor or do you run it on another Virtualization Platform? Maybe something is wrong with the cloud-init / cloud disk image?! Just tested on Ubuntu 22.04 VMs. Run LXD 6.1 |
Below is the only way that I can reproduce a similar error, but this seems different from what @TorbenMartin is running into as he is not using Host 1:
Host 2:
|
I ran it inside 2 fresh ubuntu:24.04 lxd vms |
I think i found out. lxd1v4
lxd2v4
my first Process was.
.... maybe this not work. |
Ah this might be the issue:
There is s bug in snapd that incorrectly initializes lxd on reload. Try doing:
|
Ah ok so ur initializing both hosts first and then trying to cluster them. This is quite sn unusual scenario, but lxd should be doing some consistency checks iirc to check they are compatible. In this case it looks like the two local storage pool settings are conflicting. |
My Process now: Result:
Finaly i can join the Cluster.
Join success:
|
If you've not started lxd you dont need to reload it. |
Ok great so the main issue is that "snap restart lxd" causes lxd to be initialized if not already which then reveals the issue @boltmark has identified. |
https://ubuntu.com/blog/lxd_ui i didnt know that it need to be active started or initialize by myself before i enable the UI |
It doesn't since 5.21 onwards |
The snap restart issue is here btw https://bugs.launchpad.net/snapd/+bug/2028141 |
Hey.
Running Ubunu Server 24.04 on HOST System with LXD 6.1
Created 2 VMs with Ubuntu 24.04 and installed LXD 6.1 and want to join Cluster for VXLAN Tests behind OpenWRT LXC
But already Problems on Beginning... with joining the Cluster after fresh Install:
Server 1:
Server 2:
The text was updated successfully, but these errors were encountered: