Configuring Image service

Procedure
  1. If the proxy is set in the environmental variables, disable the proxy using the following commands:
    unset http_proxy
    unset https_proxy
  2. Log in to UnderCloud Host can be done two ways:
    • Approach 1: From the NPS toolkit VM:
      1. Log in to the NPS Toolkit VM as a root user.

      2. Export the environment variables and execute the following command to obtain the temporary IP assigned to Undercloud host after OS installation:
        export API_IP=<NPS Toolkit VM OAM/Customer Network IP address>
        export NPSADMIN=<user name of admin mentioned in the nps_secret.yaml file>
        export NPSPASSWD=<password of admin user mentioned in the nps_secret.yaml file>
        export TOPOLOGY_NAME=<value of the field "topology_name" in the input.json file>
        export VIM_TYPE=<VIM platform type like RHOSP/RHOCP/VMWARE>
        
        nps show --data servers
        nps show --data servers --node <iLO IP of server with role baremetal>
        Look for the field "temp_ip" in the "state" dictionary.
        state -> temp_ip
      3. The password for the Undercloud host is available in the input JSON or can be obtained by using the following step:
        nps show --data platform --node operations_node
        Look for the field named "root_pw" to get password of the Undercloud host.
      4. Log in to the Undercloud host as a root user and using IP obtained from Step b and password from Step c.
        ssh root@<temp_ip>
      5. To obtain the FLR NIC interface names, run the following command:
        ip address
    • Approach 2: From the iLO console:
      1. Log in to the iLO console of UnderCloud host server.

      2. In the OS console, log in to the Undercloud host as a root user.

        NOTE:

        Follow Step c of Approach 1 to obtain the password.

      3. To obtain the FLR NIC interface names, run the following command:
        ip address

  3. Log in to Undercloud host and obtain the FLR NIC interface names using the following command:
    # ip address
  4. Log in to the NPS toolkit VM as root user and export environment variables.
  5. Configure baremetal node using the following command:
    nps baremetal -a configure -nic1 <interface1> -nic2 <interface2> –l debug
    Where <interface1> and <interface2> are the FLR NIC ports of Undercloud host.
    NOTE:

    In this step, we are configuring UnderCloud host as NTP server. In case you need any external NTP server, make the following changes in /etc/ntp.conf. Replace server 127.127.1.0 and fudge 127.127.1.0 stratum 10 with server <external NTP server ip>.

  6. To check the synchronization status of the NTP server in Undercloud host, run the following command:
    ntpstat
    NOTE:
    Ensure that the synchronization status is displayed as:
    synchronized
  7. Check the status of Image service installation and configuration using the following command:
    nps show --service baremetal
  8. To verify the successful deployment of the image service, login to undercloud host using the OAM IP address.
  9. After successful installation and configuration of Image service, run the following command to delete the Image service pod:
    nps baremetal -a delete -nos <nos_type>

    nos - is the Network Operating System and supported <nos_type> is cumulus