Dean Troyer | 0986a7b | 2014-10-29 22:08:13 -0500 | [diff] [blame] | 1 | === |
| 2 | FAQ |
| 3 | === |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 4 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 5 | .. contents:: |
| 6 | :local: |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 7 | |
| 8 | General Questions |
Sean Dague | 3293046 | 2014-11-18 06:51:16 -0500 | [diff] [blame] | 9 | ================= |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 10 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 11 | Can I use DevStack for production? |
| 12 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 13 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 14 | DevStack is targeted at developers and CI systems to use the raw |
| 15 | upstream code. It makes many choices that are not appropriate for |
| 16 | production systems. |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 17 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 18 | Your best choice is probably to choose a `distribution of OpenStack |
Isao Yamagata | 7aaaf90 | 2015-07-11 16:07:22 +0000 | [diff] [blame] | 19 | <https://www.openstack.org/marketplace/distros/>`__. |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 20 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 21 | Why a shell script, why not chef/puppet/... |
| 22 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 23 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 24 | The script is meant to be read by humans (as well as ran by |
| 25 | computers); it is the primary documentation after all. Using a recipe |
| 26 | system requires everyone to agree and understand chef or puppet. |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 27 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 28 | I'd like to help! |
| 29 | ~~~~~~~~~~~~~~~~~ |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 30 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 31 | That isn't a question, but please do! The source for DevStack is at |
| 32 | `git.openstack.org |
| 33 | <https://git.openstack.org/cgit/openstack-dev/devstack>`__ and bug |
| 34 | reports go to `LaunchPad |
zhangbailin | c63d933 | 2017-09-01 19:46:16 -0700 | [diff] [blame] | 35 | <https://bugs.launchpad.net/devstack/>`__. Contributions follow the |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 36 | usual process as described in the `developer guide |
zhangbailin | c63d933 | 2017-09-01 19:46:16 -0700 | [diff] [blame] | 37 | <https://docs.openstack.org/infra/manual/developers.html>`__. This |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 38 | Sphinx documentation is housed in the doc directory. |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 39 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 40 | Why not use packages? |
| 41 | ~~~~~~~~~~~~~~~~~~~~~ |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 42 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 43 | Unlike packages, DevStack leaves your cloud ready to develop - |
Sean Dague | 8b8441f | 2017-05-02 06:14:11 -0400 | [diff] [blame] | 44 | checkouts of the code and services running locally under systemd, |
| 45 | making it easy to hack on and test new patches. However, many people |
| 46 | are doing the hard work of packaging and recipes for production |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 47 | deployments. |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 48 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 49 | Why isn't $MY\_FAVORITE\_DISTRO supported? |
| 50 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 51 | |
| 52 | DevStack is meant for developers and those who want to see how |
| 53 | OpenStack really works. DevStack is known to run on the distro/release |
| 54 | combinations listed in ``README.md``. DevStack is only supported on |
| 55 | releases other than those documented in ``README.md`` on a best-effort |
| 56 | basis. |
| 57 | |
Atsushi SAKAI | e3c2673 | 2015-11-06 13:23:47 +0900 | [diff] [blame] | 58 | Are there any differences between Ubuntu and CentOS/Fedora support? |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 59 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 60 | |
| 61 | Both should work well and are tested by DevStack CI. |
| 62 | |
| 63 | Why can't I use another shell? |
| 64 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 65 | |
| 66 | DevStack now uses some specific bash-ism that require Bash 4, such as |
| 67 | associative arrays. Simple compatibility patches have been accepted in |
| 68 | the past when they are not complex, at this point no additional |
| 69 | compatibility patches will be considered except for shells matching |
| 70 | the array functionality as it is very ingrained in the repo and |
| 71 | project management. |
| 72 | |
| 73 | Can I test on OS/X? |
| 74 | ~~~~~~~~~~~~~~~~~~~ |
| 75 | |
| 76 | Some people have success with bash 4 installed via homebrew to keep |
| 77 | running tests on OS/X. |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 78 | |
Ian Wienand | 64cf204 | 2015-06-02 10:28:55 +1000 | [diff] [blame] | 79 | Can I at least source ``openrc`` with ``zsh``? |
| 80 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 81 | |
| 82 | People have reported success with a special function to run ``openrc`` |
| 83 | through bash for this |
| 84 | |
| 85 | .. code-block:: bash |
| 86 | |
| 87 | function sourceopenrc { |
| 88 | pushd ~/devstack >/dev/null |
Ethan Lynn | e256174 | 2016-03-30 23:40:56 +0800 | [diff] [blame] | 89 | eval $(bash -c ". openrc $1 $2 >/dev/null;env|sed -n '/OS_/ { s/^/export /;p}'") |
Ian Wienand | 64cf204 | 2015-06-02 10:28:55 +1000 | [diff] [blame] | 90 | popd >/dev/null |
| 91 | } |
| 92 | |
| 93 | |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 94 | Operation and Configuration |
Sean Dague | 3293046 | 2014-11-18 06:51:16 -0500 | [diff] [blame] | 95 | =========================== |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 96 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 97 | Can DevStack handle a multi-node installation? |
| 98 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 99 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 100 | Yes, see :doc:`multinode lab guide <guides/multinode-lab>` |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 101 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 102 | How can I document the environment that DevStack is using? |
| 103 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 104 | |
| 105 | DevStack includes a script (``tools/info.sh``) that gathers the |
| 106 | versions of the relevant installed apt packages, pip packages and git |
| 107 | repos. This is a good way to verify what Python modules are |
| 108 | installed. |
| 109 | |
| 110 | How do I turn off a service that is enabled by default? |
| 111 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 112 | |
| 113 | Services can be turned off by adding ``disable_service xxx`` to |
Jordan Pittier | 326e480 | 2016-02-12 15:23:43 +0100 | [diff] [blame] | 114 | ``local.conf`` (using ``c-vol`` in this example): |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 115 | |
| 116 | :: |
| 117 | |
Jordan Pittier | 326e480 | 2016-02-12 15:23:43 +0100 | [diff] [blame] | 118 | disable_service c-vol |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 119 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 120 | Is enabling a service that defaults to off done with the reverse of the above? |
| 121 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 122 | Of course! |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 123 | |
| 124 | :: |
| 125 | |
Sean Dague | 37eca48 | 2015-06-16 07:19:22 -0400 | [diff] [blame] | 126 | enable_service q-svc |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 127 | |
Sean Dague | 1759618 | 2015-10-05 15:26:43 -0400 | [diff] [blame] | 128 | How do I run a specific OpenStack release? |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 129 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 130 | |
Sean Dague | 1759618 | 2015-10-05 15:26:43 -0400 | [diff] [blame] | 131 | DevStack master tracks the upstream master of all the projects. If you |
| 132 | would like to run a stable branch of OpenStack, you should use the |
| 133 | corresponding stable branch of DevStack as well. For instance the |
Jordan Pittier | 99d5d1c | 2017-03-15 13:42:25 +0100 | [diff] [blame] | 134 | ``stable/ocata`` version of DevStack will already default to all the |
| 135 | projects running at ``stable/ocata`` levels. |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 136 | |
Sean Dague | 1759618 | 2015-10-05 15:26:43 -0400 | [diff] [blame] | 137 | Note: it's also possible to manually adjust the ``*_BRANCH`` variables |
| 138 | further if you would like to test specific milestones, or even custom |
| 139 | out of tree branches. This is done with entries like the following in |
| 140 | your ``local.conf`` |
| 141 | |
| 142 | :: |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 143 | |
| 144 | [[local|localrc]] |
Sean Dague | 1759618 | 2015-10-05 15:26:43 -0400 | [diff] [blame] | 145 | GLANCE_BRANCH=11.0.0.0rc1 |
| 146 | NOVA_BRANCH=12.0.0.0.rc1 |
| 147 | |
| 148 | |
| 149 | Upstream DevStack is only tested with master and stable |
Atsushi SAKAI | e3c2673 | 2015-11-06 13:23:47 +0900 | [diff] [blame] | 150 | branches. Setting custom BRANCH definitions is not guaranteed to |
Sean Dague | 1759618 | 2015-10-05 15:26:43 -0400 | [diff] [blame] | 151 | produce working results. |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 152 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 153 | What can I do about RabbitMQ not wanting to start on my fresh new VM? |
| 154 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Ian Wienand | a16e461 | 2015-06-02 10:08:04 +1000 | [diff] [blame] | 155 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 156 | This is often caused by ``erlang`` not being happy with the hostname |
| 157 | resolving to a reachable IP address. Make sure your hostname resolves |
| 158 | to a working IP address; setting it to 127.0.0.1 in ``/etc/hosts`` is |
| 159 | often good enough for a single-node installation. And in an extreme |
| 160 | case, use ``clean.sh`` to eradicate it and try again. |
| 161 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 162 | Why are my configuration changes ignored? |
| 163 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 164 | |
| 165 | You may have run into the package prerequisite installation |
| 166 | timeout. ``tools/install_prereqs.sh`` has a timer that skips the |
| 167 | package installation checks if it was run within the last |
| 168 | ``PREREQ_RERUN_HOURS`` hours (default is 2). To override this, set |
| 169 | ``FORCE_PREREQ=1`` and the package checks will never be skipped. |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 170 | |
| 171 | Miscellaneous |
Sean Dague | 3293046 | 2014-11-18 06:51:16 -0500 | [diff] [blame] | 172 | ============= |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 173 | |
Ian Wienand | 2f27add | 2015-06-02 10:18:49 +1000 | [diff] [blame] | 174 | ``tools/fixup_stuff.sh`` is broken and shouldn't 'fix' just one version of packages. |
| 175 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 176 | |
| 177 | Stuff in there is to correct problems in an environment that need to |
| 178 | be fixed elsewhere or may/will be fixed in a future release. In the |
| 179 | case of ``httplib2`` and ``prettytable`` specific problems with |
| 180 | specific versions are being worked around. If later releases have |
| 181 | those problems than we'll add them to the script. Knowing about the |
| 182 | broken future releases is valuable rather than polling to see if it |
| 183 | has been fixed. |