Symptoms:
- Attempting to create a Kubernetes Cluster using Cloud Director Container Service Extension fails immediately and enters an Error state.
- Ephemeral VM, EPHEMERAL_TEMP_VM, gets created but stays in powered off state.
- Creation of cluster fails when user logs in as a Tenant user such as Organization Administrator but the same functionality works as a System Administrator.
- The Events on the Kubernetes Cluster show a ScriptInitError error with the following detail:
[error while enabling cloudinit on the machine [cxxxx/EPHEMERAL_TEMP_VM]; unable to set vm extra config key [guestinfo.userdata.encoding] for vm : [status code is [400], response body: [<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Error xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:common="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/versions" message="Missing right to use ExtraConfig guestinfo.userdata.encoding." majorErrorCode="400" minorErrorCode="BAD_REQUEST"/> ]]] during cluster creation
- The /root/cse.log on the CSE Server will have the following entries:
{"level":"error","ts":"202x-xx-xxTxx:xx:xx.xxxZ","caller":"app/main.go:533","msg":"error creating cluster [xxxx(urn:vcloud:entity:vmware:capvcdCluster:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)] : [error setting cloud init script for cluster [xxxx(urn:vcloud:entity:vmware:capvcdCluster:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)], [error while enabling cloudinit on the machine [xxxx/EPHEMERAL_TEMP_VM]; unable to set vm extra config key [guestinfo.userdata.encoding] for vm : [status code is [400], response body: [<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Error xmlns=\"http://www.vmware.com/vcloud/v1.5\" xmlns:vmext=\"http://www.vmware.com/vcloud/extension/v1.5\" xmlns:ovf=\"http://schemas.dmtf.org/ovf/envelope/1\" xmlns:vssd=\"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData\" xmlns:common=\"http://schemas.dmtf.org/wbem/wscim/1/common\" xmlns:rasd=\"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData\" xmlns:vmw=\"http://www.vmware.com/schema/ovf\" xmlns:ovfenv=\"http://schemas.dmtf.org/ovf/environment/1\" xmlns:ns9=\"http://www.vmware.com/vcloud/versions\" message=\"Missing right to use ExtraConfig guestinfo.userdata.encoding.\" majorErrorCode=\"400\" minorErrorCode=\"BAD_REQUEST\"/>\n]]]]","stacktrace":"main.processRDE\n\t/app/main.go:533"}