Comment 3 for bug 1784782

Revision history for this message
Matt Riedemann (mriedem) wrote :

I'm confused by this:

> Yes OpenStack Client has such option but not nova API.

openstack client is using python-novaclient which is just passing is_public=None:

https://github.com/openstack/python-novaclient/blob/1f75c7662d6759354210a63ab7cdc06ba4237a2d/novaclient/v2/flavors.py#L111

And novaclient just omits the is_public param to GET /flavors. This is the API code:

https://github.com/openstack/nova/blob/d4dbb42593893c1d1ed51a127b7183a314bcac2c/nova/api/openstack/compute/flavors.py#L89

So it looks like that accepts 'none' as a string and our schema allows that also:

https://github.com/openstack/nova/blob/d4dbb42593893c1d1ed51a127b7183a314bcac2c/nova/api/openstack/compute/schemas/flavors.py#L22

But the API reference is out of date:

https://developer.openstack.org/api-ref/compute/#list-flavors