| Dean Troyer | 0986a7b | 2014-10-29 22:08:13 -0500 | [diff] [blame] | 1 | ============= | 
 | 2 | Configuration | 
 | 3 | ============= | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 4 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 5 | .. contents:: | 
 | 6 |    :local: | 
 | 7 |    :depth: 1 | 
 | 8 |  | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 9 | local.conf | 
| Sean Dague | 07d7e5b | 2014-11-17 07:10:14 -0500 | [diff] [blame] | 10 | ========== | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 11 |  | 
| Ian Wienand | a35391e | 2015-08-10 13:53:40 +1000 | [diff] [blame] | 12 | DevStack configuration is modified via the file ``local.conf``.  It is | 
 | 13 | a modified INI format file that introduces a meta-section header to | 
 | 14 | carry additional information regarding the configuration files to be | 
 | 15 | changed. | 
 | 16 |  | 
 | 17 | A sample is provided in ``devstack/samples`` | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 18 |  | 
 | 19 | The new header is similar to a normal INI section header but with double | 
 | 20 | brackets (``[[ ... ]]``) and two internal fields separated by a pipe | 
| dieterly | 7c7679e | 2015-09-18 15:10:48 -0600 | [diff] [blame] | 21 | (``|``). Note that there are no spaces between the double brackets and the | 
 | 22 | internal fields. Likewise, there are no spaces between the pipe and the | 
 | 23 | internal fields: | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 24 | :: | 
 | 25 |  | 
| dieterly | 7c7679e | 2015-09-18 15:10:48 -0600 | [diff] [blame] | 26 |     '[[' <phase> '|' <config-file-name> ']]' | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 27 |  | 
 | 28 | where ``<phase>`` is one of a set of phase names defined by ``stack.sh`` | 
 | 29 | and ``<config-file-name>`` is the configuration filename. The filename | 
 | 30 | is eval'ed in the ``stack.sh`` context so all environment variables are | 
 | 31 | available and may be used. Using the project config file variables in | 
 | 32 | the header is strongly suggested (see the ``NOVA_CONF`` example below). | 
 | 33 | If the path of the config file does not exist it is skipped. | 
 | 34 |  | 
 | 35 | The defined phases are: | 
 | 36 |  | 
 | 37 | -  **local** - extracts ``localrc`` from ``local.conf`` before | 
 | 38 |    ``stackrc`` is sourced | 
 | 39 | -  **pre-install** - runs after the system packages are installed but | 
 | 40 |    before any of the source repositories are installed | 
 | 41 | -  **install** - runs immediately after the repo installations are | 
 | 42 |    complete | 
 | 43 | -  **post-config** - runs after the layer 2 services are configured and | 
 | 44 |    before they are started | 
 | 45 | -  **extra** - runs after services are started and before any files in | 
 | 46 |    ``extra.d`` are executed | 
| YAMAMOTO Takashi | 961643e | 2015-07-31 13:45:27 +0900 | [diff] [blame] | 47 | -  **post-extra** - runs after files in ``extra.d`` are executed | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 48 |  | 
 | 49 | The file is processed strictly in sequence; meta-sections may be | 
 | 50 | specified more than once but if any settings are duplicated the last to | 
 | 51 | appear in the file will be used. | 
 | 52 |  | 
 | 53 | :: | 
 | 54 |  | 
 | 55 |     [[post-config|$NOVA_CONF]] | 
 | 56 |     [DEFAULT] | 
 | 57 |     use_syslog = True | 
 | 58 |  | 
 | 59 |     [osapi_v3] | 
 | 60 |     enabled = False | 
 | 61 |  | 
 | 62 | A specific meta-section ``local|localrc`` is used to provide a default | 
 | 63 | ``localrc`` file (actually ``.localrc.auto``). This allows all custom | 
 | 64 | settings for DevStack to be contained in a single file. If ``localrc`` | 
| Ian Wienand | 7cd16ce | 2016-04-08 09:40:56 +1000 | [diff] [blame] | 65 | exists it will be used instead to preserve backward-compatibility. | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 66 |  | 
 | 67 | :: | 
 | 68 |  | 
 | 69 |     [[local|localrc]] | 
 | 70 |     FIXED_RANGE=10.254.1.0/24 | 
 | 71 |     ADMIN_PASSWORD=speciale | 
 | 72 |     LOGFILE=$DEST/logs/stack.sh.log | 
 | 73 |  | 
 | 74 | Note that ``Q_PLUGIN_CONF_FILE`` is unique in that it is assumed to | 
 | 75 | *NOT* start with a ``/`` (slash) character. A slash will need to be | 
 | 76 | added: | 
 | 77 |  | 
 | 78 | :: | 
 | 79 |  | 
 | 80 |     [[post-config|/$Q_PLUGIN_CONF_FILE]] | 
 | 81 |  | 
 | 82 | Also note that the ``localrc`` section is sourced as a shell script | 
| Juan Antonio Osorio Robles | fe6dccb | 2014-11-28 13:12:14 +0200 | [diff] [blame] | 83 | fragment and MUST conform to the shell requirements, specifically no | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 84 | whitespace around ``=`` (equals). | 
 | 85 |  | 
