Upgrade fails with error:vRealize Automation Upgrade/Patch Pre-validation failed in VCF environment
search cancel

Upgrade fails with error:vRealize Automation Upgrade/Patch Pre-validation failed in VCF environment

book

Article ID: 301585

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

Symptoms:
  • Upgrade fails with generic error:vRealize Automation Upgrade/Patch Pre-validation failed. Check pre-check results from upgrade wizard for detailed report.
  • Pre-check on SDDC Manager passes.
  • VRLCM log file /var/log/vrlcm/vmware_vrlcm.log can be used to check the error 
    {

          "id": null,
          "checkName": "Disk space check on services-logs partition",
          "checkType": "ERROR",
          "status": "FAILED",
          "recommendations": [
            "Disk space on services-logs partition (/services-logs) on VM Disk 3 on node: vra03.vcf.sddc.lab needs to be increased to at least 22 GB to perform upgrade and work normally. To satisfy the requirement increase services-logs partition (/services-logs) on VM Disk 3 to 22 GB or more WITHOUT POWERING OFF THE VA. Then run 'vracli disk-mgr resize' on the vRA VA from the command shell. Refer KB - https://kb.vmware.com/s/article/79925 if new size is not reflected after resize
."
          ],          "resultDescription": "Disk space on services-logs partition (/services-logs) on VM Disk 3 (/dev/sdc) needs to be increased to at least 22 GB. Current size of the partition on vRA VA vra03.vcf.sddc.lab is 8.384 GB",
          "elementType": "CHECK",
          "childElements": null
        }

  • You will see a similar message as shown in screenshot below.

image.png


Environment

VMware Cloud Foundation 4.x

Cause

  • Disk space on services-logs partition (/services-logs) on VM Disk 3 on vra node should be  at least 22 GB to perform upgrade and work normally.

Resolution

  • Delete the snapshots on all vRA nodes
  • Increase the VM DISK 3 size to 22 or above (Do not power off vRA nodes)
  • SSH to the appliance.
  • Run the command: "vracli disk-mgr resize". The resize procedure will start in up to a minute. Progress could be monitored in the /var/log/disk_resize.log. It is expected to fail while resizing file system for logs disk.
  • Run the command: "/usr/sbin/resize2fs /dev/mapper/logs_vg-services--logs"
  • Run the command:
  • For vRA/vRO 8.0: "rm /var/run/disk_stats"
  • For vRA/vRO 8.0.1 and 8.1: "rm /var/vmware/prelude/disk-management/disk_stats"
  •  Run the command  "vracli disk-mgr" to verify if new disk space is visible.
  • Once the disk is expanded, to recover VRA from the current upgrade, please clean the following files from vRA VM's and retry the upgrade from SDDC manager 
/data/restorepoint
/var/vmware/prelude/upgrade
/var/log/vmware/prelude/upgrade-report-latest*

NOTE: In VCF 4.3 precheck displays the exact failed validation in the SDDC Manager UI.

Alternatively you can also ignore the vra prechecks by changing the below entry in /opt/vmware/vcf/lcm/lcm-app/conf/feature.properties

From
feature.lcm.vra.skip.upgrade.prevalidation=false
to
feature.lcm.vra.skip.upgrade.prevalidation=true

Then  restart lcm service.

Workaround:
  •