Problem Symptom
Before an automatic CloudA upgrade, node communications are interrupted. As a result, the pre-upgrade check of the Agent status is not passed and the upgrade fails.
[ERROR] agents status are not normal!
clouda upgrade result is :1
CloudA automatic upgrade log path: /var/log/deploy/scripts/package.log

Problem Diagnosis
1. Log in to any FSM node and switch to user root.
2. Run the following commands to export the node information:
# touch /tmp/sql_result.txt
# exec_sql="/opt/fusionstorage/deploymanager/gaussdb/app/bin/gsql -p 7018 -d cmdb -W Huawei12#$ -c \\\"select * from HOST_INFO;\\\""
# eval "su - dmdbadmin -c \"${exec_sql}\"" >> /tmp/sql_result.txt
![]()
3. Run the following command to view the exported node information and obtain information about the node where the CloudA Agent is abnormal (the value of AGENT_STATUS is 3):

# vim /tmp/sql_result.txt
4. Check whether the network communications between the faulty node and FSM nodes are normal.
Causes
Before the automatic CloudA upgrade, the Agent status of the node is abnormal. As a result, CloudA on the node cannot be automatically upgraded.
Solution
Rectify the faulty node.
Log in to the active FSM node and run the following commands to check whether the Agent status of the faulty node is normal (the value of AGENT_STATUS is 1):

# rm -rf /tmp/sql_result.txt
# touch /tmp/sql_result.txt
# exec_sql="/opt/fusionstorage/deploymanager/gaussdb/app/bin/gsql -p 7018 -d cmdb -W Huawei12#$ -c \\\"select * from HOST_INFO;\\\""
# eval "su - dmdbadmin -c \"${exec_sql}\"" >> /tmp/sql_result.txt
# vim /tmp/sql_result.txt
After the node is restored, go to the directory where DeployManager is upgraded automatically and run the sh upgrade.sh command to upgrade CloudA again.
Check After Recovery
Log in to any FSM node and run the following commands to check AGENT_STATUS of the faulty node. If the node recovers, its AGENT_STATUS is 1.

# rm -rf /tmp/sql_result.txt
# touch /tmp/sql_result.txt
# exec_sql="/opt/fusionstorage/deploymanager/gaussdb/app/bin/gsql -p 7018 -d cmdb -W Huawei12#$ -c \\\"select * from HOST_INFO;\\\""
# eval "su - dmdbadmin -c \"${exec_sql}\"" >> /tmp/sql_result.txt
# vim /tmp/sql_result.txt
Suggestion and Summary
N/A
Applicable Versions
All
