Automation Suite
2023.10
false
Docker registry migration stuck in PVC deletion stage - Automation Suite 2023.10
Banner background image
logo
Automation Suite on Linux Installation Guide
Last updated Feb 13, 2024

Docker registry migration stuck in PVC deletion stage

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" deleteddeployment.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 below 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
donefor 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 above 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
Support and Services icon
Get The Help You Need
UiPath Academy icon
Learning RPA - Automation Courses
UiPath Forum icon
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.