Configuring software iSCSI via Host Profiles fails with: Failed to set CHAP authentication configuration
book
Article ID: 307021
calendar_today
Updated On:
Products
VMware vSphere ESXi
Issue/Introduction
Symptoms:
When you attempt to apply a Host Profile which includes iSCSI configuration to an ESXi 5.x host, you see a message similar to:
Command 'iscsi adapter discovery sendtarget auth chap set --address "10.20.30.100:3260" --adapter "vmhba33" --direction uni --secret "" --level "required" --authname "SomeName"' failed with error 'Errors: Failed to set CHAP authentication configuration.'"
In the /var/log/vpxa.log file on the host, you see errors similar to:
[FFF4CB90 info 'Default' opID=B2915AB3-00000639-bf] [VpxLRO] -- ERROR task-1538 -- -- vim.profile.host.profileEngine.HostProfileManager.applyHostConfig: vmodl.MethodFault: Result: (vmodl.MethodFault) { dynamicType = <unset>, faultCause = (vmodl.MethodFault) null, faultMessage = (vmodl.LocalizableMessage) (vmodl.LocalizableMessage) dynamicType = <unset>, key = "com.vmware.profile.iscsi.exception.CliCmdFailed.label", arg = (vmodl.KeyAnyValue) [ (vmodl.KeyAnyValue) { dynamicType = <unset>, key = "cmdline", value = "iscsi adapter discovery sendtarget auth chap set --address "10.20.30.100:3260" --adapter "vmhba33" --direction uni --secret "" --level "required" --authname "SomeName"" (vmodl.KeyAnyValue) dynamicType = <unset>, key = "error", value = "Errors: Failed to set CHAP authentication configuration.
Environment
VMware vSphere ESXi 6.5 VMware vSphere ESXi 5.0
Cause
This issue occurs because the host is using an empty string as a password for the CHAP authentication on the target.
Resolution
To resolve this issue:
Log in to the vCenter Server as an administrator with the vSphere Client.
Click to Home > Management > Host Profiles.
Right-click the affected Host Profile and click Edit Profile.
Navigate to Storage Configuration > iSCSI Initiator Configuration.
Select the type of iSCSI, Independent Hardware, Software or Hardware.
Select the affected HBA.
Navigate to iSCSI Initiator Configuration > Initiator Chap Secret.
Select either Chap Secret in input by the user using the dropdown for Use a Fixed Chap Secret for all the hosts, or select Enter the password in the Chap Secret.