Version 0.6.7-3 is broken for "del" operations on recent kernels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Zed |
Fix Released
|
High
|
Unassigned | ||
pyroute2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned | ||
Kinetic |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
Because of this bug upstream https:/
This is related to the kernel commit https:/
Pyroute package has to be upgraded to a version 0.6.10 or later as long as the distro comes with the kernel that contains the above commit.
Reproducer:
$ sudo python3
Python 3.10.7 (main, Sep 8 2022, 14:34:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyroute2 import IPRoute
>>> IPRoute(
({'header': {'length': 36, 'type': 2, 'flags': 256, 'sequence_number': 255, 'pid': 4993, 'error': None, 'target': 'localhost', 'stats': Stats(qsize=0, delta=0, delay=0)}, 'event': 'NLMSG_ERROR'},)
>>> IPRoute(
[10]
>>> IPRoute(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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'
pr2modules.
ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: python3-pyroute2 0.6.7-3
ProcVersionSign
Uname: Linux 5.19.0-23-generic x86_64
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Nov 2 10:44:29 2022
InstallationDate: Installed on 2021-08-18 (440 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitec
SourcePackage: pyroute2
UpgradeStatus: Upgraded to kinetic on 2022-10-23 (9 days ago)
[Test Case]
There is a small reproducer above that Eugene included in the bug report.
Additionally we can use the standard charm-deployed regression test suite to test kinetic-zed support. nova-compute units can be inspected to see if the 'Operation not supported' errors are no longer produced in /var/log/
[Regression Potential]
The patch has already landed in releases of pyroute2 0.6.10 and above. Since pyroute2 is also backported to the zed cloud archive (which is on jammy) we'll need to ensure that this patch behaves as expected with jammy-zed deploys as well.
description: | updated |
Changed in cloud-archive: | |
status: | New → Fix Released |
Changed in cloud-archive: | |
status: | Fix Released → Fix Committed |
Changed in pyroute2 (Ubuntu Jammy): | |
status: | New → Triaged |
importance: | Undecided → High |
Eugene, Thank you for reporting this bug.