When using AutoDeploy with host profile set to statefull install on the local hard drive, host profile task fails during boot and does not create a local datastore.
syslog.log may show similar entries:
<YYYY-MM-DD>T<time>Z Wa(12) hostprofile[2100874]: opID=MainThread: excObj is a runtime fault: (vim.fault.RestrictedVersion) {
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: dynamicType = <unset>,
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: dynamicProperty = (vmodl.DynamicProperty) [],
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: msg = 'Current license or ESXi version prohibits execution of the requested operation.',
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: faultCause = <unset>,
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: faultMessage = (vmodl.LocalizableMessage) [
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: (LocalizableMessageWithPath) {
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: dynamicType = <unset>,
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: dynamicProperty = (vmodl.DynamicProperty) [],
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: key = 'com.vmware.vim.profile.engine.UnexpectedError',
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: arg = (vmodl.KeyAnyValue) [
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: (vmodl.KeyAnyValue) {
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: dynamicType = <unset>,
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: dynamicProperty = (vmodl.DynamicProperty) [],
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: key = 'error',
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: value = 'Current license or ESXi version prohibits execution of the requested operation.'
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: },
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: (vmodl.KeyAnyValue) {
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: dynamicType = <unset>,
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: dynamicProperty = (vmodl.DynamicProperty) [],
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: key = 'context',
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: value = 'EngineModule::ApplyHostConfig'
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: }
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: ],
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: message = 'Error: Current license or ESXi version prohibits execution of the requested operation..'
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: }
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: ]
<YYYY-MM-DD>T<time>Z Wa(12)[+] hostprofile[2100874]: }^@
<YYYY-MM-DD>T<time>Z In(14) hostprofile[2100874]: opID=MainThread: Cleaned up Host Configuration^@
<YYYY-MM-DD>T<time>Z In(14) hostprofile[2100874]: opID=MainThread: /sbin/applyHostProfile sending boot msg to console: Applying Host Profile task list...Error^@
<YYYY-MM-DD>T<time>Z Er(11) hostprofile[2100874]: opID=MainThread: while applying tasks: (vim.fault.RestrictedVersion) {
VMware vCenter Server 8.0 U3
During the boot process, AutoDeploy uses either an assigned license or an evaluation license. The evaluation license period is calculated based on hardware identifiers of the host. If the host was first booted years ago, subsequently removed from inventory, and finally rebooted, AutoDeploy assumes that the evaluation license has expired. AutoDeploy lacks a mechanism to request a new license during the boot process, resulting in errors during the application of the host profile.
In versions prior to 8.0.2, the license check mechanism did not properly handle this workflow.
Recommendation:
If the AutoDeploy host has been removed from the vCenter inventory and requires to join the vCenter after autodeploy boot:
This issue will be fixed in future release of vCenter 8.0