remote mac entry creation is failing with 400 error.

Bug #1531714 reported by Kengo Hobo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
High
Kengo Hobo

Bug Description

remote mac entry creation is failing with following error.

ubuntu@instance15:~$ curl -si -X POST -H "Content-type: application/json" http://172.16.1.16:9696/v2.0/gw/gateway_devices/197d5dae-6e3d-4e0b-b785-56bc2219303f/remote_mac_entries -H "X-AUTH-TOKEN:${TOKEN}" -d '{"remote_mac_entry":{"vtep_address": "2.2.2.2", "mac_address":"aa:aa:aa:aa:aa:aa", "segmentation_id":1000}}'
HTTP/1.1 400 Bad Request
Content-Length: 110
Content-Type: application/json; charset=UTF-8
X-Openstack-Request-Id: req-0a578855-187e-4109-b762-39e8b209020e
Date: Thu, 07 Jan 2016 02:53:33 GMT

{"NeutronError": {"message": "Unrecognized attribute(s) 'tenant_id'", "type": "HTTPBadRequest", "detail": ""}}

Kengo Hobo (hobo-kengo)
Changed in networking-midonet:
assignee: nobody → Kengo Hobo (hobo-kengo)
Changed in networking-midonet:
status: New → In Progress
Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :

after some thoughts, i tend to think it's a bug in neutron.
it shouldn't populate tenant_id for resources which doesn't have it.
how do you think?

Changed in networking-midonet:
status: In Progress → Incomplete
Revision history for this message
Kengo Hobo (hobo-kengo) wrote :

Yes, I agree with you.
Probably in current neutron, there is no resource that matches following conditions.
* the resource could be created by user(admin or tenant).
* the resource doesn't relate to tenant.

When create resource, tenant_id is added to request body in populate_tenant_id method in attributes.py.
So in networking-midonet, we address this bug with some workaround(add tenant_id to extensions) because this bug is critical, I think. And we report a bug along this to neutron in parallel.

Changed in networking-midonet:
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/264856
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=ff7dcfd4d10e544937910014c291083607edc139
Submitter: Jenkins
Branch: master

commit ff7dcfd4d10e544937910014c291083607edc139
Author: Kengo Hobo <email address hidden>
Date: Thu Jan 7 16:30:11 2016 +0000

    Add tenant_id in remote mac entry sub resource

    Change-Id: I77e95692ce88e03a62d6fa824fb6e3b2aabf73ac
    Closes-Bug: #1531714

Changed in networking-midonet:
status: In Progress → Fix Released
Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :

Kengo,

if you filed a neutron bug, please note a reference here.

FYI, qos folks are running into a similar issue.
https://bugs.launchpad.net/neutron/+bug/1515564

Revision history for this message
Kengo Hobo (hobo-kengo) wrote :

Takashi,

I'm sorry, I haven't filed yet.
I tried to find related modification in neutron core.
However, I could not find it.

I filed the bug just now with following description.
Could you confirm it?
https://bugs.launchpad.net/neutron/+bug/1535542

Changed in networking-midonet:
milestone: none → 2.0.0
importance: Undecided → High
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.