Skip to content
Snippets Groups Projects
Commit eee6af5e authored by Proskurin Kirill's avatar Proskurin Kirill
Browse files

Few improvements in the quickstart doc

Fixed commands for disabling\stoping libvirt and ntpd in different OS

I encourage to install kolla tools via pip, so user could get rid
of relative paths to config and scripts and run it from everythere.

Change-Id: I77271ce2f72fbaa7d6586a84f7998a9888d9b3a2
parent 58ee9c4b
No related branches found
No related tags found
No related merge requests found
...@@ -67,13 +67,28 @@ Docker Python 1.2.0 none On target nodes ...@@ -67,13 +67,28 @@ Docker Python 1.2.0 none On target nodes
Python Jinja2 2.6.0 none On deployment host Python Jinja2 2.6.0 none On deployment host
===================== =========== =========== ========================= ===================== =========== =========== =========================
To install Python dependencies use: Make sure "pip" package manager is installed before procceed:
::
# Centos 7
easy_install pip
# Ubuntu 14.04 LTS
sudo apt-get install python-pip
To install Kolla tools and Python dependencies use:
:: ::
git clone https://git.openstack.org/openstack/kolla git clone https://git.openstack.org/openstack/kolla
cd kolla pip install kolla/
sudo pip install -r requirements.txt
Copy Kolla configuration to /etc:
::
cp -r kolla/etc/kolla /etc/
Since Docker is required to build images as well as be present on all deployed Since Docker is required to build images as well as be present on all deployed
targets, the Kolla community recommends installing the Docker Inc. packaged targets, the Kolla community recommends installing the Docker Inc. packaged
...@@ -99,8 +114,8 @@ commands: ...@@ -99,8 +114,8 @@ commands:
:: ::
# Centos 7 # Centos 7
yum downgrade docker-engine-1.8.2-1 yum downgrade docker-engine-1.8.2
service docker-engine restart systemctl restart docker.service
# Ubuntu 14.04 LTS # Ubuntu 14.04 LTS
sudo apt-get install docker-engine=1.8.2-0~trusty sudo apt-get install docker-engine=1.8.2-0~trusty
...@@ -114,11 +129,10 @@ following requirements are needed to build the client code: ...@@ -114,11 +129,10 @@ following requirements are needed to build the client code:
:: ::
# Ubuntu # Ubuntu
sudo apt-get install -y python-dev python-pip libffi-dev libssl-dev sudo apt-get install -y python-dev libffi-dev libssl-dev gcc
# Centos 7 # Centos 7
easy_install pip yum install -y python-devel libffi-devel openssl-devel gcc
yum install -y python-devel libffi-devel openssl-devel
To install these clients use: To install these clients use:
...@@ -138,8 +152,8 @@ execute the following: ...@@ -138,8 +152,8 @@ execute the following:
# Centos 7 # Centos 7
yum -y install ntp yum -y install ntp
systemctl enable ntpd systemctl enable ntpd.service
systemctl start ntpd systemctl start ntpd.service
# Ubuntu # Ubuntu
sudo apt-get install ntp sudo apt-get install ntp
...@@ -150,8 +164,13 @@ be running at a time. ...@@ -150,8 +164,13 @@ be running at a time.
:: ::
service libvirtd disable # Centos 7
service libvirtd stop systemctl stop libvirtd.service
systemctl disable libvirtd.service
# Ubuntu
service libvirt-bin stop
update-rc.d libvirt-bin disable
Kolla deploys OpenStack using Kolla deploys OpenStack using
`Ansible <http://www.ansible.com>`__. Install Ansible from distribution `Ansible <http://www.ansible.com>`__. Install Ansible from distribution
...@@ -177,6 +196,17 @@ pip: ...@@ -177,6 +196,17 @@ pip:
pip install -U ansible pip install -U ansible
Some ansible dependencies, like pycrypto, may need gcc installed on the build
system. Install it using system packaging tools if it's not installed already:
::
# Centos 7
yum -y install gcc
# Ubuntu
sudo apt-get install gcc
Building Container Images Building Container Images
-------------------------- --------------------------
...@@ -193,7 +223,7 @@ or the build process will fail. To build images using default parameters run: ...@@ -193,7 +223,7 @@ or the build process will fail. To build images using default parameters run:
:: ::
tools/build.py kolla-build
By default docker will build all containers using Centos as base image and By default docker will build all containers using Centos as base image and
binary installation as base installation method. To change this behavior, binary installation as base installation method. To change this behavior,
...@@ -216,13 +246,13 @@ rebuilt as follows: ...@@ -216,13 +246,13 @@ rebuilt as follows:
:: ::
tools/build.py glance kolla-build glance
In order to see all available parameters, run: In order to see all available parameters, run:
:: ::
tools/build.py -h kolla-build -h
Deploying Kolla Deploying Kolla
--------------- ---------------
...@@ -238,8 +268,7 @@ Each method is represented as an Ansible inventory file. More information on the ...@@ -238,8 +268,7 @@ Each method is represented as an Ansible inventory file. More information on the
Ansible inventory file can be found in the Ansible `inventory introduction Ansible inventory file can be found in the Ansible `inventory introduction
<https://docs.ansible.com/intro_inventory.html>`__. <https://docs.ansible.com/intro_inventory.html>`__.
Copy the etc/kolla directory from the git to /etc/kolla on the deployment All variables for the environment can be specified in the files:
host. All variables for the environment can be specified in the files:
"/etc/kolla/globals.yml" and "/etc/kolla/passwords.yml" "/etc/kolla/globals.yml" and "/etc/kolla/passwords.yml"
Start by editing /etc/kolla/globals.yml. Check and edit, if needed, these Start by editing /etc/kolla/globals.yml. Check and edit, if needed, these
...@@ -303,13 +332,13 @@ wrapped in the kolla-script in the future. ...@@ -303,13 +332,13 @@ wrapped in the kolla-script in the future.
:: ::
tools/kolla-ansible deploy kolla-ansible deploy
In order to see all available parameters, run: In order to see all available parameters, run:
:: ::
tools/kolla-ansible -h kolla-ansible -h
A bare metal system with Ceph takes 18 minutes to deploy. A virtual machine A bare metal system with Ceph takes 18 minutes to deploy. A virtual machine
deployment takes 25 minutes. These are estimates; different hardware may be deployment takes 25 minutes. These are estimates; different hardware may be
...@@ -328,7 +357,7 @@ glance image and neutron networks: ...@@ -328,7 +357,7 @@ glance image and neutron networks:
:: ::
tools/init-runonce kolla/tools/init-runonce
Debugging Kolla Debugging Kolla
--------------- ---------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment