[openstack-dev] [Neutron][Nova] API design and usability

Robert Collins robertc at robertcollins.net
Thu Aug 7 06:08:41 UTC 2014


On 7 August 2014 15:31, Christopher Yeoh <cbkyeoh at gmail.com> wrote:
> On Thu, 7 Aug 2014 11:58:43 +1200
> Robert Collins <robertc at robertcollins.net> wrote:
...
> At the moment when cleaning up we don't know if a port was autocreated
> by Nova or was passed to us initially through the API.

That seems like a very small patch to fix - record the source, use
that info on cleanup.

> And there can be
> a long period of time between the initial server creation request and
> failure/cleanup - the API layer responds to the client well before the
> server has successfully started or failed.

Right.

> I think this sort of logic is much better handled above the REST API
> layer- which doesn't have to mean duplicated code in multiple clients

It doesn't? So we'll build a stateful client side datastore, and
provide language bindings to it from Python, Ruby, Java, etc?

> - it can for example be handled by client libraries such as
> python-novaclient or openstackclient and neutron related errors more
> directly returned to the client rather than having them proxied
> all the way through Nova.

--Rob

-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud



More information about the OpenStack-dev mailing list