Log management component installation fails with "unexpected vSphere Client error" in VVF 9.1
search cancel

Log management component installation fails with "unexpected vSphere Client error" in VVF 9.1

book

Article ID: 441282

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • The vSphere Client reports: "Unexpected vSphere Client error has occurred"

  • Logs from Kubernetes "sddc-build-service" name space reports  vAPI invocation exception:
    Login to VSP node using vmware-system-user and run the command: kubectl logs <vcf-sddc-build-service-pod-name> -n vcf-sddc-lcm

    Creating new session on vcf-example.com for [email protected] with custom trust 
    YYYY-MM-DDTHH:MM:SS ERROR sddc-build-service 44 [lcm@4413 scPath="ops" thread="system-task-worker-15" logger="c.b.v.v.client.VcenterVapiHelper" method="invoke:36"] [####-####-####-####, taskId=####-####-####-####] - Exception occurred during VC vAPI invocation
    YYYY-MM-DDTHH:MM:SS stdout F java.util.concurrent.ExecutionException: com.vmware.vapi.std.errors.Unauthenticated: Unauthenticated (com.vmware.vapi.std.errors.unauthenticated) => {
    YYYY-MM-DDTHH:MM:SS stdout F messages = [],
    YYYY-MM-DDTHH:MM:SS stdout F data = <null>,
    YYYY-MM-DDTHH:MM:SS stdout F errorType = UNAUTHENTICATED,
    YYYY-MM-DDTHH:MM:SS stdout F challenge = SIGN realm="####-####-####-####",sts="https://vcf-testqdn.com/sts/STSService/vsphere.local", Basic realm="vCenter"
  • The /var/log/vmware/sso/vmware-identity-sts.log on the vCenter appliance reports: "Failed to authenticate principal [[email protected]] for tenant [vsphere.local]"

Environment

  • VMware vSphere Foundation (VVF) 9.1

Cause

In a VVF environment, rotating the SSO administrator ([email protected]) password does not automatically update the vcf-iam-vcenter-admin secret in the VCF platform management cluster. This results in an authentication mismatch during component deployment.

Resolution

Broadcom is aware of this issue. This is targeted to be fixed in a future release. 

To resolve the authentication failure, manually patch the Kubernetes secret:

  1. Log in to the VSP platform node.

  2. Define the new password variable (replace ####### with the actual password):
    NEW_PASSWORD='#######'

  3. Capture the current timestamp: 
    NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")

  4. Patch the vcf-iam-vcenter-admin secret with the encoded password and updated metadata:

    kubectl patch secret vcf-iam-vcenter-admin -n vcf-sddc-lcm \
      --type=merge \
      -p "{
        \"data\": {
          \"clientSecret\": \"$(echo -n "${NEW_PASSWORD}" | base64 -w 0)\"
        },
        \"metadata\": {
          \"annotations\": {
            \"vcf.broadcom.com/last-rotated-date\": \"${NOW}\"
          }
        }
      }"

    Expected Output: secret/vcf-iam-vcenter-admin patched

  5. Verify the secret has been updated:
    kubectl get secret vcf-iam-vcenter-admin -n vcf-sddc-lcm -o yaml

  6. Retry the Log management component installation from the VCF Operations UI.

If you require further assistance, see Contact Support.