PowerCLI-Example-Scripts icon indicating copy to clipboard operation
PowerCLI-Example-Scripts copied to clipboard

Connection time out calling ViewComposerDomainAdministrator_List

Open abel-olguin opened this issue 5 years ago • 5 comments

I try to use New-HVPool -spec "path/to/json" i follow this article but when i try to create a new Pool i get this error.

my code it's the same of the article:

$hzUser = "user"
    $hzPass = "pass"
    $hzDomain = "mydomain"
    $hzConn = "10.x.x.x"
    Get-Module -ListAvailable 'VMware.Hv.Helper' | Import-Module
    $hvServer1 = Connect-HVServer -server $hzConn -User $hzUser -Password $hzPass -Domain $hzDomain
    
    $Services1 = $hvServer1.ExtensionData
   New-HVPool -spec "path/to/json"

Full code error:

New-HVPool : Failed to create Pool with error: Exception calling "ViewComposerDomainAdministrator_List" with "2"
argument(s): "ExceptionType : VMware.Hv.UnexpectedFault
ErrorMessage : Encountered unexpected error during execution
CauseString : java.net.ConnectException: Connection timed out: connect
CauseStackTrace : System.String[]
ErrorCode :
ErrorAttributes : "
At C:\psscripts\index.ps1:27 char:5
+     New-HVPool -spec $path
+     ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-HVPool

Any reason to get this error?

abel-olguin avatar Jul 02 '19 08:07 abel-olguin