File: verify.rst

package info (click to toggle)
placement 14.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,380 kB
  • sloc: python: 17,629; sh: 310; makefile: 61; pascal: 30
file content (74 lines) | stat: -rw-r--r-- 2,659 bytes parent folder | download | duplicates (4)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
===================
Verify Installation
===================

Verify operation of the placement service.

.. note:: You will need to authenticate to the identity service as an
          ``admin`` before making these calls. There are many different ways
          to do this, depending on how your system was set up. If you do not
          have an ``admin-openrc`` file, you will have something similar.

#. Source the ``admin`` credentials to gain access to admin-only CLI commands:

   .. code-block:: console

      $ . admin-openrc

#. Perform status checks to make sure everything is in order:

   .. code-block:: console

      $ placement-status upgrade check
      +----------------------------------+
      | Upgrade Check Results            |
      +----------------------------------+
      | Check: Missing Root Provider IDs |
      | Result: Success                  |
      | Details: None                    |
      +----------------------------------+
      | Check: Incomplete Consumers      |
      | Result: Success                  |
      | Details: None                    |
      +----------------------------------+

   The output of that command will vary by release.
   See :ref:`placement-status upgrade check <placement-status-checks>` for
   details.

#. Run some commands against the placement API:

   * Install the `osc-placement`_ plugin:

     .. note:: This example uses `PyPI`_ and :ref:`about-pip` but if you are
               using distribution packages you can install the package from
               their repository. With the move to python3 you will need to
               specify **pip3** or install **python3-osc-placement** from
               your distribution.

     .. code-block:: console

        $ pip3 install osc-placement

   * List available resource classes and traits:

     .. code-block:: console

        $ openstack --os-placement-api-version 1.2 resource class list --sort-column name
        +----------------------------+
        | name                       |
        +----------------------------+
        | DISK_GB                    |
        | IPV4_ADDRESS               |
        | ...                        |

        $ openstack --os-placement-api-version 1.6 trait list --sort-column name
        +---------------------------------------+
        | name                                  |
        +---------------------------------------+
        | COMPUTE_DEVICE_TAGGING                |
        | COMPUTE_NET_ATTACH_INTERFACE          |
        | ...                                   |

.. _osc-placement: https://docs.openstack.org/osc-placement/latest/
.. _PyPI: https://pypi.org