[openstack-dev] [nova] [api] [placement] strategy for placement api structure

Chris Dent cdent+os at anticdent.org
Fri Jun 17 15:56:20 UTC 2016


On Fri, 17 Jun 2016, Andrey Volkov wrote:

> IMHO selector is too young in terms of version (0.1) and too old in
> terms of updates (3 years ago).

It's 0.10. When I contacted the author (see the comments on 
https://review.openstack.org/#/c/329386/ ) he said the reason there
were no recent releases is because nothing was broken and he is
continuing to actively use and maintain it.

> Idea. I absolutely agree with you about flask and his magic.
> And if we want to start totally new it can be werkzeug or webob.
> And if we go further I wonder why in nova we don't use
> asynchronous approach. All these API calls which just transfer
> from one point to another are perfect candidates.

In this particular case async would be overkill and out of place.
The changes being made in the requests are quick and in an important
transaction.

> About gabbi. Could you please give several procs on declarative style
> in yaml vs declarative style in python?

Rather than me describing it, perhaps have a look at
https://review.openstack.org/#/c/329151/10/nova/tests/functional/api/openstack/placement/gabbits/resource-provider.yaml
and then ask questions if you have any? I think that does a
relatively good job demonstrating the declarative style.

-- 
Chris Dent               (╯°□°)╯︵┻━┻            http://anticdent.org/
freenode: cdent                                         tw: @anticdent


More information about the OpenStack-dev mailing list