summaryrefslogtreecommitdiffstats
path: root/foreman/docs
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2015-05-26 17:15:26 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-05-26 17:15:26 +0000
commit5adeaca389c6f38646863e370c80ab292a2188d3 (patch)
treeb27b5dfe638256be2b790100a23ca050493aa205 /foreman/docs
parent40daff8997e3e900da151f6e2eb499b6c0987ea4 (diff)
parent9698a17c7339b80b101bec4c13230c1077fb7e10 (diff)
Merge "Refactor Foreman install guide reStructuredText"
Diffstat (limited to 'foreman/docs')
-rw-r--r--foreman/docs/src/installation-instructions.rst243
1 files changed, 115 insertions, 128 deletions
diff --git a/foreman/docs/src/installation-instructions.rst b/foreman/docs/src/installation-instructions.rst
index 8d22d4a..9342bb0 100644
--- a/foreman/docs/src/installation-instructions.rst
+++ b/foreman/docs/src/installation-instructions.rst
@@ -10,52 +10,32 @@ Abstract
This document describes how to deploy a Foreman/QuickStack-based OPNFV system.
-**Contents**
+.. contents:: Table of Contents
+ :backlinks: none
-1 Introduction
-
-2 Preface
-
-3 Setup Requirements
-
-4 Installation High-Level Overview - Bare Metal Deployment
-
-5 Installation High-Level Overview - VM Deployment
-
-6 Installation Guide - Bare Metal Deployment
-
-7 Installation Guide - VM Deployment
-
-8 Frequently Asked Questions
-
-9 License
-
-10 References
-
-1 Introduction
-================
+Introduction
+============
This document describes the steps to install an OPNFV R1 (Arno) reference platform, as defined by the Bootstrap/Getting-Started (BGS) Project using the Foreman/QuickStack installer.
The audience is assumed to have a good background in networking and Linux administration.
-2 Preface
-===========
+Preface
+=======
Foreman/QuickStack uses the Foreman Open Source project as a server management tool, which in turn manages and executes Genesis/QuickStack. Genesis/QuickStack consists of layers of Puppet modules which are capable of provisioning the OPNFV Target System (3 controllers, n number of compute nodes).
-The Genesis repo contains the necessary tools to get install and deploy an OPNFV target system using Foreman/QuickStack. These tools consist of the Foreman/QuickStack bootable ISO, and the automatic deployment script (deploy.sh).
-
-An OPNFV install requires a "Jumphost" in order to operate. The bootable ISO will allow you to install a customized CentOS 7 release to the Jumphost, which then gives you the required packages needed to run deploy.sh. If you already have a Jumphost with CentOS 7 installed, you may choose to ignore the ISO step and instead move directly to running deploy.sh. In this case, deploy.sh will install the necessary packages for you in order to execute.
+The Genesis repo contains the necessary tools to get install and deploy an OPNFV target system using Foreman/QuickStack. These tools consist of the Foreman/QuickStack bootable ISO, and the automatic deployment script (``deploy.sh``).
-deploy.sh installs Foreman/QuickStack VM server using Vagrant with VirtualBox as its provider. This VM is then used to provision the OPNFV target system (3 controllers, n compute nodes). These nodes can be either virtual or bare metal. This guide contains instructions for installing both.
+An OPNFV install requires a "Jumphost" in order to operate. The bootable ISO will allow you to install a customized CentOS 7 release to the Jumphost, which then gives you the required packages needed to run ``deploy.sh``. If you already have a Jumphost with CentOS 7 installed, you may choose to ignore the ISO step and instead move directly to running ``deploy.sh``. In this case, ``deploy.sh`` will install the necessary packages for you in order to execute.
+``deploy.sh`` installs Foreman/QuickStack VM server using Vagrant with VirtualBox as its provider. This VM is then used to provision the OPNFV target system (3 controllers, n compute nodes). These nodes can be either virtual or bare metal. This guide contains instructions for installing both.
-3 Setup Requirements
-========================
+Setup Requirements
+==================
-3.1 Jumphost Requirements
--------------------------
+Jumphost Requirements
+---------------------
The Jumphost requirements are outlined below:
@@ -71,8 +51,8 @@ The Jumphost requirements are outlined below:
6. 4 GB of RAM for a bare metal deployment, 24 GB of RAM for a VM deployment.
-3.2 Network Requirements
-------------------------
+Network Requirements
+--------------------
Network requirements include:
@@ -86,10 +66,10 @@ Network requirements include:
*Note: Storage network will be consolidated to the private network if only 3 networks are used.*
-3.3 Bare Metal Node Requirements
---------------------------------
+Bare Metal Node Requirements
+----------------------------
-Bare Metal nodes require:
+Bare metal nodes require:
1. IPMI enabled on OOB interface for power control.
@@ -97,8 +77,8 @@ Bare Metal nodes require:
3. BIOS PXE interface should include admin network mentioned above.
-3.4 Execution Requirements (Baremtal Deployment Only)
-------------------------------------------------------
+Execution Requirements (Bare Metal Only)
+----------------------------------------
In order to execute a deployment, one must gather the following information:
@@ -111,8 +91,8 @@ In order to execute a deployment, one must gather the following information:
4. MAC address of private interfaces on 3 nodes that will be controllers.
-4 Installation High-Level Overview - Bare Metal Deployment
-===========================================================
+Installation High-Level Overview - Bare Metal Deployment
+========================================================
The setup presumes that you have 6 bare metal servers and have already setup connectivity on at least 3 interfaces for all servers via a TOR switch or other network implementation.
@@ -120,30 +100,29 @@ The physical TOR switches are **not** automatically configured from the OPNFV re
The Jumphost can be installed using the bootable ISO. The Jumphost should then be configured with an IP gateway on its admin or public interface and configured with a working DNS server. The Jumphost should also have routable access to the lights out network.
-Deploy.sh is then executed in order to install the Foreman/QuickStack Vagrant VM. Deploy.sh uses a configuration file with YAML format in order to know how to install and provision the OPNFV target system. The information gathered under section "4.4 Execution Requirements" is put into this configuration file.
+``deploy.sh`` is then executed in order to install the Foreman/QuickStack Vagrant VM. ``deploy.sh`` uses a configuration file with YAML format in order to know how to install and provision the OPNFV target system. The information gathered under section `Execution Requirements (Bare Metal Only)`_ is put into this configuration file.
-Deploy.sh brings up a CentOS 7 Vagrant VM, provided by VirtualBox. The VM then executes an Ansible project called Khaleesi in order to install Foreman and QuickStack. Once the Foreman/QuickStack VM is up, Foreman will be configured with the nodes' information. This includes MAC address, IPMI, OpenStack type (controller, compute, OpenDaylight controller) and other information. At this point Khaleesi makes a REST API call to Foreman to instruct it to provision the hardware.
+``deploy.sh`` brings up a CentOS 7 Vagrant VM, provided by VirtualBox. The VM then executes an Ansible project called Khaleesi in order to install Foreman and QuickStack. Once the Foreman/QuickStack VM is up, Foreman will be configured with the nodes' information. This includes MAC address, IPMI, OpenStack type (controller, compute, OpenDaylight controller) and other information. At this point Khaleesi makes a REST API call to Foreman to instruct it to provision the hardware.
Foreman will then reboot the nodes via IPMI. The nodes should already be set to PXE boot first off the admin interface. Foreman will then allow the nodes to PXE and install CentOS 7 as well as Puppet. Foreman/QuickStack VM server runs a Puppet Master and the nodes query this master to get their appropriate OPNFV configuration. The nodes will then reboot one more time and once back up, will DHCP on their private, public and storage NICs to gain IP addresses. The nodes will now check in via Puppet and start installing OPNFV.
Khaleesi will wait until these nodes are fully provisioned and then return a success or failure based on the outcome of the Puppet application.
+Installation High-Level Overview - VM Deployment
+================================================
-5 Installation High-Level Overview - VM Deployment
-====================================================
-
-The VM nodes deployment operates almost the same way as the bare metal deployment with a few differences. deploy.sh still installs Foreman/QuickStack VM the exact same way, however the part of the Khaleesi Ansible playbook which IPMI reboots/PXE boots the servers is ignored. Instead, deploy.sh brings up N number more Vagrant VMs (where N is 3 control nodes + n compute). These VMs already come up with CentOS 7 so instead of re-provisioning the entire VM, deploy.sh initiates a small Bash script which will signal to Foreman that those nodes are built and install/configure Puppet on them.
+The VM nodes deployment operates almost the same way as the bare metal deployment with a few differences. ``deploy.sh`` still installs Foreman/QuickStack VM the exact same way, however the part of the Khaleesi Ansible playbook which IPMI reboots/PXE boots the servers is ignored. Instead, ``deploy.sh`` brings up N number more Vagrant VMs (where N is 3 control nodes + n compute). These VMs already come up with CentOS 7 so instead of re-provisioning the entire VM, ``deploy.sh`` initiates a small Bash script which will signal to Foreman that those nodes are built and install/configure Puppet on them.
To Foreman these nodes look like they have just built and register the same way as bare metal nodes.
-
-6 Installation Guide - Bare Metal Deployment
-==============================================
+Installation Guide - Bare Metal Deployment
+==========================================
This section goes step-by-step on how to correctly install and provision the OPNFV target system to bare metal nodes.
-6.1 Install Bare Metal Jumphost
---------------------------------
+Install Bare Metal Jumphost
+---------------------------
+
1. If your Jumphost does not have CentOS 7 already on it, or you would like to do a fresh install, then download the Foreman/QuickStack bootable ISO here <ISO LINK>.
2. Boot the ISO off of a USB or other installation media and walk through installing OPNFV CentOS 7.
@@ -154,24 +133,24 @@ This section goes step-by-step on how to correctly install and provision the OPN
5. Configure the IP gateway to the Internet either, preferably on the public interface.
-6. Configure your /etc/resolv.conf to point to a DNS server (8.8.8.8 is provided by Google).
+6. Configure your ``/etc/resolv.conf`` to point to a DNS server (8.8.8.8 is provided by Google).
7. Disable selinux:
- - setenforce 0
- - sed -i 's/SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
+ - ``setenforce 0``
+ - ``sed -i 's/SELINUX=.*/SELINUX=permissive/' /etc/selinux/config``
8. Disable firewalld:
- - systemctl stop firewalld
- - systemctl disable firewalld
+ - ``systemctl stop firewalld``
+ - ``systemctl disable firewalld``
-6.2 Creating an Inventory File
--------------------------------
+Creating an Inventory File
+--------------------------
-You now need to take the MAC address/IPMI info gathered in section "4.4 Execution Requirements" and create the YAML inventory (also known as configuration) file for deploy.sh.
+You now need to take the MAC address/IPMI info gathered in section `Execution Requirements (Bare Metal Only)`_ and create the YAML inventory (also known as configuration) file for ``deploy.sh``.
-1. Copy the opnfv_ksgen_settings.yml file from /root/bgs_vagrant/ to another directory and rename it to be what you want EX: </root/my_ksgen_settings.yml>
+1. Copy the ``opnfv_ksgen_settings.yml`` file from ``/root/bgs_vagrant/`` to another directory and rename it to be what you want EX: ``/root/my_ksgen_settings.yml``
2. Edit the file in your favorite editor. There is a lot of information in this file, but you really only need to be concerned with the "nodes:" dictionary.
@@ -179,59 +158,64 @@ You now need to take the MAC address/IPMI info gathered in section "4.4 Executio
4. Once you have decided on your node definitions you now need to modify the MAC address/IPMI info dependant to your hardware. Edit the following values for each node:
- - mac_address: change to MAC address of that node's admin NIC (defaults to 1st NIC)
- - bmc_ip: change to IP Address of BMC (out-of-band)/IPMI IP
- - bmc_mac: same as above, but MAC address
- - bmc_user: IPMI username
- - bmc_pass: IPMI password
+ - ``mac_address``: change to MAC address of that node's admin NIC (defaults to 1st NIC)
+ - ``bmc_ip``: change to IP Address of BMC (out-of-band)/IPMI IP
+ - ``bmc_mac``: same as above, but MAC address
+ - ``bmc_user``: IPMI username
+ - ``bmc_pass``: IPMI password
5. Also edit the following for only controller nodes:
- - private_mac - change to MAC address of node's private NIC (default to 2nd NIC)
+ - ``private_mac`` - change to MAC address of node's private NIC (default to 2nd NIC)
6. Save your changes.
-6.3 Running deploy.sh
-----------------------
+Running ``deploy.sh``
+---------------------
-You are now ready to deploy OPNFV! deploy.sh will use your /tmp/ directory to store its Vagrant VMs. Your Foreman/QuickStack Vagrant VM will be running out of /tmp/bgs_vagrant.
+You are now ready to deploy OPNFV! ``deploy.sh`` will use your ``/tmp/`` directory to store its Vagrant VMs. Your Foreman/QuickStack Vagrant VM will be running out of ``/tmp/bgs_vagrant``.
-It is also recommended that you power off your nodes before running deploy.sh If there are DHCP servers or other network services that are on those nodes it may conflict with the installation.
+It is also recommended that you power off your nodes before running ``deploy.sh`` If there are DHCP servers or other network services that are on those nodes it may conflict with the installation.
Follow the steps below to execute:
-1. cd /root/bgs_vagrant
+1. ``cd /root/bgs_vagrant``
-2. ./deploy.sh -base_config </root/my_ksgen_settings.yml>
+2. ``./deploy.sh -base_config </root/my_ksgen_settings.yml>``
3. It will take about 20-25 minutes to install Foreman/QuickStack VM. If something goes wrong during this part of the process, it is most likely a problem with the setup of your Jumphost. You will also notice different outputs in your shell. When you see messages that say "TASK:" or "PLAY:" this is Khalessi running and installing Foreman/QuickStack inside of your VM or deploying your nodes. Look for "PLAY [Deploy Nodes]" as a sign that Foreman/QuickStack is finished installing and now your nodes are being rebuilt.
4. Your nodes will take 40-60 minutes to re-install CentOS 7 and install/configure OPNFV. When complete you will see "Finished: SUCCESS"
-6.4 Verifying the setup
-------------------------
+.. _setup_verify:
+
+Verifying the Setup
+-------------------
Now that the installer has finished it is a good idea to check and make sure things are working correctly. To access your Foreman/QuickStack VM:
-1. cd /tmp/bgs_vagrant
+1. ``cd /tmp/bgs_vagrant``
-2. 'vagrant ssh' password is "vagrant"
+2. ``vagrant ssh`` (password is "vagrant")
-3. You are now in the VM and can check the status of Foreman service, etc. For example: 'systemctl status foreman'
+3. You are now in the VM and can check the status of Foreman service, etc. For example: ``systemctl status foreman``
-4. Type "exit" and leave the Vagrant VM. Now execute: 'cat /tmp/bgs_vagrant/opnfv_ksgen_settings.yml | grep foreman_url'
+4. Type "exit" and leave the Vagrant VM. Now execute: ``cat /tmp/bgs_vagrant/opnfv_ksgen_settings.yml | grep foreman_url``
-5. This is your Foreman URL on your public interface. You can go to your web browser, http://<foreman_ip>, login will be "admin"//"octopus". This way you can look around in Foreman and check that your hosts are in a good state, etc.
+5. This is your Foreman URL on your public interface. You can go to your web browser, ``http://<foreman_ip>``, login will be "admin"/"octopus". This way you can look around in Foreman and check that your hosts are in a good state, etc.
-6. In Foreman GUI, you can now go to Infrastructure -> Global Parameters. This is a list of all the variables being handed to Puppet for configuring OPNFV. Look for "horizon_public_vip". This is your IP address to Horizon GUI.
-**Note: You can find out more about how to ues Foreman by going to http://www.theforeman.org/ or by watching a walkthrough video here: https://bluejeans.com/s/89gb/**
+6. In Foreman GUI, you can now go to Infrastructure -> Global Parameters. This is a list of all the variables being handed to Puppet for configuring OPNFV. Look for ``horizon_public_vip``. This is your IP address to Horizon GUI.
-7. Now go to your web browser and insert the Horizon public VIP. The login will be "admin//octopus"
+ **Note: You can find out more about how to ues Foreman by going to http://www.theforeman.org/ or by watching a walkthrough video here: https://bluejeans.com/s/89gb/**
-8. You are now able to follow the next section "7.5 OpenStack Verification"
+7. Now go to your web browser and insert the Horizon public VIP. The login will be "admin"/"octopus".
-6.5 OpenStack Verification
----------------------------
+8. You are now able to follow the `OpenStack Verification <openstack_verify_>`_ section.
+
+.. _openstack_verify:
+
+OpenStack Verification
+----------------------
Now that you have Horizon access, let's make sure OpenStack the OPNFV target system are working correctly:
@@ -241,7 +225,7 @@ Now that you have Horizon access, let's make sure OpenStack the OPNFV target sys
3. Now in the left pane, click Compute -> Images, click Create Image
-4. Insert a name "cirros", Insert an Image Location "http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img"
+4. Insert a name "cirros", Insert an Image Location ``http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img``
5. Select format "QCOW2", select Public, then hit Create Image
@@ -249,9 +233,9 @@ Now that you have Horizon access, let's make sure OpenStack the OPNFV target sys
7. Enter a name "test_network", click Next
-8. Enter a subnet name "test_subnet", and enter Network Address 10.0.0.0/24, click Next
+8. Enter a subnet name "test_subnet", and enter Network Address ``10.0.0.0/24``, click Next
-9. Enter 10.0.0.5,10.0.0.9 under Allocation Pools, then hit Create
+9. Enter ``10.0.0.5,10.0.0.9`` under Allocation Pools, then hit Create
10. Now go to Project -> Compute -> Instances, click Launch Instance
@@ -263,74 +247,77 @@ Now that you have Horizon access, let's make sure OpenStack the OPNFV target sys
14. Once both instances are up you can see their IP addresses on the Instances page. Click the Instance Name of cirros1.
-15. Now click the "Console" tab and login as cirros//cubswin:)
+15. Now click the "Console" tab and login as "cirros"/"cubswin" :)
16. Verify you can ping the IP address of cirros2
Congratulations you have successfully installed OPNFV!
-7 Installation Guide - VM Deployment
-====================================
+Installation Guide - VM Deployment
+==================================
This section goes step-by-step on how to correctly install and provision the OPNFV target system to VM nodes.
-7.1 Install Jumphost
---------------------
-Follow section "7.1 Install Bare Metal Jumphost"
+Install Jumphost
+----------------
-7.2 Running deploy.sh
-----------------------
-You are now ready to deploy OPNFV! deploy.sh will use your /tmp/ directory to store its Vagrant VMs. Your Foreman/QuickStack Vagrant VM will run out of /tmp/bgs_vagrant. Your compute and subsequent controller nodes will run in:
+Follow the instructions in the `Install Bare Metal Jumphost`_ section.
+
+Running ``deploy.sh``
+---------------------------
+
+You are now ready to deploy OPNFV! ``deploy.sh`` will use your ``/tmp/`` directory to store its Vagrant VMs. Your Foreman/QuickStack Vagrant VM will run out of ``/tmp/bgs_vagrant``. Your compute and subsequent controller nodes will run in:
-- /tmp/compute
-- /tmp/controller1
-- /tmp/controller2
-- /tmp/controller3
+- ``/tmp/compute``
+- ``/tmp/controller1``
+- ``/tmp/controller2``
+- ``/tmp/controller3``
-Each VM will be brought up and bridged to your Jumphost NICs. deploy.sh will first bring up your Foreman/QuickStack Vagrant VM and afterwards it will bring up each of the nodes listed above, in order.
+Each VM will be brought up and bridged to your Jumphost NICs. ``deploy.sh`` will first bring up your Foreman/QuickStack Vagrant VM and afterwards it will bring up each of the nodes listed above, in order.
Follow the steps below to execute:
-1. cd /root/bgs_vagrant
+1. ``cd /root/bgs_vagrant``
-2. ./deploy.sh -virtual
+2. ``./deploy.sh -virtual``
3. It will take about 20-25 minutes to install Foreman/QuickStack VM. If something goes wrong during this part of the process, it is most likely a problem with the setup of your Jumphost. You will also notice different outputs in your shell. When you see messages that say "TASK:" or "PLAY:" this is Khalessi running and installing Foreman/QuickStack inside of your VM or deploying your nodes. When you see "Foreman is up!", that means deploy will now move on to bringing up your other nodes.
-4. deploy.sh will now bring up your other nodes, look for logging messages like "Starting Vagrant Node <node name>", "<node name> VM is up!" These are indicators of how far along in the process you are. deploy will start each Vagrant VM, then run provisioning scripts to inform Foreman they are built and initiate Puppet.
+4. ``deploy.sh`` will now bring up your other nodes, look for logging messages like "Starting Vagrant Node <node name>", "<node name> VM is up!" These are indicators of how far along in the process you are. ``deploy.sh`` will start each Vagrant VM, then run provisioning scripts to inform Foreman they are built and initiate Puppet.
5. The speed at which nodes are provisioned is totally dependant on your Jumphost server specs. When complete you will see "All VMs are UP!"
-7.3 Verifying the setup
------------------------
-Please follow the instructions under section "7.4 Verifying the setup".
+Verifying the Setup - VMs
+-------------------------
-Also, for VM deployment you are able to easily access your nodes by going to /tmp/<node name> and then "vagrant ssh" (password is "vagrant"). You can use this to go to a controller and check OpenStack services, OpenDaylight, etc.
+Follow the instructions in the `Verifying the Setup <setup_verify_>`_ section.
-7.4 OpenStack Verification
---------------------------
+Also, for VM deployment you are able to easily access your nodes by going to ``/tmp/<node name>`` and then ``vagrant ssh`` (password is "vagrant"). You can use this to go to a controller and check OpenStack services, OpenDaylight, etc.
-Please follow the steps in section "7.5 OpenStack Verification"
+OpenStack Verification - VMs
+----------------------------
-8 Frequently Asked Questions
-============================
+Follow the steps in `OpenStack Verification <openstack_verify_>`_ section.
-9 License
-=========
+Frequently Asked Questions
+==========================
+
+License
+=======
All Foreman/QuickStack and "common" entities are protected by the `Apache 2.0 License <http://www.apache.org/licenses/>`_.
-10 References
-==============
+References
+==========
-10.1 OPNFV
--------------
+OPNFV
+-----
-10.2 OpenStack
------------------
+OpenStack
+---------
-10.3 OpenDaylight
---------------------
+OpenDaylight
+------------
-10.4 Foreman
----------------
+Foreman
+-------