Configuring Image service
Procedure
-
If the proxy is set in the environmental variables, disable the proxy using the following commands:
unset http_proxy unset https_proxy
-
Log in to UnderCloud Host can be done two ways:
- Approach 1: From the NPS toolkit VM:
Log in to the NPS Toolkit VM as a root user.
- Export the environment variables and execute the following command to obtain the temporary IP assigned to Undercloud host after OS installation:
Look for the fieldexport 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>
"temp_ip"
in the"state"
dictionary.state -> temp_ip
- The password for the Undercloud host is available in the input JSON or can be obtained by using the following step:
Look for the field namednps show --data platform --node operations_node
"root_pw"
to get password of the Undercloud host. - 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>
- To obtain the FLR NIC interface names, run the following command:
ip address
- Approach 2: From the iLO console:
Log in to the iLO console of UnderCloud host server.
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.
- To obtain the FLR NIC interface names, run the following command:
ip address
-
Log in to Undercloud host and obtain the FLR NIC interface names using the following command:
# ip address
- Log in to the NPS toolkit VM as root user and export environment variables.
-
Configure baremetal node using the following command:
Where <interface1> and <interface2> are the FLR NIC ports of Undercloud host.nps baremetal -a configure -nic1 <interface1> -nic2 <interface2> –l debug
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>.
-
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
-
Check the status of Image service installation and configuration using the following command:
nps show --service baremetal
- To verify the successful deployment of the image service, login to undercloud host using the OAM IP address.
-
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