Restarting stuck image synchronization in VMware Aria Automation
search cancel

Restarting stuck image synchronization in VMware Aria Automation

book

Article ID: 326017

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

How to force an image synchronization restart.

Symptoms:
  • Synchronizing images has been stuck for more than 40 minutes.
  • VMware vCenter is healthy.

image.png


Environment

VMware Aria Automation 8.x

Cause

Storage outages or an unhealthy vCenter may lead to this issue.

Resolution

VMware is aware of this issue. See the Workaround below for additional information.

Workaround:
  1. Validate that vCenter is healthy: Clone a virtual machine from the same template you are trying to provision from.
    1. If this operation fails or generates an error, resolve this issue in vCenter then move to Step #2.
  2. If you are working with VMware Aria Automation 8.x (On-Premises) restart the provisioning service pod.
    kubectl delete pod -n prelude provisioning-service-pod-name
  3. If restarting the service does not alleviate the issue, you may use the following API to mark the image synchronization as FAILED, then, VMware Aria Automation will retry a new image synchronization.
curl --location --request PATCH 'https://<FQDN>/iaas/api/cloud-accounts/<cloud_aaccount_id>?apiVersion=2021-07-15' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "customProperties": {
    "imageEnumerationTaskState": "FAILED"
  },
  "privateKey":"<username_password>",
  "privateKeyId":"<username>"
}'
Note:
image.png

Additional Information

Impact/Risks:
For on-premises deployments, restarting the provisioning-service will fail any deployment in progress.