ESXi Health Perspectives (EHP) provides automated health checks before hosts transition to different states, like entering maintenance mode or receiving workloads. EHP checks reports from services like vSphere HA and vSAN to determine if a host is healthy for the target state. Administrators can disable specific health checks or providers if they block an upgrade. EHP integration with Update Coordinator ensures hosts meet health requirements before life cycle operations.
ESXi Health Perspectives (EHP) provides automated health checks before hosts transition to different states, like entering maintenance mode or receiving workloads. EHP checks reports from services like vSphere HA and vSAN to determine if a host is healthy for the target state. Administrators can disable specific health checks or providers if they block an upgrade. EHP integration with Update Coordinator ensures hosts meet health requirements before life cycle operations.
ESXi Health Perspectives (EHP) provides automated health checks before hosts transition to different states, like entering maintenance mode or receiving workloads. EHP checks reports from services like vSphere HA and vSAN to determine if a host is healthy for the target state. Administrators can disable specific health checks or providers if they block an upgrade. EHP integration with Update Coordinator ensures hosts meet health requirements before life cycle operations.
Learner Objectives After completing this lesson, you should be able to meet the following objectives: • Observe how ESXi Health Perspectives work • Identify the uses of different health perspectives • Disable health checks and health providers
Overview of ESXi Health Perspectives vSphere administrators must plan for changes to the ESXi host that occur as part of its basic life cycle: • Making the host available as capacity for new workloads • Taking the host temporarily out of service for updates and upgrades • Evacuating workloads to decommission the ESXi host In vSphere 7.0, the new service called ESXi Health Perspectives (EHP) increases the reliability of ESXi health status reports needed for these tasks.
ESXi Host Life Cycle Management Enhancements ESXi Health Perspectives automatically checks host health before update and upgrade tasks. Each health perspective determines whether it is safe to transition an ESXi host to a target state. Perspective Name Target State (ready to) Initialization Receive workloads Planned Maintenance Enter maintenance mode Before Exit Maintenance Mode Exit maintenance mode Decommission Be removed from a cluster Ready for Apply Begin remediation
Use Cases With each health perspective, a predefined list of health checks is performed. • Before a host is ready to receive workloads, EHP checks reports from several providers: — vSphere High Availability reports on ESXi version compatibility in the cluster. — vSAN reports on successfully applied disk configuration. • Before entering maintenance mode, EHP looks for conditions that might prevent the transition: — A host in the vSAN cluster is in maintenance mode, which might leave insufficient resources. — A vCenter Server Appliance is running on the host and DRS is not in Fully Automated mode. • Before a host in a vSAN cluster can exit maintenance mode, EHP checks the overall health status of the cluster.
Virtual Beans Scenario As the vSphere administrator for Virtual Beans, you must upgrade a cluster with vSAN, DRS, and vSphere HA enabled. ESXi Health Perspectives makes its calls to obtain the health status of the cluster: • vSphere HA reports that one host requires at least one more HA heartbeat datastore. • EHP reports a NOT_OK status. • The upgrade is paused until the issue is resolved.
Integration with vCenter Server Services ESXi Health Perspectives calls to other services to evaluate the state of the host. These services are the health providers used by EHP: • vpxd • vSphere HA • vSphere ESX Agent Manager (EAM) An EHP agent does not exist on ESXi hosts. EHP cannot run independent of vCenter Server.
Integration with Update Coordinator The only caller of ESXi Health Perspectives is Update Coordinator. Update Coordinator is a subcomponent of Personality Manager that drives the life cycle operations on the host, including upgrades and reconfiguration of ESXi. Update Coordinator handles the precheck and remediate workflows on a cluster. EHP and Personality Manager are hosted in the Update Manager vAPI.
Requirements for EHP ESXi Health Perspectives is installed on the vCenter Server Appliance. It is hosted in the vAPI endpoint of the Update Manager. No additional steps are required to configure it.
Service Configuration The ESXi Health Perspectives configuration files are found in the /usr/lib/vmware- updatemgr directory. When changing the EHP configuration, the vmware-updatemgr service must be restarted. Always back up files before changing them.
Calling Health Perspectives When the call to a health perspective finishes, a StatusInfo object is generated. The StatusInfo object reports on the main attributes. Attribute Description Status Aggregated status based on all executed checks. Status options are OK, NOT_OK, and WAIT. Wait duration Only if the reported status is WAIT. Amount of time to wait for before calling to the perspective again. Check status List of checks with reported status of NOT_OK.
Reporting Health Issues The health issues reported by the health checks are displayed in the vSphere Client. Reported issues provide clear messages to help in resolving the issues.
Disabling Health Checks A JSON configuration file in vCenter Server contains the list of checks performed by each health perspective. Users can read and edit the configuration file to disable the predefined checks. The configuration file is found in /usr/lib/vmware- updatemgr/config/disabled_checks.js on. Restart the vmware-updatemgr service for the changes to take effect.
Disabling Health Providers Users can disable health providers if the health reported is not relevant for the target operation. The list of health providers is in /usr/lib/vmware-updatemgr/bin/vci-integrity.xml. The configuration file has the following layout: . . . <EhpConfig> <ExternalProviders> <PROVIDER-ID> <enabled>true/false</enabled> </PROVIDER-ID> </ExternalProviders> </EhpConfig> . . . You can enable or disable a provider by changing the enabled value. Restart the vmware-updatemgr service for the changes to take effect.
Upgrading vCenter Server The option of disabling checks is meant for certain situations: • Potentially faulty checks • Irrelevant checks preventing remediation actions During an upgrade of vCenter Server, predefined checks revert to their defaults. The list of manually disabled checks is not exported during upgrade. Results of checks performed by EHP before and after vCenter Server upgrade might vary.
Troubleshooting: Log Files ESXi Health Perspectives logs are in /storage/log/vmware/vmware-updatemgr/vum- server/vmware-vum-server.log. To ensure that the Health Perspectives service is initialized correctly, check for the following message: Successfully set up EHP. If EHP fails, restart the vmware-updatemgr service.
Troubleshooting: Keywords in Log Files When looking for EHP-related messages in log files, use the keywords Esx Health Perspectives. 2019-08-02T13:01:48.495Z info vmware-vum-server[17943] [Originator@6876 sub=Esx Health Perspectives] Getting disabled checks for 'BEFORE_EXIT_MAINTENANCE_MODE’... 2019-08-02T13:01:48.495Z info vmware-vum-server[17943] [Originator@6876 sub=Esx Health Perspectives] Filtering health checks...
Reporting a Bug To report a bug in Bugzilla, use the following information: • Product = Personality Manager • Category = vCenter • Component = Health Status Perspectives When filing a bug report, provide pertinent details about the environment, a clear description of the problem, and steps for reproducing the error.
Key Points In vSphere 7.0, new health checks are managed by ESXi Health Perspectives (EHP). EHP provides data to automatically determine whether a host is healthy to transition to a target state, for example, enter maintenance mode or receive workloads. If a health check blocks an upgrade process, take the following actions: • View details of the reported issue to fix it. • Disable the conflicting health check if not relevant. Update Coordinator is the only caller of EHP. Manual calls cannot be made to EHP.
Review of Learner Objectives After completing this lesson, you should be able to meet the following objectives: • Observe how ESXi Health Perspectives work • Identify the uses of different health perspectives • Disable health checks and health providers