RETIRED, Ansible based project for setting up TripleO virtual environments
Go to file
Emilien Macchi ca6b01ba8e Containerize featureset032 (multinode-3nodes)
... and also run Tempest like other jobs

Change-Id: I787eef42db98e1524e1cb9742cd3e097adcacfa9
Depends-On: I31e1fe29491d2cbaa8ed9cd35ee84bbb1d455154
2018-01-17 05:25:29 -08:00
ci-scripts Switch gate-check to THT patch 2017-12-18 13:08:53 -05:00
config Containerize featureset032 (multinode-3nodes) 2018-01-17 05:25:29 -08:00
doc/source Containerize featureset032 (multinode-3nodes) 2018-01-17 05:25:29 -08:00
library Fix H102 Apache 2.0 license header not found 2016-07-29 14:08:00 -04:00
playbooks Enable and document tags for all tasks 2017-11-23 04:59:39 -05:00
releasenotes Merge "Make FreeIPA supplemental node DNS server configureable" 2017-12-14 14:32:18 +00:00
roles Merge "Update README to make add_repos use clearer" 2018-01-09 19:13:50 +00:00
test_plugins Fix H102 Apache 2.0 license header not found 2016-07-29 14:08:00 -04:00
zuul.d zuul: update OVB jobs 2017-12-06 01:30:15 +00:00
.gitignore Add ansible_facts_cache/ to .gitignore 2017-12-07 14:53:19 -05:00
.gitreview Fix .gitreview for move to openstack git 2016-04-01 11:08:07 -04:00
ansible_ssh_env.sh Use export in ansible_ssh_env file 2016-10-20 17:11:08 +00:00
ansible-role-requirements.yml Switch to using standalone role for image building 2016-04-13 09:43:16 -04:00
ansible.cfg Use cachable facts to allow multiple runs 2017-12-05 15:22:11 +01:00
devmode.sh devmode: Add release switch 2017-06-07 20:26:17 +01:00
LICENSE Initial commit 2015-11-19 08:16:11 -05:00
other-requirements.txt Add libselinux-python to bindep requirements 2017-06-22 13:50:02 -04:00
quickstart-extras-requirements.txt Start using tripleo-quickstart-extras 2016-11-22 15:25:05 +01:00
quickstart-role-requirements.txt Removing locking hash on undercloud post role 2016-09-14 03:33:22 -04:00
quickstart.sh Merge "Update default release to pike" 2018-01-07 05:13:26 +00:00
README.rst Merge "Update default release to pike" 2018-01-07 05:13:26 +00:00
requirements.txt Set quickstart to use ansible 2.4.1 2017-11-06 12:07:01 +02:00
setup.cfg break out general_config into config and topology 2017-03-13 13:36:13 -04:00
setup.py Add installation and setup machinery 2015-11-30 17:16:00 -05:00
test-requirements.txt Switch from oslosphinx to openstackdocstheme 2017-07-06 10:42:39 -07:00
tox.ini Merge "restrict bashate to files in repository" 2017-06-30 00:15:46 +00:00

Team and repository tags

image

tripleo-quickstart

One of the barriers to entry for trying out TripleO and its derivatives has been the relative difficulty in getting an environment up quickly.

This set of ansible roles is meant to help.

Quickstart's default deployment method uses a physical machine, which is referred to as $VIRTHOST throughout this documentation. On this physical machine Quickstart sets up multiple virtual machines (VMs) and virtual networks using libvirt.

One of the VMs is set up as undercloud, an all-in-one OpenStack cloud used by system administrators to deploy the overcloud, the end-user facing OpenStack installation, usually consisting of multiple VMs.

You will need a $VIRTHOST with at least 16 GB of RAM, preferably 32 GB, and you must be able to ssh to the virthost machine as root without a password from the machine running ansible. Currently the virthost machine must be running a recent Red Hat-based Linux distribution (CentOS 7, RHEL 7, Fedora 22 - only CentOS 7 is currently tested), but we hope to add support for non-Red Hat distributions too.

Note

Running quickstart.sh commands as root is not suggested or supported.

The SSH server on your $VIRTHOST must be accessible via public keys for both the root and stack users.

