Support for openstack-status utility

Registered by sandeep nandal

OpenStack Client should have support for the openstack-status utility feature (used to be found in earlier releases till mitaka) in OpenStack Client.
It shows the status of all the daemons(services) required by OpenStack System.

Summary
=======
OpenStack Client should support openstack-status utility(used to be found till mitaka release).
Using openstack-status utility, user can start/stop/restart/status of all the whole openstack systemm. It will return the status of all the system services being used by the openstack.

# openstack status

If we pass status as an argument to the openstack utility, it will return the status of all the openstack system services, whether they are running or stopped or other. It will help user to pass a single command to check the status of the whole openstack system.

Motivation
========
By this utility, it will become convenient for admin, to check the status of whole openstack system in one go. Sample output of the openstack-status command in Mitaka Release:

# openstack-status
== Nova services ==
openstack-nova-api: active
openstack-nova-compute: active
openstack-nova-network: inactive (disabled on boot)
openstack-nova-scheduler: active
openstack-nova-cert: active
openstack-nova-conductor: active
openstack-nova-console: inactive (disabled on boot)
openstack-nova-consoleauth: active
openstack-nova-xvpvncproxy: inactive (disabled on boot)
== Glance services ==
openstack-glance-api: active
openstack-glance-registry: active
== Keystone service ==
openstack-keystone: inactive (disabled on boot)
== Horizon service ==
openstack-dashboard: active
== neutron services ==
neutron-server: active
neutron-dhcp-agent: active
neutron-l3-agent: failed
neutron-metadata-agent: active
neutron-openvswitch-agent: active
neutron-metering-agent: active
== Swift services ==
openstack-swift-proxy: active
openstack-swift-account: active
openstack-swift-container: active
openstack-swift-object: active
== Cinder services ==
openstack-cinder-api: active
openstack-cinder-scheduler: active
openstack-cinder-volume: active
openstack-cinder-backup: active
== Ceilometer services ==
openstack-ceilometer-api: inactive (disabled on boot)
openstack-ceilometer-central: active
openstack-ceilometer-compute: active
openstack-ceilometer-collector: active
openstack-ceilometer-notification: active
== Support services ==
mysqld: inactive (disabled on boot)
openvswitch: active
dbus: active
target: active
rabbitmq-server: active
memcached: active
== Keystone users ==
+----------------------------------+------------+---------+----------------------+
| id | name | enabled | email |
+----------------------------------+------------+---------+----------------------+
| 07c4f5c308964592ad6c4c6a1589e425 | admin | True | root@localhost |
| bea63aa11f234be9bb3bc3b897645ada | aodh | True | aodh@localhost |
| 36019c80e94146aa99c2b2e5f8abf148 | ceilometer | True | ceilometer@localhost |
| 74842cfc27d64c0dba81f11a4be11ec3 | cinder | True | cinder@localhost |
| 8c962fefacad4bb5b21883ba56bdc31c | demo | True | |
| d6915999562a475db1e6954a04173d92 | demo_2 | True | |
| f2a1dd8378e54458bfd69f66fe819ff4 | glance | True | glance@localhost |
| df82707342e547489b6359f089577e3a | gnocchi | True | gnocchi@localhost |
| d5d1f4afbae14d06b06f6c568dc271ae | neutron | True | neutron@localhost |
| 08dca9c12e1d4478a4a6f301e25a0e8f | nova | True | nova@localhost |
| 0340d02dd04e44f09cc2dac7be48e778 | swift | True | swift@localhost |
+----------------------------------+------------+---------+----------------------+
== Glance images ==
+--------------------------------------+--------+
| ID | Name |
+--------------------------------------+--------+
| 0127ea30-fc5b-486e-aab8-3c1be634b5dd | cirros |
+--------------------------------------+--------+
== Nova managed services ==
+----+------------------+------------------------------+----------+----------+-------+----------------------------+-------------------------------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+------------------------------+----------+----------+-------+----------------------------+-------------------------------------+
| 3 | nova-cert | localhost.nectechnologies.in | internal | enabled | down | 2016-04-29T00:08:31.000000 | - |
| 4 | nova-consoleauth | localhost.nectechnologies.in | internal | enabled | down | 2016-04-29T00:08:33.000000 | - |
| 5 | nova-scheduler | localhost.nectechnologies.in | internal | enabled | down | 2016-04-29T00:08:33.000000 | - |
| 6 | nova-conductor | localhost.nectechnologies.in | internal | enabled | down | 2016-04-29T00:08:33.000000 | - |
| 7 | nova-compute | localhost.nectechnologies.in | nova | enabled | down | 2016-04-29T00:08:31.000000 | - |
| 8 | nova-conductor | localhost.localdomain | internal | enabled | down | 2016-04-28T05:44:03.000000 | - |
| 9 | nova-cert | localhost.localdomain | internal | enabled | down | 2016-04-28T05:44:05.000000 | - |
| 10 | nova-scheduler | localhost.localdomain | internal | enabled | down | 2016-04-28T05:44:03.000000 | - |
| 11 | nova-consoleauth | localhost.localdomain | internal | enabled | down | 2016-04-28T05:44:04.000000 | - |
| 12 | nova-compute | localhost.localdomain | nova | disabled | down | 2016-04-28T01:46:43.000000 | AUTO: Connection to libvirt lost: 0 |
| 13 | nova-compute | compute2 | nova | enabled | down | 2016-04-28T02:48:33.000000 | - |
| 14 | nova-scheduler | osmitaka | internal | enabled | up | 2016-09-30T23:57:34.000000 | - |
| 15 | nova-conductor | osmitaka | internal | enabled | up | 2016-09-30T23:57:35.000000 | - |
| 16 | nova-consoleauth | osmitaka | internal | enabled | up | 2016-09-30T23:57:34.000000 | - |
| 17 | nova-cert | osmitaka | internal | enabled | up | 2016-09-30T23:57:34.000000 | - |
| 18 | nova-compute | osmitaka | nova | enabled | up | 2016-09-30T23:57:34.000000 | - |
| 19 | nova-conductor | 192.168.52.107 | internal | enabled | down | - | - |
| 20 | nova-consoleauth | 192.168.52.107 | internal | enabled | down | - | - |
| 21 | nova-scheduler | 192.168.52.107 | internal | enabled | down | - | - |
| 22 | nova-cert | 192.168.52.107 | internal | enabled | down | - | - |
+----+------------------+------------------------------+----------+----------+-------+----------------------------+-------------------------------------+
== Nova networks ==
+--------------------------------------+-----------+------+
| ID | Label | Cidr |
+--------------------------------------+-----------+------+
| 1f9fea71-0741-4130-9010-38ee1b6d4fde | public | - |
| 978b1aac-e0fc-4657-9def-4d247714bd84 | private | - |
| c811578e-6a55-4fb6-b5f5-f01cee94d35d | admin_net | - |
+--------------------------------------+-----------+------+
== Nova instance flavors ==
+----+------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| 6 | new_flavor | 512 | 1 | 0 | | 1 | 1.0 | True |
+----+------------+-----------+------+-----------+------+-------+-------------+-----------+
== Nova instances ==
+--------------------------------------+---------------------------+----------------------------------+---------+------------+-------------+------------------------+
| ID | Name | Tenant ID | Status | Task State | Power State | Networks |
+--------------------------------------+---------------------------+----------------------------------+---------+------------+-------------+------------------------+
| b5d116e7-76de-4c6b-85a8-4b5b27b85652 | ONE | ac1290ecc6bc42b599f1fa5fd4cba6e2 | SHUTOFF | - | Shutdown | admin_net=192.168.1.29 |
| 8b99e339-26ba-4e3f-a6b8-d5cf7efcb418 | s_rally_16953cf5_VDWsLoA5 | 7dae3d858d4c4c35a89c10670653eb29 | SHUTOFF | - | Shutdown | |
| 211e452e-7888-442c-9244-4e0709f72575 | s_rally_16953cf5_o6fA7rKB | df31d8e9cd4445d19659d34a1bb08dc9 | SHUTOFF | - | Shutdown | |
+--------------------------------------+---------------------------+----------------------------------+---------+------------+-------------+------------------------+

Testing
======
Proper Tests would be added to check the system's behavior after adding this feature.

Outside Dependencies
==================
Functionality must be added to openstack cli.

Requirements Update Required
========================
No specific Update is required for this change, if some external module is planned to be used for this functionality, then we only we will have to update the requirements list.

Doc Impact
=========
OpenStack User Manual Utility will also needs to be updated for this feature. OpenStack CLI Documentation will be updated in order to inform the user about the changes that will be introduced.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
sandeep nandal
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.