From ec0760a40e68f921e482d77a01551f7f4e0e3788 Mon Sep 17 00:00:00 2001 From: Jakub Libosvar Date: Tue, 15 May 2018 19:06:36 +0000 Subject: [PATCH] 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 --- neutron/privileged/agent/linux/netlink_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/privileged/agent/linux/netlink_lib.py b/neutron/privileged/agent/linux/netlink_lib.py index df0c22e181e..ac8e3644c5c 100644 --- a/neutron/privileged/agent/linux/netlink_lib.py +++ b/neutron/privileged/agent/linux/netlink_lib.py @@ -139,7 +139,7 @@ class ConntrackManager(object): conntrack, type_, nl_constants.NFCT_O_PLAIN, nl_constants.NFCT_OF_TIME) - entries.append(raw_entry.value) + entries.append(raw_entry.value.decode('utf-8')) return nl_constants.NFCT_CB_CONTINUE self._callback_register(nl_constants.NFCT_T_ALL,