lamw / vsphere-with-tanzu-nsxt-automated-lab-deployment

vSphere with Tanzu using NSX-T Automated Lab Deployment
212 stars 79 forks source link

Invalid value specified for property nsx_passwd_0 #4

Closed MaxDiOrio closed 4 years ago

MaxDiOrio commented 4 years ago

Not quite sure what's going on here. I can't track down why it's not working. Most of the settings, including the NSX Password are as you specified in your config.

I manually copied and pasted some of the lines of code relevant to that variable and they all work fine independently of the script. Any ideas? Thanks!

[04-25-2020_11:29:49] Powering On pacific-esxi-3 ...
[04-25-2020_11:29:49] Deploying NSX Manager VM pacific-nsx-3 ...
Import-VApp : 4/25/20 11:29:53 AM       Import-VApp             Invalid value '' specified for property nsx_passwd_0.
At /Volumes/share/NestedLabISO/vghetto-vsphere-with-kubernetes-external-nsxt-lab-deployment.ps1:607 char:18
+ ... nsxmgr_vm = Import-VApp -Source $NSXTManagerOVA -OvfConfiguration $ns ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
+ CategoryInfo          : NotSpecified: (:) [Import-VApp], InvalidPropertyValue 
+ FullyQualifiedErrorId : Client20_NfcLease_WaitForNfcLeaseToInitialize_Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.ImportVApp 
[04-25-2020_11:29:54] Updating vCPU Count to 6 & vMEM to 24 GB ...
Set-VM : 4/25/20 11:29:54 AM    Set-VM          Value cannot be found for the mandatory parameter VM 
At /Volumes/share/NestedLabISO/vghetto-vsphere-with-kubernetes-external-nsxt-lab-deployment.ps1:610 char:5
+     Set-VM -Server $viConnection -VM $nsxmgr_vm -NumCpu $NSXTMgrvCPU  ...  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Set-VM], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.SetVM

[04-25-2020_11:29:54] Disabling vCPU Reservation ...
Get-VM : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At /Volumes/share/NestedLabISO/vghetto-vsphere-with-kubernetes-external-nsxt-lab-deployment.ps1:613 char:40
+     Get-VM -Server $viConnection -Name $nsxmgr_vm | Get-VMResourceCon ...
+                                        ~~~~~~~~~~
+ CategoryInfo          : InvalidData: (:) [Get-VM], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

[04-25-2020_11:29:54] Powering On pacific-nsx-3 ...
MaxDiOrio commented 4 years ago

Looks like this is a result of a minimum password length issue. If the password isn't log enough, it bails essentially calling it null ''.