#Problem configure Trident Netappfiles Backend?

1 messages · Page 1 of 1 (latest)

copper loom
#

Hi friends!
I m pretty new here and AstraTrident & netappfiles.I m eager to learn and research but I failed to find any solution. If anyone help would appreciate well for me.I have a very complex moduler terraform configuration. I followed this doc here https://learn.microsoft.com/en-us/azure/aks/azure-netapp-files. I configured "resource provider" resource in my main.tf file in my main directory. Then I configured "netappfiles account" and "netappfiles pool" resources in the "storage" module. Also configured "network vnet subnet" resource in "networking" module. Then I followed this documentation https://learn.microsoft.com/en-us/azure/aks/azure-netapp-files-nfs. I skipped the section "Statically configure for applications that use NFS volumes" because I would like to provision dynamically. I configured the "Helm release trident resource" in my "system" module according to "Install Astra Trident using Helm" section. I defined a "backend" in values.yaml file in "system" module. I configured a "storage class" resource in my "applications" module. I did not define "pvc" in terraform configuration.My ultimate aim is to create "pvc" in the first stage of the Jenkins pipeline. Because I need ephemeral and sharable pvc.After these when I run "terraform apply" command All the resources created successfully. When I trigger thepipeline It seems PVC created but in a "PENDING" situation. When I investigate PVs there are no PV related our netappfiles. Not created. When I look at the log records of trident controller there is an error like that "GRPC error: rpc error: code = InvalidArgument desc = no available storage for access modes: [ReadWriteMany]".I have a Jenkins controller running a default namespace. Jenkins agents workers normally doesn live until jenkins pipeline triggered. Jenkins agents will be created dynamically in a another namespace after pipeline triggered. I added my codes to the file related to the above approach.Many thanks beforehand!Best regards!

Learn how to configure Azure NetApp Files for an Azure Kubernetes Service cluster.

Describes how to statically and dynamically provision Azure NetApp Files NFS volumes for Azure Kubernetes Service.

plain shoal
#

Not sure what is wrong, most of this is configured in MS ANF. MS links are included in Trident docs also.
I don’t see the Trident ANF driver mentioned:
storageDriverName Name of the storage driver "azure-netapp-files"
Here are Trident doc pages for ANF backend:
https://docs.netapp.com/us-en/trident/trident-use/anf.html
https://docs.netapp.com/us-en/trident/trident-use/anf-prep.html
https://docs.netapp.com/us-en/trident/trident-use/anf-examples.html

copper loom
#

Thank you for your comment. You mentioned about "storageDriverName "
Do you mean my reference is wrong? I did not get what you mean. Please can you clarify a little bit more?
Thanks
S

plain shoal
#

The GRPC error alludes to needing a csi driver, which for Trident to ANF storage is: 'azure-netapp-files' , as shown in Trident doc link above.
In the link you posted above, https://learn.microsoft.com/en-us/azure/aks/azure-netapp-files,
follow the steps in section: 'Before you begin',
Then create a backend: https://learn.microsoft.com/en-us/azure/aks/azure-netapp-files-nfs
-> What does your backend config show?
#kubectl get tbc -n trident -o yaml', should include
spec: storageDriverName: azure-netapp-files.
Then create storageClass config to include:
backendType: "azure-netapp-files"
Compare to example backend configs and storageClass configs here:
https://docs.netapp.com/us-en/trident/trident-use/anf-examples.html#example-configurations

Describes how to statically and dynamically provision Azure NetApp Files NFS volumes for Azure Kubernetes Service.