File: verify.rst

package info (click to toggle)
openstack-trove 1%3A24.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,976 kB
  • sloc: python: 50,665; sh: 2,866; makefile: 71
file content (41 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.. _trove-verify:

Verify operation
~~~~~~~~~~~~~~~~

Verify operation of the Database service.

.. note::

   Perform these commands on the node where you installed trove.

#. Source the ``admin`` tenant credentials:

   .. code-block:: console

      $ . admin-openrc

#. Check the ``openstack database instance list`` command should work.

   .. code-block:: console

      $ openstack database instance list

#. Add a datastore to trove:

   * `Create and upload trove guest image <https://docs.openstack.org/trove/latest/admin/building_guest_images.html>`_.
     Create an image for the type of database you want to use, for example,
     MySQL, MariaDB, etc.

   * Create a datastore. You need to create at least one datastore version for
     each type of database supported. This example creates a datastore version
     for MySQL 5.7.29:

     .. code-block:: console

        $ openstack datastore version create 5.7.29 mysql mysql "" \
          --image-tags trove,mysql \
          --active --default

#. Create a database `instance
   <https://docs.openstack.org/trove/latest/user/create-db.html>`_.