I'm a NetApp GTS covering Bloomberg and trying to post this for my customer. My customer is having issues using the netapp_ontap Python Package Index (PyPi) and they are seeing requests sent to the wrong cluster, in a multi-cluster envirnonment. Here's some feedback from the customer: After I turned on the debug mode, we could see the following logs, the request was sent to nnapdh1-m and the error message came back with a different host nnapdh2 and the uuid in the url does not exist, any idea.
Debug output: 2023-11-17 10:40:58.639
2023-11-17 15:40:58,639 INFO volume.py:116 - Getting request to validate volume bvs_i19 in svm nnapmsg3-svm device nnapdh1 platform NETAPP
2023-11-17 10:40:58.640
2023-11-17 15:40:58,640 INFO netapp_opmgr.py:961 - Checking if volume, bvs_i19, exists in svm nnapmsg3-svm
2023-11-17 10:40:58.640
2023-11-17 15:40:58,640 INFO netapp_opmgr.py:880 - Finding volume bvs_i19 svm nnapmsg3-svm in host nnapdh1-m
2023-11-17 10:40:58.694
2023-11-17 15:40:58,694 DEBUG connectionpool.py:547 - https://nnapdh1-m:443 "GET /api/storage/volumes?svm.name=nnapmsg3-svm&name=bvs_i19 HTTP/1.1" 200 215
2023-11-17 10:40:58.767
2023-11-17 15:40:58,767 ERROR device.py:134 - Failed when checking if volume, bvs_i19, exists in svm nnapmsg3-svm
2023-11-17 10:40:58.767
2023-11-17 15:40:58,767 ERROR volume_processor.py:34 - Internal error. Call to device-manager library returned: Failed when checking if volume, bvs_i19, exists in svm nnapmsg3-svm(" Caused by <class 'netapp_ontap.error.NetAppRestError'>", "Caused by HTTPError('404 Client Error: Not Found for url: https://nnapdh2-m:443/api/storage/volumes/3bbfa45a-44aa-11eb-acdc-00a098edf6bb'): entry doesn't exist")
When the same script is run in a single cluster environment, no issues like above.
Per NetApp Support, it was confirmed that the GET VOL request was being sent to the wrong cluster. NetApp Support guidance was to open a discussion here for further support.