Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmware.powercli + PureStoragePowershellSDK2 loaded together make PS process crashed #27

Open
yala40 opened this issue Dec 19, 2024 · 2 comments

Comments

@yala40
Copy link

yala40 commented Dec 19, 2024

Hi All,

I'm in a very strange behavior since last update of PureStoragePowershellSDK2 in version 2.33.187, when i load, in the same script PureStoragePowershellSDK2 + vmware.powercli and while doing a simple "Connect-VIServer -Server $VIServers -Credential $credentials" the PS process crash.

All works well with previous version of purestoragepowershellSDK2 ==>2.26.70

I've try it with PS 5.1 and PS7 : same behavior.

My server is Win 2019 with last KB applied.

the Vmware.Powercli module was tested with many versions :

  • 13.3.0.24145081
  • 13.1.0.21624340
  • 12.7.0.20091289

thanks in advance for your help.

Yala

@mikenelson-io
Copy link
Collaborator

What happens if you load them manually outside of the script? Does it kill the process as well? Please turn on -verbose when executing manually and post the output here.

@yala40
Copy link
Author

yala40 commented Dec 19, 2024

Hello Mike,

in fact it is not at the loading of the module that crash happen, but the first cmdlet used of "powercli" module, like for example : Connect-VIServer -Server $VIServers -Credential $credentials

if i load them manually and execute the cmd Connect-VIServer -Server $VIServers -Credential $credentials it has the same behavior.

if i load only the powercli module it works well. Crash happen only when I load both modules (PureSDK2 + powercli) in a PS windows and following the first powercli cmdlet execution.

the verbose mode is unfortunatlly not very usefull here because PS Window is crashing before prompting anything. that is the way it can be reproduced :

import-module purestoragepowershellSDK2
$credentials = Get-Credential
$VIServers = @("vserverfqdn")
$connectedViServer = Connect-VIServer -Server $VIServers -Credential $credentials -Verbose

events like this can be seen in the "application" eventlog on the windows server when PS crashing :

Détecteur d'erreurs 1480128528040821402, type 4
Nom d’événement : APPCRASH
Réponse : Non disponible
ID de CAB : 0

Signature du problème : 
P1 : PowerShell_ISE.exe
P2 : 10.0.17763.1
P3 : d129981e
P4 : KERNELBASE.dll

thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants