I've seen a few posts regarding the 'Update-NcVol' cmdlet and how it can be problematic. I've also attempted the multiple syntaxes that I've come across, however each attempt has resulted in failing to update the object. I'm hoping someone might be able review the following snippet and let me know if there are any potential issues with it or another way to update the tiering policy (short of using Invoke-SSH). This syntax was taken directly from the Get-Help page for the cmdlet. Thanks! Environment: PSVersion: 5.1.14393.5127 CLRVersion: 4.0.30319.42000 DataonTap Version : 9.10.1.2111 $q = Get-NcVol -Template
Initialize-NcObjectProperty $q VolumeIdAttributes
$q.VolumeIdAttributes.Name = "vol1"
$q.VolumeIdAttributes.OwningVserverName = "svm_0"
$a = Get-NcVol -Template
Initialize-NcObjectProperty $a VolumeCompAggrAttributes
$a.VolumeCompAggrAttributes.TieringPolicy = "all"
Update-NcVol -Query $q -Attributes $a Output : SuccessCount : 0
FailureCount : 1
SuccessList : {}
FailureList : {vol1}
... View more
hey I'm trying to use the volume modify operation to modify volume attributes and the api fails to modify it , I checked the volumeModifyResponse class and it's empty. Also I checked the values on the cli and it remains the same as before . Can anyone help me figure out if something is needed for this function or is it error in the api. I'm using the ontap nmsdk 9.7
... View more
Hi guys, I have a playbook where I'm using the na_ontap_interface module in a lab. I can create a broadcast-domain-wide or local-only LIF in the default (cluster) SVM. I can also set the LIF state up or down, but I've not been able to get the playbook to delete the LIF. Any ideas what the issue might be? Here's the environment: ansible [core 2.13.1] netapp-lib 2021.6.25 python version = 3.9.13 ONTAP 9.10.1 sim The section of the runbook that doesn't work is as follows. No error is given, it just silently fails - as far as I can tell, even with -vvv output. - name: Delete LIF na_ontap_interface: state: absent interface_name: "{{ cluster }}-01_mgmt_auto" vserver: "{{ cluster }}" hostname: "{{ cluster_mgmt }}" <<: *login Runbook and input yaml files attached.
... View more
Hello, I am trying to deploy an ontap select with ansible and I find this error, can you help me? TASK [Create interface NFS ADM] ************************************************ task path: /var/rundeck/projects/Operations/ontap/tasks/config_nfs_service.yml:50 fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "value of failover_policy must be one of: disabled, system-defined, local-only, sfo-partner-only, broadcast-domain-wide, got: system_defined"} Thanks and regards
... View more