Configuration Before MEF Center Installation

Before installing MEF Center-related components, perform the following operations to complete necessary configuration:

  1. Log in to the server where ascend-deployer is located.
  2. Configure the IP addresses and usernames of target devices on the server where ascend-deployer is located.

    Go to the ascend-deployer/ascend_deployer directory, open the inventory_file file to add the IP addresses and usernames of target devices, and run the :wq command to save the file and exit. Related formats are listed below. (Set the host of the master node to the default control node of Kubernetes.)

    1. Master variable configuration areas MEF Center-related components can be installed only on the host of the first master node.
      [master] 
      #xx.xx.xx.xx ansible_ssh_user="root" k8s_api_server_ip=xx.xx.xx.xx
      Table 1 Parameters for configuring master variables

      Field

      Mandatory/Optional

      Description

      IP

      Mandatory

      Server IP address.

      ansible_ssh_user

      Mandatory

      Account for logging in to a remote server using SSH. The account must be root.

      ansible_ssh_pass

      Optional

      Password for logging in to a remote server using SSH. If the SSH key authentication mode is configured and the root user can log in to the server, you do not need to set this parameter.

      ansible_ssh_port

      Optional

      Port for SSH connection. If the default port 22 is used, you do not need to set this parameter. If a non-default port is used, set this parameter as required.

      ansible_become_password

      Optional

      This password must be the same as that entered during SSH login of the account. You do not need to set this parameter when the root user is used.

      set_hostname

      Optional

      Name of each node in a Kubernetes cluster. You are advised to use the master-1 format to fill in the names in sequence. If a Kubernetes cluster already exists, the names must be those of the nodes in the existing Kubernetes cluster. The names must be configured in lowercase, and cannot be filled in arbitrarily.

      k8s_api_server_ip

      Mandatory

      Entry for Kubernetes to provide services for external systems. Set this parameter to the IP address of the master node. In the single-master node or multi-master node scenario, the k8s_api_server_ip parameter must be set to an existing IP address on the local host.

    • The usernames of the remote devices are configured in the inventory_file. Both the root user and non-root users can be used for software installation. For details about software that can be installed by non-root users, see Table 1. If you want to install software listed in Table 1 as a non-root user, set ansible_ssh_user in the file to the root user and use the root user to install sys_pkg (system component) and npu (driver and firmware, installed for Ascend devices). Then, set ansible_ssh_user to the non-root user and install the software listed in Table 1.
    • In the inventory_file, you can configure the passwords of other target devices for SSH password authentication by specifying the ansible_ssh_pass field. If the SSH key authentication mode is used, this configuration is not required. If the OS of a target device is openEuler_20.03LTS, openEuler_22.03LTS, Kylin V10 SP2, or CentOS 7.6, the ansible_ssh_pass field cannot be used for this configuration.
  3. Go to the ascend-deployer directory and run the bash install.sh --check command to test the connectivity of the target devices and whether they support the use of the ascend-deployer tool.

    Ensure that all devices can be properly connected. If a device fails to be connected, check whether the network connection of the device is normal and whether SSHD is enabled.