Unittest failure: ttributeError: 'module' object has no attribute 'CAP_PORT_FILTER'

Bug #1681487 reported by Andreas Scheuring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-dpm
Fix Released
Critical
Andreas Scheuring

Bug Description

Tests fail with:

2017-04-10 08:44:14.020251 | Captured traceback:
2017-04-10 08:44:14.020268 | ~~~~~~~~~~~~~~~~~~~
2017-04-10 08:44:14.020289 | Traceback (most recent call last):
2017-04-10 08:44:14.020320 | File "networking_dpm/tests/unit/ml2/test_mech_dpm.py", line 55, in setUp
2017-04-10 08:44:14.020345 | self.driver = mech_dpm.DPMMechanismDriver()
2017-04-10 08:44:14.020373 | File "networking_dpm/ml2/mech_dpm.py", line 48, in __init__
2017-04-10 08:44:14.020396 | {portbindings.CAP_PORT_FILTER: False})
2017-04-10 08:44:14.020426 | AttributeError: 'module' object has no attribute 'CAP_PORT_FILTER'

-> the constant is imported from Neutron. Seems like it has changed/moved....

Changed in networking-dpm:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-dpm (master)

Fix proposed to branch: master
Review: https://review.openstack.org/455366

Changed in networking-dpm:
assignee: nobody → Andreas Scheuring (andreas-scheuring)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-dpm (master)

Reviewed: https://review.openstack.org/455366
Committed: https://git.openstack.org/cgit/openstack/networking-dpm/commit/?id=68fbd14331ed8e792a105c6e6d6c2300530bdbd7
Submitter: Jenkins
Branch: master

commit 68fbd14331ed8e792a105c6e6d6c2300530bdbd7
Author: Andreas Scheuring <email address hidden>
Date: Mon Apr 10 17:35:45 2017 +0200

    Import constant from neutron-lib

    The constant CAP_PORT_FILTER has been moved from Neutron to
    neutron-lib. Patch [1] removed the constant from Neutron.
    This patch adapts the import accordingly.

    [1] https://review.openstack.org/#/c/422210/

    Change-Id: I66d973bc668b2ffc37c43c4c47bdd3b516ed89b2
    Closes-Bug: #1681487

Changed in networking-dpm:
status: In Progress → Fix Released
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.