-
Notifications
You must be signed in to change notification settings - Fork 33
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
Ensure clustered backend pools are created and not left in pending state #513
Conversation
Demo starting at https://lxd-ui-513.demos.haus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change needs more work.
When I try to create with a size value, I get this error:
The error is shown on the creation page, without any navigation, but the storage pool is actually created and has the "Pending" state. However, since no navigation happens, the user thinks that they can retry by just removing the size value, but that would fail, because a storage pool with that name already exists, resulting in only more frustration.
This needs UX improvement:
- Disable the size field, if it's not possible to set a fixed size because it's cluster member specific.
- Disable ZFS driver option if the cluster is not VM-based - I don't know if this is feasible, but it's better than getting a postponed feedback, so it would be good to investigate a way to do it.
Did you run the cluster nodes as containers or as VMs when testing?
It should be possible. Did you review the code yet? Under the hood we are triggering requests for each cluster member to create a local pool with all fields. Afterwards one request to create the cluster wide pool. It could be the last request must not include a size though.
That is a good idea. Will try to find a way to know if the cluster nodes are running as container. If not, I am not sure about the relevance, it might be very uncommon to run a cluster on containers and its just us using this as a testing backend. |
VMs.
Yes, I had already seen and understood the 3 changes in the code. And still, I'm always getting that error for a local cluster made of 3 VMs created following the guide in the wiki. |
I see, thanks for providing the details. I think we have to strip the size (and likely other node specific properties) from the last request triggering the cluster-wide storage pool creation. |
0b02052
to
2137c93
Compare
Adjusted the storage creation for clustered backends. It omits node-specific config for the cluster storage. Also updated the edit storage, which needs to also update the cluster wide pool and needs the same adjustment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, just one tiny question about a function name.
2137c93
to
4ce2fe4
Compare
Done
QA