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
ARO (NFS): subnets under resource group '123' was not found #571
Comments
|
my guess is that the service account has no read access to the network/subnet |
|
fixed missing , in cloud-config and added subnetName but similar issue. |
|
The SPN (aadClientId) has Contributor access rights to the entire subscription. Log: |
|
would you use apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: azurefile-csi
provisioner: file.csi.azure.com
parameters:
resourceGroup: EXISTING_RESOURCE_GROUP_NAME # optional, only set this when storage account is not in the same resource group as agent node
storageAccount: EXISTING_STORAGE_ACCOUNT_NAME |
|
For your original error, could you make sure the following resource id exists? it's not permission issue. |
|
Hi Andy, that is what I currently try. here my class kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: azure-file-nfs
provisioner: file.csi.azure.com
parameters:
protocol: nfs
location: canadacentral
resourceGroup: CL-EXT-OCP-NPRD-RG
storageAccount: ocpnfsstg
secretNamespace: kube-system
reclaimPolicy: Retain
volumeBindingMode: Immediate |
|
got it working. RG for VNET was different and needed to be fixed in cloud config. |
What happened:
SMB Works,
NFS Fails:
Error:
The Resource 'Microsoft.Network/virtualNetworks/subnets' under resource group 'CL-EXT-OCP-NPRD-RG' was not foundWhat you expected to happen: Get NFS PVC
How to reproduce it: Yes request new PVC
Anything else we need to know?: ARO has existing Network.
cloud-config
Logs:
csi-azurefile-controller-7db68c9c5c-z8hj7-azurefile_red.log
Environment:
kubectl version): OC Server Version: 4.5.31 Kubernetes Version: v1.18.3+e574db2uname -a): 4.18.0-193.41.1.el8_2.x86_64 cri-o://1.18.4-6.rhaos4.5.gitbe796d1.el8The text was updated successfully, but these errors were encountered: