Workload Management UI unreachable while wcp service is running
search cancel

Workload Management UI unreachable while wcp service is running

book

Article ID: 419853

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service VMware vSphere ESXi

Issue/Introduction

  • The Workload Management UI shows the following error:

    "We encountered an error and are unable to reach the service"

  • The wcp service is running.

  • Validate the /var/log/vmware/wcp/wcpsvc.log:

    yyyy-mm-ddThh:mm:ssZ info wcp [] E1023  10746 reflector.go:147] pkg/mod/k8s. io/[email protected]/tools/cache/reflector.go:229: Failed to watch podtemplates: failed to list podtemplates: failed to list podtemplates: Get "http://localhost:1080/wcpproxy/####/api/v1/podtemplates?resourceVersion=747004459": dial tcp: lookup localhost: device or resource busy

    yyyy-mm-ddThh:mm:ssZ info wcp [] E1023  10746 reflector.go:147] pkg/mod/k8s. io/[email protected]/tools/cache/reflector.go:229: Failed to watch deployments: failed to list deployments: failed to list deployments: Get "http://localhost:1080/wcpproxy/####/apis/apps/v1/deployments?resourceVersion=747004579": dial tcp: lookup localhost: device or resource busy

    E1124  10746 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch jobs: failed to list jobs: failed to list jobs: Get "http://localhost:1080/wcpproxy/####/apis/batch/v1/jobs?resourceVersion=747004718": dial tcp: lookup localhost: device or resource busy
    Failed to write to log, can't open new logfile: open /var/log/vmware/wcp/wcpsvc.log: too many open files
    Failed to write to log, can't open new logfile: open /var/log/vmware/wcp/wcpsvc.log: too many open files
    Failed to write to log, can't open new logfile: open /var/log/vmware/wcp/wcpsvc.log: too many open files

Environment

vSphere Kubernetes Service

Cause

The WCP service on the vCenter Server is degraded due to resource exhaustion. This limitation prevents the service from opening sockets, writing to log files, or establishing API connections, rendering both the Workload Management UI and the Supervisor APIs unreachable.

Resolution

  • Restart the wcp service on the vCenter Server with the following command:

    service-control --restart wcp

  • Alternatively, restart the service in the vCenter Server Appliance Management Interface (VAMI) by selecting the "Workload Control Plane" service and clicking "RESTART".