Verified for focal-wallaby using test script in comment #33.
ubuntu@node-lepaute:~$ dpkg -l | grep pyroute2
ii python3-pyroute2 0.5.14-0ubuntu1~cloud0 all Python3 Netlink library
ubuntu@node-lepaute:~$ echo 63 | sudo tee /sys/class/net/enp3s0f0/device/sriov_numvfs
63
ubuntu@node-lepaute:~$ ./test-lp1904730.sh
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 1345, in _ft_decode_generic
self.decode_nlas(offset)
File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 1469, 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)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./test-lp1904730.sh", line 7, in <module>
link = ip.link('get', index=link_idx, ext_mask=1)[0]
File "/usr/lib/python3/dist-packages/pyroute2/iproute/linux.py", line 1358, in link
ret = self.nlm_request(msg,
File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 376, in nlm_request
return tuple(self._genlm_request(*argv, **kwarg))
File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 867, in nlm_request
for msg in self.get(msg_seq=msg_seq,
File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 379, in get
return tuple(self._genlm_get(*argv, **kwarg))
File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 704, in get
raise msg['header']['error']
File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 177, in parse
msg.decode()
File "/usr/lib/python3/dist-packages/pyroute2/netlink/rtnl/ifinfmsg/__init__.py", line 1092, in decode
nlmsg.decode(self)
File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 1016, in decode
self._ft_decode(self, offset)
File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 1348, in _ft_decode_generic
raise NetlinkNLADecodeError(e)
pyroute2.netlink.exceptions.NetlinkNLADecodeError: unpack_from requires a buffer of at least 19212 bytes for unpacking 4 bytes at offset 19208 (actual buffer size is 16384)
ubuntu@node-lepaute:~$ sudo add-apt-repository cloud-archive:wallaby-proposed
Ubuntu Cloud Archive for OpenStack Wallaby [proposed]
More info: https://wiki.ubuntu.com/OpenStack/CloudArchive
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Reading package lists...
Building dependency tree...
Reading state information...
ubuntu-cloud-keyring is already the newest version (2020.02.11.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Get:1 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-proposed/wallaby InRelease [8771 B]
Hit:2 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-updates/wallaby InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Get:4 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-proposed/wallaby/main amd64 Packages [155 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Fetched 492 kB in 1s (522 kB/s)
Reading package lists... Done
ubuntu@node-lepaute:~$ sudo apt-get upgrade python3-pyroute2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
python3-pyroute2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 269 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-proposed/wallaby/main amd64 python3-pyroute2 all 0.5.14-0ubuntu1.1~cloud0 [269 kB]
Fetched 269 kB in 0s (9234 kB/s)
(Reading database ... 71815 files and directories currently installed.)
Preparing to unpack .../python3-pyroute2_0.5.14-0ubuntu1.1~cloud0_all.deb ...
Unpacking python3-pyroute2 (0.5.14-0ubuntu1.1~cloud0) over (0.5.14-0ubuntu1~cloud0) ...
Setting up python3-pyroute2 (0.5.14-0ubuntu1.1~cloud0) ...
ubuntu@node-lepaute:~$
ubuntu@node-lepaute:~$ dpkg -l | grep pyroute2
ii python3-pyroute2 0.5.14-0ubuntu1.1~cloud0 all Python3 Netlink library
ubuntu@node-lepaute:~$ ./test-lp1904730.sh
63
ubuntu@node-lepaute:~$
Verified for focal-wallaby using test script in comment #33.
ubuntu@ node-lepaute: ~$ dpkg -l | grep pyroute2 0ubuntu1~ cloud0 all Python3 Netlink library node-lepaute: ~$ echo 63 | sudo tee /sys/class/ net/enp3s0f0/ device/ sriov_numvfs node-lepaute: ~$ ./test-lp1904730.sh python3/ dist-packages/ pyroute2/ netlink/ __init_ _.py", line 1345, in _ft_decode_generic decode_ nlas(offset) python3/ dist-packages/ pyroute2/ netlink/ __init_ _.py", line 1469, in decode_nlas unpack_ from('HH' , self.data,
ii python3-pyroute2 0.5.14-
ubuntu@
63
ubuntu@
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)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): lp1904730. sh", line 7, in <module> python3/ dist-packages/ pyroute2/ iproute/ linux.py" , line 1358, in link request( msg, python3/ dist-packages/ pyroute2/ netlink/ nlsocket. py", line 376, in nlm_request _genlm_ request( *argv, **kwarg)) python3/ dist-packages/ pyroute2/ netlink/ nlsocket. py", line 867, in nlm_request msg_seq= msg_seq, python3/ dist-packages/ pyroute2/ netlink/ nlsocket. py", line 379, in get _genlm_ get(*argv, **kwarg)) python3/ dist-packages/ pyroute2/ netlink/ nlsocket. py", line 704, in get ]['error' ] python3/ dist-packages/ pyroute2/ netlink/ nlsocket. py", line 177, in parse python3/ dist-packages/ pyroute2/ netlink/ rtnl/ifinfmsg/ __init_ _.py", line 1092, in decode decode( self) python3/ dist-packages/ pyroute2/ netlink/ __init_ _.py", line 1016, in decode _ft_decode( self, offset) python3/ dist-packages/ pyroute2/ netlink/ __init_ _.py", line 1348, in _ft_decode_generic eError( e) netlink. exceptions. NetlinkNLADecod eError: unpack_from requires a buffer of at least 19212 bytes for unpacking 4 bytes at offset 19208 (actual buffer size is 16384)
File "./test-
link = ip.link('get', index=link_idx, ext_mask=1)[0]
File "/usr/lib/
ret = self.nlm_
File "/usr/lib/
return tuple(self.
File "/usr/lib/
for msg in self.get(
File "/usr/lib/
return tuple(self.
File "/usr/lib/
raise msg['header'
File "/usr/lib/
msg.decode()
File "/usr/lib/
nlmsg.
File "/usr/lib/
self.
File "/usr/lib/
raise NetlinkNLADecod
pyroute2.
ubuntu@ node-lepaute: ~$ sudo add-apt-repository cloud-archive: wallaby- proposed /wiki.ubuntu. com/OpenStack/ CloudArchive
Ubuntu Cloud Archive for OpenStack Wallaby [proposed]
More info: https:/
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Reading package lists... cloud-keyring is already the newest version (2020.02.11.4). ubuntu- cloud.archive. canonical. com/ubuntu focal-proposed/ wallaby InRelease [8771 B] ubuntu- cloud.archive. canonical. com/ubuntu focal-updates/ wallaby InRelease archive. ubuntu. com/ubuntu focal InRelease ubuntu- cloud.archive. canonical. com/ubuntu focal-proposed/ wallaby/ main amd64 Packages [155 kB] archive. ubuntu. com/ubuntu focal-updates InRelease [114 kB] archive. ubuntu. com/ubuntu focal-security InRelease [114 kB] archive. ubuntu. com/ubuntu focal-backports InRelease [101 kB] node-lepaute: ~$ sudo apt-get upgrade python3-pyroute2 ubuntu- cloud.archive. canonical. com/ubuntu focal-proposed/ wallaby/ main amd64 python3-pyroute2 all 0.5.14- 0ubuntu1. 1~cloud0 [269 kB] pyroute2_ 0.5.14- 0ubuntu1. 1~cloud0_ all.deb ... 0ubuntu1. 1~cloud0) over (0.5.14- 0ubuntu1~ cloud0) ... 0ubuntu1. 1~cloud0) ... node-lepaute: ~$ node-lepaute: ~$ dpkg -l | grep pyroute2 0ubuntu1. 1~cloud0 all Python3 Netlink library node-lepaute: ~$ ./test-lp1904730.sh node-lepaute: ~$
Building dependency tree...
Reading state information...
ubuntu-
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Get:1 http://
Hit:2 http://
Hit:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Fetched 492 kB in 1s (522 kB/s)
Reading package lists... Done
ubuntu@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
python3-pyroute2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 269 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://
Fetched 269 kB in 0s (9234 kB/s)
(Reading database ... 71815 files and directories currently installed.)
Preparing to unpack .../python3-
Unpacking python3-pyroute2 (0.5.14-
Setting up python3-pyroute2 (0.5.14-
ubuntu@
ubuntu@
ii python3-pyroute2 0.5.14-
ubuntu@
63
ubuntu@