vSphere Kubernetes Kubectl vSphere Login to Supervisor Cluster Context and any TKG Service Cluster Context Failing with "Failed to get available workloads: bad gateway"
search cancel

vSphere Kubernetes Kubectl vSphere Login to Supervisor Cluster Context and any TKG Service Cluster Context Failing with "Failed to get available workloads: bad gateway"

book

Article ID: 397756

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

Any kubectl vsphere login attempts fail, regardless of the context specified and the user logging in.

  • Supervisor Cluster Context:
    • kubectl vsphere login --vsphere-username <SSO@username> --server=<Workload Management Supervisor Control Plane Node IP Address>
  • TKG Service Cluster Context:
    • kubectl vsphere login --server <Workload Management Supervisor Control Plane Node IP Address> --vsphere-username <SSO@username> --tanzu-kubernetes-cluster-namespace <namespace> --tanzu-kubernetes-cluster-name <clusterName>
      time="YYYY-MM-DDTHH:MM:SS-00:00" level=fatal msg="Failed to get available workloads, response from the server was invalid."

The workload management section in vCenter GUI shows as not configured

Environment

vSphere with Tanzu 7.0

Cause

The WCP service is not running

root@<vcenter> # service-control --status
Running:
 applmgmt lookupsvc lwsmd observability observability-vapi pschealth vlcm vmafdd vmcad vmdird vmonapi vm                                                    ware-analytics vmware-certificateauthority vmware-certificatemanagement vmware-cis-license vmware-conten                                                    t-library vmware-eam vmware-envoy vmware-hvc vmware-infraprofile vmware-perfcharts vmware-pod vmware-pos                                                    tgres-archiver vmware-rhttpproxy vmware-sca vmware-sps vmware-statsmonitor vmware-stsd vmware-topologysv                                                    c vmware-trustmanagement vmware-updatemgr vmware-vapi-endpoint vmware-vdtc vmware-vmon vmware-vpostgres                                                     vmware-vpxd vmware-vpxd-svcs vmware-vsan-health vmware-vsm vsphere-ui vstats vtsdb
Stopped:
 vmcam vmware-imagebuilder vmware-netdumper vmware-rbd-watchdog vmware-vcha wcp

Resolution

Start the WCP service in vCenter

root@<vcenter> # service-control --start wcp