functional test with bgpvpn fails

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

Bug Description

bgpvpn functional test fails.

the culprit is 7b36b8148e59f54663acc79bcfcf040f9352ee29.
due to copy-past-bug, UPDATE is wrongly used instead of DELETE.

the log can be found at.
http://logs.openstack.org/45/511345/1/check/gate-dsvm-networking-odl-functional-nitrogen-snapshot/2e09b63/logs/

test_associate_dissociate_router
test_associate_dissociate_net
test_assoc_multiple_networks_dissoc_one
ft1.1: networking_odl.tests.functional.test_bgpvpn.TestBGPVPNV2Driver.test_assoc_multiple_networks_dissoc_one_StringException: Traceback (most recent call last):
  File "/opt/stack/new/neutron/neutron/tests/base.py", line 118, in func
    return f(self, *args, **kwargs)
  File "networking_odl/tests/functional/test_bgpvpn.py", line 113, in test_assoc_multiple_networks_dissoc_one
    self._assert_networks_associated([net_id1], bgpvpn)
  File "networking_odl/tests/functional/test_bgpvpn.py", line 61, in _assert_networks_associated
    response[odl_const.ODL_BGPVPN]['networks'])
  File "/opt/stack/new/networking-odl/.tox/dsvm-functional/local/lib/python2.7/site-packages/unittest2/case.py", line 1182, in assertItemsEqual
    return self.assertSequenceEqual(expected, actual, msg=msg)
  File "/opt/stack/new/networking-odl/.tox/dsvm-functional/local/lib/python2.7/site-packages/unittest2/case.py", line 1014, in assertSequenceEqual
    self.fail(msg)
  File "/opt/stack/new/networking-odl/.tox/dsvm-functional/local/lib/python2.7/site-packages/unittest2/case.py", line 690, in fail
    raise self.failureException(msg)
AssertionError: Sequences differ: [u'65c90f20-b40e-4c06-a4f7-8f246cc1b4c8'] != [u'188ff8c4-8a82-4d78-bc24-8ef4e555c10f', u'[33 chars]4c8']

First differing element 0:
65c90f20-b40e-4c06-a4f7-8f246cc1b4c8
188ff8c4-8a82-4d78-bc24-8ef4e555c10f

Second sequence contains 1 additional elements.
First extra element 1:
65c90f20-b40e-4c06-a4f7-8f246cc1b4c8

+ [u'188ff8c4-8a82-4d78-bc24-8ef4e555c10f',
- [u'65c90f20-b40e-4c06-a4f7-8f246cc1b4c8']
? ^

+ u'65c90f20-b40e-4c06-a4f7-8f246cc1b4c8']
? ^

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/511982
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.