diff options
| author | Brian Waldon <bcwaldon@gmail.com> | 2012-02-18 23:24:44 -0800 |
|---|---|---|
| committer | Brian Waldon <bcwaldon@gmail.com> | 2012-02-22 14:55:53 -0800 |
| commit | de3ad7abacb4f5d8f37aabaa53aad79d7b3680e3 (patch) | |
| tree | 777550fd8cbe410eb0f2049d736c4f8d7aba7f96 /docs | |
| parent | af6656fc4cdee35bd7dc03dcf5ab814727144207 (diff) | |
Add migration path for Nova auth
* Adds keystone-manage command import_nova_auth
* Document migration path in docs/source/configuration.rst
Change-Id: I35bc20686bfed3f13162e278cf9a1713c78fad1e
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/source/configuration.rst | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index 22f3748b..a225c4ab 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -123,7 +123,7 @@ Use the following command to import your old data:: Specify db_url as the connection string that was present in your old keystone.conf file. -Step 3: Import your legacy service catalog +Step 4: Import your legacy service catalog ------------------------------------------ While the older keystone stored the service catalog in the database, the updated version configures the service catalog using a template file. @@ -139,6 +139,53 @@ To import your legacy catalog, run this command:: After executing this command, you will need to restart the keystone service to see your changes. +Migrating from Nova Auth +======================== +Migration of users, projects (aka tenants), roles and EC2 credentials +is supported for the Diablo and Essex releases of Nova. To migrate your auth +data from Nova, use the following steps: + +Step 1: Export your data from Nova +---------------------------------- +Use the following command to export your data fron Nova:: + + nova-manage export auth > /path/to/dump + +It is important to redirect the output to a file so it can be imported +in a later step. + +Step 2: db_sync your new, empty database +---------------------------------------- +Run the following command to configure the most recent schema in your new +keystone installation:: + + keystone-manage db_sync + +Step 3: Import your data to Keystone +------------------------------------ +To import your Nova auth data from a dump file created with nova-manage, +run this command:: + + keystone-manage import_nova_auth [dump_file, e.g. /path/to/dump] + +.. note:: + Users are added to Keystone with the user id from Nova as the user name. + Nova's projects are imported with the project id as the tenant name. The + password used to authenticate a user in Keystone will be the api key + (also EC2 access key) used in Nova. Users also lose any administrative + privileges they had in Nova. The necessary admin role must be explicitly + re-assigned to each user. + +.. note:: + Users in Nova's auth system have a single set of EC2 credentials that + works with all projects (tenants) that user can access. In Keystone, these + credentials are scoped to a single user/tenant pair. In order to use the + same secret keys from Nova, you must prefix each corresponding access key + with the id of the project used in Nova. For example, if you had access + to the 'Beta' project in your Nova installation with the access/secret + keys 'XXX'/'YYY', you should use 'Beta:XXX'/'YYY' in Keystone. These + credentials are active once your migration is complete. + Initializing Keystone ===================== @@ -148,6 +195,7 @@ through the normal REST api. At the moment, the following calls are supported: * ``db_sync``: Sync the database. * ``import_legacy``: Import a legacy (pre-essex) version of the db. * ``export_legacy_catalog``: Export service catalog from a legacy (pre-essex) db. +* ``import_nova_auth``: Load auth data from a dump created with keystone-manage. Generally, the following is the first step after a source installation:: |
