Upgrading TaskD
TaskD is installed in the training image. You can upgrade the component by reinstalling the .whl package in the training image.
Prerequisites
Procedures in Environment Check have been completed.
Procedure
- Download the component installation package of the latest version by referring to Obtaining Software Packages.
- After the installation package is downloaded, go to the directory where the installation package is stored and decompress the installation package.
- Run the ls -l command. The following information is displayed:
-rw-r--r-- 1 root root 1493228 Mar 14 02:09 Ascend-mindxdl-taskd_{version}_linux-aarch64.zip -r-------- 1 root root 1506842 Mar 12 18:07 taskd-{version}-py3-none-linux_aarch64.whl - Install TaskD of the latest version based on the existing training image.
- Run the training image.
docker run -it -v /host/packagepath:/container/packagepath training_image:latest bash
- Uninstall the existed TaskD.
pip uninstall taskd -y
If the following information is displayed, the uninstallation is successful:
Successfully uninstalled taskd-{version} - Install the new TaskD.
pip install taskd-{version}-py3-none-linux_aarch64.whlCommand output:
Successfully installed taskd-{version} - After the latest version of TaskD is installed, save the container as the new image.
docker ps
Command output:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8b70390775f2 fd6acb527bad "/bin/bash -c 'sleep…" 2 hours ago Up 2 hours k8s_ascend_default-last-test-deepseek2-60b
Submit the container as a new version of the training container image. Note that the tag of the new image is different from that of the old image. Example:docker commit 8b70390775f2 newimage:latest
- Run the training image.
- Check whether TaskD is upgraded. Also, check whether the component status is normal by referring to Checking TaskD.
- (Optional) Roll back to the old version. If the old image still exists, you do not need to perform rollback. If the old image does not exist, reinstall the TaskD package of the old version.
Parent topic: Upgrade Process