CCE Agent Versions
Check Items
Check whether cce-agent on the current node is of the latest version.
Solution
- Scenario 1: The error message "you cce-agent no update, please restart it" is displayed.
cce-agent does not need to be updated but is not restarted. In this case, log in to the node and manually restart cce-agent.
Solution: Log in to the node and run the following command:
systemctl restart cce-agent
Perform the pre-upgrade check again.
- Scenario 2: The error message "your cce-agent is not the latest version" is displayed.
cce-agent is not of the latest version, and the automatic update failed. This issue is typically caused by an invalid OBS path or the component version is outdated.
Solution
- Log in to a node where the check succeeded, obtain the path of the cce-agent configuration file, and obtain the OBS address.
cat `ps aux | grep cce-agent | grep -v grep | awk -F '-f ' '{print $2}'`
The OBS configuration address field in the configuration file is packageFrom.addr.
Figure 1 OBS address
- Log in to a where the check failed, obtain the OBS address again by referring to the previous step, and check whether the OBS addresses are the same. If they are different, change the OBS address of the abnormal node to the correct address.
- Run the following commands to download the latest binary file:
- x86
curl -k "https://{OBS address you have obtained}/cluster-versions/base/cce-agent" > /tmp/cce-agent
- Arm
curl -k "https://{OBS address you have obtained}/cluster-versions/base/cce-agent-arm" > /tmp/cce-agent-arm
- x86
- Replace the original cce-agent binary file.
- x86
mv -f /tmp/cce-agent /usr/local/bin/cce-agent chmod 750 /usr/local/bin/cce-agent chown root:root /usr/local/bin/cce-agent
- Arm
mv -f /tmp/cce-agent-arm /usr/local/bin/cce-agent-arm chmod 750 /usr/local/bin/cce-agent-arm chown root:root /usr/local/bin/cce-agent-arm
- x86
- Restart cce-agent.
systemctl restart cce-agent
If you have any questions about the preceding operations, contact technical support.
- Log in to a node where the check succeeded, obtain the path of the cce-agent configuration file, and obtain the OBS address.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot