I posted this on a different board originally, but I think it belongs here maybe? I have a sandbox cluster running 9.11.1P6 that I used to test a Powershell script I developed using the 9.11.1.2208 version of the PowerShell Toolkit. The following line works in the sandbox: $destpath = ($vserver+":"+$destinationvolume) $sminfo = Get-NcSnapmirror -Destination $destpath $sminfo then contains all the parameters relating to a specific snapmirror relationship which I use for automation. FYI, I connect to the controller at a previous point in the script and the variables are all set correctly. However, when I try to run the same script against a production cluster running Data ONTAP 9.11.1P5, it fails and $sminfo returns an empty object. I have tried adding -ONTAPI and -ZapiCall but that did not work. For business reasons I cannot upgrade the production cluster for several months so I need to find out if there is a problem with my script or a problem with P5. I checked the ONTAP release notes and cannot find anything specific to this problem. Any insight would be appreciated.
... View more
I am trying to create new policies in OnTap 9.11 and it to cluster. Error I m getting "error_message": "Field "scope" cannot be set in this operation", "msg": "Error when calling '/storage/qos/policies': {'target': 'scope'}", based on https://library.netapp.com/ecmdocs/ECMLP2882307/html/#/storage/qos_policy_create "scope": "cluster" is a valid option. I am using ansible Module ' netapp.ontap.na_ontap_restit:' and body looks like this body: name: abhiClusterFixedQosTest fixed: max_throughput_iops: 0 capacity_shared: true max_throughput_mbps: 0 min_throughput_iops: 0 min_throughput_mbps: 0 svm: name: "abhitest001" scope: 'svm' # or scope: 'cluster' but neither works Code works if i am not using scope as an option but then the policy is created for SVM, more details here 'https://discord.com/channels/855068651522490400/1082967001770774538/1082967001770774538 this is error code 262196 Field cannot be set in this operation. This was added in 9.11 Scope (9.11) string Scope of the entity. Set to "cluster" for cluster owned objects and to "svm" for SVM owned objects. Enum: [ cluster, svm ] Scope option is not present in the command level as well. I also tested this on ontap 9.12 with same results. Thanks for any inputs. Abhi
... View more
Hi folks, If I use the REST API along with an SVM management IP, creating a volume or volume clone fails. It doesn't return an HTTP error, but in the "Events & Jobs" section, I see an error message indicating that an aggregate doesn't exist. However, issuing the same volume creation command using the cluster management IP works fine. Perhaps the SVM doesn't have visibility to the aggregate. Just a guess. REST command and error message on server: ------------------------------------ curl -u vsadmin:FAKE_PASSWORD -X POST --data {\"name\":\"vol_create_test_1\",\"size\":\"1000000000\",\"svm.name\":\"svm1\",\"aggregates.name\":[\"ONTAP912clst_VM_DISK_1\"]} -k https://172.20.2.55/api/storage/volumes ------------------------------------ "POST /api/storage/volumes/d535ab75-bc27-11ed-8613-00a0b8fd52c5","failure","Aggregate ONTAP912clst_VM_DISK_1 not found. Reason: entry doesn't exist. ","2023-03-06T14:04:38+00:00","2023-03-06T14:04:38+00:00"
... View more
Hi Everyone, I'm looking for ONTAP API to get metrics of individual volume like last_accessed_time and last_io_accessed_time similar . Thanks in advance Kalyan
... View more
Hey Everyone , I’m trying to get volume metrics for a volume and it returns an empty list. Could you please help with with what I was doing wrong . Below is the snippet which returns an empty list from netapp_ontap.resources import VolumeMetrics list(VolumeMetrics.get_collection(vol_uuid))
... View more