ISCSI Setup has issues on PowerCLI10 and Powershell Core 6
Opened this issue · 0 comments
nshores commented
When running the import-vmhostnetworkingfromcsv cmdlet on PowerCLI10 and Powershell Core 6 (MacOS) - The following output is seen. It looks like some rework needs to be done surrounding New-IscsiHBATarget.
Binding vmk2 to the software iSCSI adapter.
Response status code does not indicate success: 500 (Internal Server Error).
At /usr/local/share/powershell/Modules/VMware.VimAutomation.Custom/0.0.2/Functions/Public/Enable-VMHostIscsiAdapter.ps1:99 char:25
+ ... $esxcli.iscsi.networkportal.add.Invoke($esxcli_args) | Ou ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], ViError
+ FullyQualifiedErrorId : VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.ViError
Binding vmk3 to the software iSCSI adapter.
Response status code does not indicate success: 500 (Internal Server Error).
At /usr/local/share/powershell/Modules/VMware.VimAutomation.Custom/0.0.2/Functions/Public/Enable-VMHostIscsiAdapter.ps1:99 char:25
+ ... $esxcli.iscsi.networkportal.add.Invoke($esxcli_args) | Ou ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], ViError
+ FullyQualifiedErrorId : VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.ViError
iSCSI target 10.200.2.10 does not exist, creating.
New-IScsiHbaTarget : Cannot process argument transformation on parameter 'IScsiHba'. This parameter no longer accepts an array. As an alternative you may pass multiple values by pipeline (if supported by the parameter).
At /usr/local/share/powershell/Modules/VMware.VimAutomation.Custom/0.0.2/Functions/Public/Enable-VMHostIscsiAdapter.ps1:114 char:54
+ ... New-IScsiHbaTarget -IScsiHba $iscsi_hba -Addres ...
+ ~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [New-IScsiHbaTarget], ParameterBindingArgumentTransformationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.Storage.NewIScsiHbaTarget