[openstack-dev] [nova] Why is osapi_v3.enabled = False by default?

Matt Riedemann mriedem at linux.vnet.ibm.com
Thu Jul 16 16:58:40 UTC 2015



On 7/16/2015 4:57 AM, Sean Dague wrote:
> On 07/15/2015 08:12 PM, GHANSHYAM MANN wrote:
>> On Thu, Jul 16, 2015 at 3:03 AM, Sean Dague <sean at dague.net> wrote:
>>> On 07/15/2015 01:44 PM, Matt Riedemann wrote:
>>>> The osapi_v3.enabled option is False by default [1] even though it's
>>>> marked as the CURRENT API and the v2 API is marked as SUPPORTED (and
>>>> we've frozen it for new feature development).
>>>>
>>>> I got looking at this because osapi_v3.enabled is True in nova.conf in
>>>> both the check-tempest-dsvm-nova-v21-full job and non-v21
>>>> check-tempest-dsvm-full job, but only in the v21 job is
>>>> "x-openstack-nova-api-version: '2.1'" used.
>>>>
>>>> Shouldn't the v2.1 API be enabled by default now?
>>>>
>>>> [1]
>>>> http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/__init__.py#n44
>>>
>>> Honestly, we should probably deprecate out osapi_v3.enabled make it
>>> osapi_v21 (or osapi_v2_microversions) so as to not confuse people further.
>>>
>>
>> Nice Catch. We might have just forgot to make it default to True.
>>
>> How about just deprecating it and remove in N and makes v21 enable all
>> the time (irrespective of osapi_v3.enabled) as they are current now.
>
> Yeh, that's probably a fine approach as well. I don't think we need an
> option any more here.
>
> 	-Sean
>

OK, I'll push up a change, thanks everyone!

-- 

Thanks,

Matt Riedemann




More information about the OpenStack-dev mailing list