Managing an Edge Node

Managing an edge node is the process of using the EdgeCore installer and configuration file downloaded in Registering a Custom Edge Node to install EdgeCore on the edge node. In this way, the edge node can be connected to and managed by IEF.

When you manage your edge node on IEF for the first time, IEF automatically pushes the latest EdgeCore. For example, if three EdgeCore versions 2.22.0, 2.23.0, and 2.24.0 are available, IEF will push the latest version 2.24.0.

The edge nodes registered on IEF have one-to-one relationships with the actual devices. The EdgeCore installer and configuration file of an edge node can be installed on only one actual device.

Prerequisites

Managing an Edge Node

If you want to register an Atlas 500 AI edge station as an edge node, follow the procedure described in Managing an Atlas 500 AI Edge Station.

If you want to register an ITS800 as an edge node, follow the procedure described in Managing an ITS800 Node.

  1. Log in to an edge node as a user with sudo permissions.
  2. Upload the EdgeCore installer and configuration file downloaded in Registering a Custom Edge Node to the edge node, and run the following command to decompress the software package to the /opt folder:

    sudo tar -zxvf edge-installer_1.0.0_x86_64.tar.gz -C /opt

    Replace edge-installer_1.0.0_x86_64.tar.gz with the name of the EdgeCore installer package downloaded in Registering a Custom Edge Node.

  3. Run the following command to decompress the configuration file to the opt/IEF/Cert directory:

    sudo mkdir -p /opt/IEF/Cert; sudo tar -zxvf Edge node name.tar.gz -C /opt/IEF/Cert

    Replace Edge node name.tar.gz with the name of the configuration file downloaded in Registering a Custom Edge Node.

  4. Run the following commands to check whether the edge node meets the management requirements:

    chmod +x /opt/edge-installer/edgectl

    ./opt/edge-installer/edgectl diagnose installation

    • If the edge node meets the requirements, the following information is displayed:
      +---------------------------------+
      | Installation diagnose succeed. |
      +---------------------------------+
    • If the edge node does not meet the requirements, an error message similar to the following is displayed. You can locate and rectify the fault based on the error code in the message. For details, see Error Code Overview.
      Failed to get Docker version.
      ERROR6102: Make sure that Docker is running.
      For more information, see IEF documentation.
      
      +-------------------------------+
      | Installation diagnose failed. |
      +-------------------------------+

  5. Run the following command to manage the edge node:

    cd /opt/edge-installer; sudo ./installer -op=install

  6. Verify whether the edge node is managed successfully.

    1. Log in to the IEF console.
    2. In the navigation pane, choose Managed Resources > Edge Nodes.
    3. Check the status of the edge node. If the status is Running, the edge node has been managed by IEF.
      Figure 1 Checking the edge node status

After the edge node is managed by IEF, do not delete the /opt directory on the edge node, or you will need to register the edge node and enable IEF to manage it again.

Managing an Atlas 500 AI Edge Station

If your edge node is not an Atlas 500 AI edge station, see Managing an Edge Node.

  1. Log in to an Atlas 500 AI edge station as user admin, and check whether the domain name resolution of the DNS server is normal.

    1. Switch to the develop mode, and enter the password of user root.

    2. Ping the service address of HUAWEI CLOUD IEF, and check whether the domain name can be resolved.

      ping ief-edgeaccess.cn-south-1.myhuaweicloud.com

      • If the following information is displayed, the domain name cannot be resolved:

        In this case, use vi to edit resolv.conf and add the IP address (for example, 114.114.114.114) of the DNS server on the public network.

        vi /etc/resolv.conf

      • If the following information is displayed, the domain name can be resolved, and you can continue to 2.

  2. Log in to the WebUI of the Atlas 500 AI edge station (https://{hostIP}).

    {hostIP} is the IP address of the Atlas 500 AI edge station.

  3. Choose Maintenance in the navigation pane on the top of the page, and click NMS Registration on the left of the page.
  4. Select HUAWEI CLOUD Intelligent EdgeFabric (IEF) for Select NMS Mode and upload the configuration file (node certificate) downloaded in Registering a Custom Edge Node.

    Figure 2 Uploading the node certificate

  5. Click Save. Wait for the Atlas 500 AI edge station to be managed by IEF.

Managing an ITS800 Node

  1. Log in to the ITS800 OMU portal as the admin user.
  2. Choose System Management > IEF Edge.
  3. Upload the installation package and certificate package.

  4. Click Install to install the algorithm.

    After the algorithm is installed, the value of Status changes to Installed.