blob: 92d794572e13a63aadd86350c3c2e83d998ff50e [file] [log] [blame]
Dean Troyer0986a7b2014-10-29 22:08:13 -05001===
2FAQ
3===
Sean M. Collins09e550c2014-10-21 11:40:08 -04004
5- `General Questions <#general>`__
6- `Operation and Configuration <#ops_conf>`__
7- `Miscellaneous <#misc>`__
8
9General Questions
Sean Dague32930462014-11-18 06:51:16 -050010=================
Sean M. Collins09e550c2014-10-21 11:40:08 -040011
12Q: Can I use DevStack for production?
13 A: No. We mean it. Really. DevStack makes some implementation
14 choices that are not appropriate for production deployments. We
15 warned you!
16Q: Then why selinux in enforcing mode?
17 A: That is the default on current Fedora and RHEL releases. DevStack
18 has (rightly so) a bad reputation for its security practices; it has
19 always been meant as a development tool first and system integration
20 later. This is changing as the security issues around OpenStack's
21 use of root (for example) have been tightened and developers need to
22 be better equipped to work in these environments. ``stack.sh``'s use
23 of root is primarily to support the activities that would be handled
24 by packaging in "real" deployments. To remove additional protections
25 that will be desired/required in production would be a step
26 backward.
27Q: But selinux is disabled in RHEL 6!
28 A: Today it is, yes. That is a specific exception that certain
29 DevStack contributors fought strongly against. The primary reason it
30 was allowed was to support using RHEL6 as the Python 2.6 test
31 platform and that took priority time-wise. This will not be the case
32 with RHEL 7.
33Q: Why a shell script, why not chef/puppet/...
34 A: The script is meant to be read by humans (as well as ran by
35 computers); it is the primary documentation after all. Using a
36 recipe system requires everyone to agree and understand chef or
37 puppet.
38Q: Why not use Crowbar?
39 A: DevStack is optimized for documentation & developers. As some of
40 us use `Crowbar <https://github.com/dellcloudedge/crowbar>`__ for
41 production deployments, we hope developers documenting how they
42 setup systems for new features supports projects like Crowbar.
43Q: I'd like to help!
44 A: That isn't a question, but please do! The source for DevStack is
45 at
46 `git.openstack.org <https://git.openstack.org/cgit/openstack-dev/devstack>`__
47 and bug reports go to
48 `LaunchPad <http://bugs.launchpad.net/devstack/>`__. Contributions
49 follow the usual process as described in the `OpenStack
Dean Troyerea3cdfa2014-11-08 08:29:16 -060050 wiki <http://wiki.openstack.org/HowToContribute>`__. This Sphinx
51 documentation is housed in the doc directory.
Sean M. Collins09e550c2014-10-21 11:40:08 -040052Q: Why not use packages?
53 A: Unlike packages, DevStack leaves your cloud ready to develop -
54 checkouts of the code and services running in screen. However, many
55 people are doing the hard work of packaging and recipes for
56 production deployments. We hope this script serves as a way to
57 communicate configuration changes between developers and packagers.
58Q: Why isn't $MY\_FAVORITE\_DISTRO supported?
59 A: DevStack is meant for developers and those who want to see how
60 OpenStack really works. DevStack is known to run on the
61 distro/release combinations listed in ``README.md``. DevStack is
62 only supported on releases other than those documented in
63 ``README.md`` on a best-effort basis.
64Q: What about Fedora/RHEL/CentOS?
65 A: Fedora and CentOS/RHEL are supported via rpm dependency files and
66 specific checks in ``stack.sh``. Support will follow the pattern set
67 with the Ubuntu testing, i.e. only a single release of the distro
68 will receive regular testing, others will be handled on a
69 best-effort basis.
70Q: Are there any differences between Ubuntu and Fedora support?
71 A: Neutron is not fully supported prior to Fedora 18 due lack of
72 OpenVSwitch packages.
73Q: How about RHEL 6?
74 A: RHEL 6 has Python 2.6 and many old modules packaged and is a
75 challenge to support. There are a number of specific RHEL6
76 work-arounds in ``stack.sh`` to handle this. But the testing on py26
77 is valuable so we do it...
78
79Operation and Configuration
Sean Dague32930462014-11-18 06:51:16 -050080===========================
Sean M. Collins09e550c2014-10-21 11:40:08 -040081
82Q: Can DevStack handle a multi-node installation?
83 A: Indirectly, yes. You run DevStack on each node with the
84 appropriate configuration in ``local.conf``. The primary
85 considerations are turning off the services not required on the
86 secondary nodes, making sure the passwords match and setting the
87 various API URLs to the right place.
88Q: How can I document the environment that DevStack is using?
89 A: DevStack includes a script (``tools/info.sh``) that gathers the
90 versions of the relevant installed apt packages, pip packages and
91 git repos. This is a good way to verify what Python modules are
92 installed.
93Q: How do I turn off a service that is enabled by default?
94 A: Services can be turned off by adding ``disable_service xxx`` to
95 ``local.conf`` (using ``n-vol`` in this example):
96
97 ::
98
99 disable_service n-vol
100
101Q: Is enabling a service that defaults to off done with the reverse of the above?
102 A: Of course!
103
104 ::
105
106 enable_service qpid
107
108Q: How do I run a specific OpenStack milestone?
109 A: OpenStack milestones have tags set in the git repo. Set the appropriate tag in the ``*_BRANCH`` variables in ``local.conf``. Swift is on its own release schedule so pick a tag in the Swift repo that is just before the milestone release. For example:
110
111 ::
112
113 [[local|localrc]]
114 GLANCE_BRANCH=stable/grizzly
115 HORIZON_BRANCH=stable/grizzly
116 KEYSTONE_BRANCH=stable/grizzly
117 NOVA_BRANCH=stable/grizzly
118 GLANCE_BRANCH=stable/grizzly
119 NEUTRON_BRANCH=stable/grizzly
120 SWIFT_BRANCH=1.10.0
121
122Q: Why not use [STRIKEOUT:``tools/pip-requires``]\ ``requirements.txt`` to grab project dependencies?
123 [STRIKEOUT:The majority of deployments will use packages to install
124 OpenStack that will have distro-based packages as dependencies.
125 DevStack installs as many of these Python packages as possible to
saradpatel933827c2014-12-19 12:09:05 +0000126 mimic the expected production environment.] Certain Linux
Sean M. Collins09e550c2014-10-21 11:40:08 -0400127 distributions have a 'lack of workaround' in their Python
128 configurations that installs vendor packaged Python modules and
129 pip-installed modules to the SAME DIRECTORY TREE. This is causing
130 heartache and moving us in the direction of installing more modules
131 from PyPI than vendor packages. However, that is only being done as
132 necessary as the packaging needs to catch up to the development
133 cycle anyway so this is kept to a minimum.
134Q: What can I do about RabbitMQ not wanting to start on my fresh new VM?
135 A: This is often caused by ``erlang`` not being happy with the
136 hostname resolving to a reachable IP address. Make sure your
137 hostname resolves to a working IP address; setting it to 127.0.0.1
138 in ``/etc/hosts`` is often good enough for a single-node
139 installation. And in an extreme case, use ``clean.sh`` to eradicate
140 it and try again.
141Q: How can I set up Heat in stand-alone configuration?
142 A: Configure ``local.conf`` thusly:
143
144 ::
145
146 [[local|localrc]]
147 HEAT_STANDALONE=True
148 ENABLED_SERVICES=rabbit,mysql,heat,h-api,h-api-cfn,h-api-cw,h-eng
149 KEYSTONE_SERVICE_HOST=<keystone-host>
150 KEYSTONE_AUTH_HOST=<keystone-host>
151
152Q: Why are my configuration changes ignored?
153 A: You may have run into the package prerequisite installation
154 timeout. ``tools/install_prereqs.sh`` has a timer that skips the
155 package 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.
158
159Miscellaneous
Sean Dague32930462014-11-18 06:51:16 -0500160=============
Sean M. Collins09e550c2014-10-21 11:40:08 -0400161
162Q: ``tools/fixup_stuff.sh`` is broken and shouldn't 'fix' just one version of packages.
163 A: [Another not-a-question] No it isn't. Stuff in there is to
164 correct problems in an environment that need to be fixed elsewhere
165 or may/will be fixed in a future release. In the case of
166 ``httplib2`` and ``prettytable`` specific problems with specific
167 versions are being worked around. If later releases have those
168 problems than we'll add them to the script. Knowing about the broken
169 future releases is valuable rather than polling to see if it has
170 been fixed.