A quick way to test that root to your virthost machine is ready to rock is:

ssh root@$VIRTHOST uname -a

The stack user is not added until the quickstart deploy runs, so this cannot be tested in advance. However, if you lock down on a per-user basis, ensure AllowUsers includes stack.

Timeouts can be an issue if the SSH server is configured to disconnect users after periods of inactivity. This can be addressed for example by:

ClientAliveInterval 120
ClientAliveCountMax 720

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

Getting the script

You can download the quickstart.sh script with curl:

curl -O https://raw.githubusercontent.com/openstack/tripleo-quickstart/master/quickstart.sh

Alternatively, you can clone this repository and run the script from there.

Requirements

You need some software available on your local system before you can run quickstart.sh. You can install the necessary dependencies by running:

bash quickstart.sh --install-deps

Deploying with instructions

Deploy your virtual environment by running:

bash quickstart.sh $VIRTHOST

Where $VIRTHOST is the name of the host on which you want to install your virtual triple0 environment. The quickstart.sh script will install this repository along with ansible in a virtual environment on your Ansible host and run the quickstart playbook. Note, the quickstart playbook will delete the stack user on $VIRTHOST and recreate it.

This script will output instructions at the end to access the deployed undercloud. If a release name is not given, pike is used.

Deploying without instructions

bash quickstart.sh --tags all $VIRTHOST

You may choose to execute an end to end deployment without displaying the instructions and scripts provided by default. Using the --tags all flag will instruct quickstart to provision the environment and deploy both the undercloud and overcloud. Additionally a validation test will be executed to ensure the overcloud is functional.

Deploying on localhost

bash quickstart.sh 127.0.0.2

Please note the following when using quickstart to deploy tripleo directly on localhost. Use the loopback address 127.0.0.2 in lieu of localhost as localhost is reserved by ansible and will not work correctly. The deployment should pass, however you may not be able to ssh to the overcloud nodes while using the default ssh config file. The ssh config file that is generated by quickstart e.g. ~/.quickstart/ssh.config.ansible will try to proxy through the localhost to ssh to the localhost and will cause an error if ssh is not setup to support it.

Enable Developer mode

If you are working on TripleO upstream development, and need to reproduce what runs in tripleo-ci, you will want to use developer mode.

This will fetch the images produced by tripleo-ci instead of the ones produced by RDO. The incantation for a job using the quickstart defaults other than developer mode would be:

bash devmode.sh $VIRTHOST

The full set of developer mode instructions are available in devmode

Feature Configuration and Nodes

In previous versions of triple-quickstart a config file was used to determine not only the features that would be enabled in tripleo and openstack but also the number of nodes to be used. For instance "config/general_config/ha.yml" would configure pacemaker and ensure three controller nodes were provisioned. This type of configuration is now deprecated but will still work through the Queens release.

The feature and node configuration have been separated into two distinct configuration files to allow users to explicity select the configuration known as "feature sets" and the nodes to be provisioned. The feature set configuration can be found under tripleo-quickstart/config/general_config/ and the node configuration can be found under tripleo-quickstart/config/nodes/

A more in depth description of the feature sets can be found in the documentation under feature-configuration

A more in depth description of how to configure nodes can be found in the documentation under node-configuration

Working With Quickstart Extras

TripleO Quickstart is more than just a tool for quickly deploying a single machine TripleO instance; it is an easily extensible framework for deploying OpenStack.

For a how-to please see working-with-extras

Setting up libvirt guests only

At times it is useful to only setup or provision libvirt guests without installing any TripleO code or rpms. The tripleo-quickstart git repository is designed to provision libvirt guest environments. Some may be familiar with an older TripleO tool called instack-virt-setup, these steps would replace that function.

To deploy the undercloud node uninstalled and empty or blank overcloud nodes do the following.:

bash quickstart.sh --tags all --playbook quickstart.yml $VIRTHOST

To only deploy one node, the undercloud node do the following.:

bash quickstart.sh --tags all --playbook quickstart.yml -e overcloud_nodes="" $VIRTHOST

Documentation

The full documentation is in the doc/source directory, it can be built using:

tox -e docs

An up-to-date HTML version is available on docs.openstack.org.

Copyright 2015-2016 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.