InfraRed is tool that allows to install/provision OpenStack. You can find the documentation for the project at http://infrared.readthedocs.io.
Also, developers and users are online in FreeNode at #infrared channel.
Why InfraRed?¶
Deploying OSP with OSP-d (TripleO) requires several setup steps for preparation, deployment, etc. InfraRed simplifies them by automating with ansible most of those steps and configuration.
- It allows to deploy several OSP versions
- Allows to ease connection to installed vm roles (Ceph, Computes, Controllers, Undercloud)
- Allows to define working environments so one InfraRed-running host can be used to manage different environments
- and much more…
Setup of InfraRed-running host¶
Setting InfraRed is quite easy, at the moment the version 2 (branch on github) is working pretty well.
We’ll start with:
- Clone GIT repo:
git clone https://github.com/redhat-openstack/infrared.git
- Create a virtualenv so we can proceed with installation, later we’ll need to source it before each use.
cd infrared ; virtualenv .venv && source .venv/bin/activate
- Proceed with upgrade of pip and
setuptools
(required) and installation of InfraRed pip install --upgrade pip
pip install --upgrade setuptools
pip install .
Remote host setup¶
Once done, we need to setup the requirements on the host we’ll use to virtualize, this includes, having the system registered against a repository providing required packages.
- Register RHEL7 and update:
subscription-manager register
(provide your credentials)subscription-manager attach --pool=
(check pool number first)subscription-manager repos --disable=*
for canal in rhel-7-server-extras-rpms rhel-7-server-fastrack-rpms rhel-7-server-optional-fastrack-rpms rhel-7-server-optional-rpms rhel-7-server-rh-common-rpms rhel-7-server-rhn-tools-rpms rhel-7-server-rpms rhel-7-server-supplementary-rpms rhel-ha-for-rhel-7-server-rpms;do subscription-manager repos --enable=$canal; done
NOTES¶
-
OSP7 did not contain RPM packaged version of images, a repo with the images needs to be defined like:
-
time infrared tripleo-undercloud --version $VERSION --images-task import --images-url $REPO_URL
!!! note “Check the parameter values”
—images-task import
and --images-url
- Ceph failed to install unless
--storage-backend ceph
was provided (open bug for that)
Error reporting¶
- IRC or github
RFE/BUGS¶
Some bugs/RFE on the way to get implemented some day:
- Allow use of localhost to launch installation against local host
- Multi
env
creation, so several OSP-d versions are deployed on the same hypervisor but one launched - Automatically add
--storage-backend ceph
when Ceph nodes defined
Using Ansible to deploy InfraRed¶
This is something that I began testing to automate the basic setup, still is needed to decide version to use, and do deployment of infrastructure VM’s but does some automation for setting up the hypervisors.
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 34 35 36 37 38 39 |
|
This playbook will do checkout of git repo, setup extra pip commands to upgrade virtualenv’s deployed pip and
setuptools
, etc.
Deploy environment examples¶
This will show the commands that might be used to deploy some environments and some sample timings on a 64Gb RAM host.
Common requirements¶
1 2 3 |
|
Cleanup¶
1 |
|
OSP 9 (3 + 2)¶
Define version to use¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
OSP 8 (3+2)¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
OSP 10 (3+2)¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
OSP 7 (3+2+3)¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
Wrapping-up¶
Please do refer to the InfraRed documentation to get deeper in its possibilities and if interested, consider contributing!
Comments