Install OpenStack Juno on CentOS 7 #linux, #linux #tutorials, #cloud #computing, #cloud #tutorials, #openstack, #openstack

#

Install OpenStack Juno on CentOS 7 / RHEL 7


OpenStack is a free and open source cloud computing platform developed as a joint project of Rackspace Hosting and NASA. Users primarily deploy it as an Infrastructure as a Service (IaaS) solution. OpenStack cloud consists of many well know technologies like: Linux KVM, LVM, iSCSI, MariaDB (MySQL), RabbitMQ or Python Django.

OpenStack architecture overview:

  1. Horizon: web browser user interface (dashboard) based on Python Django for creating and managing instances (virtual machines)
  2. Keystone: authentication and authorization framework
  3. Neutron: network connectivity as a service
  4. Cinder: persistent block storage for instances based on LVM
  5. Nova: instances management system based on Linux KVM
  6. Glance: registry for instance images
  7. Swift: file storage for cloud
  8. Ceilometer: metering engine for collecting billable data and analysis.
  9. Heat: orchestration service for template-based instance deployment

In this tutorial we will install OpenStack Juno release from RDO repository on two nodes (controller node compute node) based on CentOS 7 / RHEL 7.

Environment used:
public network (Floating IP network): 192.168.2.0/24
internal network: no IP space, physical connection only (eth1)
public controller IP: 192.168.2.4 (eth0)
public compute IP: 192.168.2.5 (eth0)

Controller node network interfaces configuration before OpenStack installation:

Compute node network interfaces configuration before OpenStack installation:

First of all, stop and disable NetworkManager on both nodes (controller and compute):

Update your system on both nodes (controller and compute):

Install RDO repository (controller node):

Install packstack automated installer (controller node):

Generate answer file for packstack automated installation (controller node):

Edit answer file (/root/answers.txt) and modify below parameters (controller node):

Here attached: answers.txt file used during our installation.

Launch packstack automated installation (controller node):

Installation will take about 1-1,5h, we will be prompted for root password for all nodes (in our case: controller and compute):

After successful installation we should get the output similar to the below:

Test your installation login to the Horizon (OpenStack Dashboard), type the following in your web browser:

Let s go back to the console, create OVS (openvswitch) bridges and bind them to physical network interfaces on both nodes

After OpenStack installation we have following network interfaces on controller node:

and on compute node:

Type following commands on controller node:

Modify ifcfg-eth0 file on controller node to look like:

Modify ifcfg-br-ex file on controller node to look like:

Modify ifcfg-eth1 file on controller node to look like:

Connect eth0 interface to br-ex bridge on controller node.
Below command will trigger network restart, so you will lose network connection for a while! The connection should be brought up again, if you modified ifcfg-eth0 and ifcfg-br-ex files correctly.

Now let s connect eth1 interface to br-eth1 bridge (this will restart network too) :

Now your network interfaces configuration on controller node should look like below (public IP is now assigned to br-ex interface):

Check OVS configuration on controller node. Now port eth0 should be assigned to br-ex and port eth1 should be assigned to br-eth1:

Modify ifcfg-eth1 file on compute node to look like:

Now on compute node connect eth1 interface to br-eth1 bridge (this will restart network) :

Check OVS configuration on compute node. Now port eth1 should be assigned to br-eth1:

Time to check our new OpenStack cloud status and functionality.
After each OpenStack installation a file /root/keystonerc_admin is created on controller node. This file contains admin credentials and other authentication parameters needed to operate and maintain our cloud. It looks like below:

Let s source this file to import OpenStack admin credentials into Linux system variables, to avoid being prompted for password each time we want to invoke OpenStack command:

Check OpenStack status on controller node to ensure mandatory services are running:

Verify hosts list on controller node:

Verify services on cloud hosts (execute on controller node):

Thx for prompt answer .

Yes I m using Liberty release.

As it is if I try to run an instance on the faulty compute node. I got following error in neutron logs :

Failed to bind port e3167852-2ff6-4b33-8cad-a901b29d23d8 on host lptxopsvnode01

AFAYK. could it be related to this bug ?

On the controller/compute node. no problem to start an instance.


Tags : , , , , , , , , ,

0 thoughts on “Install OpenStack Juno on CentOS 7 #linux, #linux #tutorials, #cloud #computing, #cloud #tutorials, #openstack, #openstack #tutorials, #centos, #rhel, #linux #tips, #linux #tricks, #glusterfs”

Leave a Reply

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