| Ian Wienand | 7cd16ce | 2016-04-08 09:40:56 +1000 | [diff] [blame] | 86 | openrc | 
 | 87 | ====== | 
 | 88 |  | 
 | 89 | ``openrc`` configures login credentials suitable for use with the | 
 | 90 | OpenStack command-line tools. ``openrc`` sources ``stackrc`` at the | 
 | 91 | beginning (which in turn sources the ``localrc`` section of | 
 | 92 | ``local.conf``) in order to pick up ``HOST_IP`` and/or ``SERVICE_HOST`` | 
 | 93 | to use in the endpoints. The values shown below are the default values. | 
 | 94 |  | 
 | 95 | OS\_PROJECT\_NAME (OS\_TENANT\_NAME) | 
 | 96 |     Keystone has | 
 | 97 |     standardized the term *project* as the entity that owns resources. In | 
 | 98 |     some places references still exist to the previous term | 
 | 99 |     *tenant* for this use. Also, *project\_name* is preferred to | 
 | 100 |     *project\_id*.  OS\_TENANT\_NAME remains supported for compatibility | 
 | 101 |     with older tools. | 
 | 102 |  | 
 | 103 |     :: | 
 | 104 |  | 
 | 105 |         OS_PROJECT_NAME=demo | 
 | 106 |  | 
 | 107 | OS\_USERNAME | 
 | 108 |     In addition to the owning entity (project), OpenStack calls the entity | 
 | 109 |     performing the action *user*. | 
 | 110 |  | 
 | 111 |     :: | 
 | 112 |  | 
 | 113 |         OS_USERNAME=demo | 
 | 114 |  | 
 | 115 | OS\_PASSWORD | 
 | 116 |     Keystone's default authentication requires a password be provided. | 
 | 117 |     The usual cautions about putting passwords in environment variables | 
 | 118 |     apply, for most DevStack uses this may be an acceptable tradeoff. | 
 | 119 |  | 
 | 120 |     :: | 
 | 121 |  | 
 | 122 |         OS_PASSWORD=secret | 
 | 123 |  | 
 | 124 | HOST\_IP, SERVICE\_HOST | 
 | 125 |     Set API endpoint host using ``HOST_IP``. ``SERVICE_HOST`` may also | 
 | 126 |     be used to specify the endpoint, which is convenient for some | 
 | 127 |     ``local.conf`` configurations. Typically, ``HOST_IP`` is set in the | 
 | 128 |     ``localrc`` section. | 
 | 129 |  | 
 | 130 |     :: | 
 | 131 |  | 
 | 132 |         HOST_IP=127.0.0.1 | 
 | 133 |         SERVICE_HOST=$HOST_IP | 
 | 134 |  | 
 | 135 | OS\_AUTH\_URL | 
 | 136 |     Authenticating against an OpenStack cloud using Keystone returns a | 
 | 137 |     *Token* and *Service Catalog*. The catalog contains the endpoints | 
 | 138 |     for all services the user/tenant has access to - including Nova, | 
 | 139 |     Glance, Keystone and Swift. | 
 | 140 |  | 
 | 141 |     :: | 
 | 142 |  | 
 | 143 |         OS_AUTH_URL=http://$SERVICE_HOST:5000/v2.0 | 
 | 144 |  | 
 | 145 | KEYSTONECLIENT\_DEBUG, NOVACLIENT\_DEBUG | 
 | 146 |     Set command-line client log level to ``DEBUG``. These are commented | 
 | 147 |     out by default. | 
 | 148 |  | 
 | 149 |     :: | 
 | 150 |  | 
 | 151 |         # export KEYSTONECLIENT_DEBUG=1 | 
 | 152 |         # export NOVACLIENT_DEBUG=1 | 
 | 153 |  | 
 | 154 |  | 
 | 155 |  | 
| James Polley | 5f2eb6d | 2015-03-30 17:36:26 +1100 | [diff] [blame] | 156 | .. _minimal-configuration: | 
 | 157 |  | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 158 | Minimal Configuration | 
| Sean Dague | 07d7e5b | 2014-11-17 07:10:14 -0500 | [diff] [blame] | 159 | ===================== | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 160 |  | 
 | 161 | While ``stack.sh`` is happy to run without a ``localrc`` section in | 
 | 162 | ``local.conf``, devlife is better when there are a few minimal variables | 
 | 163 | set. This is an example of a minimal configuration that touches the | 
 | 164 | values that most often need to be set. | 
 | 165 |  | 
 | 166 | -  no logging | 
 | 167 | -  pre-set the passwords to prevent interactive prompts | 
 | 168 | -  move network ranges away from the local network (``FIXED_RANGE`` and | 
 | 169 |    ``FLOATING_RANGE``, commented out below) | 
 | 170 | -  set the host IP if detection is unreliable (``HOST_IP``, commented | 
 | 171 |    out below) | 
 | 172 |  | 
 | 173 | :: | 
 | 174 |  | 
 | 175 |     [[local|localrc]] | 
| Balagopal | 7ed812c | 2016-03-01 04:43:31 +0000 | [diff] [blame] | 176 |     ADMIN_PASSWORD=secret | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 177 |     DATABASE_PASSWORD=$ADMIN_PASSWORD | 
 | 178 |     RABBIT_PASSWORD=$ADMIN_PASSWORD | 
 | 179 |     SERVICE_PASSWORD=$ADMIN_PASSWORD | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 180 |     #FIXED_RANGE=172.31.1.0/24 | 
 | 181 |     #FLOATING_RANGE=192.168.20.0/25 | 
 | 182 |     #HOST_IP=10.3.4.5 | 
 | 183 |  | 
 | 184 | If the ``*_PASSWORD`` variables are not set here you will be prompted to | 
 | 185 | enter values for them by ``stack.sh``. | 
 | 186 |  | 
 | 187 | The network ranges must not overlap with any networks in use on the | 
 | 188 | host. Overlap is not uncommon as RFC-1918 'private' ranges are commonly | 
 | 189 | used for both the local networking and Nova's fixed and floating ranges. | 
 | 190 |  | 
 | 191 | ``HOST_IP`` is normally detected on the first run of ``stack.sh`` but | 
 | 192 | often is indeterminate on later runs due to the IP being moved from an | 
