openstack-manuals/doc/admin-guide-cloud/source/cli_nova_manage_services.rst
Gudrun Wolfgram 08f0c4aa46 Cloud Admin Guide CLI chapter
Moving (copying) Admin User Guide CLI content to
the Cloud Admin Guide as a part of the reorganization
goal. This patch does not include any new or original
content.

This patch is Part 1 to create a new command-
line client section for Admin Users in the Cloud Admin
Guide, as disucssed in the User Guide Specialty team
meetings.

1) Creating a new CLI section with cli.rst

2) Moving the non common files from user-guide-admin to
admin-guide-cloud, along with their sub files. (Rename
user-guide-admin files to user cli_ prefix in admin-
guide-cloud.)
manage_projects_users_and_roles.rst
nova_cli_manage_projects_security.rst
cli_manage_services.rst
cli_manage_shares.rst
cli_manage_flavors.rst
cli_admin_manage_environment.rst
cli_set_quotas.rst
analyzing-log-files-with-swift-cli.rst
cli_cinder_scheduling.rst

3) Attempt updates to several links.

Change-Id: I97f4ced4f5033c7e0f3bf00c410288a75699d110
Implements: blueprint user-guides-reorganised
2016-03-07 15:51:49 -06: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            |
    +------------------+----------+----------+---------+-------+----------------------------+-----------------+