test_VM_connectivity fails with AttributeError: 'FakeMachine' object has no attribute 'namespace'

Bug #1723553 reported by Isaku Yamahata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-odl
Fix Released
Undecided
Unassigned

Bug Description

Log can be found at
http://logs.openstack.org/82/511982/2/check/gate-dsvm-networking-odl-fullstack-nitrogen-snapshot/23ce8ab/

ft1.1: networking_odl.tests.fullstack.test_mech_driver.TestMechDriver.test_VM_connectivity_StringException: traceback-1: {{{
Traceback (most recent call last):
  File "/opt/stack/new/networking-odl/.tox/dsvm-fullstack/local/lib/python2.7/site-packages/fixtures/fixture.py", line 208, in setUp
    raise SetupError(details)
fixtures.fixture.SetupError: {}
}}}

Traceback (most recent call last):
  File "/opt/stack/new/networking-odl/.tox/dsvm-fullstack/local/lib/python2.7/site-packages/fixtures/fixture.py", line 197, in setUp
    self._setUp()
  File "networking_odl/tests/fullstack/machine.py", line 51, in _setUp
    raise FakeMachineException(self.namespace)
AttributeError: 'FakeMachine' object has no attribute 'namespace'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to networking-odl (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/511987

Revision history for this message
Isaku Yamahata (yamahata) wrote :

the actual issue is hidden by FackeMachineException.
_setUp() method shouldn't reference self.namespace and show actual exception.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on networking-odl (master)

Change abandoned by Isaku Yamahata (<email address hidden>) on branch: master
Review: https://review.openstack.org/511990

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-odl (master)

Reviewed: https://review.openstack.org/512069
Committed: https://git.openstack.org/cgit/openstack/networking-odl/commit/?id=2ef2ad6db0aab84bd7bb9d17fc966bb6a38280ff
Submitter: Jenkins
Branch: master

commit 2ef2ad6db0aab84bd7bb9d17fc966bb6a38280ff
Author: Isaku Yamahata <email address hidden>
Date: Fri Oct 13 17:05:50 2017 -0700

    unblock fullstack/functional tests

    This patch is the one combined of following two patch
    to make ci pass.

    fakemachine: use privsep helper under virtualenv

    privsep-helper command fails to find python module under virtualenv.
    specify privsep-helper command with full path. With tox virtualenv, we
    need to use the one under virtualenv, otherwise privsep-helper fails to
    find python module under virtual env. Also Keep environmental variable
    for virtualenv.

    Also fakemachine _setUp method wraps exception and tries to reference
    self.namespace. But it only hides the actual issue and makes debug
    difficult. remove FakeMachine exception not to hide real issue.

    the change id is I62a07646de68254db447728c583d442d4080c5eb
    Closes-bug: #1723553

    remove id when disassociation of network/router

    ODL driver methods to delete association failed to delete association in
    ODL.
    Those precommit is called withhin db transaction that deletes
    association so it doesn't see deletion of association. So id that is
    being deleted need to be explicitly removed from dictionary which will
    be sent to ODL.

    the change id is Ie04fea859918145386bfae976de01d27b89b4236
    Closes-bug: #1723548

    Change-Id: Ie5c938538ccc0992498f210221726c2c24442877

Changed in networking-odl:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on networking-odl (master)

Change abandoned by Isaku Yamahata (<email address hidden>) on branch: master
Review: https://review.openstack.org/511987
Reason: https://review.openstack.org/#/c/512069/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-odl 12.0.0.0b1

This issue was fixed in the openstack/networking-odl 12.0.0.0b1 development milestone.

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.