-
Notifications
You must be signed in to change notification settings - Fork 302
Description
Is your feature request related to a problem? Please describe.
When editing an existing Azure cluster that was created with unmanaged disks, the node pool form in the UI still defaults "Use managed disks" to true when adding a new node pool.
If the cluster uses an availability set with unmanaged disks, Azure does not allow mixing managed and unmanaged disks in the same availability set, and node creation can fail with an error like:
error creating machine: error in driver during machine creation: cannot convert non-managed availability set jferraz-test-as to managed availability set
Describe the solution you'd like
When updating or editing an existing Azure cluster, the default value of "Use managed disks" in the node pool form should match the current cluster / node pool configuration.
For example:
- If the existing node pool(s) are using unmanaged disks, then when the user clicks "Add node pool", the "Use managed disks" option should default to
false. - If the existing node pool(s) are using managed disks, then the option can stay
trueby default.
This will help avoid mixing disk types inside the same availability set and prevent node creation errors.
Additional context
This is a follow up to #16184, which changed the default to use managed disks.
The issue appears when:
- A cluster is created on Azure using an availability set with unmanaged disks.
- Later, in the UI, the user clicks "Add node pool" for this cluster.
- The "Use managed disks" option is
trueby default and the user keeps this value. - Node creation fails with the error about converting a non-managed availability set to a managed availability set.