-
Notifications
You must be signed in to change notification settings - Fork 218
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
The Azure NetApp Files Backend should not report "online" upon receiving invalid credentials. #465
Comments
Fixes [issue NetApp#465](NetApp#465) **Describe the solution you'd like** As of v20.04, the Azure NetApp Files backend will report itself as being `online` even if its `backend.json` contains invalid credentials. The backend should report itself as being `offline` or `failed` in this scenario. **Describe alternatives you've considered** The current workaround is to initialize the backend with `tridentctl create backend` and then attempt to provision a volume through a `PersistentVolumeClaim` or wait for capacity pool discovery to take place.
Fixes [issue NetApp#465](NetApp#465) **Describe the solution you'd like** As of v20.04, the Azure NetApp Files backend will report itself as being `online` even if its `backend.json` contains invalid credentials. The backend should report itself as being `offline` or `failed` in this scenario. **Describe alternatives you've considered** The current workaround is to initialize the backend with `tridentctl create backend` and then attempt to provision a volume through a `PersistentVolumeClaim` or wait for capacity pool discovery to take place.
@carlosonunez can I ask you to clarify what "invalid credentials" means here? The reason I ask this is: ANF backends need 4 parameters to identify the ANF subscription that it needs to provision vols against: Based on what was explained above, it looks like the real problem would be the access permissions for the app registration (whose credentials are passed with Can you share the error message you observed when you tried to create a PVC on a backend that was reported online? |
@balaramesh , thanks for getting back to me. What I mean by the PR here is that I should see that I have invalid credentials or some other issue authenticating into Azure before I attempt to create a backend with Unfortunately I no longer have a screenshot of the error that I received, as I'm no longer working with the client using this provisioner. However, I did raise an issue with NetApp support at the time and referenced this issue and the pull request associated with it in that ticket. You might have better luck searching for the originating error internally. I hope that helps! |
This issue is fixed with commit 809f0d4 and will be included in the Trident 22.01 release. The ANF storage driver will discover if the backend credentials are invalid during driver initialization. |
Describe the solution you'd like
As of v20.04, the Azure NetApp Files backend will report itself as being
online
even if itsbackend.json
contains invalid credentials. The backend should report itself as beingoffline
orfailed
in this scenario.Describe alternatives you've considered
The current workaround is to initialize the backend with
tridentctl create backend
and then attempt to provision a volume through aPersistentVolumeClaim
or wait for capacity pool discovery to take place.Additional context
Add any other context or screenshots about the feature request here.
I'm working on a pull request that addresses this. Fork is at github.com/carlosonunez/trident. A link to the pull request will be submitted in the comments!
The text was updated successfully, but these errors were encountered: