Difference between revisions of "ServicePluginDocumentation"
Line 46: | Line 46: | ||
− | === Showing Service Info === | + | === Showing Basic Service Info === |
+ | |||
+ | This shows information common to all services. | ||
Line 66: | Line 68: | ||
− | === Additional Service Details === | + | === Show Additional Service Details === |
+ | |||
+ | This will show any information specific to a particular service-type. For example, the compute service will include hypervisor information. | ||
Line 93: | Line 97: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | $ nova service- | + | nova service-servers 1 |
+ | +--------------------------------------+------------+--------+-------------------+ | ||
+ | | ID | Name | Status | Networks | | ||
+ | +--------------------------------------+------------+--------+-------------------+ | ||
+ | | 855f28fd-1d89-4a7d-b5a5-f4dd54e83550 | apple | ACTIVE | private=10.0.0.34 | | ||
+ | | dae7b332-de5d-4fdd-a82b-1354e5b69f88 | dewberry | ACTIVE | private=10.0.0.37 | | ||
+ | | f057f9ca-77db-445c-9867-77da79006232 | cherry | ACTIVE | private=10.0.0.36 | | ||
+ | | f64687c3-9f93-46a0-81b8-be65d8286a69 | blackberry | ACTIVE | private=10.0.0.35 | | ||
+ | +--------------------------------------+------------+--------+-------------------+ | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | === Show Service Configuration Information === | ||
+ | |||
+ | This will show Nova's FLAG settings. | ||
+ | |||
+ | |||
+ | <pre><nowiki> | ||
+ | $ nova service-config 1 | ||
+------------------------+-------+ | +------------------------+-------+ | ||
Line 103: | Line 125: | ||
− | === | + | === Show Service Version === |
Revision as of 19:35, 1 February 2012
Services Extension Documentation
Description
The services extension for Nova is a tool to provide additional visibility into a running Nova installation, providing metrics, version information, and a breakdown of instances by hostmachine.
Installation
Server-Side
To use the service plugin, you must install the server-side extension into the nova/api/openstack/compute/contrib directory and then restart the API server.
Client-Side
To use the service plugin from novaclient, you must install the novaclient extension. The easiest way to do this is to run:
pip install rax_services_python_novaclient_ext
Usage
Listing Available Services
$ nova service-list +----+-----------+---------+----------+--------------+---------------------+ | ID | topic | host | disabled | report_count | updated_at | +----+-----------+---------+----------+--------------+---------------------+ | 1 | compute | squeeze | False | 704782 | 2012-02-01 19:14:28 | | 2 | scheduler | squeeze | False | 714968 | 2012-02-01 19:14:34 | | 3 | network | squeeze | False | 714983 | 2012-02-01 19:14:26 | | 4 | console | squeeze | False | 0 | None | +----+-----------+---------+----------+--------------+---------------------+
Showing Basic Service Info
This shows information common to all services.
$ nova service-show 1 +--------------+------------------------------------------+ | Property | Value | +--------------+------------------------------------------+ | disabled | False | | host | squeeze | | href | http://10.127.4.222:8774/v1.1/services/1 | | id | 1 | | report_count | 704789 | | topic | compute | | updated_at | 2012-02-01 19:15:39 | +--------------+------------------------------------------+
Show Additional Service Details
This will show any information specific to a particular service-type. For example, the compute service will include hypervisor information.
$ nova service-details 1 +------------------------+-------+ | Property | Value | +------------------------+-------+ | cpu_info | 8 | | hypervisor_type | xen | | hypervisor_version | 0 | | local_gb | 265 | | local_gb_used | 23 | | memory_mb | 32767 | | memory_mb_used | 2216 | | memory_mb_used_servers | 256 | | vcpus | 0 | | vcpus_used | 0 | +------------------------+-------+
List Servers Belonging to Compute Resource
nova service-servers 1 +--------------------------------------+------------+--------+-------------------+ | ID | Name | Status | Networks | +--------------------------------------+------------+--------+-------------------+ | 855f28fd-1d89-4a7d-b5a5-f4dd54e83550 | apple | ACTIVE | private=10.0.0.34 | | dae7b332-de5d-4fdd-a82b-1354e5b69f88 | dewberry | ACTIVE | private=10.0.0.37 | | f057f9ca-77db-445c-9867-77da79006232 | cherry | ACTIVE | private=10.0.0.36 | | f64687c3-9f93-46a0-81b8-be65d8286a69 | blackberry | ACTIVE | private=10.0.0.35 | +--------------------------------------+------------+--------+-------------------+
Show Service Configuration Information
This will show Nova's FLAG settings.
$ nova service-config 1 +------------------------+-------+ | Property | Value | +------------------------+-------+ | flag | 0 | +------------------------+-------+
Show Service Version
$ nova service-version 1 2012.1-dev