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.
This issue occurs if cce-agent is not restarted. To resolve it, log in to the node and manually restart cce-agent.
Solution: Log in to the node and run the following command:
systemctl restart cce-agentPerform the pre-upgrade check again.
- Scenario 2: The error message "your cce-agent is not the latest version" is displayed.
This issue occurs if 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 the affected node and run the following command to obtain a valid OBS address:cat /home/paas/upgrade/agentConfig | python -m json.tool
- 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:
- x86curl -k "https://{OBS address you have obtained}/cluster-versions/base/cce-agent" > /tmp/cce-agent
- Armcurl -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.
- x86mv -f /tmp/cce-agent /usr/local/bin/cce-agentchmod 750 /usr/local/bin/cce-agentchown root:root /usr/local/bin/cce-agent
- Armmv -f /tmp/cce-agent-arm /usr/local/bin/cce-agent-armchmod 750 /usr/local/bin/cce-agent-armchown 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 the affected node and run the following command to obtain a valid OBS address:
Parent topic: Troubleshooting for Pre-upgrade Check Exceptions
- Check Items
- Solution