Revision to test case to avoid need for all of openstack
[Test Case]
echo 63 | sudo tee /sys/class/net/enp3s0f0/device/sriov_numvfs
sudo apt install python3-neutron
sudo python3
>>> from neutron.privileged.agent.linux import ip_lib
>>> ip_lib.get_link_vfs('enp3s0f0', None)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 1311, in _ft_decode_generic
self.decode_nlas(offset)
File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 1435, in decode_nlas
(length, base_msg_type) = struct.unpack_from('HH', self.data,
struct.error: unpack_from requires a buffer of at least 19212 bytes for unpacking 4 bytes at offset 19208 (actual buffer size is 16384)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/oslo_privsep/priv_context.py", line 247, in _wrap
return self.channel.remote_call(name, args, kwargs)
File "/usr/lib/python3/dist-packages/oslo_privsep/daemon.py", line 204, in remote_call
raise exc_type(*result[2])
TypeError: can not serialize 'error' object
Revision to test case to avoid need for all of openstack
[Test Case] net/enp3s0f0/ device/ sriov_numvfs privileged. agent.linux import ip_lib get_link_ vfs('enp3s0f0' , None) python3/ dist-packages/ pyroute2/ netlink/ __init_ _.py", line 1311, in _ft_decode_generic decode_ nlas(offset) python3/ dist-packages/ pyroute2/ netlink/ __init_ _.py", line 1435, in decode_nlas unpack_ from('HH' , self.data,
echo 63 | sudo tee /sys/class/
sudo apt install python3-neutron
sudo python3
>>> from neutron.
>>> ip_lib.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
(length, base_msg_type) = struct.
struct.error: unpack_from requires a buffer of at least 19212 bytes for unpacking 4 bytes at offset 19208 (actual buffer size is 16384)
Traceback (most recent call last): python3/ dist-packages/ oslo_privsep/ priv_context. py", line 247, in _wrap remote_ call(name, args, kwargs) python3/ dist-packages/ oslo_privsep/ daemon. py", line 204, in remote_call *result[ 2])
File "<stdin>", line 1, in <module>
File "/usr/lib/
return self.channel.
File "/usr/lib/
raise exc_type(
TypeError: can not serialize 'error' object