Gate along resource creation are failing with AttributeError _get_tenant_id_for_create

Bug #1532200 reported by Kengo Hobo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
Unassigned

Bug Description

Gate along resource creation are failing with AttributeError.(_get_tenant_id_for_create method).
I assume that following commit affects because the method is deleted in this commit.
https://github.com/openstack/neutron/commit/3082949cffeefd7ef0dcc3f63f235ce597539ef3

The error detail is following.
2016-01-08 06:35:18.501 | Traceback (most recent call last):
2016-01-08 06:35:18.501 | File "/home/jenkins/workspace/gate-networking-midonet-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 137, in wrapper
2016-01-08 06:35:18.501 | return f(*args, **kwargs)
2016-01-08 06:35:18.501 | File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 516, in create
2016-01-08 06:35:18.501 | obj = do_create(body)
2016-01-08 06:35:18.501 | File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 498, in do_create
2016-01-08 06:35:18.502 | request.context, reservation.reservation_id)
2016-01-08 06:35:18.502 | File "/home/jenkins/workspace/gate-networking-midonet-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__
2016-01-08 06:35:18.502 | six.reraise(self.type_, self.value, self.tb)
2016-01-08 06:35:18.502 | File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 491, in do_create
2016-01-08 06:35:18.502 | return obj_creator(request.context, **kwargs)
2016-01-08 06:35:18.502 | File "midonet/neutron/plugin_v2.py", line 81, in create_network
2016-01-08 06:35:18.502 | tenant_id = self._get_tenant_id_for_create(context, net_data)
2016-01-08 06:35:18.502 | AttributeError: 'MidonetPluginV2' object has no attribute '_get_tenant_id_for_create'
2016-01-08 06:35:18.502 | 2016-01-08 06:33:13,534 ERROR [neutron.api.v2.resource] create failed

Revision history for this message
Assaf Muller (amuller) wrote :

I wonder if other plugins/drivers are affected. We could revert the Neutron patch, or you could copy that function to the Midonet repo.

Changed in neutron:
status: New → Confirmed
Revision history for this message
Akihiro Motoki (amotoki) wrote :

_get_tenant_id_for_create() has been restored and marked as deprecated not to break external plugins.
The discussion detail is available at http://lists.openstack.org/pipermail/openstack-dev/2016-January/thread.html#83612

commit 584d960a93a5ee278fd2c79887cd96da224e8fc5
Author: Gary Kotton <email address hidden>
Date: Fri Jan 8 07:34:27 2016 -0800

    Ensure that decomposed plugins do not break

    Commit 5d53dfb8d64186b5b1d2f356fbff8f222e15d1b2 removed the
    method _get_tenant_id_for_create. This is used by various plugins
    and the *aaS libaries.

    Change-Id: I6d5e2555d6c198102a3d5400609f1d671e0d388d

summary: - Gate along resource creation are failing with AttributeError.
+ Gate along resource creation are failing with AttributeError
+ _get_tenant_id_for_create
Changed in neutron:
importance: Undecided → Critical
status: Confirmed → Fix Released
Revision history for this message
Kengo Hobo (hobo-kengo) wrote :

I'm sorry for my late response.
Thank you for reverting and information.

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.