The neutron v2 base.py auto populates a 'tenant_id' attribute on calls if the attribute is not passed, pulling from the context.
This causes a POST to create a flavor service binding to fail when verifying attributes, as currently the tenant_id is not
part of the expected attribute map.
curl -g -i -X POST http://192.168.181.169:9696/v2.0/flavors/e38b4b6d-872e-4656-b7bc-70e15455ee46/service_profiles.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <AnAuthToken>" -d '{"service_profile": {"id": "7fd54b73-6bf6-4fc8-9999-0045a808eec2"}}'
RESP BODY: {"NeutronError": {"message": "Unrecognized attribute(s) 'tenant_id'", "type": "HTTPBadRequest", "detail": ""}}
The solution, used by folks like QOS, is to add the tenant_id as a common field to the attribute map.
Fix proposed to branch: master /review. openstack. org/217440
Review: https:/