[Openstack] Unify services and hosts API

Alessio Ababilov aababilov at griddynamics.com
Tue Jan 22 11:09:50 UTC 2013


Hi everyone!

I noticed that API of two nova extensions (namely hosts and services)
is inconsistent with other parts of API.

First of all, you have to make a GET query for host shutdown, startup,
or reboot. It's _very strange_ and it should be regular actions
executed with a POST query.

Second, Nova API usually returns updated entities in response to
update queries. For example, if you update a host aggregate, you will
obtain something like {  "aggregate": { ... } } . Host and services
API omits the wrapping dictionary and returns, for example,  {...}
instead of {"host":{...}} .

I've updated these extensions in https://review.openstack.org/18577 .
The patch has one -2 cause it updates API and one +2 since these
changes are made to extensions, not to main API.

Could you pay attention to it, please?

-- 
Alessio Ababilov
Software Engineer
Grid Dynamics




More information about the Openstack mailing list