Un-Install CEPH
This is not official documentation for AutomationSuite
- Disable Self Heal on argo
kubectl -n argocd patch application fabric-installer --type=json -p '[
{"op":"replace","path":"/spec/syncPolicy/automated/selfHeal","value":false}
]'
kubectl -n argocd patch application rook-ceph-object-store --type=json -p '[
{"op":"replace","path":"/spec/syncPolicy/automated/selfHeal","value":false}
]'
kubectl -n argocd patch application rook-ceph-operator --type=json -p '[
{"op":"replace","path":"/spec/syncPolicy/automated/selfHeal","value":false}
]'
Note: Make sure nothing is syncing when running this or self-heal will not be disabled
Also make sure to run the following to prevent remenants from remaining.
# Remove the finalizer on the cluster
kubectl patch cephcluster -n rook-ceph rook-ceph --type merge -p '{"metadata":{"finalizers": [null]}}'
#Delete the rook-ceph finailers for preventing accidentle delets.
for CM in $(kubectl get cm -n rook-ceph | grep -v NAME | cut -d " " -f 1 | xargs); do kubectl patch cm -n rook-ceph $CM --type merge -p '{"metadata":{"finalizers": [null]}}'; done
kubectl get cm | grep rook | xargs -l1 --no-run-if-empty -- sh -c 'kubectl delete cm $0'
for SECRET in $(kubectl get secret -n rook-ceph | grep -v NAME | cut -d " " -f 1 | xargs); do kubectl patch secret -n rook-ceph $SECRET --type merge -p '{"metadata":{"finalizers": [null]}}'; done
kubectl get secret | grep rook | xargs -l1 --no-run-if-empty -- sh -c 'kubectl delete secret $0'
-
Delete rook-ceph-operator and rook-ceph-object-store apps from argoCD
-
Delete all CEPH CRDs, if the delete CRD’s command got stuck then repeat patching the CRDs followed by deleting the CRDs
for CRD in $(kubectl get crd -n rook-ceph | grep rook.io | cut -d " " -f 1 | xargs); do kubectl patch crd -n rook-ceph $CRD --type merge -p '{"metadata":{"finalizers": [null]}}'; done
kubectl get crd | grep rook | xargs -l1 --no-run-if-empty -- sh -c 'kubectl delete crd $0'
- Cleanup rook folder and run this command on all the nodes
rm -rf /var/lib/rook/
- Delete rook-ceph namespace
kubectl delete ns rook-ceph
-
Re-Sync rook-ceph-operator from argoCD
-
Re-Sync rook-ceph-object-store from argoCD
-
Re-Run credential manager job and for it to trigger, Sync sf-core application from argoCD UI
-
Re-Run fabric-configure app via argoCD UI
-
If rook-ceph-object-store app is healthy then check if orchestrator app is healthy, if it’s not then delete the pods that corresponds to orchestrator and verify if the pods are getting bootup successfully, if they do then re-sync the whole UiPath application from argoCD UI
-
Revert changes that have been done in step1 i.e. to enable self heal on the applications