neutron.tests.functional.agent.linux.test_netlink_lib.NetlinkLibTestCase. test_list_entries fails with Python 3

Bug #1771410 reported by Jakub Libosvar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Jakub Libosvar

Bug Description

ft1.5: neutron.tests.functional.agent.linux.test_netlink_lib.NetlinkLibTestCase.test_list_entries_StringException: Traceback (most recent call last):
  File "/opt/stack/new/neutron/neutron/tests/base.py", line 140, in func
    return f(self, *args, **kwargs)
  File "/opt/stack/new/neutron/neutron/tests/functional/agent/linux/test_netlink_lib.py", line 85, in test_list_entries
    entries_list = nl_lib.list_entries(zone=_zone)
  File "/opt/stack/new/neutron/.tox/dsvm-functional-python35/lib/python3.5/site-packages/oslo_privsep/priv_context.py", line 207, in _wrap
    return self.channel.remote_call(name, args, kwargs)
  File "/opt/stack/new/neutron/.tox/dsvm-functional-python35/lib/python3.5/site-packages/oslo_privsep/daemon.py", line 202, in remote_call
    raise exc_type(*result[2])
TypeError: cannot use a string pattern on a bytes-like object

Tags: py34
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

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/568675
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=ec0760a40e68f921e482d77a01551f7f4e0e3788
Submitter: Zuul
Branch: master

commit ec0760a40e68f921e482d77a01551f7f4e0e3788
Author: Jakub Libosvar <email address hidden>
Date: Tue May 15 19:06:36 2018 +0000

    py3: Fix list_entries for netlink_lib

    As privsep communicates with main process via socket, data passed
    through this socket must be string type in Python 3. This patch converts
    bytes to string, then privsep works correctly.

    Change-Id: I6838d13b5acc32e939fba3c9abfea7cd483e971b
    Closes-bug: #1771410

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 13.0.0.0b2

This issue was fixed in the openstack/neutron 13.0.0.0b2 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.