Even though the licenses applied to the ESXi hosts are valid, some hosts in the cluster display license-related error messages when performing tasks such as VM power-on or migrations.
The following error is displayed in the vCenter UI:
"License key has expired. Please install a valid license to use this product"
The ESXi host client and vCenter UI show a mismatch between the license assigned to the host. in the below locations:
VMware vCenter 8.0.3
VMware vSphere ESXi 8.0.3
ESXi hosts which were created using Auto-Deploy
This is caused by a recent change in auto-deploy with the way ESXi calculates the remaining time left on the evaluation license.
This issue is resolved on vCenter Server 8.0 U3e, please review the points below for the specific resolution :
hostEvaluationPeriodValidator
” option introduced in VC 8.0 U3e to resolve the issue. Refer to Additional Information section of this KB for more information on the tool "hostEvaluationPeriodValidator
".hostEvaluationPeriodValidator
” option introduced in VC 8.0 U3e to resolve the issue.Find below the details about “hostEvaluationPeriodValidator” script/command:
$ /usr/lib/vmware/rbd/hostEvaluationPeriodValidator/hostEvaluationPeriodValidator scan -u <vCenter user with administrative privileges e.g. administrator@vsphere.local>
Notes:
To execute the script, the above command should be invoked through an SSH connection (and bash shell) to vCenter.
For vCenter server using Customer Port configuration use below command :
$ /usr/lib/vmware/rbd/hostEvaluationPeriodValidator/hostEvaluationPeriodValidator scan -v <vCenter IP or Hostname>:<custom port other than 443> -u <vCenter user with administrative privileges e.g. administrator@vsphere.local>
AutoDeploy Host Evaluation Period Validator, version=8.0.3, build=24582503
This script is provided to alleviate the problem described at:
https://knowledge.broadcom.com/external/article?articleNumber=379119
The script provides validation and remediation functionalities which
allow remediation of both stateless and stateful hosts deployed
through earlier 8.0.3 versions of AutoDeploy without the need of a
reboot. Another option to remediate stateless hosts is to reboot
these so they would boot from the updated version of AutoDeploy. For
stateful hosts deployed through earlier 8.0.3 versions of AutoDeploy
the only alternative option is to employ the workaround described in
the knowledge base article which however is applicable only after the
problem is experienced.
Log file: "/var/log/vmware/rbd/hostEvaluationPeriodValidator.log".
Connecting to vCenter Server at: "localhost".
Password:
Validating vCenter version at: "localhost".
--------------------------------------------------------------------------------
Validating "
"<hostname>
State : poweredOn
Version : 8.0
License : NON-EVALUATION
Evaluation: EXPIRED
Validation result for "
<ESXi IP>
": UNLICENSED--------------------------------------------------------------------------------
Host "
": RECONNECT REQUIRED<hostname>
--------------------------------------------------------------------------------
root@ [ ~ ]#
-------------------------------------------------------------------------------
Validating "
"<hostname>
State : poweredOn
Version : 8.0
License : NON-EVALUATION
Evaluation: FRACTIONAL
Validation result for "
<ESXi IP>
": FRACTIONAL-------------------------------------------------------------------------------
Host "
": REMEDIATION REQUIRED<hostname>
-------------------------------------------------------------------------------
Validating "
<hostname>
" State : poweredOn
Version : 8.0
License : EVALUATION
Evaluation: FRACTIONAL
Validation result for "
<hostname>
": FRACTIONAL-------------------------------------------------------------------------------
Host "
<hostname>
": REMEDIATION REQUIRED (LICENSE REQUIRED FOR REMEDIATION)-------------------------------------------------------------------------------
Validating "
"<hostname>
State : poweredOn
Version : 8.0
License : NON-EVALUATION
Evaluation: VALID
Validation result for "
": INTACT<hostname>
-------------------------------------------------------------------------------
Host "
": REMEDIATION NOT NEEDED<hostname>
-------------------------------------------------------------------------------
Validating "
"<hostname>
State : unknown
Validation result for "
": UNSUPPORTED STATE<hostname>
-------------------------------------------------------------------------------
Host "
": UNSUPPORTED STATE OR VERSION<hostname>
-------------------------------------------------------------------------------
$ /usr/lib/vmware/rbd/hostEvaluationPeriodValidator/hostEvaluationPeriodValidator remediate -u <vCenter user with administrative privileges e.g. administrator@vsphere.local> -h <Host Name or IP> <Host Name or IP>.....
Note - To execute the script the above command should be invoked through an SSH connection (and bash shell) to vCenter.
The output of the above command executed within the described environment would produce the following output:
AutoDeploy Host Evaluation Period Validator, version=8.0.3, build=24582503
This script is provided to alleviate the problem described at:
https://knowledge.broadcom.com/external/article?articleNumber=379119
The script provides validation and remediation functionalities which
allow remediation of both stateless and stateful hosts deployed
through earlier 8.0.3 versions of AutoDeploy without the need of a
reboot. Another option to remediate stateless hosts is to reboot
these so they would boot from the updated version of AutoDeploy. For
stateful hosts deployed through earlier 8.0.3 versions of AutoDeploy
the only alternative option is to employ the workaround described in
the knowledge base article which however is applicable only after the
problem is experienced.
Log file: "/var/log/vmware/rbd/hostEvaluationPeriodValidator.log".
Connecting to vCenter Server at: "localhost".
Password:
Validating vCenter version at: "localhost".
--------------------------------------------------------------------------------
Validating "<hostname>"
State : poweredOn
Version : 8.0
License : NON-EVALUATION
Evaluation: EXPIRED
Validation result for "
<hostname>
": UNLICENSED--------------------------------------------------------------------------------
Remediating "
<hostname>
" Reconnecting : SUCCESS
Remediation result for "
<hostname>
": SUCCESS--------------------------------------------------------------------------------
Host "
<hostname>
": REMEDIATED--------------------------------------------------------------------------------
Validating "
<hostname>
" State : poweredOn
Version : 8.0
License : NON-EVALUATION
Evaluation: FRACTIONAL
Validation result for "
<hostname>
": FRACTIONAL --------------------------------------------------------------------------------
Remediating "
<hostname>
" Nullifying evaluation period: SUCCESS
Reconnecting : SUCCESS
Remediation result for "
<hostname>
": SUCCESS--------------------------------------------------------------------------------
Host "
<hostname>
": REMEDIATED --------------------------------------------------------------------------------
Validating "
<hostname>
" State : poweredOn
Version : 8.0
License : NON-EVALUATION
Evaluation: VALID
Validation result for "
<hostname>
": INTACT--------------------------------------------------------------------------------
Host "
<hostname>
": NOT REMEDIATED (NOT NEEDED) --------------------------------------------------------------------------------
Validating "
<hostname>
" State : poweredOn
Version : 8.0
License : NON-EVALUATION
Evaluation: EXPIRED
Validation result for "
<hostname>
": UNLICENSED--------------------------------------------------------------------------------
Remediating "
<hostname>
" Reconnecting : SUCCESS
Remediation result for "
<hostname>
": SUCCESS--------------------------------------------------------------------------------
Host "
<hostname>
": REMEDIATED--------------------------------------------------------------------------------
Validating "
<hostname>
" State : unknown
Validation result for "
<hostname>
": UNSUPPORTED STATE--------------------------------------------------------------------------------
Host "
<hostname>
": NOT REMEDIATED (UNSUPPORTED STATE OR VERSION) --------------------------------------------------------------------------------
Validating "<hostname>"
State : poweredOn
Version : 8.0
License : EVALUATION
Evaluation: FRACTIONAL
Validation result for "
<hostname>
": FRACTIONAL--------------------------------------------------------------------------------
Host "
<hostname>
": NOT REMEDIATED (LICENSE REQUIRED FOR REMEDIATION)--------------------------------------------------------------------------------
Caveats (or limitations) of the script: