Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame^] | 1 | `DevStack </>`__ |
| 2 | |
| 3 | - `Overview <overview.html>`__ |
| 4 | - `Changes <changes.html>`__ |
| 5 | - `FAQ <faq.html>`__ |
| 6 | - `git.openstack.org <https://git.openstack.org/cgit/openstack-dev/devstack>`__ |
| 7 | - `Gerrit <https://review.openstack.org/#/q/status:open+project:openstack-dev/devstack,n,z>`__ |
| 8 | |
| 9 | openrc User authentication settings |
| 10 | ----------------------------------- |
| 11 | |
| 12 | ``openrc`` configures login credentials suitable for use with the |
| 13 | OpenStack command-line tools. ``openrc`` sources ``stackrc`` at the |
| 14 | beginning (which in turn sources the ``localrc`` setion of |
| 15 | ``local.conf``) in order to pick up ``HOST_IP`` and/or ``SERVICE_HOST`` |
| 16 | to use in the endpoints. The values shown below are the default values. |
| 17 | |
| 18 | OS\_TENANT\_NAME |
| 19 | The introduction of Keystone to the OpenStack ecosystem has |
| 20 | standardized the term *tenant* as the entity that owns resources. In |
| 21 | some places references still exist to the original Nova term |
| 22 | *project* for this use. Also, *tenant\_name* is preferred to |
| 23 | *tenant\_id*. |
| 24 | |
| 25 | :: |
| 26 | |
| 27 | OS_TENANT_NAME=demo |
| 28 | |
| 29 | OS\_USERNAME |
| 30 | In addition to the owning entity (tenant), Nova stores the entity |
| 31 | performing the action as the *user*. |
| 32 | |
| 33 | :: |
| 34 | |
| 35 | OS_USERNAME=demo |
| 36 | |
| 37 | OS\_PASSWORD |
| 38 | With Keystone you pass the keystone password instead of an api key. |
| 39 | Recent versions of novaclient use OS\_PASSWORD instead of |
| 40 | NOVA\_API\_KEYs or NOVA\_PASSWORD. |
| 41 | |
| 42 | :: |
| 43 | |
| 44 | OS_PASSWORD=secrete |
| 45 | |
| 46 | HOST\_IP, SERVICE\_HOST |
| 47 | Set API endpoint host using ``HOST_IP``. ``SERVICE_HOST`` may also |
| 48 | be used to specify the endpoint, which is convenient for some |
| 49 | ``localrc`` configurations. Typically, ``HOST_IP`` is set in the |
| 50 | ``localrc`` section. |
| 51 | |
| 52 | :: |
| 53 | |
| 54 | HOST_IP=127.0.0.1 |
| 55 | SERVICE_HOST=$HOST_IP |
| 56 | |
| 57 | OS\_AUTH\_URL |
| 58 | Authenticating against an OpenStack cloud using Keystone returns a |
| 59 | *Token* and *Service Catalog*. The catalog contains the endpoints |
| 60 | for all services the user/tenant has access to - including Nova, |
| 61 | Glance, Keystone and Swift. |
| 62 | |
| 63 | :: |
| 64 | |
| 65 | OS_AUTH_URL=http://$SERVICE_HOST:5000/v2.0 |
| 66 | |
| 67 | GLANCE\_HOST |
| 68 | Some exercises call Glance directly. On a single-node installation, |
| 69 | Glance should be listening on ``HOST_IP``. If its running elsewhere |
| 70 | it can be set here. |
| 71 | |
| 72 | :: |
| 73 | |
| 74 | GLANCE_HOST=$HOST_IP |
| 75 | |
| 76 | KEYSTONECLIENT\_DEBUG, NOVACLIENT\_DEBUG |
| 77 | Set command-line client log level to ``DEBUG``. These are commented |
| 78 | out by default. |
| 79 | |
| 80 | :: |
| 81 | |
| 82 | # export KEYSTONECLIENT_DEBUG=1 |
| 83 | # export NOVACLIENT_DEBUG=1 |
| 84 | |
| 85 | © Openstack Foundation 2011-2013 — An `OpenStack |
| 86 | program <https://wiki.openstack.org/wiki/Programs>`__ created by |
| 87 | `Rackspace Cloud |
| 88 | Builders <http://www.rackspace.com/cloud/private_edition/>`__ |