| Juan Antonio Osorio Robles | fe6dccb | 2014-11-28 13:12:14 +0200 | [diff] [blame] | 193 | Ethernet interface to a bridge on the host. Setting it here also makes it | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 194 | available for ``openrc`` to set ``OS_AUTH_URL``. ``HOST_IP`` is not set | 
 | 195 | by default. | 
 | 196 |  | 
| Brian Haley | 180f5eb | 2015-06-16 13:14:31 -0400 | [diff] [blame] | 197 | ``HOST_IPV6`` is normally detected on the first run of ``stack.sh`` but | 
 | 198 | will not be set if there is no IPv6 address on the default Ethernet interface. | 
 | 199 | Setting it here also makes it available for ``openrc`` to set ``OS_AUTH_URL``. | 
 | 200 | ``HOST_IPV6`` is not set by default. | 
 | 201 |  | 
| Ian Wienand | a35391e | 2015-08-10 13:53:40 +1000 | [diff] [blame] | 202 | Historical Notes | 
 | 203 | ================ | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 204 |  | 
| Ian Wienand | a35391e | 2015-08-10 13:53:40 +1000 | [diff] [blame] | 205 | Historically DevStack obtained all local configuration and | 
 | 206 | customizations from a ``localrc`` file.  In Oct 2013 the | 
 | 207 | ``local.conf`` configuration method was introduced (in `review 46768 | 
 | 208 | <https://review.openstack.org/#/c/46768/>`__) to simplify this | 
 | 209 | process. | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 210 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 211 | Configuration Notes | 
 | 212 | =================== | 
 | 213 |  | 
 | 214 | .. contents:: | 
 | 215 |    :local: | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 216 |  | 
| Ian Wienand | 7cd16ce | 2016-04-08 09:40:56 +1000 | [diff] [blame] | 217 | Service Repos | 
 | 218 | ------------- | 
 | 219 |  | 
 | 220 | The Git repositories used to check out the source for each service are | 
 | 221 | controlled by a pair of variables set for each service.  ``*_REPO`` | 
 | 222 | points to the repository and ``*_BRANCH`` selects which branch to | 
 | 223 | check out. These may be overridden in ``local.conf`` to pull source | 
 | 224 | from a different repo for testing, such as a Gerrit branch | 
 | 225 | proposal. ``GIT_BASE`` points to the primary repository server. | 
 | 226 |  | 
 | 227 |     :: | 
 | 228 |  | 
 | 229 |         NOVA_REPO=$GIT_BASE/openstack/nova.git | 
 | 230 |         NOVA_BRANCH=master | 
 | 231 |  | 
 | 232 | To pull a branch directly from Gerrit, get the repo and branch from | 
 | 233 | the Gerrit review page: | 
 | 234 |  | 
 | 235 |     :: | 
 | 236 |  | 
 | 237 |         git fetch https://review.openstack.org/p/openstack/nova refs/changes/50/5050/1 && git checkout FETCH_HEAD | 
 | 238 |  | 
 | 239 |     The repo is the stanza following ``fetch`` and the branch is the | 
 | 240 |     stanza following that: | 
 | 241 |  | 
 | 242 |     :: | 
 | 243 |  | 
 | 244 |         NOVA_REPO=https://review.openstack.org/p/openstack/nova | 
 | 245 |         NOVA_BRANCH=refs/changes/50/5050/1 | 
 | 246 |  | 
 | 247 |  | 
| Sean Dague | 07d7e5b | 2014-11-17 07:10:14 -0500 | [diff] [blame] | 248 | Installation Directory | 
 | 249 | ---------------------- | 
 | 250 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 251 | The DevStack install directory is set by the ``DEST`` variable.  By | 
 | 252 | default it is ``/opt/stack``. | 
 | 253 |  | 
 | 254 | By setting it early in the ``localrc`` section you can reference it in | 
 | 255 | later variables.  It can be useful to set it even though it is not | 
 | 256 | changed from the default value. | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 257 |  | 
 | 258 |     :: | 
 | 259 |  | 
 | 260 |         DEST=/opt/stack | 
 | 261 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 262 | Logging | 
 | 263 | ------- | 
 | 264 |  | 
 | 265 | Enable Logging | 
 | 266 | ~~~~~~~~~~~~~~ | 
 | 267 |  | 
 | 268 | By default ``stack.sh`` output is only written to the console where it | 
 | 269 | runs. It can be sent to a file in addition to the console by setting | 
 | 270 | ``LOGFILE`` to the fully-qualified name of the destination log file. A | 
 | 271 | timestamp will be appended to the given filename for each run of | 
 | 272 | ``stack.sh``. | 
 | 273 |  | 
 | 274 |     :: | 
 | 275 |  | 
 | 276 |         LOGFILE=$DEST/logs/stack.sh.log | 
 | 277 |  | 
 | 278 | Old log files are cleaned automatically if ``LOGDAYS`` is set to the | 
 | 279 | number of days of old log files to keep. | 
 | 280 |  | 
 | 281 |     :: | 
 | 282 |  | 
 | 283 |         LOGDAYS=1 | 
 | 284 |  | 
 | 285 | The some of the project logs (Nova, Cinder, etc) will be colorized by | 
 | 286 | default (if ``SYSLOG`` is not set below); this can be turned off by | 
 | 287 | setting ``LOG_COLOR`` to ``False``. | 
 | 288 |  | 
 | 289 |     :: | 
 | 290 |  | 
 | 291 |         LOG_COLOR=False | 
 | 292 |  | 
 | 293 | Logging the Service Output | 
 | 294 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | 
 | 295 |  | 
 | 296 | DevStack will log the ``stdout`` output of the services it starts. | 
 | 297 | When using ``screen`` this logs the output in the screen windows to a | 
 | 298 | file.  Without ``screen`` this simply redirects stdout of the service | 
 | 299 | process to a file in ``LOGDIR``. | 
 | 300 |  | 
 | 301 |     :: | 
 | 302 |  | 
 | 303 |         LOGDIR=$DEST/logs | 
 | 304 |  | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 305 | Note the use of ``DEST`` to locate the main install directory; this | 
 | 306 | is why we suggest setting it in ``local.conf``. | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 307 |  | 
 | 308 | Enabling Syslog | 
 | 309 | ~~~~~~~~~~~~~~~ | 
 | 310 |  | 
 | 311 | Logging all services to a single syslog can be convenient. Enable | 
 | 312 | syslogging by setting ``SYSLOG`` to ``True``. If the destination log | 
 | 313 | host is not localhost ``SYSLOG_HOST`` and ``SYSLOG_PORT`` can be used | 
