Error: "An identity broker instance is not available for configuring Single Sign-On" and "No compatible VCF Instance" when trying to configure Identity Broker in VCF 9.1.1
search cancel

Error: "An identity broker instance is not available for configuring Single Sign-On" and "No compatible VCF Instance" when trying to configure Identity Broker in VCF 9.1.1

book

Article ID: 460986

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • After VCF upgrade from 9.0.2 to 9.1.1 error occurred while trying to configure Identity Broker as an Instance:
    An identity broker instance is not available for configuring Single Sign-On. If the identity broker in instance mode has not been deployed, navigate to the Lifecycle page to initiate its deployment. In cases where the identity broker has been set up in embedded mode within the VCF Instance, either reset the configuration or migrate from embedded mode to instance.
  • After VCF upgrade from 9.0.2 to 9.1.1 error occurred while trying to configure Identity Broker in Embedded Mode:
    No compatible VCF Instance
  • Before the upgrade there was no Identity Broker configured
  • Checking the Identity Broker mode confirms the Mode as Embedded
  • VCF Identity Broker was not configured as a step 0 as per documentation Upgrading a VCF Instance from version 9.0.x to version 9.1.x

Environment

  • VCF Operations 9.1.1.x

Cause

  • This is expected behavior as VCF Identity Broker was not configured as step 0 
  • The Identity Broker will be automatically configured as Embedded during the upgrade from VCF 9.0.x to 9.1.x however as the configuration was skipped before upgrading other components the configuration of Identity Broker will not be possible

Resolution

  1. Delete the Identity Broker by following steps from Deletion of Identity Broker from VCF Operations 9.1
    • If during running the script to delete the Identity Broker the password of VCF Runtime Service always shows invalid credentials, and logging in directly to VCF Service Runtime VM via SSH is  successful, proceed with below steps. 
    • Note: 

      In VMware Cloud Foundation 9.x, the VCF Services Runtime platform utilizes two separate accounts that serve different functions:

      • vmware-system-user (Operating System Account):

        Used for local Linux console and SSH sessions into the Services Runtime virtual machines.
        This is why your SSH connection logs in successfully.

      • [email protected]l (Service / API Account):

        Used when interacting with the VCF Services Runtime through the UI (such as VCF Operations / Fleet Management) or REST APIs.
        Although both accounts are initially assigned the same password during initial deployment, their credentials and lifecycle states can diverge.

      • Since there is a working SSH access to the VCF Services Runtime VM, verify and reset the service password directly from the control plane node
  2.  SSH into the VCF Services Runtime Control Plane node using the vmware-system-user account as per Resetting the [email protected] password for VMware Cloud Foundation Services Runtime:  
    ssh vmware-system-user@<vcf-services-runtime-control-plane-ip>

    Switch to root and export the Kubernetes configuration: 

    sudo -i
    export KUBECONFIG=/etc/kubernetes/admin.conf
  3. Take a backup of the current administrative secret before making changes: 

    kubectl get secret vsp-admin-secret -n vmsp-platform -o yaml > vsp-admin-secret.yaml.back
  4. Prepare a new password that complies with the VCF Services Runtime complexity policy: 
    Minimum length: 15 characters (maximum 64 characters)
    At least 1 lowercase letter
    At least 1 uppercase letter
    At least 1 numeric digit
    At least 1 special character (@, #, $, ^, *, !)
    Must not include sequential repeats (more than 3 identical consecutive characters) or dictionary words.

  5.  Generate the password hash and patch the secret: 

    export NEW_PASSWORD='<YourComplexPasswordHere>'
    hash=$(echo -n "${NEW_PASSWORD}" | vmsp passwd --password-stdin | tr -d "\n" | base64 -w0)
  6. Patch the secret 

    kubectl patch secret vsp-admin-secret -n vmsp-platform -p "{\"data\":{\"password\":\"${hash}\"}}"

    Upon successful execution of the commands, the following message is displayed: 

    secret/vsp-admin-secret patched