Monday, January 22, 2018

Welcome back LinuxTechi users, with the continuation of our openstack
deployment with Tripleo approach. In this tutorial we will discuss the
steps how we can deploy tripleo overcloud Servers (Controller and
Compute) via undercloud on CentOS 7 VMs hosted in KVM hypervisor.
In our last article we have already discussed our lab setup details
and installation of tripleo Undercloud on CentOS 7, for undercloud
installation steps refer:

Step:1 Download and Import Overcloud images

Login to the undercloud server as stack user and download the
overcloud images from the below url, in my case I am using latest
version of openstack( i.e pike), you can download the images that suits
to your environment and openstack version,https://images.rdoproject.org/pike/delorean/current-tripleo-rdo/

Step:4 Install and Configure vbmc (Virtual BMC) on undercloud

Vbmc is power management tool for virtual machines, VMs can be managed via ipmitool.
Using vbmc we can power off, power on and also verify the power
status of a VM. We require vbmc as undercloud will require to power on /
off VMs during the deployment.Note: vbmc is the replacement of pxe_ssh as pxe_ssh is depreciated now.
Run below yum install command to install virtualbmc,

Step:5 Create and Import overcloud nodes inventory via json file

Let’s create a inventory file(json), it will include the details of overcloud servers (Controllers and Compute).
First capture mac address of over cloud nodes, for this go the kvm hypervisor run the below commands

Set Roles or Profile to overcloud nodes:

To set the role to each overcloud node, use the below commands. VMs with name “overloud-compute1/2” will act as a openstack compute node and VM with name “overcloud-controller” will act as openstack compute node.

In the above command we are using the options like “–compute-scale 2” and “–control-scale 1“, it means we will use two compute nodes and one controller node.
Please note that the above command will take approx. 40 to 50 minutes
or more depending on hardware or vm performance. So, you have to wait
until the above command will not finished
Output of the above command should be something like below:
Run the beneath command to view IP address of overcloud nodes

Similarly we can connect to rest of the compute nodes
Once the overcloud has been deployed successfully, all the admin credentials are stored in file “overcloudrc” in stack user’s home directory

(undercloud) [stack@undercloud ~]$ cat ~/overcloudrc

Now try to access the Horizon Dashboard using the credentials mentioned in overcloudrc file.
Open the Web Browser and type the url:http://192.168.126.103/dashboard
This confirms that overcloud has been deployed successfully. Now
Create Projects, Networks and upload cloud images and then you start
creating Virtual machines. That’s all from this tutorial, please do
share your feedback and comments.