]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Enable cinder-manage to remove services
authorKendall Nelson <kjnelson@us.ibm.com>
Mon, 20 Jul 2015 20:06:21 +0000 (15:06 -0500)
committerKendall Nelson <kjnelson@us.ibm.com>
Fri, 14 Aug 2015 14:37:11 +0000 (09:37 -0500)
commit6b1d98a9c29e8db1360d28cbe5e289fb503eccdd
tree8071855cc801831f51e40ab232399183f5d5faf5
parent94e3098238f4af32f6ffa85833d0107cab07c14c
Enable cinder-manage to remove services

These changes are to enable cinder-manage to remove old services
from the database like nova does. All that is being added is the remove
method to manage.py and tests to cover this new method in test_cmd.py.
The command will remove the binary from the list of running services
in the db that can be viewed via "cinder-manage service list". NOTE:
Active and restarted services will re-populate the DB with their current
status automatically.

To use this new command, the user types "cinder-manage service remove
<binary> <host>" and the service will be removed.

DocImpact

Change-Id: I3bcec824d3c5f65fdd187459428025993a2010a0
Implements-blueprint: add-cinder-service-removal
cinder/cmd/manage.py
cinder/tests/unit/test_cmd.py