| yangyapeng | 01cf55a | 2015-10-29 13:21:29 -0400 | [diff] [blame] | 314 | to direct the message stream to the log host. | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 315 |  | 
 | 316 |     :: | 
 | 317 |  | 
 | 318 |         SYSLOG=True | 
 | 319 |         SYSLOG_HOST=$HOST_IP | 
 | 320 |         SYSLOG_PORT=516 | 
 | 321 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 322 |  | 
| Ian Wienand | a35391e | 2015-08-10 13:53:40 +1000 | [diff] [blame] | 323 | Example Logging Configuration | 
 | 324 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 
 | 325 |  | 
 | 326 | For example, non-interactive installs probably wish to save output to | 
 | 327 | a file, keep service logs and disable color in the stored files. | 
 | 328 |  | 
 | 329 |    :: | 
 | 330 |  | 
 | 331 |        [[local|localrc]] | 
 | 332 |        DEST=/opt/stack/ | 
 | 333 |        LOGDIR=$DEST/logs | 
 | 334 |        LOGFILE=$LOGDIR/stack.sh.log | 
 | 335 |        LOG_COLOR=False | 
 | 336 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 337 | Database Backend | 
 | 338 | ---------------- | 
 | 339 |  | 
 | 340 | Multiple database backends are available. The available databases are defined | 
 | 341 | in the lib/databases directory. | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 342 | ``mysql`` is the default database, choose a different one by putting the | 
 | 343 | following in the ``localrc`` section: | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 344 |  | 
 | 345 |    :: | 
 | 346 |  | 
 | 347 |       disable_service mysql | 
 | 348 |       enable_service postgresql | 
 | 349 |  | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 350 | ``mysql`` is the default database. | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 351 |  | 
 | 352 | RPC Backend | 
 | 353 | ----------- | 
 | 354 |  | 
 | 355 | Support for a RabbitMQ RPC backend is included. Additional RPC | 
 | 356 | backends may be available via external plugins.  Enabling or disabling | 
 | 357 | RabbitMQ is handled via the usual service functions and | 
 | 358 | ``ENABLED_SERVICES``. | 
 | 359 |  | 
 | 360 | Example disabling RabbitMQ in ``local.conf``: | 
 | 361 |  | 
 | 362 | :: | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 363 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 364 |     disable_service rabbit | 
 | 365 |  | 
 | 366 |  | 
 | 367 | Apache Frontend | 
 | 368 | --------------- | 
 | 369 |  | 
 | 370 | The Apache web server can be enabled for wsgi services that support | 
 | 371 | being deployed under HTTPD + mod_wsgi. By default, services that | 
 | 372 | recommend running under HTTPD + mod_wsgi are deployed under Apache. To | 
 | 373 | use an alternative deployment strategy (e.g. eventlet) for services | 
 | 374 | that support an alternative to HTTPD + mod_wsgi set | 
 | 375 | ``ENABLE_HTTPD_MOD_WSGI_SERVICES`` to ``False`` in your | 
 | 376 | ``local.conf``. | 
 | 377 |  | 
 | 378 | Each service that can be run under HTTPD + mod_wsgi also has an | 
 | 379 | override toggle available that can be set in your ``local.conf``. | 
 | 380 |  | 
 | 381 | Keystone is run under Apache with ``mod_wsgi`` by default. | 
 | 382 |  | 
 | 383 | Example (Keystone) | 
 | 384 |  | 
 | 385 | :: | 
 | 386 |  | 
 | 387 |     KEYSTONE_USE_MOD_WSGI="True" | 
 | 388 |  | 
 | 389 | Example (Nova): | 
 | 390 |  | 
 | 391 | :: | 
 | 392 |  | 
 | 393 |     NOVA_USE_MOD_WSGI="True" | 
 | 394 |  | 
 | 395 | Example (Swift): | 
 | 396 |  | 
 | 397 | :: | 
 | 398 |  | 
 | 399 |     SWIFT_USE_MOD_WSGI="True" | 
 | 400 |  | 
| Oleksii Chuprykov | a692810 | 2015-06-11 08:56:58 -0400 | [diff] [blame] | 401 | Example (Heat): | 
 | 402 |  | 
 | 403 | :: | 
 | 404 |  | 
 | 405 |     HEAT_USE_MOD_WSGI="True" | 
 | 406 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 407 |  | 
| Anton Arefiev | 651cb1a | 2015-09-01 10:55:20 +0300 | [diff] [blame] | 408 | Example (Cinder): | 
 | 409 |  | 
 | 410 | :: | 
 | 411 |  | 
 | 412 |     CINDER_USE_MOD_WSGI="True" | 
 | 413 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 414 |  | 
