File: services.rst

package info (click to toggle)
nova 2%3A32.1.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,500 kB
  • sloc: python: 418,899; pascal: 1,848; sh: 991; makefile: 163; xml: 83
file content (54 lines) | stat: -rw-r--r-- 2,620 bytes parent folder | download | duplicates (6)
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
=======================
Manage Compute services
=======================

You can enable and disable Compute services. The following examples disable and
enable the ``nova-compute`` service.

#. List the Compute services:

   .. code-block:: console

      $ openstack compute service list
      +----+----------------+------------+----------+---------+-------+----------------------------+
      | ID | Binary         | Host       | Zone     | Status  | State | Updated At                 |
      +----+----------------+------------+----------+---------+-------+----------------------------+
      |  4 | nova-scheduler | controller | internal | enabled | up    | 2016-12-20T00:44:48.000000 |
      |  5 | nova-conductor | controller | internal | enabled | up    | 2016-12-20T00:44:54.000000 |
      |  8 | nova-compute   | compute    | nova     | enabled | up    | 2016-10-21T02:35:03.000000 |
      +----+----------------+------------+----------+---------+-------+----------------------------+

#. Disable a nova service:

   .. code-block:: console

      $ openstack compute service set --disable --disable-reason "trial log" compute nova-compute
      +----------+--------------+----------+-------------------+
      | Host     | Binary       | Status   | Disabled Reason   |
      +----------+--------------+----------+-------------------+
      | compute  | nova-compute | disabled | trial log         |
      +----------+--------------+----------+-------------------+

#. Check the service list:

   .. code-block:: console

      $ openstack compute service list
      +----+----------------+------------+----------+---------+-------+----------------------------+
      | ID | Binary         | Host       | Zone     | Status  | State | Updated At                 |
      +----+----------------+------------+----------+---------+-------+----------------------------+
      |  5 | nova-scheduler | controller | internal | enabled | up    | 2016-12-20T00:44:48.000000 |
      |  6 | nova-conductor | controller | internal | enabled | up    | 2016-12-20T00:44:54.000000 |
      |  9 | nova-compute   | compute    | nova     | disabled| up    | 2016-10-21T02:35:03.000000 |
      +----+----------------+------------+----------+---------+-------+----------------------------+

#. Enable the service:

   .. code-block:: console

      $ openstack compute service set --enable compute nova-compute
      +----------+--------------+---------+
      | Host     | Binary       | Status  |
      +----------+--------------+---------+
      | compute  | nova-compute | enabled |
      +----------+--------------+---------+