Modify the overcloud-full.qcow2 and Ironic configs to add drivers during boot time for deployment with Red Hat OSP Director based on tripleO

I am working with old equipment in my home lab which sometimes brings more complexity into my deployments. In case of tripleO and ironic my old hardware was actually beneficial to learn how ironic and triple0 works.

I am working with BL465c G6 and SB40c which have a e200/p400 controller. RHEL7.x does not recognize these cards/disks if the kernel params hpsa.hpsa_allow_any=1 and hpsa.hpsa_simple_mode=1 are not set during boot time.

So to be able to deploy my overcloud I am going to have to modify the image as well as some config files on the OSP Director to make this work.

First we need to understand what the steps are for deployment.

Step 1. Is modifying the image and adding the hpsa.hpsa_allow_any=1 and hpsa.hpsa_simple_mode=1 to /etc/sysconfig/grub. We need to do this so when the installer runs the command
grub2-mkconfig -o /boot/grub2/grub.cfg after it “dd’s” the overcloud-full.qcow2 image to the compute, controller, ceph … nodes we will see the params in the linux16 line in grub.cfg which will enable the system to recognize the controller and disks.

If you launch the above command, virt-edit will open the file in vi and you will be able to add the changes to the /etc/sysconfig/grub. Once you save and close the file it will be ready for the upload to glance.

Step 2. Modify the /httpboot/discoverd.ipxe to extend the two params in the kernel line.
When we add a host to OSP Director we will need to boot it into discovery mode. The discovery image is a small image which will gather the following information:
CPU/cores, Memory (MB), Disk (GB).

Step 3 and 4. Modify /usr/lib/python2.7/site-packages/ironic/drivers/modules/ipxe_config.template (for ipxe)

Modify /usr/lib/python2.7/site-packages/ironic/drivers/modules/pxe_config.template (for pxe )

After you modified those params and restarted httpd, openstack-ironic-conductor.service, openstack-ironic-discoverd-dnsmasq.service,openstack-ironic-discoverd.service you should be good to go.

Leave a Reply

Your email address will not be published. Required fields are marked *


Hit Counter provided by laptop reviews