All things DevOps

Tag: redhat

In a previous article I wrote about how to install Openstack Icehouse on CentOS 6.5 in great detail. In this article, I am going to keep verbosity to a minimum and just give you the commands ! I am hoping this will be refreshing for my audience. If you are curious however, about the what, when and why please read my previous article.

Pre-requisites

You need a machine with x86_64 architecture with at least 4 GB of memory & 2 NIC’s.

On this machine you need to install CentOS 7 as a minimal install

You should create a user with admin privileges (i.e. wheel, in my case ‘tuxninja’ was created)

At the bottom of the [epel] section, after the gpgkey add a newline with: exclude=hiera*

Save the file

sud0 yum install -y puppet-3.6.2-3.el7.noarch

reboot

sudo rm /etc/puppet/hiera.yaml

sudo packstack –allinone

This should successfully install. Godspeed.

Networking

Now that Openstack is setup, we still have to setup our network with private & public routed networks, so we can turn this into a real multi-node setup and ssh to our hosts and let them reach the internet etc. To do this, much like my previous post you need to modify your /etc/sysconfig/network-scripts/ files to reflect this.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

[tuxninja@diamond network-scripts]$cat ifcfg-enp4s0f0

NAME="enp4s0f0"

UUID="e0c3929c-1f9b-44d1-9c59-6c8872f603bd"

DEVICE="enp4s0f0"

TYPE="OVSPort"

NM_CONTROLLED="no"

DEVICETYPE="ovs"

OVS_BRIDGE="br-ex"

BOOTPROTO="none"

ONBOOT="yes"

[tuxninja@diamond network-scripts]$cat ifcfg-enp4s0f1

NAME=enp4s0f1

UUID=ed50b4b6-2c29-4307-bbb0-f3c923f6552a

DEVICE=enp4s0f1

ONBOOT=yes

NM_CONTROLLED=no

BOOTPROTO=none

NETWORK=10.0.0.0

IPADDR=10.0.0.1

NETMASK=255.255.255.0

[tuxninja@diamond network-scripts]$cat ifcfg-br-ex

DEVICE=br-ex

DEVICETYPE=ovs

TYPE=OVSBridge

BOOTPROTO=static

IPADDR=192.168.1.10

NETMASK=255.255.255.0

GATEWAY=192.168.1.1

DNS1=8.8.8.8

DNS2=8.8.4.4

DNS3=192.168.1.1

ONBOOT=yes

[tuxninja@diamond network-scripts]$

Note: I deleted all the IPV6 crap, I think it messes some stuff up. When your done making the changes with your favorite editor, restart networking : sudo /etc/init.d/network restart or sudo systemctl restart network

Next go into in the Horizon Dashboard GUI and delete the demo project. See my previous article for details on how.

When logging into your dashboard located at http://192.168.1.10/dashboard at some point you might hit a bug that prevent you from logging into the Horizon dashboard see : https://bugzilla.redhat.com/show_bug.cgi?id=1218894 … the work-around for this is to clear your browser cookies.

You’re Done

That’s it. Next steps would be to create a project & new admin user, re-create the required network mappings in openstack using the above commands (modify the names to make them unique) and create your ssh key, import it, download some images, import them using glance, and create some VM’s. Also I like to delete the demo project (you can also prevent this from being created with a flag on the packstack command). Make sure you delete all default security rules and add back ICMP, TCP, and UDP allow ingress / egress rules for 0.0.0.0 aka any/any, again you can see my article on CentOS 6.5 with more specifics on how to do this. Additionally, I have an article on how to add additional compute nodes as well.