← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1532200] Re: Gate along resource creation are failing with AttributeError.

 

_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 <gkotton@xxxxxxxxxx>
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 changed:

- 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

** Changed in: neutron
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1532200

Title:
  Gate along resource creation are failing with AttributeError
  _get_tenant_id_for_create

Status in neutron:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1532200/+subscriptions


References