Failed to Add a Node Because Its IP Address Already Exists
Symptom
When you add a node, the system displays a message indicating that the node fails to be added because it already exists.
Possible Cause
The Kunpeng DevKit has been installed on the node to be added, or the node has already been added as an agent.
Troubleshooting Procedure
- If the Kunpeng DevKit has been installed on the node to be added, log in to the node and uninstall the Kunpeng DevKit. After it is uninstalled, add the node again.
- Use an SSH tool to remotely log in to the OS CLI.
Perform this step as the root user. If you log in as a common user, run the su command to switch to the root user.
- Copy the scan reports to be retained from the following directory (replace /opt/DevKit with the actual tool installation directory):
- Run the following command to uninstall the Kunpeng DevKit (replace /opt/DevKit with the actual tool installation directory):
1bash /opt/DevKit/tools/uninstall.shThe following information is displayed:
1 2 3 4 5 6 7
You will remove devkit from your operating system, do you want to continue? [y/N]: y get devkit config The system uses yum to manage packages. delete web ssl service certificates success no crontab for devkit devkit:x:1028:1028::/home/devkit:/sbin/nologin Execute uninstall success.
- If you type y and press Enter when "A task is running. Are you sure you want to uninstall DevKit?(y/n)" is displayed, the task in progress will be stopped.
- The uninstallation will completely clear the tool installation history.
- Use an SSH tool to remotely log in to the OS CLI.
- If the node has been added to the server, log in to the server, uninstall the node, and add it again.
To uninstall a node, perform the following steps:
- Use an SSH remote login tool to log in to the Linux CLI as the OS user.
Perform this step as the root user. If you log in as a common user, run the su command to switch to the root user.
- Run the following command to go to the node installation directory. (/opt/DevKit is the node installation directory. Replace it with the actual directory.)
1cd /opt/DevKit/tools
- Run the following command to uninstall the node:
1./agent_entry.sh
If the node fails to be uninstalled, manually delete the DevKit user and the /usr/bin/devkit, /home/devkit, and /opt/DevKit folders on the node.
- Use an SSH remote login tool to log in to the Linux CLI as the OS user.
Parent topic: FAQs