Comment 10 for bug 1784782

Revision history for this message
Gilles Dubreuil (gdubreui) wrote :

Sorry if the description was confusing.

First off, thank you for all the pointers.

To clarify, I confirm this is about nova API (as mentioned in title).

The API document effectively doesn't provide any information about the option "None" that can be passed to the parameter "is_public".
This was mentioned in https://bugs.launchpad.net/nova/+bug/1784782/comments/3, thank you.

The later solves part of the issue as "all" flavors (public and private) can be returned to Nova API client when using "None".

Meanwhile there are 2 other issues at stake here.

1. I believe that "all" the flavors should be returned by default (attended the user has the right privileges which is admin only by default but could be another tenant if the policy is changed or if flavors access has been granted provided to another tenant).

2. The actual code is not consistent.
In following pasted example http://paste.openstack.org/show/727111/
the behaviour is different between the 'admin' user and the 'demo' user where the 'demo' project has been granted access to a private flavor. By default 'admin' doesn't get returned the private flavor where 'demo' does get it.

Also please note "/flavors/detail" resource faces the same issue.
I've not tested using a difference policy.