From 7bea1f85113fa72c7da9589588de8e54019325e6 Mon Sep 17 00:00:00 2001 From: qiaomin Date: Thu, 22 Dec 2016 14:03:12 +0000 Subject: [PATCH] [admin-guide] Modify the cinder commands Change-Id: Iecce2ea9f6af8a1d81ae3e1ed0ad4d30ffb2ac2f Implements: blueprint use-openstack-command --- .../source/blockstorage-get-capabilities.rst | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/doc/admin-guide/source/blockstorage-get-capabilities.rst b/doc/admin-guide/source/blockstorage-get-capabilities.rst index 88ff639201..929f229fcf 100644 --- a/doc/admin-guide/source/blockstorage-get-capabilities.rst +++ b/doc/admin-guide/source/blockstorage-get-capabilities.rst @@ -33,13 +33,13 @@ First, get a list of the services: .. code-block:: console - $ cinder service-list - +------------------+-------------------+------+---------+-------+------+ - | Binary | Host | Zone | Status | State | ... | - +------------------+-------------------+------+---------+-------+------+ - | cinder-scheduler | controller | nova | enabled | up | ... | - | cinder-volume | block1@ABC-driver | nova | enabled | up | ... | - +------------------+-------------------+------+---------+-------+------+ + $ openstack volume service list + +------------------+-------------------+------+---------+-------+----------------------------+ + | Binary | Host | Zone | Status | State | Updated At | + +------------------+-------------------+------+---------+-------+----------------------------+ + | cinder-scheduler | controller | nova | enabled | up | 2016-10-24T13:53:35.000000 | + | cinder-volume | block1@ABC-driver | nova | enabled | up | 2016-10-24T13:53:35.000000 | + +------------------+-------------------+------+---------+-------+----------------------------+ With one of the listed hosts, pass that to ``get-capabilities``, then the administrator can obtain volume stats and also back end ``capabilities`` @@ -87,13 +87,13 @@ command combined with the Binary and Host to disable the service: .. code-block:: console - $ cinder service-list - +------------------+----------------------+------+---------+-------+----------------------------+-----------------+ - | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | - +------------------+----------------------+------+---------+-------+----------------------------+-----------------+ - | cinder-scheduler | devstack | nova | enabled | up | 2015-10-13T15:21:48.000000 | - | - | cinder-volume | devstack@lvmdriver-1 | nova | enabled | up | 2015-10-13T15:21:52.000000 | - | - +------------------+----------------------+------+---------+-------+----------------------------+-----------------+ + $ openstack volume service list + +------------------+----------------------+------+---------+-------+----------------------------+ + | Binary | Host | Zone | Status | State | Updated At | + +------------------+----------------------+------+---------+-------+----------------------------+ + | cinder-scheduler | devstack | nova | enabled | up | 2016-10-24T13:53:35.000000 | + | cinder-volume | devstack@lvmdriver-1 | nova | enabled | up | 2016-10-24T13:53:35.000000 | + +------------------+----------------------+------+---------+-------+----------------------------+ #. Disable the service using the Binary and Host name, placing the Host before the Binary name.