Retry of VCF Management Component Deployment fails with "401 Unauthorized" in VCF Installer
search cancel

Retry of VCF Management Component Deployment fails with "401 Unauthorized" in VCF Installer

book

Article ID: 450463

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VMware Cloud Foundation VCF Operations

Issue/Introduction

  • When retrying a failed deployment in the VCF installer, the task Generate VCF Management Component Deployment Input Data fails. 
  • VCF Installer UI displays the error:
    An error occurred in task "Generate VCF Management Component Deployment Input Data". See Tasks panel to learn more.


  • In VCF Installer /var/log/vmware/vcf/domainmanager/domainmanager.log it shows a 401 Unauthorized error when attempting to retrieve build information from VCF Operations:

    ERROR [vcf_dm,6a6a#################] [c.v.e.s.c.s.v.impl.VcfOpsServiceImpl,dm-exec-####]  Failed to get VCF Operations version
    org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 401 on GET request for "https://<vcf-ops_fqdn>/casa/sysadmin/slice/vmware/buildinfo": "<!doctype html><html lang="en"><head><title>HTTP Status 401 – Unauthorized

     

    ERROR [vcf_dm,6a6a#################] [c.v.e.s.v.s.PrepareInputToDeployVcfMgmtSuiteComponentsAction,dm-exec-####]  Error while preparinginput for VCF Management component deployment
    com.vmware.evo.sddc.common.services.vrops.VropsApiException: org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 401 on GET request for "https://<vcf-ops_fqdn>/casa/sysadmin/slice/vmware/buildinfo": "<!doctype html><html lang="en"><head><title>HTTP Status 401 – Unauthorized

     

    Caused by: org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 401 on GET request for "https://<vcf-ops_fqdn>/casa/sysadmin/slice/vmware/buildinfo": "<!doctype html><html lang="en"><head><title>HTTP Status 401 – Unauthorized

     

    ERROR [vcf_dm,6a6a#################] [c.v.e.s.o.model.error.ErrorFactory,dm-exec-####]  [#####] PREPARE_INPUT_FOR_DEPLOY_VCF_MGMT_COMPONENTS_FAILED Preparing input for deploying VCF management components failed
    com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Preparing input for deploying VCF management components failed

Environment

  • VMware Cloud Foundation (VCF) 9.x
  • VCF Installer / SDDC Manager
  • VCF Operations 9.x

Cause

This issue occurs because the VCF Operations admin user password was changed manually or rotated, and it no longer matches the password stored in the active deployment workflow specification. This results in an authentication failure (HTTP 401) when the installer attempts to communicate with the VCF Operations API (CASA).

Resolution

To resolve this issue, manually update the VCF Operations password in the failed deployment workflow specification and retry the task.

 

Steps to follow:

  1. Log in to the SDDC Manager / VCF Installer via SSH.
  2. Obtain the current deployment workflow specification (JSON). - Refer KB 424770
  3. Update the VCF Operations admin password (and any other VCF Operations password fields) with the correct, current password.
  4. Patch the modified workflow back to the API. - Refer KB 424770
  5. Retry the failed task from the VCF Installer UI.