UiPath Documentation
automation-suite
2023.10
false
Automation Suite on Linux installation guide

Docker registry migration stuck in PVC deletion stage

Known issue in Automation Suite where Docker registry migration stalls at the PVC deletion stage due to pending VolumeSnapshots blocking deletion.

Description​

During a Docker registry migration, you may encounter an issue where the migration process gets stuck on the PVC deletion stage. This issue typically occurs when there are pending VolumeSnapshots on the PVC which prevent the successful deletion of the PVC. The logs for this issue will display the following messages:

deployment.apps/docker-registry scaled
pod/docker-registry-5b68496d6c-2djhs condition met
persistentvolumeclaim "docker-registry" deleted
deployment.apps/docker-registry scaled
pod/docker-registry-5b68496d6c-2djhs condition met
persistentvolumeclaim "docker-registry" deleted

Solution​

To resolve this issue, you need to clean up pending VolumeSnapshots. Run the command the following to perform this cleanup:

for i in `kubectl get volumesnapshot -n docker-registry -o json | jq -r '.items[] | select(.spec.source.persistentVolumeClaimName=="docker-registry" and .status.readyToUse==false) | .metadata.name'`; do
  kubectl patch volumesnapshot -n docker-registry $i  --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]'
  kubectl delete volumesnapshot -n docker-registry $i
done
for i in `kubectl get volumesnapshot -n docker-registry -o json | jq -r '.items[] | select(.spec.source.persistentVolumeClaimName=="docker-registry" and .status.readyToUse==false) | .metadata.name'`; do
  kubectl patch volumesnapshot -n docker-registry $i  --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]'
  kubectl delete volumesnapshot -n docker-registry $i
done

After executing the previous command, you should re-run the registry migration. This should allow the Docker registry migration process to move past the PVC deletion stage successfully.

  • Description​
  • Solution​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated