Skip to content

Commit 07d7e5b

Browse files
committed
add LIBS_FROM_GIT to docs
Also reformat common configuration variables to have an additional header level which makes it easy to direct link to specific configuration vars when directing someone. Reformat header markup to us a more standard == = - for h1, h2, h3 Change-Id: I10bac5a93529cdfbcde0a05f9ebdbc1799d403cd
1 parent 9bfdea8 commit 07d7e5b

2 files changed

Lines changed: 69 additions & 12 deletions

File tree

doc/source/configuration.rst

Lines changed: 56 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ simplify this process and meet the following goals:
2222
- allow settings in arbitrary configuration files to be changed
2323

2424
local.conf
25-
~~~~~~~~~~
25+
==========
2626

2727
The new configuration file is ``local.conf`` and resides in the root
2828
DevStack directory like the old ``localrc`` file. It is a modified INI
@@ -96,7 +96,7 @@ fragment amd MUST conform to the shell requirements, specifically no
9696
whitespace around ``=`` (equals).
9797

9898
Minimal Configuration
99-
~~~~~~~~~~~~~~~~~~~~~
99+
=====================
100100

101101
While ``stack.sh`` is happy to run without a ``localrc`` section in
102102
``local.conf``, devlife is better when there are a few minimal variables
@@ -136,9 +136,11 @@ available for ``openrc`` to set ``OS_AUTH_URL``. ``HOST_IP`` is not set
136136
by default.
137137

138138
Common Configuration Variables
139-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139+
==============================
140+
141+
Installation Directory
142+
----------------------
140143

141-
Set DevStack install directory
142144
| *Default: ``DEST=/opt/stack``*
143145
| The DevStack install directory is set by the ``DEST`` variable.
144146
| By setting it early in the ``localrc`` section you can reference it
@@ -150,7 +152,27 @@ Set DevStack install directory
150152

151153
DEST=/opt/stack
152154

153-
stack.sh logging
155+
Libraries from Git
156+
------------------
157+
158+
| *Default: ``LIBS_FROM_GIT=""``*
159+
160+
| By default devstack installs OpenStack server components from
161+
git, however it installs client libraries from released versions
162+
on pypi. This is appropriate if you are working on server
163+
development, but if you want to see how an unreleased version of
164+
the client affects the system you can have devstack install it
165+
from upstream, or from local git trees.
166+
| Multiple libraries can be specified as a comma separated list.
167+
|
168+
169+
::
170+
171+
LIBS_FROM_GIT=python-keystoneclient,oslo.config
172+
173+
Enable Logging
174+
--------------
175+
154176
| *Defaults: ``LOGFILE="" LOGDAYS=7 LOG_COLOR=True``*
155177
| By default ``stack.sh`` output is only written to the console
156178
where is runs. It can be sent to a file in addition to the console
@@ -178,7 +200,9 @@ stack.sh logging
178200

179201
LOG_COLOR=False
180202

181-
Screen logging
203+
Logging the Screen Output
204+
-------------------------
205+
182206
| *Default: ``SCREEN_LOGDIR=""``*
183207
| By default DevStack runs the OpenStack services using ``screen``
184208
which is useful for watching log and debug output. However, in
@@ -196,7 +220,9 @@ Screen logging
196220
*Note the use of ``DEST`` to locate the main install directory; this
197221
is why we suggest setting it in ``local.conf``.*
198222

199-
One syslog to bind them all
223+
Enabling Syslog
224+
---------------
225+
200226
| *Default: ``SYSLOG=False SYSLOG_HOST=$HOST_IP SYSLOG_PORT=516``*
201227
| Logging all services to a single syslog can be convenient. Enable
202228
syslogging by setting ``SYSLOG`` to ``True``. If the destination log
@@ -211,6 +237,8 @@ One syslog to bind them all
211237
SYSLOG_PORT=516
212238

