#PowerShell Toolkit failures increasing

1 messages · Page 1 of 1 (latest)

mystic nest
#

We have been using NetApp PowerShell Toolkit for many years and it has been reasonbly predictable until now. Suddenly, scripts starts to fail after upgrading (in this case to module NetApp.ONTAP version 9.14). Scripts that completed in seconds takes several minutes. One example:

  • Create share with Add-NcCifsShare
  • Wait (sleep) for 20 seconds for the share to be created. 2 seconds should be more than enough...
  • Copy an ACL from a template volume with Set-Acl, but this fails as the share does not yet exist!
    (PowerShell 7.2.5 @ Windows Server 2019)

Listing snapshots, as described in a previous post, is ridiculously slow. Seriously, a cmdlet returning one or two snapshots per minute is totally useless for large-scale automation.

And there are numerous other use cases where we simply skipped the NetApp PowerShell Toolkit and wrote our own REST-based functions. A lot of error handling must be added, but what else can we do...

What is the state of the union - I guess we are not the only shop suffering from this? And what is the plan forward for the toolkit?

Cheers

high monolith
#

Ah man, I maintain an in-house module for Lab on Demand that makes use of the NetApp.ONTAP powershell module and I fear migrating to newer versions of it. I had a little taste with the 9.13 module and reverted to the 9.11 module.

I'm thinking of migrating the functionality to a centralized python REST server and letting the python module do the heavy lifting and convert our powershell module to simply do rest calls to the python server.

We'll see...

mystic nest
#

We spent a lot of time verifying that all scripts worked with PowerShell 7, but we didn't expect the NetApp toolkit to fall apart - and have the customers build replacement tools . . .

Are older versions available for download? I only have the 9.9 zip file but hopefully one or two newer versions might work.

high monolith
#

I have a code snippet for you....

#
PS > Find-module -Name NetApp.ONTAP -AllVersions

Version              Name                                Repository           De
-------              ----                                ----------           --
9.14.1.2401          NetApp.ONTAP                        PSGallery            Ne
9.13.1.2306          NetApp.ONTAP                        PSGallery            Ne
9.12.1.2302          NetApp.ONTAP                        PSGallery            Ne
9.11.1.2208          NetApp.ONTAP                        PSGallery            Ne
9.10.1.2111          NetApp.ONTAP                        PSGallery            Ne
9.9.1.2110           NetApp.ONTAP                        PSGallery            Ne
9.9.1.2106           NetApp.ONTAP                        PSGallery            Ne
9.9.1                NetApp.ONTAP                        PSGallery            Ne

PS >
#

It seems you're still installing from the binary. I generally discourage that as updates come through the gallery much faster. I also am not certain patches ever get released through the binary. 🤷‍♂️

mystic nest
#

Yeah, I just found it but target host is air-gapped so I'll have to use the manual method . . .

#

So, finally back where we started a couple of weeks ago.
With zapi and pre-historic toolkit.
Lesson learned: never touch a working piece of software 🙄