This script applies to any failed Cloud Proxy connected to VMware Aria Operations on-prem (formerly known as vRealize Operations).
Note: All Cloud Proxies in the cluster should be on the same version. This script will try to recover VMware Aria Operations Cloud Proxies from situations where:
The Cloud Proxy failed to come online after a reboot.
The Cloud Proxy failed to come online after an upgrade.
The Cloud Proxy failed to start an upgrade to a new version.
Environment
Aria Operations 8.16 and Later
Resolution
To run the Cloud Proxy recovery script, follow the steps below.
Download the cprcrecoveryscriptv2.py file attached to this article.
Copy the cprcrecoveryscriptv2.py file to the /tmp directory on all failed Cloud Proxies using an SCP utility.
Note: The recovery script may be saved with a different filename when downloaded. Please rename the script to 'cprcrecoveryscriptv2.py' after downloading.
Log into each failed Cloud Proxy as root via SSH or Console, pressing ALT+F1 in a Console to log in.
Change to the /tmp directory on each failed Cloud Proxy:
cd /tmp
Run the following command on each failed Cloud Proxy to execute the cprcrecoveryscriptv2.py script:
$VMWARE_PYTHON_BIN cprcrecoveryscriptv2.py
Note: Ensure there are no ERROR messages in the script output. Each failed Cloud Proxy should now come online and start upgrading to the latest version automatically if an upgrade is required.