AttributeError: 'module' object has no attribute 'get_engine'

Bug #1641494 reported by YAMAMOTO Takashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Critical
YAMAMOTO Takashi

Bug Description

eg. http://logs.openstack.org/50/395450/5/check/gate-networking-midonet-python27-db-ubuntu-xenial/7f3d5eb/testr_results.html.gz

ft2.2: midonet.neutron.tests.unit.test_midonet_plugin_v2.TestMidonetDataVersion.test_create_version_StringException: Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{WARNING [oslo_policy.policy] Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.}}}

Traceback (most recent call last):
  File "/tmp/openstack/neutron/neutron/tests/base.py", line 126, in func
    return f(self, *args, **kwargs)
  File "midonet/neutron/tests/unit/test_midonet_plugin_v2.py", line 588, in test_create_version
    session = self.get_session()
  File "midonet/neutron/tests/unit/test_midonet_plugin_v2.py", line 583, in get_session
    engine = db_api.get_engine()
AttributeError: 'module' object has no attribute 'get_engine'

Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
importance: Undecided → Critical
milestone: none → 3.0.0
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

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

commit 3dfc497daf26f5b8ebce6569e72e40371138b0cc
Author: YAMAMOTO Takashi <email address hidden>
Date: Wed Nov 9 16:51:22 2016 +0900

    Use some definitions from neutron-lib

    The following two unrelated changes are combined
    into this single commit to pass the gate.

    -------------------------------

    Use some definitions from neutron-lib

    Including:
        - convert_to_boolean
        - PORT_STATUS_ACTIVE
        - TAP_DEVICE_PREFIX
        - db_api.get_engine

    Closes-Bug: #1640319
    Closes-Bug: #1641481
    Closes-Bug: #1641494
    Partial-Bug: #1581361

    -------------------------------

    l3_db_midonet: Update after the recent Neutron change. [1]

    [1] I93e4d847f96707b17c4a7dfdb3bbf81d062fe3fb

    Closes-Bug: #1643747
    Related-Bug: #1540844

    -------------------------------

    Change-Id: Ide96124c12c993a3ee0f2353c8201da9a6b5890c

Changed in networking-midonet:
status: In Progress → Fix Released
Changed in networking-midonet:
milestone: 3.0.0 → 4.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 4.0.0

This issue was fixed in the openstack/networking-midonet 4.0.0 release.

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.