| Sean Dague | 07d7e5b | 2014-11-17 07:10:14 -0500 | [diff] [blame] | 415 | Libraries from Git | 
 | 416 | ------------------ | 
 | 417 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 418 | By default devstack installs OpenStack server components from git, | 
 | 419 | however it installs client libraries from released versions on pypi. | 
 | 420 | This is appropriate if you are working on server development, but if | 
 | 421 | you want to see how an unreleased version of the client affects the | 
 | 422 | system you can have devstack install it from upstream, or from local | 
 | 423 | git trees by specifying it in ``LIBS_FROM_GIT``.  Multiple libraries | 
 | 424 | can be specified as a comma separated list. | 
| Sean Dague | 07d7e5b | 2014-11-17 07:10:14 -0500 | [diff] [blame] | 425 |  | 
 | 426 |    :: | 
 | 427 |  | 
 | 428 |       LIBS_FROM_GIT=python-keystoneclient,oslo.config | 
 | 429 |  | 
| Dean Troyer | 5686dbc | 2015-03-09 14:27:51 -0500 | [diff] [blame] | 430 | Virtual Environments | 
 | 431 | -------------------- | 
 | 432 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 433 | Enable the use of Python virtual environments by setting ``USE_VENV`` | 
 | 434 | to ``True``.  This will enable the creation of venvs for each project | 
 | 435 | that is defined in the ``PROJECT_VENV`` array. | 
| Dean Troyer | 5686dbc | 2015-03-09 14:27:51 -0500 | [diff] [blame] | 436 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 437 | Each entry in the ``PROJECT_VENV`` array contains the directory name | 
 | 438 | of a venv to be used for the project.  The array index is the project | 
 | 439 | name.  Multiple projects can use the same venv if desired. | 
| Dean Troyer | 5686dbc | 2015-03-09 14:27:51 -0500 | [diff] [blame] | 440 |  | 
 | 441 |   :: | 
 | 442 |  | 
 | 443 |     PROJECT_VENV["glance"]=${GLANCE_DIR}.venv | 
 | 444 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 445 | ``ADDITIONAL_VENV_PACKAGES`` is a comma-separated list of additional | 
 | 446 | packages to be installed into each venv.  Often projects will not have | 
 | 447 | certain packages listed in its ``requirements.txt`` file because they | 
 | 448 | are 'optional' requirements, i.e. only needed for certain | 
 | 449 | configurations.  By default, the enabled databases will have their | 
 | 450 | Python bindings added when they are enabled. | 
| Dean Troyer | 5686dbc | 2015-03-09 14:27:51 -0500 | [diff] [blame] | 451 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 452 |   :: | 
| Sean Dague | 07d7e5b | 2014-11-17 07:10:14 -0500 | [diff] [blame] | 453 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 454 |      ADDITIONAL_VENV_PACKAGES="python-foo, python-bar" | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 455 |  | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 456 |  | 
 | 457 | A clean install every time | 
| Sean Dague | 07d7e5b | 2014-11-17 07:10:14 -0500 | [diff] [blame] | 458 | -------------------------- | 
 | 459 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 460 | By default ``stack.sh`` only clones the project repos if they do not | 
 | 461 | exist in ``$DEST``. ``stack.sh`` will freshen each repo on each run if | 
 | 462 | ``RECLONE`` is set to ``yes``. This avoids having to manually remove | 
 | 463 | repos in order to get the current branch from ``$GIT_BASE``. | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 464 |  | 
 | 465 |     :: | 
 | 466 |  | 
 | 467 |         RECLONE=yes | 
 | 468 |  | 
| Chris Dent | ebdd9ac | 2015-03-04 12:35:14 +0000 | [diff] [blame] | 469 | Upgrade packages installed by pip | 
 | 470 | --------------------------------- | 
 | 471 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 472 | By default ``stack.sh`` only installs Python packages if no version is | 
 | 473 | currently installed or the current version does not match a specified | 
 | 474 | requirement. If ``PIP_UPGRADE`` is set to ``True`` then existing | 
 | 475 | required Python packages will be upgraded to the most recent version | 
 | 476 | that matches requirements. | 
| Chris Dent | ebdd9ac | 2015-03-04 12:35:14 +0000 | [diff] [blame] | 477 |  | 
 | 478 |     :: | 
 | 479 |  | 
 | 480 |         PIP_UPGRADE=True | 
 | 481 |  | 
| John Hua | a4693b5 | 2015-08-06 13:53:35 +0100 | [diff] [blame] | 482 | Guest Images | 
 | 483 | ------------ | 
 | 484 |  | 
 | 485 | Images provided in URLS via the comma-separated ``IMAGE_URLS`` | 
 | 486 | variable will be downloaded and uploaded to glance by DevStack. | 
 | 487 |  | 
 | 488 | Default guest-images are predefined for each type of hypervisor and | 
 | 489 | their testing-requirements in ``stack.sh``.  Setting | 
 | 490 | ``DOWNLOAD_DEFAULT_IMAGES=False`` will prevent DevStack downloading | 
 | 491 | these default images; in that case, you will want to populate | 
 | 492 | ``IMAGE_URLS`` with sufficient images to satisfy testing-requirements. | 
 | 493 |  | 
 | 494 |     :: | 
 | 495 |  | 
 | 496 |         DOWNLOAD_DEFAULT_IMAGES=False | 
 | 497 |         IMAGE_URLS="http://foo.bar.com/image.qcow," | 
 | 498 |         IMAGE_URLS+="http://foo.bar.com/image2.qcow" | 
 | 499 |  | 
