[openstack-dev] About microversion setting to enable nested resource provider

Jay Pipes jaypipes at gmail.com
Thu Sep 13 13:19:07 UTC 2018

On 09/13/2018 06:39 AM, Naichuan Sun wrote:
> Hi, guys,
> Looks n-rp is disabled by default because microversion matches 1.29 : 
> https://github.com/openstack/nova/blob/master/nova/api/openstack/placement/handlers/allocation_candidate.py#L252
> Anyone know how to set the microversion to enable n-rp in placement?

It is the client which must send the 1.29+ placement API microversion 
header to indicate to the placement API server that the client wants to 
receive nested provider information in the allocation candidates response.

Currently, nova-scheduler calls the scheduler reportclient's 
get_allocation_candidates() method:


The scheduler reportclient's get_allocation_candidates() method 
currently passes the 1.25 placement API microversion header:



In order to get the nested information returned in the allocation 
candidates response, that would need to be upped to 1.29.


More information about the OpenStack-dev mailing list