Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

Chapter 16. Install Database-as-a-Service (Technology Preview)

The OpenStack Database-as-a-Service (trove) allows users to easily provision single-tenant databases, and bypass much of the traditional administrative overhead involved in deploying, using, managing, monitoring, and scaling databases.

Warning

DEPRECATION NOTICE: Beginning in Red Hat OpenStack Platform 11, the OpenStack Trove service will no longer be included in the Red Hat OpenStack Platform distribution. We are working with a trusted partner to provide our customers with a production ready DBaaS service. Please contact your sales account manager to learn more about this option.

Warning

The OpenStack Database-as-a-Service is available in this release as a Technology Preview, and therefore is not fully supported by Red Hat. It should only be used for testing, and should not be deployed in a production environment. For more information about Technology Preview features, see Scope of Coverage Details.

16.1. Database-as-a-Service Requirements

The following steps are requirements for using the Database-as-a-Service:
  1. Update the admin user's password:
    # keystone user-password-update --pass ADMIN_PASSWORD admin
  2. Update the /root/keystonerc_admin file with the new password:
    export OS_USERNAME=admin
    export OS_TENANT_NAME=admin
    export OS_PASSWORD=ADMIN_PASSWORD
    export OS_AUTH_URL=http://keystone IP:5000/v2.0/
    export PS1='[\u@\h \W(keystone_admin)]\$ '
  3. Load the environment variables and make sure the admin user has the admin role in the services tenant:
    # source keystonerc_admin
    ~(keystone_admin)]# keystone user-role-add --user admin --tenant services --role admin
    ~(keystone_admin)]# keystone user-role-list --user admin --tenant services
    +----------------------------------+-------+----------------------------------+----------------------------------+
    |                id                |  name |             user_id              |            tenant_id             |
    +----------------------------------+-------+----------------------------------+----------------------------------+
    | 4501ce8328324ef5bf1ed93ceb5494e6 | admin | 4db867e819ad40e4bf79681bae269084 | 70cd02c84f86471b8dd934db46fb484f |
    +----------------------------------+-------+----------------------------------+----------------------------------+