| Rafael Folco | f0131e1 | 2015-09-23 12:55:02 -0500 | [diff] [blame] | 500 |  | 
 | 501 | Instance Type | 
 | 502 | ------------- | 
 | 503 |  | 
 | 504 | ``DEFAULT_INSTANCE_TYPE`` can be used to configure the default instance | 
 | 505 | type. When this parameter is not specified, Devstack creates additional | 
 | 506 | micro & nano flavors for really small instances to run Tempest tests. | 
 | 507 |  | 
 | 508 | For guests with larger memory requirements, ``DEFAULT_INSTANCE_TYPE`` | 
 | 509 | should be specified in the configuration file so Tempest selects the | 
 | 510 | default flavors instead. | 
 | 511 |  | 
 | 512 | KVM on Power with QEMU 2.4 requires 512 MB to load the firmware - | 
 | 513 | `QEMU 2.4 - PowerPC <http://wiki.qemu.org/ChangeLog/2.4>`__ so users | 
 | 514 | running instances on ppc64/ppc64le can choose one of the default | 
 | 515 | created flavors as follows: | 
 | 516 |  | 
 | 517 |     :: | 
 | 518 |  | 
 | 519 |         DEFAULT_INSTANCE_TYPE=m1.tiny | 
 | 520 |  | 
 | 521 |  | 
| John Davidge | 21529a5 | 2014-06-30 09:55:11 -0400 | [diff] [blame] | 522 | IP Version | 
| Brian Haley | 180f5eb | 2015-06-16 13:14:31 -0400 | [diff] [blame] | 523 | ---------- | 
 | 524 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 525 | ``IP_VERSION`` can be used to configure DevStack to create either an | 
| Sean Dague | db48db1 | 2016-04-06 08:09:31 -0400 | [diff] [blame] | 526 | IPv4, IPv6, or dual-stack self service project data-network by with | 
 | 527 | either ``IP_VERSION=4``, ``IP_VERSION=6``, or ``IP_VERSION=4+6`` | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 528 | respectively.  This functionality requires that the Neutron networking | 
 | 529 | service is enabled by setting the following options: | 
| John Davidge | 21529a5 | 2014-06-30 09:55:11 -0400 | [diff] [blame] | 530 |  | 
 | 531 |     :: | 
 | 532 |  | 
 | 533 |         disable_service n-net | 
 | 534 |         enable_service q-svc q-agt q-dhcp q-l3 | 
 | 535 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 536 | The following optional variables can be used to alter the default IPv6 | 
 | 537 | behavior: | 
| John Davidge | 21529a5 | 2014-06-30 09:55:11 -0400 | [diff] [blame] | 538 |  | 
 | 539 |     :: | 
 | 540 |  | 
 | 541 |         IPV6_RA_MODE=slaac | 
 | 542 |         IPV6_ADDRESS_MODE=slaac | 
 | 543 |         FIXED_RANGE_V6=fd$IPV6_GLOBAL_ID::/64 | 
 | 544 |         IPV6_PRIVATE_NETWORK_GATEWAY=fd$IPV6_GLOBAL_ID::1 | 
 | 545 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 546 | *Note*: ``FIXED_RANGE_V6`` and ``IPV6_PRIVATE_NETWORK_GATEWAY`` can be | 
 | 547 | configured with any valid IPv6 prefix. The default values make use of | 
 | 548 | an auto-generated ``IPV6_GLOBAL_ID`` to comply with RFC4193. | 
| Brian Haley | 180f5eb | 2015-06-16 13:14:31 -0400 | [diff] [blame] | 549 |  | 
| Ian Wienand | 815db16 | 2015-08-06 10:25:45 +1000 | [diff] [blame] | 550 | Service Version | 
 | 551 | ~~~~~~~~~~~~~~~ | 
 | 552 |  | 
 | 553 | DevStack can enable service operation over either IPv4 or IPv6 by | 
 | 554 | setting ``SERVICE_IP_VERSION`` to either ``SERVICE_IP_VERSION=4`` or | 
 | 555 | ``SERVICE_IP_VERSION=6`` respectively. | 
 | 556 |  | 
 | 557 | When set to ``4`` devstack services will open listen sockets on | 
 | 558 | ``0.0.0.0`` and service endpoints will be registered using ``HOST_IP`` | 
 | 559 | as the address. | 
 | 560 |  | 
 | 561 | When set to ``6`` devstack services will open listen sockets on ``::`` | 
 | 562 | and service endpoints will be registered using ``HOST_IPV6`` as the | 
 | 563 | address. | 
 | 564 |  | 
 | 565 | The default value for this setting is ``4``.  Dual-mode support, for | 
 | 566 | example ``4+6`` is not currently supported.  ``HOST_IPV6`` can | 
 | 567 | optionally be used to alter the default IPv6 address | 
| Brian Haley | 180f5eb | 2015-06-16 13:14:31 -0400 | [diff] [blame] | 568 |  | 
 | 569 |     :: | 
 | 570 |  | 
 | 571 |         HOST_IPV6=${some_local_ipv6_address} | 
