py34 unit test starts to fail after Routes 2.1 is excluded in global requirements

Bug #1474266 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
High
YAMAMOTO Takashi
neutron
Fix Released
High
Akihiro Motoki

Bug Description

Routes 2.1 was recently excluded in global-requirements as Nova requests it.
As a result, we have no version of Routes which is compatible with Python 3.
We need to excluded affected tests until we have python3 compat Routes.
This bug is now blocking requirements update by the cron job.

http://logs.openstack.org/46/182746/73/check/gate-neutron-python34/be0d939/console.html

2015-07-13 22:23:32.840 | ======================================================================
2015-07-13 22:23:32.840 | ERROR: neutron.tests.unit.extensions.test_portsecurity.TestPortSecurity.test_update_port_remove_port_security_security_group_read
2015-07-13 22:23:32.840 | ----------------------------------------------------------------------
2015-07-13 22:23:32.840 | Empty attachments:
2015-07-13 22:23:32.840 | pythonlogging:'neutron.api.extensions'
2015-07-13 22:23:32.840 |
2015-07-13 22:23:32.840 | pythonlogging:'': {{{2015-07-13 22:23:25,263 INFO [neutron.manager] Loading core plugin: neutron.tests.unit.extensions.test_portsecurity.PortSecurityTestPlugin}}}
2015-07-13 22:23:32.840 |
2015-07-13 22:23:32.840 | Traceback (most recent call last):
2015-07-13 22:23:32.840 | File "/home/jenkins/workspace/gate-neutron-python34/neutron/tests/unit/extensions/test_portsecurity.py", line 171, in setUp
2015-07-13 22:23:32.841 | super(PortSecurityDBTestCase, self).setUp(plugin)
2015-07-13 22:23:32.841 | File "/home/jenkins/workspace/gate-neutron-python34/neutron/tests/unit/extensions/test_portsecurity.py", line 40, in setUp
2015-07-13 22:23:32.841 | super(PortSecurityTestCase, self).setUp(plugin=plugin, ext_mgr=ext_mgr)
2015-07-13 22:23:32.841 | File "/home/jenkins/workspace/gate-neutron-python34/neutron/tests/unit/db/test_db_base_plugin_v2.py", line 121, in setUp
2015-07-13 22:23:32.841 | self.api = router.APIRouter()
2015-07-13 22:23:32.841 | File "/home/jenkins/workspace/gate-neutron-python34/neutron/api/v2/router.py", line 104, in __init__
2015-07-13 22:23:32.841 | mapper.connect('index', '/', controller=Index(RESOURCES))
2015-07-13 22:23:32.841 | File "/home/jenkins/workspace/gate-neutron-python34/.tox/py34/lib/python3.4/site-packages/routes/mapper.py", line 487, in connect
2015-07-13 22:23:32.841 | route = Route(*args, **kargs)
2015-07-13 22:23:32.841 | File "/home/jenkins/workspace/gate-neutron-python34/.tox/py34/lib/python3.4/site-packages/routes/route.py", line 85, in __init__
2015-07-13 22:23:32.841 | self._setup_route()
2015-07-13 22:23:32.842 | File "/home/jenkins/workspace/gate-neutron-python34/.tox/py34/lib/python3.4/site-packages/routes/route.py", line 101, in _setup_route
2015-07-13 22:23:32.842 | for key, val in self.reqs.iteritems():
2015-07-13 22:23:32.842 | AttributeError: 'dict' object has no attribute 'iteritems'

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/200971
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=69ad73aaf21a36c5dfd64cfd1a4982d45cc6fe81
Submitter: Jenkins
Branch: master

commit 69ad73aaf21a36c5dfd64cfd1a4982d45cc6fe81
Author: Akihiro Motoki <email address hidden>
Date: Mon Jul 13 10:30:47 2015 +0900

    Disable python3 tests failing due to Routes < 2.0

    At now, global-requirements has an entry:
    Routes!=2.0,!=2.1,>=1.12.3
    and this leads to Routes < 2.0 which is not compatible
    with Python 3. This blocks updating of global requirements [1].
    To avoid the situation, this commit disables python 3 related
    error due to Routes version.

    Closes-Bug: #1474266
    Related to blueprint neutron-python3

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

    Change-Id: If5e6355505361cbefe04487b6d47ab9cc6ba861c

Changed in neutron:
status: In Progress → Fix Committed
Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-midonet (master)

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

Changed in networking-midonet:
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/201917
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=4aab99c5bca70fc0cd5e1d144c5907aab597fd06
Submitter: Jenkins
Branch: master