213239
A clean install every time
240+
--------------------------
241+
214242
| *Default: ``RECLONE=""``*
215243
| By default ``stack.sh`` only clones the project repos if they do
216244
not exist in ``$DEST``. ``stack.sh`` will freshen each repo on each
@@ -222,10 +250,18 @@ A clean install every time
222250

223251
RECLONE=yes
224252

225-
Swift
226-
Default: SWIFT_HASH="" SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data/swift
227-
Swift is now used as the back-end for the S3-like object store. When enabled Nova's objectstore (n-obj in ENABLED_SERVICES) is automatically disabled. Enable Swift by adding it services to ENABLED_SERVICES:
228-
enable_service s-proxy s-object s-container s-account
253+
Swift
254+
-----
255+
256+
| Default: SWIFT_HASH=""
257+
| SWIFT_REPLICAS=1
258+
| SWIFT_DATA_DIR=$DEST/data/swift
259+
260+
| Swift is now used as the back-end for the S3-like object store.
261+
When enabled Nova's objectstore (n-obj in ENABLED_SERVICES) is
262+
automatically disabled. Enable Swift by adding it services to
263+
ENABLED_SERVICES: enable_service s-proxy s-object s-container
264+
s-account
229265
230266
Setting Swift's hash value is required and you will be prompted for
231267
it if Swift is enabled so just set it to something already:
@@ -259,6 +295,8 @@ A clean install every time
259295
work correctly.*
260296

261297
Service Catalog Backend
298+
-----------------------
299+
262300
| *Default: ``KEYSTONE_CATALOG_BACKEND=sql``*
263301
| DevStack uses Keystone's ``sql`` service catalog backend. An
264302
alternate ``template`` backend is also available. However, it does
@@ -274,6 +312,8 @@ Service Catalog Backend
274312
``files/keystone_data.sh``
275313

276314
Cinder
315+
------
316+
277317
| Default:
278318
| VOLUME_GROUP="stack-volumes" VOLUME_NAME_PREFIX="volume-" VOLUME_BACKING_FILE_SIZE=10250M
279319
| The logical volume group used to hold the Cinder-managed volumes
@@ -289,6 +329,8 @@ Cinder
289329
VOLUME_BACKING_FILE_SIZE=10250M
290330

291331
Multi-host DevStack
332+
-------------------
333+
292334
| *Default: ``MULTI_HOST=False``*
293335
| Running DevStack with multiple hosts requires a custom
294336
``local.conf`` section for each host. The master is the same as a
@@ -311,6 +353,8 @@ Multi-host DevStack
311353
ENABLED_SERVICES=n-vol,n-cpu,n-net,n-api
312354

313355
API rate limits
356+
---------------
357+
314358
| Default: ``API_RATE_LIMIT=True``
315359
| Integration tests such as Tempest will likely run afoul of the
316360
default rate limits configured for Nova. Turn off rate limiting
@@ -322,7 +366,7 @@ API rate limits
322366
API_RATE_LIMIT=False
323367

324368
Examples
325-
~~~~~~~~
369+
========
326370

327371
- Eliminate a Cinder pass-through (``CINDER_PERIODIC_INTERVAL``):
328372

stackrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,19 @@ REQUIREMENTS_MODE=${REQUIREMENTS_MODE:-strict}
134134
# Another option is https://git.openstack.org
135135
GIT_BASE=${GIT_BASE:-git://git.openstack.org}
136136

137+
# Which libraries should we install from git instead of using released
138+
# versions on pypi?
139+
#
140+
# By default devstack is now installing libraries from pypi instead of
141+
# from git repositories by default. This works great if you are
142+
# developing server components, but if you want to develop libraries
143+
# and see them live in devstack you need to tell devstack it should
144+
# install them from git.
145+
#
146+
# ex: LIBS_FROM_GIT=python-keystoneclient,oslo.config
147+
#
148+
# Will install those 2 libraries from git, the rest from pypi.
149+
137150
##############
138151
#
139152
# OpenStack Server Components

0 commit comments

Comments
 (0)