← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1771410] Re: neutron.tests.functional.agent.linux.test_netlink_lib.NetlinkLibTestCase. test_list_entries fails with Python 3

 

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 <libosvar@xxxxxxxxxx>
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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1771410

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

Status in neutron:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1771410/+subscriptions


References