RedHat OpenStack Deployment and Management (RDO, TripleO, OOO)

RedHat OpenStack Deployment and Management (RDO, TripleO, OOO)

TripleO quickstart

TripleO is an OpenStack Deployment & Management tool. It is developed upstream as the OpenStack TripleO project, but we have a special love for it in RDO-land.

Virtual environment quickstart

There is an Ansible-based project called tripleo-quickstart whose main goal is to quickly stand up TripleO environments using an image-based undercloud approach similar to the OPNFV Apex project.

You will need a host machine (referred to as $VIRTHOST) with at least 16GB of RAM, preferably 32GB, and you must be able to ssh to the $VIRTHOST machine as root without a password from the machine running Ansible. The $VIRTHOST machine must be running a recent Red Hat-based Linux distribution (such as CentOS 7 or RHEL 7, but only CentOS 7 is currently tested).

A quick way to test that your $VIRTHOST machine is ready to rock is:

$ ssh root@$VIRTHOST uname -a

The defaults are meant to just work, so it is as easy as downloading and running the quickstart.sh script.

The quickstart.sh script will install this repo along with Ansible in a virtual environment and run the quickstart playbook.

The quickstart.sh script also has some dependencies that must be installed on the local system before it can run. You can install the necessary dependencies by running:

$ sudo bash quickstart.sh --install-deps

Note: The quickstart playbook will delete the stack user on the $VIRTHOST and recreate it:

$ export VIRTHOST='my_test_machine.example.com'
$ curl -O https://raw.githubusercontent.com/openstack/tripleo-quickstart/master/quickstart.sh
$ bash quickstart.sh $VIRTHOST

This script will output instructions at the end to access the deployed undercloud. If a release name is not given, the latest stable release name is used. Further documentation about TripleO Quickstart is available from the TripleO Quickstart Documentation.

Further reading

Upstream TripleO documentation:

Note: Limit your environment-specific content in the menu on the left-hand side of the documentation page.

TripleO (RDO-Manager) HA setup:

Presentations

tripleo-quickstart demo (March 9, 2016):

OpenStack Summit, Vancouver (May 22, 2015):

Post Demo 5 (April 21, 2015):

Demo 3 (March 9, 2015):

SOURCE: https://www.rdoproject.org/tripleo/

 

All-in-one quickstart: Proof of concept for single node

This document shows how to spin up a proof of concept cloud on one node, using the Packstack installation utility. You will be able to add more nodes to your OpenStack cloud later, if you choose.

  • If you are looking for instructions on how to deploy a production-ready cloud, possibly with HA, see the TripleO quickstart.
  • If you just want to try out OpenStack without installing anything, check out TryStack.

The instructions apply to the current Ocata release.

Summary for the impatient

If you are using non-English locale make sure your /etc/environment is populated:

LANG=en_US.utf-8
LC_ALL=en_US.utf-8

If your system meets all the prerequisites mentioned below, proceed with running the following commands.

  • On RHEL:
    $ sudo yum install -y https://www.rdoproject.org/repos/rdo-release.rpm
    $ sudo yum update -y
    $ sudo yum install -y openstack-packstack
    $ sudo packstack --allinone
    
  • On CentOS:
    $ sudo yum install -y centos-release-openstack-ocata
    $ sudo yum update -y
    $ sudo yum install -y openstack-packstack
    $ sudo packstack --allinone
    

Step 0: Prerequisites

Software

Red Hat Enterprise Linux (RHEL) 7 is the minimum recommended version, or the equivalent version of one of the RHEL-based Linux distributions such as CentOS, Scientific Linux, and so on. x86_64 is currently the only supported architecture.

Name the host with a fully qualified domain name rather than a short-form name to avoid DNS issues with Packstack.

Hardware

Machine with at least 4GB RAM, preferably 6GB RAM, processors with hardware virtualization extensions, and at least one network adapter.

Network

If you plan on having external network access to the server and instances, this is a good moment to properly configure your network settings. A static IP address to your network card, and disabling NetworkManager are good ideas.

$ sudo systemctl disable firewalld
$ sudo systemctl stop firewalld
$ sudo systemctl disable NetworkManager
$ sudo systemctl stop NetworkManager
$ sudo systemctl enable network
$ sudo systemctl start network

If you are planing on something fancier, read the document on advanced networkingbefore proceeding.

Step 1: Software repositories

On RHEL, download and install the RDO repository RPM to set up the OpenStack repository:

$ sudo yum install -y https://rdoproject.org/repos/rdo-release.rpm

On CentOS, the Extras repository provides the RPM that enables the OpenStack repository. Extras is enabled by default on CentOS 7, so you can simply install the RPM to set up the OpenStack repository:

$ sudo yum install -y centos-release-openstack-ocata

Update your current packages:

$ sudo yum update -y

Looking for an older version? See http://rdoproject.org/repos/ for the full listing.

Step 2: Install Packstack Installer

$ sudo yum install -y openstack-packstack

Step 3: Run Packstack to install OpenStack

Packstack takes the work out of manually setting up OpenStack. For a single node OpenStack deployment, run the following command:

$ sudo packstack --allinone

If you encounter failures, see the Workarounds page for tips.

If you have run Packstack previously, there will be a file in your home directory named something like packstack-answers-20130722-153728.txt You will probably want to use that file again, using the --answer-file option, so that any passwords you have already set (for example, mysql) will be reused.

The installer will ask you to enter the root password for each host node you are installing on the network, to enable remote configuration of the host so it can remotely configure each node using Puppet.

Once the process is complete, you can log in to the OpenStack web interface Horizon by going to http://$YOURIP/dashboard. The user name is admin. The password can be found in the file keystonerc_admin in the /root directory of the control node.

Next steps

Now that your single node OpenStack instance is up and running, you can read on about running an instance, configuring a floating IP range, configuring RDO to work with your existing network, or about expanding your installation by adding a compute node.

SOURCE: https://www.rdoproject.org/install/quickstart/

Comments are closed.