File: manage-the-cloud.rst

package info (click to toggle)
nova 2%3A31.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 50,892 kB
  • sloc: python: 412,488; pascal: 1,845; sh: 992; makefile: 166; xml: 83
file content (66 lines) | stat: -rw-r--r-- 2,262 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
.. _section_manage-the-cloud:

================
Manage the cloud
================

.. toctree::

   common/nova-show-usage-statistics-for-hosts-instances

System administrators can use the :command:`openstack` to manage their clouds.

The ``openstack`` client can be used by all users, though specific commands
might be restricted by the Identity service.

**Managing the cloud with the openstack client**

#. The ``python-openstackclient`` package provides an ``openstack`` shell that
   enables Compute API interactions from the command line. Install the client,
   and provide your user name and password (which can be set as environment
   variables for convenience), for the ability to administer the cloud from the
   command line.

   For more information on ``python-openstackclient``, refer to the
   :python-openstackclient-doc:`documentation <>`.

#. Confirm the installation was successful:

   .. code-block:: console

      $ openstack help
      usage: openstack [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]
                 [--os-cloud <cloud-config-name>]
                 [--os-region-name <auth-region-name>]
                 [--os-cacert <ca-bundle-file>] [--verify | --insecure]
                 [--os-default-domain <auth-domain>]
                 ...

   Running :command:`openstack help` returns a list of ``openstack`` commands
   and parameters. To get help for a subcommand, run:

   .. code-block:: console

      $ openstack help SUBCOMMAND

   For a complete list of ``openstack`` commands and parameters, refer to the
   :python-openstackclient-doc:`OpenStack Command-Line Reference
   <cli/index.html>`.

#. Set the required parameters as environment variables to make running
   commands easier. For example, you can add ``--os-username`` as an
   ``openstack`` option, or set it as an environment variable. To set the user
   name, password, and project as environment variables, use:

   .. code-block:: console

      $ export OS_USERNAME=joecool
      $ export OS_PASSWORD=coolword
      $ export OS_TENANT_NAME=coolu

#. The Identity service gives you an authentication endpoint, which Compute
   recognizes as ``OS_AUTH_URL``:

   .. code-block:: console

      $ export OS_AUTH_URL=http://hostname:5000/v2.0