How to re-trigger VCF Automation 9.0 failed upgrade workflow
search cancel

How to re-trigger VCF Automation 9.0 failed upgrade workflow

book

Article ID: 398777

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

To upgrade VMware Aria Automation 8.18.0 to version 9.0 within VCF Operations 9.0, it must first be imported. This article outlines the steps to re-initiate the upgrade process from the beginning. 

Environment

VCF Automation 9.0,
VMware Aria Suite Lifecycle 8.18.0 
VMware Aria Automation 8.18.0

Resolution

  1. Login to VCF Operations UI and navigate to Fleet Management -  Lifecycle  
  2. Select VCF Managemnt - Components tab and from the Day-2 operations action menu left from VCF Automation select Delete
  3. In the wizard select to shut down and delete the VMs from the vCenter
  4. After the task is completed login to vCenter and verify that the VCF Automation VM's are deleted (If not, shut down it manually and delete it form the disk)
  5. Power on the VMware Aria Automation 8.18.x virtual machines and wait for the service to start - execute kubectl -n prelude get pods and vracli service status
  6. If the services are not starting you need to redeploy using the following command /opt/scripts/deploy.sh
  7. After all the services are up and running login to VMware Aria Suite Lifecycle  and import the same VMware Aria Automation environment. In you case VMware Aria Automation environment is still there so try to trigger inventory sync
  8. SSH on the vRA node and run the following commands to update the leaf certificate in the VMware Aria Automation appliance:
VIDM_HOST=`k get vaconfigs.prelude.vmware.com prelude-vaconfig -o=jsonpath="{.spec.vidm}" |jq -r .url |cut -d/ -f3`
CERT_PEM=`openssl s_client -connect $VIDM_HOST:443 </dev/null 2>/dev/null | openssl x509 -outform PEM`
SPEC=`jq -nc --arg cert "${CERT_PEM}" '{spec: {vidm: {cert: $cert}}}'`
kubectl patch vaconfig prelude-vaconfig --type='merge' -p "${SPEC}"

   9. Import VMware Aria Automation into  VCF Operations Fleet Management by logging into VCF Operations - Fleet Management - Lifecycle - VCF Management - Overview - Add.

   10.Create an Upgrade plan

   11. Start the upgrade