commit 4aab99c5bca70fc0cd5e1d144c5907aab597fd06
Author: YAMAMOTO Takashi <email address hidden>
Date: Wed Jul 15 14:08:52 2015 +0900

    tox.ini: Disable python3 tests failing due to Routes < 2.0

    The recent update of Neutron's requirements.txt made us to
    use Routes < 2.0, which is not python3 compatible.
    Disable affected tests until python3 compatible version
    of Routes gets available again. Sadly, our list of python3
    tests is now empty.

    Closes-Bug: #1474266
    Change-Id: Ic2eb33d274c434578b221e22bcd1f48622311ee6

Changed in networking-midonet:
status: In Progress → Fix Committed
Changed in networking-midonet:
milestone: none → liberty-rc1
importance: Undecided → High
Changed in neutron:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (feature/pecan)

Fix proposed to branch: feature/pecan
Review: https://review.openstack.org/207903

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (feature/pecan)
Download full text (70.7 KiB)

Reviewed: https://review.openstack.org/207903
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=9badcd249dab2d3330f0cd608496b59c9f44499a
Submitter: Jenkins
Branch: feature/pecan

commit 991ea00e6c115343eabecc62e86072175823f81f
Author: Moshe Levi <email address hidden>
Date: Thu Jul 30 12:04:15 2015 +0300

    SR-IOV: Fix SR-IOV agent to run ip link commands as root

    Commit https://review.openstack.org/#/c/155523/
    remove the remaining root_helper args, but didn't
    update the SR-IOV agent to execute them as root.

    This patch updates the agent to execute ip link commands
    as root and pass options argument as a list in the
    self._as_root method.

    Closes-Bug: #1479694
    Change-Id: I53cafd61845a69fae3a759fb7526950d655ffa20

commit 5b3bacedf6c014815bef03c2e821b5eb8ef92dcb
Author: Saksham Varma <email address hidden>
Date: Thu Jul 23 22:46:23 2015 -0700

    Moved out cisco n1kv mech driver and db models

    Moving out Cisco N1Kv database models and the mech driver
    to the openstack/networking-cisco repo as part of the second
    phase vendor-core decomposition

    Partial-Bug: #1479123
    Partial-implements: blueprint core-vendor-decomposition

    Change-Id: I65a704b238d8cbe2951a6912fa4f1e8518c6f412

commit 65ac8cd0a80548e115b8ec1d4cfd47a94422fddf
Author: OpenStack Proposal Bot <email address hidden>
Date: Wed Jul 29 20:44:01 2015 +0000

    Updated from global requirements

    Change-Id: I3a884a73d51df0f93b5cc88b3e3250d81bb1f455

commit f0e8356d04d04600c072a1c0f0bdf274ff19ab8c
Author: sridhargaddam <email address hidden>
Date: Mon Jul 27 03:46:48 2015 +0000

    Update dhcp agent cache for network:dhcp ports

    When a network with a dhcp_enabled subnet is scheduled on a dhcp
    agent, dhcp driver creates the network:dhcp port for the subnet.
    However, the port info is not updated in dhcp agents internal cache.
    Subsequently if the user deletes the network:dhcp port, the port is
    properly deleted on the server side (i.e., in the database) and when
    the port_delete_end notification is sent to the dhcp agent, it simply
    ignores it as the port entry would be missing in the cache. This patch
    fixes this issue by updating the dhcp agents cache when dhcp driver
    creates the network:dhcp port for the subnets.

    Closes-Bug: #1478426
    Change-Id: I69f5834dd964a4320c606c4e0aa2cdba70416943

commit cb60d0bb4e0cc0cba68f59fdf5f4e89d6ec52950
Author: changzhi <email address hidden>
Date: Thu Jul 16 10:14:16 2015 +0800

    Keep dns nameserver order consistency

    Currently, there is no dns servers prioritization for subnets
    for Neutron.

    Generally speaking, it is useful to keep the order of dns
    nameservers consistent. Add a new column named 'order' in table
    'dnsnameservers' and add nameserver into DB one by one.

    Closes-Bug: #1218629
    Implements: blueprint keep-dns-nameserver-orderconsistency
    Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e

commit b39e1469e824bc8bc79e1ecafa98825a94811c0b
Author: Salvatore Orlando <email address hidden>
Date: Tue Jun 23 04:54:2...

tags: added: in-feature-pecan
Thierry Carrez (ttx)
Changed in neutron:
milestone: liberty-2 → 7.0.0
Changed in networking-midonet:
status: Fix Committed → 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.