NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

NetApp PowerShell Toolkit 9.12.1.2302 / "New-NcVol" -language parameter broken/not working

MarcelM
5,881 Views

Hello *,

 

after upgrading NetApp PSTK to latest version 9.12.1.2302 on our win 2012R2 script host and running some dr scripts i noticed a possible error/bug in "New-NcVol" command.

When using the parameter -language PS runs the new new-ncvol command without any errors but no volume will be created. I tried every possible combination but no volume wil be created. When leaving out the parameter volume will be created but we need to have a different language from svm root volume.

Can anyone confirm the same problem when using -language?

Currently it seems like every version of PSTK has its own big bugs which leaves them nearly unusable.

8 REPLIES 8

ukauf
5,050 Views

I ran into the same issue with 9.14. Did you find a solution for this meanwhile?

MarcelM
4,964 Views

Hello,
luckily we are still running ONTAP 9.9.1 and 9.10.1 so i force my PS scripts to use NetApp PSTK at version 9.10.1.2111 and this helps us use every command we need without any errors.

 

Import-Module NetApp.ONTAP -MaximumVersion 9.10.1.2111 -ErrorAction SilentlyContinue

 

We did not try to use PSTK 9.14.1 yet - i was looking forward to this version but after your info it seems like every new version still has some errors. When we cant use the language parameter we cant script volume creation... maybe hope for PSTK 9.15.1....

saharsh
4,962 Views

Hi Marcel, could you please share us the debug logs of the command execution, it will help us to identify the issue. You can enable the debug logs using "Set-NaToolkitConfiguration debug" command.

ukauf
4,929 Views

I attached the log using the latest 9.14 Toolkit.

---- MODERATOR NOTE: Log removed per customer request ----

PWSH Output:

 

Name Address Vserver Version
---- ------- ------- -------
mysrv.mydom.com 10.142.1.104 NetApp Release 9.14.1: Tue Jan 23 21:48:01 UTC 2024
New-NcVol : Parameter set cannot be resolved using the specified named parameters.
At C:\Users\myself\Desktop\Voltest.ps1:47 char:1
+ new-ncvol -Name $Volumename -Aggregate aggr1 -Size $VolSize -Security ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-NcVol], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,DataONTAP.C.PowerShell.SDK.Cmdlets.Volume.NewNcVol

ukauf
4,747 Views

Dear Saharsh

I attached the log.

ukauf
4,649 Views

Hello Sahrash

Do you have any news about this issue? Will it get fixed in pstk 9.14 or any other release?

 

 

saharsh
4,124 Views

When using the PSTK command, we suggest utilizing the REST method. To troubleshoot the issue, please try removing the -ZapiCall parameter and let us know if the problem persists. In the meantime, attempt to reproduce the issue using ZAPI.

ukauf
891 Views

Hello Sarash

Same problem with 9.16.1. I can use the  -Language parameter in new-ncvol only when connected using -zapi. Using the REST connection the command fails.

Public