Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 1 | .. 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. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 17 | |
Dean Troyer | af14029 | 2014-11-20 21:13:15 -0600 | [diff] [blame] | 18 | .. image:: assets/images/logo-blue.png |
| 19 | |
Ian Wienand | 7cd16ce | 2016-04-08 09:40:56 +1000 | [diff] [blame] | 20 | DevStack is a series of extensible scripts used to quickly bring up a |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 21 | complete OpenStack environment based on the latest versions of |
| 22 | everything from git master. It is used interactively as a development |
| 23 | environment and as the basis for much of the OpenStack project's |
| 24 | functional testing. |
Ian Wienand | 7cd16ce | 2016-04-08 09:40:56 +1000 | [diff] [blame] | 25 | |
| 26 | The source is available at |
| 27 | `<https://git.openstack.org/cgit/openstack-dev/devstack>`__. |
| 28 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 29 | .. warning:: |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 30 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 31 | 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. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 34 | |
Dean Troyer | 26dd21b | 2014-11-06 09:33:02 -0600 | [diff] [blame] | 35 | Quick Start |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 36 | =========== |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 37 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 38 | Install Linux |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 39 | ------------- |
| 40 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 41 | Start with a clean and minimal install of a Linux system. Devstack |
Laura Sofia Enriquez | 1c75d2f | 2018-10-11 19:13:17 -0300 | [diff] [blame] | 42 | attempts to support the two latest LTS releases of Ubuntu, the |
| 43 | latest/current Fedora version, CentOS/RHEL 7, as well as Debian and |
| 44 | OpenSUSE. |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 45 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 46 | If you do not have a preference, Ubuntu 16.04 is the most tested, and |
| 47 | will probably go the smoothest. |
| 48 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 49 | Add Stack User |
| 50 | -------------- |
| 51 | |
| 52 | Devstack should be run as a non-root user with sudo enabled |
| 53 | (standard logins to cloud images such as "ubuntu" or "cloud-user" |
| 54 | are usually fine). |
| 55 | |
| 56 | You can quickly create a separate `stack` user to run DevStack with |
| 57 | |
Matt Riedemann | 584979c | 2018-12-13 08:22:12 -0500 | [diff] [blame^] | 58 | .. code-block:: console |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 59 | |
David Rabel | fca0da5 | 2017-03-17 14:47:18 +0100 | [diff] [blame] | 60 | $ sudo useradd -s /bin/bash -d /opt/stack -m stack |
Sharat Sharma | 89a855f | 2016-10-03 12:10:23 +0530 | [diff] [blame] | 61 | |
| 62 | Since this user will be making many changes to your system, it should |
| 63 | have sudo privileges: |
| 64 | |
Matt Riedemann | 584979c | 2018-12-13 08:22:12 -0500 | [diff] [blame^] | 65 | .. code-block:: console |
Sharat Sharma | 89a855f | 2016-10-03 12:10:23 +0530 | [diff] [blame] | 66 | |
Cyril Roelandt | a48ffa8 | 2017-04-06 15:23:13 +0200 | [diff] [blame] | 67 | $ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack |
Attila Fazekas | 9ef346f | 2017-02-13 15:09:35 +0100 | [diff] [blame] | 68 | $ sudo su - stack |
Sharat Sharma | 89a855f | 2016-10-03 12:10:23 +0530 | [diff] [blame] | 69 | |
| 70 | Download DevStack |
| 71 | ----------------- |
| 72 | |
Matt Riedemann | 584979c | 2018-12-13 08:22:12 -0500 | [diff] [blame^] | 73 | .. code-block:: console |
Sharat Sharma | 89a855f | 2016-10-03 12:10:23 +0530 | [diff] [blame] | 74 | |
| 75 | $ git clone https://git.openstack.org/openstack-dev/devstack |
| 76 | $ cd devstack |
| 77 | |
| 78 | The ``devstack`` repo contains a script that installs OpenStack and |
| 79 | templates for configuration files |
| 80 | |
| 81 | Create a local.conf |
| 82 | ------------------- |
| 83 | |
| 84 | Create a ``local.conf`` file with 4 passwords preset at the root of the |
| 85 | devstack git repo. |
Matt Riedemann | 584979c | 2018-12-13 08:22:12 -0500 | [diff] [blame^] | 86 | |
| 87 | .. code-block:: ini |
Sharat Sharma | 89a855f | 2016-10-03 12:10:23 +0530 | [diff] [blame] | 88 | |
| 89 | [[local|localrc]] |
| 90 | ADMIN_PASSWORD=secret |
| 91 | DATABASE_PASSWORD=$ADMIN_PASSWORD |
| 92 | RABBIT_PASSWORD=$ADMIN_PASSWORD |
| 93 | SERVICE_PASSWORD=$ADMIN_PASSWORD |
| 94 | |
| 95 | This is the minimum required config to get started with DevStack. |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 96 | |
Matt Riedemann | 584979c | 2018-12-13 08:22:12 -0500 | [diff] [blame^] | 97 | .. note:: There is a sample :download:`local.conf </assets/local.conf>` file |
| 98 | under the *samples* directory in the devstack repository. |
| 99 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 100 | Start the install |
| 101 | ----------------- |
| 102 | |
Matt Riedemann | 584979c | 2018-12-13 08:22:12 -0500 | [diff] [blame^] | 103 | .. code-block:: console |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 104 | |
Matt Riedemann | 584979c | 2018-12-13 08:22:12 -0500 | [diff] [blame^] | 105 | $ ./stack.sh |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 106 | |
| 107 | This will take a 15 - 20 minutes, largely depending on the speed of |
| 108 | your internet connection. Many git trees and packages will be |
| 109 | installed during this process. |
| 110 | |
| 111 | Profit! |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 112 | ------- |
| 113 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 114 | You now have a working DevStack! Congrats! |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 115 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 116 | Your devstack will have installed ``keystone``, ``glance``, ``nova``, |
| 117 | ``cinder``, ``neutron``, and ``horizon``. Floating IPs will be |
| 118 | available, guests have access to the external world. |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 119 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 120 | You can access horizon to experience the web interface to |
| 121 | OpenStack, and manage vms, networks, volumes, and images from |
| 122 | there. |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 123 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 124 | You can ``source openrc`` in your shell, and then use the |
| 125 | ``openstack`` command line tool to manage your devstack. |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 126 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 127 | You can ``cd /opt/stack/tempest`` and run tempest tests that have |
| 128 | been configured to work with your devstack. |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 129 | |
Sean Dague | bd6614a | 2016-08-11 09:05:16 -0400 | [diff] [blame] | 130 | You can :doc:`make code changes to OpenStack and validate them |
| 131 | <development>`. |
| 132 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 133 | Going further |
| 134 | ------------- |
| 135 | |
| 136 | Learn more about our :doc:`configuration system <configuration>` to |
Sean Dague | bc883df | 2016-08-12 07:21:59 -0400 | [diff] [blame] | 137 | customize devstack for your needs. Including making adjustments to the |
| 138 | default :doc:`networking <networking>`. |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 139 | |
| 140 | Read :doc:`guides <guides>` for specific setups people have (note: |
| 141 | guides are point in time contributions, and may not always be kept |
| 142 | up to date to the latest devstack). |
| 143 | |
| 144 | Enable :doc:`devstack plugins <plugins>` to support additional |
| 145 | services, features, and configuration not present in base devstack. |
| 146 | |
Andrea Frittoli | 067e365 | 2018-02-23 16:04:46 +0000 | [diff] [blame] | 147 | Use devstack in your CI with :doc:`Ansible roles <zuul_roles>` and |
Andrea Frittoli | f32f3f5 | 2018-02-19 21:45:22 +0000 | [diff] [blame] | 148 | :doc:`Jobs <zuul_jobs>` for Zuul V3. Migrate your devstack Zuul V2 jobs to Zuul |
| 149 | V3 with this full migration :doc:`how-to <zuul_ci_jobs_migration>`. |
Andrea Frittoli | fddf343 | 2018-02-19 18:34:43 +0000 | [diff] [blame] | 150 | |
Sean Dague | cea7ec8 | 2016-08-05 08:29:54 -0400 | [diff] [blame] | 151 | Get :doc:`the big picture <overview>` of what we are trying to do |
| 152 | with devstack, and help us by :doc:`contributing to the project |
| 153 | <hacking>`. |
Doug Hellmann | 84ce2f1 | 2017-05-09 07:35:08 -0400 | [diff] [blame] | 154 | |
| 155 | Contents |
| 156 | -------- |
| 157 | |
| 158 | .. toctree:: |
| 159 | :glob: |
| 160 | :maxdepth: 2 |
| 161 | |
| 162 | * |