Unable to exit host from maintenance mode as the option is greyed out
search cancel

Unable to exit host from maintenance mode as the option is greyed out

book

Article ID: 417973

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vCenter Server

Issue/Introduction

  • Unable to move host out of maintenance mode as the option to exit maintenance mode in the vSphere client for the host is greyed out. 
  • Connect and Disconnect option under Actions menu > Connection is greyed out as well.
  • vCenter log - /var/log/vmware/vpxd/vpxd.log - reported the host is already in desired state.

YYYY-MM-DDTHH:MM info vpxd[06500] [Originator@6876 sub=TrustedInfrastructure.HostConfig opID=HB-host-<host_moid>@91-########-WorkQueue-2f85e32] [PolicyUpdater] Grants for client profile on host <hostname_fqdn> are already in desired state
YYYY-MM-DDTHH:MM warning vpxd[06500] [Originator@6876 sub=TrustedInfrastructure.HostConfig opID=HB-host-<host_moid>@91-########-WorkQueue-2f85e32] [CreateOrUpdate] Policy with issuer alias https://<hostname_fqdn>/openidconnect/<vSphere_SSO_Domainname> already exists on host <hostname_fqdn>. Exception: N4Vpxd7Clients22AlreadyExistsExceptionE(Error:
-->    com.vmware.vapi.std.errors.already_exists
--> No messages!
--> )
--> [context]zKq7AVECAQAAACqAeAESdnB4ZAAAQxxTbGlidm1hY29yZS5zbwAACBhCACk/QwAiq0qBJKcEAnZweGQAgVC/BAKBDkFfAoHgwwMCgSPGAwKBkVaCAoGWYoICge9QfgKBrlF+AgAE7DcAF0U4AMUPUQKwjgBsaWJwdGhyZWFkLnNvLjAAA9/6D2xpYmMuc28uNgA=[/context]. Attempting update.

Environment

  • ESXi 8.x
  • vCenter 8.x

Cause

  • If there is a stale task for the host in the vCenter Server, the option to pull the host out of maintenance will be greyed out as vCenter Server considers the host has pending tasks and marks it as busy, preventing further operations until the task is cleared.

Resolution

Note: the following action will require a downtime for the vCenter Server as restarting vpxd will stop tasks like backup, replication etc.

  • Restart vmware-vpxd service from the vCenter SSH.

Service-control --stop vmware-vpxd
Service-control --start vmware-vpxd

  • Refresh vSphere client and attempt to remove the host from maintenance mode.