lxc / incus

Powerful system container and virtual machine manager
https://linuxcontainers.org/incus
Apache License 2.0
2.78k stars 224 forks source link

Racing condition error on cluster join with restricted.cluster.groups set on default project #1390

Open victoitor opened 5 days ago

victoitor commented 5 days ago

Required information

Issue description

When trying to join a cluster and the default project is restricted and has restricted.cluster.groups set to a non-default cluster group, joining fails as follows.

Error: Failed to join cluster: Failed to initialize member: Failed to initialize storage pools and networks: Failed to update local member project "default": Invalid project configuration key "restricted.cluster.groups" value: Cluster gr
oup "<non-default cluster group>" doesn't exist                                                                                                                                                                                                                

Cluster join works normally after restricted.cluster.groups is removed on default project.