]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Give a way to save why a service has been disabled
authorJay Lau <liugya@cn.ibm.com>
Sat, 22 Feb 2014 10:47:47 +0000 (05:47 -0500)
committerJay Lau <liugya@cn.ibm.com>
Sat, 22 Feb 2014 10:50:17 +0000 (05:50 -0500)
commit5195f95eb6c1deaf1acd2dd0b16025974ed6ec18
tree9f271e18b3264fdda9f4197549efb5b1a40736b9
parentc2807f0ed41670f63fea15bbd44981509e5662e4
Give a way to save why a service has been disabled

Port from nova https://review.openstack.org/#/c/26020/

We added a field to the table of service to log a reason when a
service has been disabled.

We added a new API extension called os-extended-services.

The new extension will extend the os-services extension adding a
method for disabling a service and specify a reason for that:
PUT /v2/{tenant_id}/os-services/disable-log-reason

When the os-extended-extension is loaded the call:
GET /V2/{tenant_id}/os-services
will return the list of services with disable reason information
if that exists.

DocImpact

Change-Id: I885e43132b0e49b63f7858abd3fcffe1b78d3fd8
Implements bp record-reason-for-disabling-service
cinder/api/contrib/extended_services.py [new file with mode: 0644]
cinder/api/contrib/services.py
cinder/api/extensions.py
cinder/tests/api/contrib/test_services.py
cinder/tests/test_utils.py
cinder/utils.py