Unable to activate Workload Management for vSphere Kubernetes Server on the vCenter UI.
book
Article ID: 319411
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
After entering personal information, company information, and completing the evaluation form in the Workload Management the page refreshes and leaves the form blank, rendering users unable to activate workload management.
Following log entries are observed under /var/log/vmware/wcp/wcpsvc.log in the vCenter Server:
YYYY-MM-DDT|HH:MM:SS.Z info wcp [auth/session.go:226] Got session for Administrator@VSPHERE.LOCAL YYYY-MM-DDT|HH:MM:SS.Z debug wcp [auth/handlers.go:160] Successfully validated session token. YYYY-MM-DDT|HH:MM:SS.Z debug wcp [namespace/authz.go:59] [opID=wcp-AuthzFilter] Checking privileges for username: VSPHERE.LOCAL\Administrator, groupnames: [ComponentManager.Administrators@vsphere.local LicenseService.Administrators@vsphere.local SystemConfiguration.ReadOnly@vsphere.local SystemConfiguration.SupportUsers@vsphere.local Administrators@vsphere.local Everyone@vsphere.local CAAdmins@vsphere.local SystemConfiguration.Administrators@vsphere.local SystemConfiguration.BashShellAdministrators@vsphere.local Users@vsphere.local], resIDs: [{PermissionFolder global-permission}], privs: [Namespaces.Manage] YYYY-MM-DDT|HH:MM:SS.Z info wcp [wcp/in_product_trial.go:33] [opID=644816e0] API called to set in-product trial. YYYY-MM-DDT|HH:MM:SS.Z error wcp [inproducttrial/in_product_trial.go:97] [opID=644816e0] Failed to write the configuration file; file: /etc/vmware/wcp/inProductTrial.yaml, err: open /etc/vmware/wcp/inProductTrial.yaml: permission denied
Environment
VMware vCenter Server 8.0.x VMware vCenter Server 7.0.x
Cause
vCenter is unable to write to the appropriate file in order to activate the evaluation.
Resolution
SSH to vCenter server as root
Change the permissions of the /etc/vmware/wcp/inProductTrial.yaml to allow read/write access for all users and groups: