vco-server-app pod fails to initialize and crashes during upgrade to VCF Automation 9.1
search cancel

vco-server-app pod fails to initialize and crashes during upgrade to VCF Automation 9.1

book

Article ID: 455692

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

During an environment upgrade from Aria Automation 8.18.1 to VCF Automation (VCFA) 9.1, the Orchestrator vco-server-app pod fails to initialize and subsequently crashes.

This failure can be verified by reviewing the initialization logs for the vco-server-app pod using the following command: kubectl -n prelude logs -c vco-server-app -f

The logs will indicate an HTTPS connection timeout and an "invalid credentials" error occurring when the vRA plugin attempts to retrieve its refresh token during Load Balancer FQDN authentication.

 
ERROR vco [host-'vco-app-0' thread='ApplicationEventhandler-1' user='' org='' trace=''] {} com.vmware.ollin.plugin.vra.src.VraClientFactory - Failed to get VMware Cloud Foundation Automation refresh token on URL :  https://FQDN/csp/gateyway/am/api/login?access_token . error message: Failed to get VMWare Cloud Foundation Automation refresh token. Invalid VMware Cloud Foundation Automation credentials provided. 

ERROR vcp [host='vco-app-0' thread='ApplicationEventhandler-1' user='' org='' trace=''] {} com.vmware.olln.plugin.vra.util.Utils - Error while executing rest request with message: Failed to get Vmware Cloud Foundation Automation refresh token. Invalid VMware Cloud Foundation credential provided. 
10:46 WARN vco [jpst='vco-app-0' thread='ApplicationEventHandler-1' user='' org='' trace=''] {} ch.dunes.vso.sdk.SDKFinder - unable to perform operation 'find('NetworkProfile', '#####-#######-#####-####,NetworkProfile:#####-#######-#####-####)' on plugin 'VRA' : java.lang.RuntimeException: Failed to Get VMware Cloud Foundation Automation token refresh. Invalid VMware Foundation Automation credentials provided.

Environment

VCF Automation (VCFA) 9.1

Cause

Cause

This issue is caused by the vRA Plugin's "Default" endpoint configuration originating from the legacy Aria Automation 8.18.1 environment. The endpoint was configured to use a shared session authenticating with a local administrator's username and password.

VCF Automation 9.1 restricts local username/password authentication for shared sessions. When the upgraded 9.1 appliance attempts to initialize this legacy endpoint during pod startup, the authentication fails. Because the Orchestrator and plugin do not handle this corrupted/invalid endpoint gracefully, it causes the entire Orchestrator pod to crash. 

Resolution

Workaround (To unblock the upgrade):

Temporarily disabling the vRA plugin bypasses the authentication failure, allowing the vco-server-app pod to start normally.

  1. Log in to the VCFA appliance shell as the vmware-system-user.

  2. Identify the primary database by running:

    k exec -n prelude vcfapostgres-0 -- patronictl list

  3. Connect to the vco_db database inside the vcfapostgres-0 pod:

    k -n prelude exec -it vcfapostgres-0 -- psql -U postgres -d vco_db

  4. Execute an SQL UPDATE query on the vmo_plugin table to disable the vRA plugin.

    update vmo_plugin set enabled=FALSE where moduleName='VRA';
  5. Delete the vco-app pods in the prelude namespace to trigger a restart, then restart the deployer pod.

    kubectl delete pods -l app=vco-app -n prelude

(Alternative: You can roll back to version 8.18.1, proactively disable the vRA plugin in the source environment, and then retry the upgrade.)

Permanent Resolution Options:

To ensure the endpoint authentication aligns with VCF Automation 9.1+ security requirements and to prevent future initialization crashes while restoring plugin functionality, implement one of the following permanent solutions:

  1. Upgrade to VCFA 9.1.1 and use the VCF Automation Plug-in for VM apps with an API token instead of a username and password.

  2. Apply Support of VCF Operations orchestrator Plug-In for VCF Automation for VM Apps in Greenfield VM Apps Organization (VCF Automation 9.x) to bypass the restriction and continue using username/password authentication. This requires vIDM to be configured as the Identity Provider and the VM Apps org set as the default login organization.

  3. Use an AD vIDM user with a username and password instead of a local account.