openstack-manuals/doc/admin-guide/source/cli-nova-manage-services.rst
Anne Gentle 9843767b21 [admin-guide] Rename RST files to use hyphen instead of underbar
Change-Id: I40999b1eb923fc3796cbb6d982e03d39cdf8c720
Implements: blueprint consistency-file-rename
2016-08-06 09:51:57 -05:00

4.6 KiB

Manage Compute services

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

  1. List the Compute services:

    $ nova service-list
    +------------------+----------+----------+---------+-------+----------------------------+-----------------+
    | Binary           | Host     | Zone     | Status  | State | Updated_at                 | Disabled Reason |
    +------------------+----------+----------+---------+-------+----------------------------+-----------------+
    | nova-conductor   | devstack | internal | enabled | up    | 2013-10-16T00:56:08.000000 | None            |
    | nova-cert        | devstack | internal | enabled | up    | 2013-10-16T00:56:09.000000 | None            |
    | nova-compute     | devstack | nova     | enabled | up    | 2013-10-16T00:56:07.000000 | None            |
    | nova-network     | devstack | internal | enabled | up    | 2013-10-16T00:56:06.000000 | None            |
    | nova-scheduler   | devstack | internal | enabled | up    | 2013-10-16T00:56:04.000000 | None            |
    | nova-consoleauth | devstack | internal | enabled | up    | 2013-10-16T00:56:07.000000 | None            |
    +------------------+----------+----------+---------+-------+----------------------------+-----------------+
  2. Disable a nova service:

    $ nova service-disable localhost.localdomain nova-compute --reason 'trial log'
    +----------+--------------+----------+-------------------+
    | Host     | Binary       | Status   | Disabled Reason   |
    +----------+--------------+----------+-------------------+
    | devstack | nova-compute | disabled | Trial log         |
    +----------+--------------+----------+-------------------+
  3. Check the service list:

    $ nova service-list
    +------------------+----------+----------+---------+-------+----------------------------+------------------+
    | Binary           | Host     | Zone     | Status   | State | Updated_at                 | Disabled Reason |
    +------------------+----------+----------+---------+-------+----------------------------+------------------+
    | nova-conductor   | devstack | internal | enabled  | up    | 2013-10-16T00:56:48.000000 | None            |
    | nova-cert        | devstack | internal | enabled  | up    | 2013-10-16T00:56:49.000000 | None            |
    | nova-compute     | devstack | nova     | disabled | up    | 2013-10-16T00:56:47.000000 | Trial log       |
    | nova-network     | devstack | internal | enabled  | up    | 2013-10-16T00:56:51.000000 | None            |
    | nova-scheduler   | devstack | internal | enabled  | up    | 2013-10-16T00:56:44.000000 | None            |
    | nova-consoleauth | devstack | internal | enabled  | up    | 2013-10-16T00:56:47.000000 | None            |
    +------------------+----------+----------+---------+-------+----------------------------+------------------+
  4. Enable the service:

    $ nova service-enable localhost.localdomain nova-compute
    +----------+--------------+---------+
    | Host     | Binary       | Status  |
    +----------+--------------+---------+
    | devstack | nova-compute | enabled |
    +----------+--------------+---------+
  5. Check the service list:

    $ nova service-list
    +------------------+----------+----------+---------+-------+----------------------------+-----------------+
    | Binary           | Host     | Zone     | Status  | State | Updated_at                 | Disabled Reason |
    +------------------+----------+----------+---------+-------+----------------------------+-----------------+
    | nova-conductor   | devstack | internal | enabled | up    | 2013-10-16T00:57:08.000000 | None            |
    | nova-cert        | devstack | internal | enabled | up    | 2013-10-16T00:57:09.000000 | None            |
    | nova-compute     | devstack | nova     | enabled | up    | 2013-10-16T00:57:07.000000 | None            |
    | nova-network     | devstack | internal | enabled | up    | 2013-10-16T00:57:11.000000 | None            |
    | nova-scheduler   | devstack | internal | enabled | up    | 2013-10-16T00:57:14.000000 | None            |
    | nova-consoleauth | devstack | internal | enabled | up    | 2013-10-16T00:57:07.000000 | None            |
    +------------------+----------+----------+---------+-------+----------------------------+-----------------+