NetApp driver needs to handle auth failures better
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Triaged
|
Low
|
Unassigned |
Bug Description
Description
===========
When using the NetApp driver, we found that, if the auth password has special characters, the failure has a weird way of showing up. This may throw the troubleshooter into rabbit holes if the ONTAP system is reachable, or if there's some API access issue exists beyond basic authentication.
The issue was hit in a Kubernetes deployment of OpenStack Manila; and relevant configuration is here: https:/
but this may be reproduced easily even on DevStack.
Steps to reproduce
==================
A chronological list of steps which will help reproduce the issue you hit:
* Configure the NetApp driver with OpenStack Manila with the following config:
```
[netapp]
netapp_
netapp_login = admin
netapp_vserver = ntap-rhv-dev-rhos
netapp_
```
Expected result
===============
If the password has special characters, I expect that the driver will assist in escaping these appropriately prior to the ONTAP API communication; or, a proper error message is displayed so that the administrator escapes special characters appropriately in their configuration. In the example above, changing the password to "pa\$\$w0rd" allowed authentication to succeed.
Actual result
=============
An error log from the failure:
2024-04-10 12:20:33.458 16 ERROR manila.
1
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
2024-04-10 12:20:33.458 16 ERROR manila.
Environment
===========
1. version of OpenStack Manila: 2023.1 / Antelope
2. storage backend information:
NetApp ONTAP
NetApp Release 9.9.1P4: Mon Oct 11 09:20:31 UTC 2021
See additional triage information at https:/ /meetings. opendev. org/meetings/ manila/ 2024/manila. 2024-04- 25-15.00. log.html