When uninstalling Ascend Docker Runtime, you need to uninstall it twice based on Step 2 for different container engines. Each time you uninstall Ascend Docker Runtime, you need to specify the corresponding installation path, that is, the --install-path parameter.
When uninstalling Ascend Docker Runtime, you need to uninstall it once based on Step 2. After the uninstallation is complete, you need to manually restore the daemon.json file of the other engine to the content before Ascend Docker Runtime is installed.
If you want to retain one of the container engines, you need to uninstall Ascend Docker Runtime and reinstall it based on scenario requirements.
kubectl edit cm -n cluster-system pingmesh-config
cd <path to run package>
./Ascend-docker-runtime_{version}_linux-{arch}.run --uninstall
./Ascend-docker-runtime_{version}_linux-{arch}.run --uninstall --install-scene=containerd
1 2 3 | Uncompressing ascend-docker-runtime 100% ... [INFO] ascend-docker-runtime uninstall success |
cd /usr/local/Ascend/Ascend-Docker-Runtime/script
uninstall.sh docker docker <daemon.json file path>
uninstall.sh containerd containerd <config.toml file path>
If the following information is displayed, the uninstallation is successful:
1 2 3 | [INFO]: You will recover Docker's daemon ... [INFO] uninstall.sh exec success |
systemctl daemon-reload && systemctl restart docker
systemctl daemon-reload && systemctl restart containerd
# Stop the Container Manager service. systemctl stop container-manager.timer systemctl disable container-manager.timer systemctl stop container-manager.service systemctl disable container-manager.service # Delete the Container Manager service. rm -f /etc/systemd/system/container-manager.service rm -f /etc/systemd/system/container-manager.timer systemctl daemon-reload systemctl reset-failed # Delete the corresponding Container Manager binary file. chattr -i /usr/local/bin/container-manager rm -f /usr/local/bin/container-manager
rm -rf /var/log/mindx-dl/container-manager
You can uninstall other cluster scheduling components and install them of the latest version. Specifically, uninstall the components one by one, delete the corresponding namespaces, log directories, and configuration files, and select an uninstallation mode based on the installation mode.
kubectl edit cm -n cluster-system pingmesh-config
cd /home/ascend-device-plugin
kubectl delete -f device-plugin-volcano-v{version}.yaml
1 2 3 4 | serviceaccount "ascend-device-plugin-sa-910" deleted clusterrole.rbac.authorization.k8s.io "pods-node-ascend-device-plugin-role-910" deleted clusterrolebinding.rbac.authorization.k8s.io "pods-node-ascend-device-plugin-rolebinding-910" deleted deployment.apps "ascend-device-plugin-daemonset-910" deleted |
When Ascend Device Plugin is used together with Volcano, a ConfigMap is created. Run the following command to delete it:
kubectl delete cm mindx-dl-deviceinfo-<node-name> -n kube-system
systemctl stop npu-exporter.service systemctl disable npu-exporter.service chattr -i /etc/systemd/system/npu-exporter.service rm -f /etc/systemd/system/npu-exporter.service systemctl daemon-reload systemctl reset-failed chattr -i /usr/local/bin/npu-exporter rm -f /usr/local/bin/npu-exporter
Run the following command to uninstall the namespace created during the installation of other cluster scheduling components. Deleting the namespace will delete all resources in the namespace. Exercise caution when performing this operation.
kubectl delete ns mindx-dl
1 | namespace "mindx-dl" deleted |
rm -rf /var/log/mindx-dl/clusterd
rm -rf /etc/mindx-dl/resilience-controller