failed to create azure file pvc if there is no storage account in current resource group #56556
Closed
Description
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
Uncomment only one, leave it on its own line:
/kind bug
/kind feature
What happened:
When create an azure file PVC, there will be error if there is no storage account in current resource group, error info would be like following:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ProvisioningFailed 10s (x5 over 1m) persistentvolume-controller Failed to provision volume with StorageClass "azurefile-premium": failed to find a matching storage account
What you expected to happen:
If there is no storage account in current resource group, k8s should create a storage account and then create an azure file on that storage account
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
- Kubernetes version (use
kubectl version
): v1.10.0 - Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a
): - Install tools:
- Others:
/sig azure
/assign