During duplication or import, "Create a host profile" task fails with "A general system error occurred: Invalid option key ...".
search cancel

During duplication or import, "Create a host profile" task fails with "A general system error occurred: Invalid option key ...".

book

Article ID: 313224

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:

When the user tries to duplicate or import a host profile document it fails with the following error.

A general system error occurred:
Invalid option key
Invalid option key



In vpxd.log, you see messages similar to:

<YYYY-MM-DD><time>Z info vpxd[04517] [Originator@6876 sub=Default opID=lag7e6tj-3803-auto-2xq-h5:70002972-78] [VpxLRO] -- ERROR task-650 -- HostProfileManager -- vim.profile.ProfileManager.createProfile: vmodl.fault.SystemError:
--> Result:
--> (vmodl.fault.SystemError) {
-->    faultCause = (vmodl.MethodFault) null,
-->    faultMessage = (vmodl.LocalizableMessage) [
-->       (vmodl.LocalizableMessage) {
-->          key = "com.vmware.vim.profile.host.ExecuteError.InvalidOptionKey.label",
-->          arg = <unset>,
-->          message = "Invalid option key"
-->       },
-->       (vmodl.LocalizableMessage) {
-->          key = "com.vmware.vim.profile.host.ExecuteError.InvalidOptionKey.label",
-->          arg = <unset>,
-->          message = "Invalid option key"
-->       }
-->    ],
-->    reason = ""
-->    msg = ""
--> }
--> Args:


In syslog.log of ESXi host, you see messages similar to:

<YYYY-MM-DD><time>Z Host Profiles[2138481 opID=lag7e6tj-3803-auto-2xq-h5: 70002972-78-62-875e]:ERROR: Errors updating the profile: [((vim.profile.ProfilePropertyPath) {    dynamicType = <unset>,    dynamicProperty = (vmodl.DynamicProperty) [],    profilePath = 'option["key-vim-profile-host-OptionProfile-Syslog_loggers_test_rotate"]',    policyId = 'ConfigOptionPolicy',    parameterId = 'key',    policyOptionId = <unset> }, (LocalizableMessageWithPath) {    dynamicType = <unset>,    dynamicProperty = (vmodl.DynamicProperty) [],    key = 'com.vmware.vim.profile.host.ExecuteError.InvalidOptionKey.label',    arg = (vmodl.KeyAnyValue) [],    message = 'Invalid option key' }), ((vim.profile.ProfilePropertyPath) {    dynamicType = <unset>,    dynamicProperty = (vmodl.DynamicProperty) [],    profilePath = 'option["key-vim-profile-host-OptionProfile-Syslog_loggers_test_size"]',
<YYYY-MM-DD><time>Z Host Profiles[2138481 opID=lag7e6tj-3803-auto-2xq-h5: policyId = 'ConfigOptionPolicy',    parameterId = 'key',    policyOptionId = <unset> }, (LocalizableMessageWithPath) {    dynamicType = <unset>,    dynamicProperty = (vmodl.DynamicProperty) [],    key = 'com.vmware.vim.profile.host.ExecuteError.InvalidOptionKey.label',    arg = (vmodl.KeyAnyValue) [],    message = 'Invalid option key' })]^@


Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

 


Environment

VMware vSphere 6.7.x

Cause

When duplication or import, "Create a host profile" task uses the backend reference host select algorithm to select a compatible host to validate the host profile document. But if the host selected doesn't support some of the advanced option parameters in the host profile, the import task will fail.

Resolution

This issue has been resolved in vSphere 7.0 U3.


Workaround:

For duplicate case, directly edit host profile by disabling/deleting the offended advanced parameters.

  1. From the output of syslog.log, you can see profilePath like "key-vim-profile-host-OptionProfile-Syslog_loggers_test_rotate" and "key-vim-profile-host-OptionProfile-Syslog_loggers_test_rotate". 

  2. Remove "Syslog.loggers.test.rotate" and "Syslog.loggers.test.size" from the problematic hostprofile.

For import case, as well as duplicate case, directly edit host profile by disabling/deleting the offended advanced parameters before export.