yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #44887
[Bug 1535542] [NEW] Resource that does not belong to tenant cannot be created.
Public bug reported:
Resource that does not belong to tenant cannot be created.
Creating resource that does not belong to tenant, 400 error had occurred.
According to code, tenant_id is populated before calling create_XXX methods.
Then failing with validation.
I assume that it shouldn't be blocked when the resource does not belong to tenant.
Example of error as follows.
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": ""}}
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1535542
Title:
Resource that does not belong to tenant cannot be created.
Status in neutron:
New
Bug description:
Resource that does not belong to tenant cannot be created.
Creating resource that does not belong to tenant, 400 error had occurred.
According to code, tenant_id is populated before calling create_XXX methods.
Then failing with validation.
I assume that it shouldn't be blocked when the resource does not belong to tenant.
Example of error as follows.
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": ""}}
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1535542/+subscriptions
Follow ups