blob: 435011bb9672cb9245becf40264a11d8b2994d46 [file] [log] [blame]
Sean Daguecea7ec82016-08-05 08:29:54 -04001.. Documentation Architecture for the devstack docs.
2
3 It is really easy for online docs to meander over time as people
4 attempt to add the small bit of additional information they think
5 people need, into an existing information architecture. In order to
6 prevent that we need to be a bit strict as to what's on this front
7 page.
8
9 This should *only* be the quick start narrative. Which should end
10 with 2 sections: what you can do with devstack once it's set up,
11 and how to go beyond this setup. Both should be a set of quick
12 links to other documents to let people explore from there.
13
14==========
15 DevStack
16==========
Sean M. Collins09e550c2014-10-21 11:40:08 -040017
Dean Troyeraf140292014-11-20 21:13:15 -060018.. image:: assets/images/logo-blue.png
19
Ian Wienand7cd16ce2016-04-08 09:40:56 +100020DevStack is a series of extensible scripts used to quickly bring up a
Sean Daguecea7ec82016-08-05 08:29:54 -040021complete OpenStack environment based on the latest versions of
22everything from git master. It is used interactively as a development
23environment and as the basis for much of the OpenStack project's
24functional testing.
Ian Wienand7cd16ce2016-04-08 09:40:56 +100025
26The source is available at
27`<https://git.openstack.org/cgit/openstack-dev/devstack>`__.
28
Sean Daguecea7ec82016-08-05 08:29:54 -040029.. warning::
Sean M. Collins09e550c2014-10-21 11:40:08 -040030
Sean Daguecea7ec82016-08-05 08:29:54 -040031 DevStack will make substantial changes to your system during
32 installation. Only run DevStack on servers or virtual machines that
33 are dedicated to this purpose.
Sean M. Collins09e550c2014-10-21 11:40:08 -040034
Dean Troyer26dd21b2014-11-06 09:33:02 -060035Quick Start
Sean Daguecea7ec82016-08-05 08:29:54 -040036===========
Sean M. Collins09e550c2014-10-21 11:40:08 -040037
Sean Daguecea7ec82016-08-05 08:29:54 -040038Install Linux
Sean M. Collins09e550c2014-10-21 11:40:08 -040039-------------
40
Sean Daguecea7ec82016-08-05 08:29:54 -040041Start with a clean and minimal install of a Linux system. Devstack
42attempts to support Ubuntu 14.04/16.04, Fedora 23/24, CentOS/RHEL 7,
43as well as Debian and OpenSUSE.
Sean M. Collins09e550c2014-10-21 11:40:08 -040044
Sean Daguecea7ec82016-08-05 08:29:54 -040045If you do not have a preference, Ubuntu 16.04 is the most tested, and
46will probably go the smoothest.
47
48Download DevStack
49-----------------
50
51::
52
53 git clone https://git.openstack.org/openstack-dev/devstack
54
55The ``devstack`` repo contains a script that installs OpenStack and
56templates for configuration files
57
58Create a local.conf
59-------------------
60
61Create a ``local.conf`` file with 4 passwords preset
62
63::
64
65 [[local|localrc]]
66 ADMIN_PASSWORD=secret
67 DATABASE_PASSWORD=$ADMIN_PASSWORD
68 RABBIT_PASSWORD=$ADMIN_PASSWORD
69 SERVICE_PASSWORD=$ADMIN_PASSWORD
70
71This is the minimum required config to get started with DevStack.
72
73Add Stack User
74--------------
75
76Devstack should be run as a non-root user with sudo enabled
77(standard logins to cloud images such as "ubuntu" or "cloud-user"
78are usually fine).
79
80You can quickly create a separate `stack` user to run DevStack with
81
82::
83
84 devstack/tools/create-stack-user.sh; su stack
85
86Start the install
87-----------------
88
89::
90
91 cd devstack; ./stack.sh
92
93This will take a 15 - 20 minutes, largely depending on the speed of
94your internet connection. Many git trees and packages will be
95installed during this process.
96
97Profit!
Sean M. Collins09e550c2014-10-21 11:40:08 -040098-------
99
Sean Daguecea7ec82016-08-05 08:29:54 -0400100You now have a working DevStack! Congrats!
Sean M. Collins09e550c2014-10-21 11:40:08 -0400101
Sean Daguecea7ec82016-08-05 08:29:54 -0400102Your devstack will have installed ``keystone``, ``glance``, ``nova``,
103``cinder``, ``neutron``, and ``horizon``. Floating IPs will be
104available, guests have access to the external world.
Sean M. Collins09e550c2014-10-21 11:40:08 -0400105
Sean Daguecea7ec82016-08-05 08:29:54 -0400106You can access horizon to experience the web interface to
107OpenStack, and manage vms, networks, volumes, and images from
108there.
Sean M. Collins09e550c2014-10-21 11:40:08 -0400109
Sean Daguecea7ec82016-08-05 08:29:54 -0400110You can ``source openrc`` in your shell, and then use the
111``openstack`` command line tool to manage your devstack.
Sean M. Collins09e550c2014-10-21 11:40:08 -0400112
Sean Daguecea7ec82016-08-05 08:29:54 -0400113You can ``cd /opt/stack/tempest`` and run tempest tests that have
114been configured to work with your devstack.
Sean M. Collins09e550c2014-10-21 11:40:08 -0400115
Sean Daguebd6614a2016-08-11 09:05:16 -0400116You can :doc:`make code changes to OpenStack and validate them
117<development>`.
118
Sean Daguecea7ec82016-08-05 08:29:54 -0400119Going further
120-------------
121
122Learn more about our :doc:`configuration system <configuration>` to
Sean Daguebc883df2016-08-12 07:21:59 -0400123customize devstack for your needs. Including making adjustments to the
124default :doc:`networking <networking>`.
Sean Daguecea7ec82016-08-05 08:29:54 -0400125
126Read :doc:`guides <guides>` for specific setups people have (note:
127guides are point in time contributions, and may not always be kept
128up to date to the latest devstack).
129
130Enable :doc:`devstack plugins <plugins>` to support additional
131services, features, and configuration not present in base devstack.
132
133Get :doc:`the big picture <overview>` of what we are trying to do
134with devstack, and help us by :doc:`contributing to the project
135<hacking>`.