]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Make os-services API extension consistent
authorQiu Yu <unicell@gmail.com>
Tue, 2 Jul 2013 07:14:36 +0000 (15:14 +0800)
committerQiu Yu <unicell@gmail.com>
Tue, 2 Jul 2013 08:04:11 +0000 (16:04 +0800)
commit251687de151813e57428300d443ba5510cbb61d1
tree6ef94a28507b607e626f2e38c507b368872a5507
parente3abee82df2f21e2bd68118813e687dc1b82ff78
Make os-services API extension consistent

Updates the os-services API extension so that it is consistent
internally (index and update return similar formats), and so
that it works with the following cinderclient code changes which sends
the the following request body format:

  {"binary": "cinder-volume", "host": "host1"}

It addresses a similar issue which happens in nova os-services extention
before. https://bugs.launchpad.net/nova/+bug/1147746

This change added 'binary' key in request and 'status' key in response
while still keeping 'service' ane 'disabled' key for API compatibility
sake.

Implements blueprint os-services-extension

Change-Id: I7f3fa889294ca6caebdf46b8689345bcac1cdf54
cinder/api/contrib/services.py
cinder/tests/api/contrib/test_services.py