| John Davidge | 21529a5 | 2014-06-30 09:55:11 -0400 | [diff] [blame] | 572 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 573 | Multi-node setup | 
 | 574 | ~~~~~~~~~~~~~~~~ | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 575 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 576 | See the :doc:`multi-node lab guide<guides/multinode-lab>` | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 577 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 578 | Projects | 
 | 579 | -------- | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 580 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 581 | Neutron | 
 | 582 | ~~~~~~~ | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 583 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 584 | See the :doc:`neutron configuration guide<guides/neutron>` for | 
 | 585 | details on configuration of Neutron | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 586 |  | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 587 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 588 | Swift | 
 | 589 | ~~~~~ | 
 | 590 |  | 
 | 591 | Swift is disabled by default.  When enabled, it is configured with | 
 | 592 | only one replica to avoid being IO/memory intensive on a small | 
 | 593 | VM. When running with only one replica the account, container and | 
 | 594 | object services will run directly in screen. The others services like | 
 | 595 | replicator, updaters or auditor runs in background. | 
 | 596 |  | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 597 | If you would like to enable Swift you can add this to your ``localrc`` | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 598 | section: | 
 | 599 |  | 
 | 600 | :: | 
 | 601 |  | 
 | 602 |     enable_service s-proxy s-object s-container s-account | 
 | 603 |  | 
 | 604 | If you want a minimal Swift install with only Swift and Keystone you | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 605 | can have this instead in your ``localrc`` section: | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 606 |  | 
 | 607 | :: | 
 | 608 |  | 
 | 609 |     disable_all_services | 
 | 610 |     enable_service key mysql s-proxy s-object s-container s-account | 
 | 611 |  | 
 | 612 | If you only want to do some testing of a real normal swift cluster | 
 | 613 | with multiple replicas you can do so by customizing the variable | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 614 | ``SWIFT_REPLICAS`` in your ``localrc`` section (usually to 3). | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 615 |  | 
| Christian Schwede | 91d2245 | 2016-04-12 10:53:46 +0200 | [diff] [blame] | 616 | You can manually override the ring building to use specific storage | 
 | 617 | nodes, for example when you want to test a multinode environment. In | 
 | 618 | this case you have to set a space-separated list of IPs in | 
 | 619 | ``SWIFT_STORAGE_IPS`` in your ``localrc`` section that should be used | 
 | 620 | as Swift storage nodes. | 
 | 621 | Please note that this does not create a multinode setup, it is only | 
 | 622 | used when adding nodes to the Swift rings. | 
 | 623 |  | 
 | 624 | :: | 
 | 625 |  | 
 | 626 |     SWIFT_STORAGE_IPS="192.168.1.10 192.168.1.11 192.168.1.12" | 
 | 627 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 628 | Swift S3 | 
 | 629 | ++++++++ | 
 | 630 |  | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 631 | If you are enabling ``swift3`` in ``ENABLED_SERVICES`` DevStack will | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 632 | install the swift3 middleware emulation. Swift will be configured to | 
 | 633 | act as a S3 endpoint for Keystone so effectively replacing the | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 634 | ``nova-objectstore``. | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 635 |  | 
 | 636 | Only Swift proxy server is launched in the screen session all other | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 637 | services are started in background and managed by ``swift-init`` tool. | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 638 |  | 
 | 639 | Heat | 
 | 640 | ~~~~ | 
 | 641 |  | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 642 | Heat is disabled by default (see ``stackrc`` file). To enable it | 
 | 643 | explicitly you'll need the following settings in your ``localrc`` | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 644 | section | 
 | 645 |  | 
 | 646 | :: | 
 | 647 |  | 
 | 648 |     enable_service heat h-api h-api-cfn h-api-cw h-eng | 
 | 649 |  | 
 | 650 | Heat can also run in standalone mode, and be configured to orchestrate | 
 | 651 | on an external OpenStack cloud. To launch only Heat in standalone mode | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 652 | you'll need the following settings in your ``localrc`` section | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 653 |  | 
 | 654 | :: | 
 | 655 |  | 
 | 656 |     disable_all_services | 
 | 657 |     enable_service rabbit mysql heat h-api h-api-cfn h-api-cw h-eng | 
 | 658 |     HEAT_STANDALONE=True | 
 | 659 |     KEYSTONE_SERVICE_HOST=... | 
 | 660 |     KEYSTONE_AUTH_HOST=... | 
 | 661 |  | 
 | 662 | Tempest | 
 | 663 | ~~~~~~~ | 
 | 664 |  | 
 | 665 | If tempest has been successfully configured, a basic set of smoke | 
 | 666 | tests can be run as follows: | 
 | 667 |  | 
 | 668 | :: | 
 | 669 |  | 
 | 670 |     $ cd /opt/stack/tempest | 
 | 671 |     $ tox -efull  tempest.scenario.test_network_basic_ops | 
 | 672 |  | 
 | 673 | By default tempest is downloaded and the config file is generated, but the | 
 | 674 | tempest package is not installed in the system's global site-packages (the | 
 | 675 | package install includes installing dependences). So tempest won't run | 
 | 676 | outside of tox. If you would like to install it add the following to your | 
 | 677 | ``localrc`` section: | 
 | 678 |  | 
 | 679 | :: | 
 | 680 |  | 
 | 681 |     INSTALL_TEMPEST=True | 
 | 682 |  | 
 | 683 |  | 
 | 684 | Xenserver | 
 | 685 | ~~~~~~~~~ | 
 | 686 |  | 
 | 687 | If you would like to use Xenserver as the hypervisor, please refer to | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 688 | the instructions in ``./tools/xen/README.md``. | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 689 |  | 
 | 690 | Cells | 
 | 691 | ~~~~~ | 
 | 692 |  | 
 | 693 | `Cells <http://wiki.openstack.org/blueprint-nova-compute-cells>`__ is | 
 | 694 | an alternative scaling option.  To setup a cells environment add the | 
