Symptom:
"com.vmware.esx.settings.notification": { "id": "com.vmware.vcIntegrity.lifecycle.EsxImage.UnknownError", "message": { "STRUCTURE": { "com.vmware.vapi.std.localizable_message": { "args": [], "default_message": "An unknown error occurred while performing the operation.", "id": "com.vmware.vcIntegrity.lifecycle.EsxImage.UnknownError"
YYYY-MM-DDTHH:MM:SSZ Er(##) lifecycle[##########]: Scanner:906 Failed to validate/extract the softwareSpec: 'VMware_bootbank_nsx-scx_4.2.3.2.0-8.0.25077146'The scrx_vlcm_enabled flag on the NSX Manager was set to true before the host compliance check using the vLCM Image (which installs the scrx VIB for IDPS Turbo Mode) was completed.
The scrx_vlcm_enabled should be set after the compliance check is completed.
Because this flag is set to true, a mismatch occurs when vLCM performs the compliance check, resulting in the "Host is in an unknown state" error.
To resolve this issue, clear the current configuration and re-run the compliance check by following the steps below:
Step 1: Take a snapshot for vCenter Server
Step 2: Verify and reset the scrx_vlcm_enabled flag
curl -k -u 'admin:<NSX_Manager_Admin_Password>' -H 'Content-Type: application/json' -X GET https://<NSX_Manager_IP>/policy/api/v1/system-config?key=scrx_enabled
curl -k -u 'admin:<NSX_Manager_Admin_Password>' -H 'Content-Type: application/json' -X PATCH --data '{"keyValuePairs": [{"key": "scrx_vlcm_enabled","value": "false"}]}' https://<NSX_Manager_IP>/policy/api/v1/system-configStep 3: Reset the Update Manager database
service-control --stop vmware-updatemgrpython /usr/lib/vmware-updatemgr/bin/updatemgr-utility.py reset-dbrm -rf /storage/updatemgr/patch-store/*service-control --start vmware-updatemgrStep 4: Create a temporary cluster to force-load image Information
Note: Since the image cannot be imported directly into the original cluster, this step indirectly forces the vCenter to load the required information.
Once the temporary cluster is created, you may safely delete it.
Step 5: Verify the image management status
Image
Hosts in this cluster are managed collectively. The image below will be applied to all hosts in this cluster.
Note: You can safely ignore any UI errors that may temporarily appear during this step.
Step 6: Download the NSX LCP file to vCenter Server
curl -k -u 'admin:<NSX_Manager_Admin_Password>' -X GET https://<NSX_Manager_IP>/api/v1/transport-node-collectionscurl -k -u 'admin:<NSX_Manager_Admin_Password>' -X POST https://<NSX_Manager_IP>/api/v1/transport-node-collections/<transport-node-collection-id>?action=retry_profile_realizationStep 7: Re-run compliance check