Starting With OpenStack

Just a quick post from our labs exploring OpenStack in class.

Installation

Openstack can be installed through the use of packstack on Centos 7.

systemctl disable NetworkManager; systemctl stop NetworkManager;
# Edit /etc/sysconfig/network-scripts/$NAME_OF_INTERFACE

Then just download the script for installation and run it

wget https://pastebin.com/raw/tmTf8XTS -O packstack-install.sh
chmod u+x packstack-install.sh
./packstack-install.sh

Contents of the packstack install script:

#!/bin/bash

read -p "Have you run packstack before? (y/n) " -e reply

if [[ "$reply" == 'n' ]];
then
	echo "Adding rdoproject repository"
	yum install -y https://rdoproject.org/repos/rdo-release.rpm &> /dev/null

	echo "Updating system"
	yum update -y &> /dev/null

	echo "Installing Packstack Package"
	yum install -y openstack-packstack &> /dev/null

	echo "Running Packstack install"
	packstack --allinone --provision-demo=n --os-neutron-ovs-bridge-mappings=extnet:br-ex --os-neutron-ml2-type-drivers=vxlan,flat

elif [[ "$reply" == 'y' ]];
then
	read -p "Please specify the packstack answer file" -e packFile
	packstack --answer-file $packFile
else
	echo "Skipping install..."
fi

Once OpenStack is installed you will have to visit http://YOUR_IP/dashboard And you will be greeted by a login screen. The credentials to log in are avaliable in the users home directory in a file called keystonerc_admin.

Once you log in you will be able to view a summary of many components of the OpenStack instance.

2

You can then download a template and setup a VM.

2

Once you have an instance running then you can view what is visible on the VMs console.

2

Lastly you can also view a summary of the network and what hosts are registered.

2

There is a lot more to OpenStack but this is a basic summary of what is available after an installation on a single host.

Advertisements
This entry was posted in Bash, Linux, Management, Monitoring and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s