| Markus Zoeller | c30657d | 2015-11-02 11:27:46 +0100 | [diff] [blame] | 695 | following to your ``localrc`` section: | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 696 |  | 
 | 697 | :: | 
 | 698 |  | 
 | 699 |     enable_service n-cell | 
 | 700 |  | 
 | 701 | Be aware that there are some features currently missing in cells, one | 
 | 702 | notable one being security groups.  The exercises have been patched to | 
 | 703 | disable functionality not supported by cells. | 
 | 704 |  | 
 | 705 | Cinder | 
 | 706 | ~~~~~~ | 
 | 707 |  | 
 | 708 | The logical volume group used to hold the Cinder-managed volumes is | 
 | 709 | set by ``VOLUME_GROUP``, the logical volume name prefix is set with | 
 | 710 | ``VOLUME_NAME_PREFIX`` and the size of the volume backing file is set | 
 | 711 | with ``VOLUME_BACKING_FILE_SIZE``. | 
 | 712 |  | 
 | 713 |     :: | 
 | 714 |  | 
 | 715 |         VOLUME_GROUP="stack-volumes" | 
 | 716 |         VOLUME_NAME_PREFIX="volume-" | 
 | 717 |         VOLUME_BACKING_FILE_SIZE=10250M | 
 | 718 |  | 
 | 719 |  | 
 | 720 | Keystone | 
 | 721 | ~~~~~~~~ | 
 | 722 |  | 
 | 723 | Multi-Region Setup | 
 | 724 | ++++++++++++++++++ | 
 | 725 |  | 
 | 726 | We want to setup two devstack (RegionOne and RegionTwo) with shared | 
 | 727 | keystone (same users and services) and horizon.  Keystone and Horizon | 
 | 728 | will be located in RegionOne.  Full spec is available at: | 
 | 729 | `<https://wiki.openstack.org/wiki/Heat/Blueprints/Multi_Region_Support_for_Heat>`__. | 
 | 730 |  | 
 | 731 | In RegionOne: | 
 | 732 |  | 
 | 733 | :: | 
 | 734 |  | 
 | 735 |     REGION_NAME=RegionOne | 
 | 736 |  | 
 | 737 | In RegionTwo: | 
 | 738 |  | 
 | 739 | :: | 
| henriquetruta | f212622 | 2016-01-05 13:43:18 -0300 | [diff] [blame] | 740 |  | 
| Ian Wienand | 7d5be29 | 2015-08-10 13:39:17 +1000 | [diff] [blame] | 741 |     disable_service horizon | 
 | 742 |     KEYSTONE_SERVICE_HOST=<KEYSTONE_IP_ADDRESS_FROM_REGION_ONE> | 
 | 743 |     KEYSTONE_AUTH_HOST=<KEYSTONE_IP_ADDRESS_FROM_REGION_ONE> | 
 | 744 |     REGION_NAME=RegionTwo | 
| zhiyuan_cai | 6f1781f | 2016-04-07 18:36:46 +0800 | [diff] [blame] | 745 |     KEYSTONE_REGION_NAME=RegionOne | 
 | 746 |  | 
 | 747 | In the devstack for RegionOne, we set REGION_NAME as RegionOne, so region of | 
 | 748 | the services started in this devstack are registered as RegionOne. In devstack | 
 | 749 | for RegionTwo, similarly, we set REGION_NAME as RegionTwo since we want | 
 | 750 | services started in this devstack to be registered in RegionTwo. But Keystone | 
 | 751 | service is started and registered in RegionOne, not RegionTwo, so we use | 
 | 752 | KEYSTONE_REGION_NAME to specify the region of Keystone service. | 
 | 753 | KEYSTONE_REGION_NAME has a default value the same as REGION_NAME thus we omit | 
 | 754 | it in the configuration of RegionOne. | 
| henriquetruta | f212622 | 2016-01-05 13:43:18 -0300 | [diff] [blame] | 755 |  | 
 | 756 | Disabling Identity API v2 | 
 | 757 | +++++++++++++++++++++++++ | 
 | 758 |  | 
 | 759 | The Identity API v2 is deprecated as of Mitaka and it is recommended to only | 
 | 760 | use the v3 API. It is possible to setup keystone without v2 API, by doing: | 
 | 761 |  | 
 | 762 | :: | 
 | 763 |  | 
 | 764 |     ENABLE_IDENTITY_V2=False | 
| Ian Wienand | 7cd16ce | 2016-04-08 09:40:56 +1000 | [diff] [blame] | 765 |  | 
 | 766 | Exercises | 
 | 767 | ~~~~~~~~~ | 
 | 768 |  | 
 | 769 | ``exerciserc`` is used to configure settings for the exercise scripts. | 
 | 770 | The values shown below are the default values. These can all be | 
 | 771 | overridden by setting them in the ``localrc`` section. | 
 | 772 |  | 
 | 773 | * Max time to wait while vm goes from build to active state | 
 | 774 |  | 
 | 775 |     :: | 
 | 776 |  | 
 | 777 |         ACTIVE_TIMEOUT==30 | 
 | 778 |  | 
 | 779 | * Max time to wait for proper IP association and dis-association. | 
 | 780 |  | 
 | 781 |     :: | 
 | 782 |  | 
 | 783 |         ASSOCIATE_TIMEOUT=15 | 
 | 784 |  | 
 | 785 | * Max time till the vm is bootable | 
 | 786 |  | 
 | 787 |     :: | 
 | 788 |  | 
 | 789 |         BOOT_TIMEOUT=30 | 
 | 790 |  | 
 | 791 | * Max time from run instance command until it is running | 
 | 792 |  | 
 | 793 |     :: | 
 | 794 |  | 
 | 795 |         RUNNING_TIMEOUT=$(($BOOT_TIMEOUT + $ACTIVE_TIMEOUT)) | 
 | 796 |  | 
 | 797 | * Max time to wait for a vm to terminate | 
 | 798 |  | 
 | 799 |     :: | 
 | 800 |  | 
 | 801 |         TERMINATE_TIMEOUT=30 |