blob: 7b33b41741a2c8504d3aa8bf395c903052d0fbb3 [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
10~~~~~~~~~~~~~~~~~
11
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
50 wiki <http://wiki.openstack.org/HowToContribute>`__ even though
51 DevStack is not an official OpenStack project. This site is housed
52 in the CloudBuilder's
53 `github <http://github.com/cloudbuilders/devstack>`__ in the
54 gh-pages branch.
55Q: Why not use packages?
56 A: Unlike packages, DevStack leaves your cloud ready to develop -
57 checkouts of the code and services running in screen. However, many
58 people are doing the hard work of packaging and recipes for
59 production deployments. We hope this script serves as a way to
60 communicate configuration changes between developers and packagers.
61Q: Why isn't $MY\_FAVORITE\_DISTRO supported?
62 A: DevStack is meant for developers and those who want to see how
63 OpenStack really works. DevStack is known to run on the
64 distro/release combinations listed in ``README.md``. DevStack is
65 only supported on releases other than those documented in
66 ``README.md`` on a best-effort basis.
67Q: What about Fedora/RHEL/CentOS?
68 A: Fedora and CentOS/RHEL are supported via rpm dependency files and
69 specific checks in ``stack.sh``. Support will follow the pattern set
70 with the Ubuntu testing, i.e. only a single release of the distro
71 will receive regular testing, others will be handled on a
72 best-effort basis.
73Q: Are there any differences between Ubuntu and Fedora support?
74 A: Neutron is not fully supported prior to Fedora 18 due lack of
75 OpenVSwitch packages.
76Q: How about RHEL 6?
77 A: RHEL 6 has Python 2.6 and many old modules packaged and is a
78 challenge to support. There are a number of specific RHEL6
79 work-arounds in ``stack.sh`` to handle this. But the testing on py26
80 is valuable so we do it...
81
82Operation and Configuration
83~~~~~~~~~~~~~~~~~~~~~~~~~~~
84
85Q: Can DevStack handle a multi-node installation?
86 A: Indirectly, yes. You run DevStack on each node with the
87 appropriate configuration in ``local.conf``. The primary
88 considerations are turning off the services not required on the
89 secondary nodes, making sure the passwords match and setting the
90 various API URLs to the right place.
91Q: How can I document the environment that DevStack is using?
92 A: DevStack includes a script (``tools/info.sh``) that gathers the
93 versions of the relevant installed apt packages, pip packages and
94 git repos. This is a good way to verify what Python modules are
95 installed.
96Q: How do I turn off a service that is enabled by default?
97 A: Services can be turned off by adding ``disable_service xxx`` to
98 ``local.conf`` (using ``n-vol`` in this example):
99
100 ::
101
102 disable_service n-vol
103
104Q: Is enabling a service that defaults to off done with the reverse of the above?
105 A: Of course!
106
107 ::
108
109 enable_service qpid
110
111Q: How do I run a specific OpenStack milestone?
112 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:
113
114 ::
115
116 [[local|localrc]]
117 GLANCE_BRANCH=stable/grizzly
118 HORIZON_BRANCH=stable/grizzly
119 KEYSTONE_BRANCH=stable/grizzly
120 NOVA_BRANCH=stable/grizzly
121 GLANCE_BRANCH=stable/grizzly
122 NEUTRON_BRANCH=stable/grizzly
123 SWIFT_BRANCH=1.10.0
124
125Q: Why not use [STRIKEOUT:``tools/pip-requires``]\ ``requirements.txt`` to grab project dependencies?
126 [STRIKEOUT:The majority of deployments will use packages to install
127 OpenStack that will have distro-based packages as dependencies.
128 DevStack installs as many of these Python packages as possible to
129 mimic the expected production environemnt.] Certain Linux
130 distributions have a 'lack of workaround' in their Python
131 configurations that installs vendor packaged Python modules and
132 pip-installed modules to the SAME DIRECTORY TREE. This is causing
133 heartache and moving us in the direction of installing more modules
134 from PyPI than vendor packages. However, that is only being done as
135 necessary as the packaging needs to catch up to the development
136 cycle anyway so this is kept to a minimum.
137Q: What can I do about RabbitMQ not wanting to start on my fresh new VM?
138 A: This is often caused by ``erlang`` not being happy with the
139 hostname resolving to a reachable IP address. Make sure your
140 hostname resolves to a working IP address; setting it to 127.0.0.1
141 in ``/etc/hosts`` is often good enough for a single-node
142 installation. And in an extreme case, use ``clean.sh`` to eradicate
143 it and try again.
144Q: How can I set up Heat in stand-alone configuration?
145 A: Configure ``local.conf`` thusly:
146
147 ::
148
149 [[local|localrc]]
150 HEAT_STANDALONE=True
151 ENABLED_SERVICES=rabbit,mysql,heat,h-api,h-api-cfn,h-api-cw,h-eng
152 KEYSTONE_SERVICE_HOST=<keystone-host>
153 KEYSTONE_AUTH_HOST=<keystone-host>
154
155Q: Why are my configuration changes ignored?
156 A: You may have run into the package prerequisite installation
157 timeout. ``tools/install_prereqs.sh`` has a timer that skips the
158 package installation checks if it was run within the last
159 ``PREREQ_RERUN_HOURS`` hours (default is 2). To override this, set
160 ``FORCE_PREREQ=1`` and the package checks will never be skipped.
161
162Miscellaneous
163~~~~~~~~~~~~~
164
165Q: ``tools/fixup_stuff.sh`` is broken and shouldn't 'fix' just one version of packages.
166 A: [Another not-a-question] No it isn't. Stuff in there is to
167 correct problems in an environment that need to be fixed elsewhere
168 or may/will be fixed in a future release. In the case of
169 ``httplib2`` and ``prettytable`` specific problems with specific
170 versions are being worked around. If later releases have those
171 problems than we'll add them to the script. Knowing about the broken
172 future releases is valuable rather than polling to see if it has
173 been fixed.