Inform users about a known issue when setting CPU reservations through the HCX compute profile:
Users may encounter a failure when attempting to set CPU or memory reservations above 90%. The appliance deployment task will fail with the following error:
1/22/24, 5:17 PM - Service Mesh modification failed. Process Service Mesh failed. Updating appliance reservation failed for user [email protected]. Reason: The host does not have sufficient CPU resources to satisfy the reservation. id : host-217038 Updating appliance reservation failed for user [email protected]. Reason: The host does not have sufficient CPU resources to satisfy the reservation. id : host-1014 Updating appliance reservation failed for user [email protected]. Reason: The host does not have sufficient CPU resources to satisfy the reservation. id : host-1017HCX-Connector
/common/logs/admin/app.log
2024-01-23 00:16:53.837 UTC [InterconnectService_SvcThread-51224, IX:e259f160-0784-458a-8f48-6674944bf4f8, J:14af5d88, , TxId: 01e54e4e-6e88-4a7c-b6ec-cff5225e3a5f] ERROR c.v.v.h.s.i.UpdateApplianceReservation- Error while updating virtual machine reservation for vm-217122 2024-01-23 00:16:53.837 UTC [InterconnectService_SvcThread-51224, IX:e259f160-0784-458a-8f48-6674944bf4f8, J:14af5d88, , TxId: 01e54e4e-6e88-4a7c-b6ec-cff5225e3a5f] ERROR c.v.v.h.s.i.UpdateApplianceReservation- Updating appliance reservation failed for user [email protected]. Reason: The host does not have sufficient CPU resources to satisfy the reservation. id : host-217038 java.lang.RuntimeException: (vim.fault.InsufficientHostCpuCapacityFault) { faultCause = null, faultMessage = (vmodl.LocalizableMessage) [ com.vmware.vim.binding.impl.vmodl.LocalizableMessageImpl@24500b39 ], host = ManagedObjectReference: type = HostSystem, value = host-217038, serverGuid = null, unreserved = 14100, requested = 16000
Setting the CPU reservation below 90% will usually succeed. It all depends on the available resources on the ESXi hosts throughout the cluster.
The best way to see what resources are available is to view the "CPU Reservation Details" in vCenter.
To pull the exact reservation available for any given host you can navigate to the host MOB.
HCX uses the below calculation to set reservation:
CPU reservation: 8 * 2000 * 100/100 = 16000
8= number of Logical Processers on ESXi host
2000= Processor Speed in MHZ
100/100 = Reservation value over max reservation (100)
If reservation set to 95% it would be 95/100
Workaround:
In most cases setting the reservation value to <90% should allow deployment to complete.
OR
Leave reservation set to 0