Closed victoitor closed 1 week ago
That's somewhat expected and a common parttern within the Incus API.
We have a few places where we have hard bi-directional dependencies, think things like instance and profiles or cluster member groups and cluster members. In those cases, the API shows it as its own object property, usually a list, rather than through key/value configuration.
Key/value configuration can be validated at time of it being configured and/or at time of use (e.g. instance start), but changing the referred object doesn't update what's referring to it.
Other examples of that would be other project restrictions that refer either to network names or uplink names, but also things like volume names in instance disk devices or profiles, network interface names in those too, ACL names, ...
We did try to be stricter in the past but that came with a number of issues:
Maybe the best approach here is to add a mention of that to the project documentation page. We could also have the placement logic here fail with "Couldn't find cluster group XYZ" rather than just say that it couldn't find somewhere to put an instance.
Maybe the best approach here is to add a mention of that to the project documentation page. We could also have the placement logic here fail with "Couldn't find cluster group XYZ" rather than just say that it couldn't find somewhere to put an instance.
I would consider a very good idea.
Issue description
When renaming a cluster group, projects configured with
restricted.cluster.group
are not adjusted, leaving projects in an inconsistent state.Steps to reproduce
restricted.cluster.group
to the created group.These steps can be seen in the following commands