Skip navigation

2015-07-27

OpenStack RDO Manager Installation (4)

How to install OpenStack RedHat RDO Manager. This installation assumes completed about Overcloud image upload by OpenStack RDO Manager Installation (3) This article describe set up beremetal machine for OpenStack Ironic.

Login to RDO manager as stack user first, Then login to instack VM as root and switch stack user if you are not logged in to the instack VM. Please load environment values by source stackrc command before operate the OpenStack of Undercloud.

$ ssh -i ~/.ssh/id_rsa stack@192.168.100.30
[stack@rdo ~]$ su - stack
Password:
[stack@rdo ~]$ ssh root@192.168.122.221
[root@instack ~]# su - stack
[stack@instack ~]$ source stackrc
[stack@instack ~]$ screen

Please use screen command because following tasks may take long hours.

Beremetal VM Settings

Import baremetal manifest. Need to set to match actual Controller and Compute VM. Power management need to change from root to user stack for PXE+SSH in this article.

[stack@instack ~]$ sed -i.orig -e "s/root/stack/g" instackenv.json

Initialize Ironic Discovery Information

Initialize Ironic discovery information.This procedure for just in case. It may not need almost cases.

[stack@instack ~]$ sudo rm /var/lib/ironic-discoverd/discoverd.sqlite
[stack@instack ~]$ sudo systemctl restart openstack-ironic-discoverd
[stack@instack ~]$ sudo journalctl -b -u openstack-ironic-discoverd
...
Jul 21 09:47:16 instack.localdomain ironic-discoverd[30601]: INFO:werkzeug: * Running on http://0.0.0.0:5050/

Import Baremetal Manifest

Import baremetal manifest. Further in this article the UUID of baremetal machines will be used.

[stack@instack ~]$ openstack baremetal import --json instackenv.json
[stack@instack ~]$ openstack baremetal list
+--------------------------------------+------+---------------+-------------+-----------------+-------------+
| UUID                                 | Name | Instance UUID | Power State | Provision State | Maintenance |
+--------------------------------------+------+---------------+-------------+-----------------+-------------+
| 2acdc988-fb22-4f85-ba6a-7036260b03d2 | None | None          | power off   | available       | False       |
| 3ac7e24e-e753-46f7-9d4c-002760acecb2 | None | None          | power off   | available       | False       |
+--------------------------------------+------+---------------+-------------+-----------------+-------------+

Change status Power State=power off、Maintenance=False、Provision=managable for baremetal machines boot up. It is deployable only managable state.

[stack@instack ~]$ openstack baremetal power --off 2acdc988-fb22-4f85-ba6a-7036260b03d2
[stack@instack ~]$ openstack baremetal power --off 3ac7e24e-e753-46f7-9d4c-002760acecb2
[stack@instack ~]$ ironic node-update 2acdc988-fb22-4f85-ba6a-7036260b03d2 replace maintenance=false
[stack@instack ~]$ ironic node-update 3ac7e24e-e753-46f7-9d4c-002760acecb2 replace maintenance=false
[stack@instack ~]$ ironic node-set-provision-state 2acdc988-fb22-4f85-ba6a-7036260b03d2 manage
[stack@instack ~]$ ironic node-set-provision-state 3ac7e24e-e753-46f7-9d4c-002760acecb2 manage
[stack@instack ~]$ openstack baremetal list
+--------------------------------------+------+---------------+-------------+-----------------+-------------+
| UUID                                 | Name | Instance UUID | Power State | Provision State | Maintenance |
+--------------------------------------+------+---------------+-------------+-----------------+-------------+
| 2acdc988-fb22-4f85-ba6a-7036260b03d2 | None | None          | power off   | manageable      | False       |
| 3ac7e24e-e753-46f7-9d4c-002760acecb2 | None | None          | power off   | manageable      | False       |
+--------------------------------------+------+---------------+-------------+-----------------+-------------+
[stack@instack ~]$ openstack baremetal configure boot

Connect to the instack from another terminal for capturing tcpdump.

$ ssh -i ~/.ssh/id_rsa stack@192.168.100.30
[stack@rdo ~]$ su - stack
Password:
[stack@rdo ~]$ ssh root@192.168.122.221
[root@instack ~]# su - stack
[stack@instack ~]$ sudo tcpdump -i any port 67 or port 68 or port 69

Back to original terminal, Then perform introspection. DHCP status appears in the tcpdump, the IP addresses are getting correctlly.

[stack@instack ~]$ openstack baremetal introspection bulk start --debug
Discovery for UUID 2acdc988-fb22-4f85-ba6a-7036260b03d2 finished successfully.
Discovery for UUID 3ac7e24e-e753-46f7-9d4c-002760acecb2 finished successfully.

It takes about 7 minutes for completion. After that it may stop tcpdump. It should be Provision=available.

[stack@instack ~]$ openstack baremetal list
+--------------------------------------+------+---------------+-------------+-----------------+-------------+
| UUID                                 | Name | Instance UUID | Power State | Provision State | Maintenance |
+--------------------------------------+------+---------------+-------------+-----------------+-------------+
| 2acdc988-fb22-4f85-ba6a-7036260b03d2 | None | None          | power off   | available       | False       |
| 3ac7e24e-e753-46f7-9d4c-002760acecb2 | None | None          | power off   | available       | False       |
+--------------------------------------+------+---------------+-------------+-----------------+-------------+

Next article describes deploying Overcloud to baremetal machine.

OpenStack RDO Manager Installation (5)