You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an existing issue already for this feature request/idea?
I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.
What problem is this feature going to solve? Why should it be added?
The ENABLE_AZURE_PVC_UPDATES configuration was introduced as a workaround for a missing feature in the AKS platform that was preventing CloudnativePG users from resizing volumes.
This feature was implemented at the end of 2022, so it is now time to remove the ENABLE_AZURE_PVC_UPDATES configuration.
Describe the solution you'd like
Remove the ENABLE_AZURE_PVC_UPDATES configuration in version 1.26.0
After discussing with @armru, it's unlikely that anyone is still using this workaround after more than three years, as it is no longer needed. I've updated the description to remove the option in version 1.26.0.
@mnencia: I'm using it because I thought I had to, but, I can try turning it off. This was the primary reason I didn't use the helm chart, at the time, I don't think it exposed the way to pass this.
@jmealo, based some preliminary tests, the feature should function correctly when the flag is set to "off" in any currently available version of the Azure CSI driver. However, it appears to remain stuck when the flag is enabled. It would be very helpful if you could confirm this.
@mnencia: As it turns out, I can’t reliably test whether turning this off breaks anything — because it seems I didn’t actually apply the config correctly in the first place to enable the flag.
That said, I can 100% confirm that PVC resizing works fine on Azure. All of our AKS clusters have the CSI driver available, and volume resizing is functioning as expected.
For context, I don’t use Helm — just the operator directly. Here’s how I thought I was enabling this flag:
When triggering two operations (VM +disk update) at the same time, the operator asks the pod restart for VM upgrade to complete. Azure preserves both PVC conditions at the same time, while AWS & GCP removes the Resizing one when it adds the FileSystemResizePending. This will force the operator to wait and not recreate the pod on the new VM.
diff --git a/pkg/reconciler/persistentvolumeclaim/resources.go b/pkg/reconciler/persistentvolumeclaim/resources.go
index 1ca30256f..bcaaef34a 100644
--- a/pkg/reconciler/persistentvolumeclaim/resources.go
+++ b/pkg/reconciler/persistentvolumeclaim/resources.go
@@ -65,15 +65,21 @@ external:
return true
}
-// isResizing returns true if PersistentVolumeClaimResizing condition is present
+// isResizing returns true if PersistentVolumeClaimResizing condition is present and not PersistentVolumeClaimFileSystemResizePending
func isResizing(pvc corev1.PersistentVolumeClaim) bool {
+ isResizing := false
+ isFileSystemResizePending := false
+
for _, condition := range pvc.Status.Conditions {
if condition.Type == corev1.PersistentVolumeClaimResizing {
- return true
+ isResizing = true
+ }
+ if condition.Type == corev1.PersistentVolumeClaimFileSystemResizePending {
+ isFileSystemResizePending = true
}
}
- return false
+ return (isResizing && !isFileSystemResizePending)
}
Activity
mnencia commentedon Apr 7, 2025
This is linked to #5974
[-][Feature]: Deprecate ENABLE_AZURE_PVC_UPDATES configuration parameter[/-][+][Feature]: Remove ENABLE_AZURE_PVC_UPDATES configuration parameter[/+]mnencia commentedon Apr 7, 2025
After discussing with @armru, it's unlikely that anyone is still using this workaround after more than three years, as it is no longer needed. I've updated the description to remove the option in version 1.26.0.
jmealo commentedon Apr 7, 2025
@mnencia: I'm using it because I thought I had to, but, I can try turning it off. This was the primary reason I didn't use the helm chart, at the time, I don't think it exposed the way to pass this.
mnencia commentedon Apr 7, 2025
@jmealo, based some preliminary tests, the feature should function correctly when the flag is set to "off" in any currently available version of the Azure CSI driver. However, it appears to remain stuck when the flag is enabled. It would be very helpful if you could confirm this.
jmealo commentedon Apr 7, 2025
@mnencia Could you help explain what you mean by it being "stuck" when it's on? 🤔 I can try turning it off for sure. What would I need to do to test?
mnencia commentedon Apr 7, 2025
@jmealo After a resize, the Cluster gets stuck in
Waiting for the instances to become activephase.jmealo commentedon Apr 7, 2025
I've never seen that with it turned on. Will try to test this week.
jmealo commentedon Apr 8, 2025
@mnencia: As it turns out, I can’t reliably test whether turning this off breaks anything — because it seems I didn’t actually apply the config correctly in the first place to enable the flag.
That said, I can 100% confirm that PVC resizing works fine on Azure. All of our AKS clusters have the CSI driver available, and volume resizing is functioning as expected.
For context, I don’t use Helm — just the operator directly. Here’s how I thought I was enabling this flag:
When I check the Environment
ConfgiMap:When I describe the controller manager pod:
jmealo commentedon Apr 8, 2025
👍 I vote to remove this.
nfaust-edb commentedon Apr 8, 2025
When triggering two operations (VM +disk update) at the same time, the operator asks the pod restart for VM upgrade to complete. Azure preserves both PVC conditions at the same time, while AWS & GCP removes the Resizing one when it adds the FileSystemResizePending. This will force the operator to wait and not recreate the pod on the new VM.
mnencia commentedon Apr 9, 2025
This is the commit in the azuredisk-csi-driver that fixes the issue kubernetes-sigs/azuredisk-csi-driver@8bee39b
It was released in version 1.11.0
feat: remove Azure CSI driver resize workaround (#7297)