blob: 87f84693df2de10ff150b6242e51683623dd3407 [file] [log] [blame]
Dean Troyer0986a7b2014-10-29 22:08:13 -05001===
2FAQ
3===
Sean M. Collins09e550c2014-10-21 11:40:08 -04004
Ian Wienand2f27add2015-06-02 10:18:49 +10005.. contents::
6 :local:
Sean M. Collins09e550c2014-10-21 11:40:08 -04007
8General Questions
Sean Dague32930462014-11-18 06:51:16 -05009=================
Sean M. Collins09e550c2014-10-21 11:40:08 -040010
Ian Wienand2f27add2015-06-02 10:18:49 +100011Can I use DevStack for production?
12~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ian Wienanda16e4612015-06-02 10:08:04 +100013
Ian Wienand2f27add2015-06-02 10:18:49 +100014DevStack is targeted at developers and CI systems to use the raw
15upstream code. It makes many choices that are not appropriate for
16production systems.
Ian Wienanda16e4612015-06-02 10:08:04 +100017
Ian Wienand2f27add2015-06-02 10:18:49 +100018Your best choice is probably to choose a `distribution of OpenStack
19<https://www.openstack.org/marketplace/distros/distribution>`__.
Ian Wienanda16e4612015-06-02 10:08:04 +100020
Ian Wienand2f27add2015-06-02 10:18:49 +100021Why a shell script, why not chef/puppet/...
22~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ian Wienanda16e4612015-06-02 10:08:04 +100023
Ian Wienand2f27add2015-06-02 10:18:49 +100024The script is meant to be read by humans (as well as ran by
25computers); it is the primary documentation after all. Using a recipe
26system requires everyone to agree and understand chef or puppet.
Ian Wienanda16e4612015-06-02 10:08:04 +100027
Ian Wienand2f27add2015-06-02 10:18:49 +100028I'd like to help!
29~~~~~~~~~~~~~~~~~
Ian Wienanda16e4612015-06-02 10:08:04 +100030
Ian Wienand2f27add2015-06-02 10:18:49 +100031That 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
34reports go to `LaunchPad
35<http://bugs.launchpad.net/devstack/>`__. Contributions follow the
36usual process as described in the `developer guide
37<http://docs.openstack.org/infra/manual/developers.html>`__. This
38Sphinx documentation is housed in the doc directory.
Ian Wienanda16e4612015-06-02 10:08:04 +100039
Ian Wienand2f27add2015-06-02 10:18:49 +100040Why not use packages?
41~~~~~~~~~~~~~~~~~~~~~
Ian Wienanda16e4612015-06-02 10:08:04 +100042
Ian Wienand2f27add2015-06-02 10:18:49 +100043Unlike packages, DevStack leaves your cloud ready to develop -
44checkouts of the code and services running in screen. However, many
45people are doing the hard work of packaging and recipes for production
46deployments.
Ian Wienanda16e4612015-06-02 10:08:04 +100047
Ian Wienand2f27add2015-06-02 10:18:49 +100048Why isn't $MY\_FAVORITE\_DISTRO supported?
49~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50
51DevStack is meant for developers and those who want to see how
52OpenStack really works. DevStack is known to run on the distro/release
53combinations listed in ``README.md``. DevStack is only supported on
54releases other than those documented in ``README.md`` on a best-effort
55basis.
56
57Are there any differences between Ubuntu and Centos/Fedora support?
58~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59
60Both should work well and are tested by DevStack CI.
61
62Why can't I use another shell?
63~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64
65DevStack now uses some specific bash-ism that require Bash 4, such as
66associative arrays. Simple compatibility patches have been accepted in
67the past when they are not complex, at this point no additional
68compatibility patches will be considered except for shells matching
69the array functionality as it is very ingrained in the repo and
70project management.
71
72Can I test on OS/X?
73~~~~~~~~~~~~~~~~~~~
74
75Some people have success with bash 4 installed via homebrew to keep
76running tests on OS/X.
Sean M. Collins09e550c2014-10-21 11:40:08 -040077
78Operation and Configuration
Sean Dague32930462014-11-18 06:51:16 -050079===========================
Sean M. Collins09e550c2014-10-21 11:40:08 -040080
Ian Wienand2f27add2015-06-02 10:18:49 +100081Can DevStack handle a multi-node installation?
82~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ian Wienanda16e4612015-06-02 10:08:04 +100083
Ian Wienand2f27add2015-06-02 10:18:49 +100084Yes, see :doc:`multinode lab guide <guides/multinode-lab>`
Ian Wienanda16e4612015-06-02 10:08:04 +100085
Ian Wienand2f27add2015-06-02 10:18:49 +100086How can I document the environment that DevStack is using?
87~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88
89DevStack includes a script (``tools/info.sh``) that gathers the
90versions of the relevant installed apt packages, pip packages and git
91repos. This is a good way to verify what Python modules are
92installed.
93
94How do I turn off a service that is enabled by default?
95~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
96
97Services can be turned off by adding ``disable_service xxx`` to
98``local.conf`` (using ``n-vol`` in this example):
Sean M. Collins09e550c2014-10-21 11:40:08 -040099
100 ::
101
102 disable_service n-vol
103
Ian Wienand2f27add2015-06-02 10:18:49 +1000104Is enabling a service that defaults to off done with the reverse of the above?
105~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106Of course!
Sean M. Collins09e550c2014-10-21 11:40:08 -0400107
108 ::
109
110 enable_service qpid
111
Ian Wienand2f27add2015-06-02 10:18:49 +1000112How do I run a specific OpenStack milestone?
113~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114
115OpenStack milestones have tags set in the git repo. Set the
116appropriate tag in the ``*_BRANCH`` variables in ``local.conf``.
117Swift is on its own release schedule so pick a tag in the Swift repo
118that is just before the milestone release. For example:
Sean M. Collins09e550c2014-10-21 11:40:08 -0400119
120 ::
121
122 [[local|localrc]]
Ian Wienanda16e4612015-06-02 10:08:04 +1000123 GLANCE_BRANCH=stable/kilo
124 HORIZON_BRANCH=stable/kilo
125 KEYSTONE_BRANCH=stable/kilo
126 NOVA_BRANCH=stable/kilo
127 GLANCE_BRANCH=stable/kilo
128 NEUTRON_BRANCH=stable/kilo
129 SWIFT_BRANCH=2.3.0
Sean M. Collins09e550c2014-10-21 11:40:08 -0400130
Ian Wienand2f27add2015-06-02 10:18:49 +1000131What can I do about RabbitMQ not wanting to start on my fresh new VM?
132~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ian Wienanda16e4612015-06-02 10:08:04 +1000133
Ian Wienand2f27add2015-06-02 10:18:49 +1000134This is often caused by ``erlang`` not being happy with the hostname
135resolving to a reachable IP address. Make sure your hostname resolves
136to a working IP address; setting it to 127.0.0.1 in ``/etc/hosts`` is
137often good enough for a single-node installation. And in an extreme
138case, use ``clean.sh`` to eradicate it and try again.
139
140Configure ``local.conf`` thusly:
Sean M. Collins09e550c2014-10-21 11:40:08 -0400141
142 ::
143
144 [[local|localrc]]
145 HEAT_STANDALONE=True
146 ENABLED_SERVICES=rabbit,mysql,heat,h-api,h-api-cfn,h-api-cw,h-eng
147 KEYSTONE_SERVICE_HOST=<keystone-host>
148 KEYSTONE_AUTH_HOST=<keystone-host>
149
Ian Wienand2f27add2015-06-02 10:18:49 +1000150Why are my configuration changes ignored?
151~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
152
153You may have run into the package prerequisite installation
154timeout. ``tools/install_prereqs.sh`` has a timer that skips the
155package installation checks if it was run within the last
156``PREREQ_RERUN_HOURS`` hours (default is 2). To override this, set
157``FORCE_PREREQ=1`` and the package checks will never be skipped.
Sean M. Collins09e550c2014-10-21 11:40:08 -0400158
159Miscellaneous
Sean Dague32930462014-11-18 06:51:16 -0500160=============
Sean M. Collins09e550c2014-10-21 11:40:08 -0400161
Ian Wienand2f27add2015-06-02 10:18:49 +1000162``tools/fixup_stuff.sh`` is broken and shouldn't 'fix' just one version of packages.
163~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164
165Stuff in there is to correct problems in an environment that need to
166be fixed elsewhere or may/will be fixed in a future release. In the
167case of ``httplib2`` and ``prettytable`` specific problems with
168specific versions are being worked around. If later releases have
169those problems than we'll add them to the script. Knowing about the
170broken future releases is valuable rather than polling to see if it
171has been fixed.