blob: c79b2ce0c756c06132f41197c54f7e0ea7253818 [file] [log] [blame]
Sean M. Collins09e550c2014-10-21 11:40:08 -04001DevStack - an OpenStack Community Production
2============================================
3
Dean Troyeraf140292014-11-20 21:13:15 -06004.. image:: assets/images/logo-blue.png
5
Dean Troyer63baba22014-10-29 21:57:31 -05006.. toctree::
7 :glob:
8 :maxdepth: 1
Sean M. Collins09e550c2014-10-21 11:40:08 -04009
Dean Troyer63baba22014-10-29 21:57:31 -050010 overview
11 configuration
12 plugins
Sean Dague0124e082015-06-19 08:26:45 -040013 plugin-registry
Dean Troyer63baba22014-10-29 21:57:31 -050014 faq
15 changes
Ian Wienand6f6e2fd2015-03-20 12:16:28 +110016 hacking
Sean M. Collins09e550c2014-10-21 11:40:08 -040017
Dean Troyer26dd21b2014-11-06 09:33:02 -060018Quick Start
19-----------
Sean M. Collins09e550c2014-10-21 11:40:08 -040020
21#. Select a Linux Distribution
22
Kashyap Chamarthy90bc5862015-12-01 18:04:40 +010023 Only Ubuntu 14.04 (Trusty), Fedora 22 (or Fedora 23) and CentOS/RHEL
Kashyap Chamarthya53ae682015-05-27 21:59:32 +020024 7 are documented here. OpenStack also runs and is packaged on other
25 flavors of Linux such as OpenSUSE and Debian.
Sean M. Collins09e550c2014-10-21 11:40:08 -040026
27#. Install Selected OS
28
29 In order to correctly install all the dependencies, we assume a
30 specific minimal version of the supported distributions to make it as
31 easy as possible. We recommend using a minimal install of Ubuntu or
32 Fedora server in a VM if this is your first time.
33
34#. Download DevStack
35
36 ::
37
38 git clone https://git.openstack.org/openstack-dev/devstack
39
40 The ``devstack`` repo contains a script that installs OpenStack and
41 templates for configuration files
42
43#. Configure
44
James Polley5f2eb6d2015-03-30 17:36:26 +110045 We recommend at least a :ref:`minimal-configuration` be set up.
Sean M. Collins09e550c2014-10-21 11:40:08 -040046
Einst Crazy2ed28132015-11-05 16:38:00 +080047#. Add Stack User
48
49 Devstack should be run as a non-root user with sudo enabled
50 (standard logins to cloud images such as "ubuntu" or "cloud-user"
51 are usually fine).
52
53 You can quickly create a separate `stack` user to run DevStack with
54
55 ::
56
57 devstack/tools/create-stack-user.sh; su stack
58
Sean M. Collins09e550c2014-10-21 11:40:08 -040059#. Start the install
60
61 ::
62
63 cd devstack; ./stack.sh
64
65 It takes a few minutes, we recommend `reading the
66 script <stack.sh.html>`__ while it is building.
67
Dean Troyer63baba22014-10-29 21:57:31 -050068Guides
69======
70
71Walk through various setups used by stackers
Sean M. Collins09e550c2014-10-21 11:40:08 -040072
Dean Troyer26dd21b2014-11-06 09:33:02 -060073.. toctree::
74 :glob:
75 :maxdepth: 1
Sean M. Collins09e550c2014-10-21 11:40:08 -040076
Dean Troyer26dd21b2014-11-06 09:33:02 -060077 guides/single-vm
78 guides/single-machine
Cody A.W. Somervillebaa35d02016-02-11 01:23:14 -050079 guides/lxc
Dean Troyer26dd21b2014-11-06 09:33:02 -060080 guides/multinode-lab
Sean M. Collins34296012014-10-27 11:57:20 -040081 guides/neutron
Kashyap Chamarthy75afd6d2015-01-20 17:39:25 +010082 guides/devstack-with-nested-kvm
Tony Breedsa339efc2014-12-04 16:52:58 +110083 guides/nova
Aishwarya Thangappa7c573062015-02-18 01:51:13 -080084 guides/devstack-with-lbaas-v2
Sean M. Collins09e550c2014-10-21 11:40:08 -040085
Dean Troyer26dd21b2014-11-06 09:33:02 -060086All-In-One Single VM
87--------------------
Dean Troyer63baba22014-10-29 21:57:31 -050088
Dean Troyer26dd21b2014-11-06 09:33:02 -060089Run :doc:`OpenStack in a VM <guides/single-vm>`. The VMs launched in your cloud will be slow as
Dean Troyer63baba22014-10-29 21:57:31 -050090they are running in QEMU (emulation), but it is useful if you don't have
Dean Troyerd224ae12014-11-06 09:33:02 -060091spare hardware laying around. :doc:`[Read] <guides/single-vm>`
Dean Troyer63baba22014-10-29 21:57:31 -050092
Dean Troyer26dd21b2014-11-06 09:33:02 -060093All-In-One Single Machine
94-------------------------
Sean M. Collins09e550c2014-10-21 11:40:08 -040095
Dean Troyer26dd21b2014-11-06 09:33:02 -060096Run :doc:`OpenStack on dedicated hardware <guides/single-machine>` This can include a
97server-class machine or a laptop at home.
98:doc:`[Read] <guides/single-machine>`
Sean M. Collins09e550c2014-10-21 11:40:08 -040099
Cody A.W. Somervillebaa35d02016-02-11 01:23:14 -0500100All-In-One LXC Container
101-------------------------
102
103Run :doc:`OpenStack in a LXC container <guides/lxc>`. Beneficial for intermediate
104and advanced users. The VMs launched in this cloud will be fully accelerated but
105not all OpenStack features are supported. :doc:`[Read] <guides/lxc>`
106
Dean Troyer26dd21b2014-11-06 09:33:02 -0600107Multi-Node Lab
108--------------
Dean Troyer63baba22014-10-29 21:57:31 -0500109
Dean Troyer26dd21b2014-11-06 09:33:02 -0600110Setup a :doc:`multi-node cluster <guides/multinode-lab>` with dedicated VLANs for VMs & Management.
111:doc:`[Read] <guides/multinode-lab>`
Dean Troyer63baba22014-10-29 21:57:31 -0500112
Sean M. Collins34296012014-10-27 11:57:20 -0400113DevStack with Neutron Networking
114--------------------------------
115
116Building a DevStack cluster with :doc:`Neutron Networking <guides/neutron>`.
117This guide is meant for building lab environments with a dedicated
118control node and multiple compute nodes.
119
Kashyap Chamarthy75afd6d2015-01-20 17:39:25 +0100120DevStack with KVM-based Nested Virtualization
121---------------------------------------------
122
123Procedure to setup :doc:`DevStack with KVM-based Nested Virtualization
124<guides/devstack-with-nested-kvm>`. With this setup, Nova instances
125will be more performant than with plain QEMU emulation.
126
Tony Breedsa339efc2014-12-04 16:52:58 +1100127Nova and devstack
128--------------------------------
129
130Guide to working with nova features :doc:`Nova and devstack <guides/nova>`.
131
Dean Troyer26dd21b2014-11-06 09:33:02 -0600132DevStack Documentation
133======================
Sean M. Collins09e550c2014-10-21 11:40:08 -0400134
135Overview
136--------
137
Dean Troyerd224ae12014-11-06 09:33:02 -0600138:doc:`An overview of DevStack goals and priorities <overview>`
Sean M. Collins09e550c2014-10-21 11:40:08 -0400139
140Configuration
141-------------
142
Dean Troyerd224ae12014-11-06 09:33:02 -0600143:doc:`Configuring and customizing the stack <configuration>`
Sean M. Collins09e550c2014-10-21 11:40:08 -0400144
145Plugins
146-------
147
Dean Troyerd224ae12014-11-06 09:33:02 -0600148:doc:`Extending DevStack with new features <plugins>`
Sean M. Collins09e550c2014-10-21 11:40:08 -0400149
150Recent Changes
151--------------
152
Dean Troyerd224ae12014-11-06 09:33:02 -0600153:doc:`An incomplete summary of recent changes <changes>`
Sean M. Collins09e550c2014-10-21 11:40:08 -0400154
155FAQ
156---
157
Dean Troyerd224ae12014-11-06 09:33:02 -0600158:doc:`The DevStack FAQ <faq>`
Sean M. Collins09e550c2014-10-21 11:40:08 -0400159
160Contributing
161------------
162
Ian Wienand6f6e2fd2015-03-20 12:16:28 +1100163:doc:`Pitching in to make DevStack a better place <hacking>`
Sean M. Collins09e550c2014-10-21 11:40:08 -0400164
Dean Troyer63baba22014-10-29 21:57:31 -0500165Code
166====
Sean M. Collins09e550c2014-10-21 11:40:08 -0400167
Dean Troyer26dd21b2014-11-06 09:33:02 -0600168*A look at the bits that make it all go*
Dean Troyer63baba22014-10-29 21:57:31 -0500169
170Scripts
171-------
172
Dean Troyer26dd21b2014-11-06 09:33:02 -0600173* `stack.sh <stack.sh.html>`__ - The main script
174* `functions <functions.html>`__ - DevStack-specific functions
175* `functions-common <functions-common.html>`__ - Functions shared with other projects
176* `lib/apache <lib/apache.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600177* `lib/ceph <lib/ceph.html>`__
178* `lib/cinder <lib/cinder.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600179* `lib/database <lib/database.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600180* `lib/dstat <lib/dstat.html>`__
181* `lib/glance <lib/glance.html>`__
182* `lib/heat <lib/heat.html>`__
183* `lib/horizon <lib/horizon.html>`__
184* `lib/infra <lib/infra.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600185* `lib/keystone <lib/keystone.html>`__
186* `lib/ldap <lib/ldap.html>`__
Dean Troyer5a9739a2015-03-25 11:33:51 -0500187* `lib/neutron-legacy <lib/neutron-legacy.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600188* `lib/nova <lib/nova.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600189* `lib/oslo <lib/oslo.html>`__
190* `lib/rpc\_backend <lib/rpc_backend.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600191* `lib/swift <lib/swift.html>`__
192* `lib/tempest <lib/tempest.html>`__
193* `lib/tls <lib/tls.html>`__
Flavio Percoco624ab1e2015-04-30 08:54:15 +0200194* `lib/trove <lib/trove.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600195* `unstack.sh <unstack.sh.html>`__
196* `clean.sh <clean.sh.html>`__
197* `run\_tests.sh <run_tests.sh.html>`__
Sean M. Collins09e550c2014-10-21 11:40:08 -0400198
Dean Troyer26dd21b2014-11-06 09:33:02 -0600199* `extras.d/60-ceph.sh <extras.d/60-ceph.sh.html>`__
Steven Hardyd591a252014-10-27 17:22:17 +0000200* `extras.d/70-tuskar.sh <extras.d/70-tuskar.sh.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600201* `extras.d/80-tempest.sh <extras.d/80-tempest.sh.html>`__
Sean M. Collins09e550c2014-10-21 11:40:08 -0400202
Dean Troyerbf2ad702015-03-09 15:16:10 -0500203* `inc/ini-config <inc/ini-config.html>`__
204* `inc/meta-config <inc/meta-config.html>`__
205* `inc/python <inc/python.html>`__
206
207* `pkg/elasticsearch.sh <pkg/elasticsearch.sh.html>`_
208
Dean Troyer63baba22014-10-29 21:57:31 -0500209Configuration
210-------------
Sean M. Collins09e550c2014-10-21 11:40:08 -0400211
Dean Troyer63baba22014-10-29 21:57:31 -0500212.. toctree::
213 :glob:
214 :maxdepth: 1
215
Dean Troyer26dd21b2014-11-06 09:33:02 -0600216 local.conf
217 stackrc
218 openrc
219 exerciserc
Dean Troyer26dd21b2014-11-06 09:33:02 -0600220
221Tools
222-----
223
224* `tools/build\_docs.sh <tools/build_docs.sh.html>`__
Dean Troyer5686dbc2015-03-09 14:27:51 -0500225* `tools/build\_venv.sh <tools/build_venv.sh.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600226* `tools/create-stack-user.sh <tools/create-stack-user.sh.html>`__
227* `tools/create\_userrc.sh <tools/create_userrc.sh.html>`__
228* `tools/fixup\_stuff.sh <tools/fixup_stuff.sh.html>`__
229* `tools/info.sh <tools/info.sh.html>`__
230* `tools/install\_pip.sh <tools/install_pip.sh.html>`__
231* `tools/install\_prereqs.sh <tools/install_prereqs.sh.html>`__
232* `tools/make\_cert.sh <tools/make_cert.sh.html>`__
233* `tools/upload\_image.sh <tools/upload_image.sh.html>`__
234
235Samples
236-------
237
238* `local.sh <samples/local.sh.html>`__
239
240Exercises
241---------
242
243* `exercise.sh <exercise.sh.html>`__
244* `exercises/aggregates.sh <exercises/aggregates.sh.html>`__
245* `exercises/boot\_from\_volume.sh <exercises/boot_from_volume.sh.html>`__
246* `exercises/bundle.sh <exercises/bundle.sh.html>`__
247* `exercises/client-args.sh <exercises/client-args.sh.html>`__
248* `exercises/client-env.sh <exercises/client-env.sh.html>`__
249* `exercises/euca.sh <exercises/euca.sh.html>`__
250* `exercises/floating\_ips.sh <exercises/floating_ips.sh.html>`__
251* `exercises/horizon.sh <exercises/horizon.sh.html>`__
252* `exercises/neutron-adv-test.sh <exercises/neutron-adv-test.sh.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600253* `exercises/sec\_groups.sh <exercises/sec_groups.sh.html>`__
254* `exercises/swift.sh <exercises/swift.sh.html>`__
Dean Troyer26dd21b2014-11-06 09:33:02 -0600255* `exercises/volumes.sh <exercises/volumes.sh.html>`__