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

ISCSI Setup has issues on PowerCLI10 and Powershell Core 6 #8

Open
nshores opened this issue Mar 10, 2018 · 0 comments
Open

ISCSI Setup has issues on PowerCLI10 and Powershell Core 6 #8

nshores opened this issue Mar 10, 2018 · 0 comments

Comments

@nshores
Copy link

nshores commented Mar 10, 2018

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
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

1 participant