我要评分
获取效率
正确性
完整性
易理解

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.
    1. Use an SSH tool to remotely log in to the OS CLI.
    2. Copy the scan report to be retained from the /opt/DevKit/workspace/user/tools/report/ directory.

      /opt indicates the tool installation directory, user indicates the user name, and tools indicates the tool name. Replace them with the actual values.

    3. Run the following command to uninstall the Kunpeng DevKit:
      1
      bash /opt/DevKit/tools/uninstall.sh
      

      The following information is displayed:

      1
      2
      3
      4
      5
      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
        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.
  • 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:

    1. Use an SSH remote login tool to log in to the Linux CLI as the OS user.
    2. Go to the node installation directory.
      cd /opt/DevKit/tools
    3. Run the following command to uninstall the node:
      ./agent_uninstall_entry.sh

    If the node fails to be uninstalled, manually delete the /userhome/DevKit and /install_path/DevKit folders on the node.

    • /userhome/: home directory of the installation user.
    • /install_path/: DevKit installation directory.