Nova V2.1 doesn't accept tenant_id for networks create

Bug #1492971 reported by Andriy Kurilin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Andriy Kurilin

Bug Description

Nova V2.0 allows to create one admin client(novaclient.client.Client instance) and create networks in different tenants just transmitting tenant_id into network creation kwargs.

Nova V2.1 doesn't accept "tenant_id" and some existing code is broken now.

Error message:
Invalid input for field/attribute network. Value: {u'tenant_id': u'76193131ab204e4eb58e4eb40c601029', u'cidr': u'10.2.0.0/24', u'label': u'rally_net_9J9KL4fYhBjMQw84'}. Additional properties are not allowed (u'tenant_id' was unexpected) (HTTP 400) (Request-ID: req-5d67a4aa-d130-405f-9e8f-3792ec80fd66)

Found by rally gates - http://logs.openstack.org/05/217005/8/check/gate-rally-dsvm-rally-nova/47910f4/rally-plot/results.html.gz#/NovaServers.boot_and_delete_server-2/overview

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/220926

Changed in nova:
assignee: nobody → Andrey Kurilin (andreykurilin)
status: New → In Progress
Revision history for this message
Alex Xu (xuhj) wrote :

Andrey, the legacy v2 API only accept 'project_id'. https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/legacy_v2/contrib/os_networks.py#L162

The 'tenant_id' is wrong usage of nova api. If the rally test the v2.1 api, not the v2.1 legacy v2 compat mode, then this isn't a bug. We won't fix this for v2.1 API.

Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

@Alex, thanks for explanation.

Changed in nova:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Andrey Kurilin (<email address hidden>) on branch: master
Review: https://review.openstack.org/220926

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.