Skip to content

Commit

Permalink
Proper iface deletion in agent with pyroute 0.6.10
Browse files Browse the repository at this point in the history
With pyroute2 0.6.6 and a Linux Kernel since 5.19, pyroute2 sometimes
cannot properly delete interfaces. This results in the cleanup process
being interrupted, i.e. dangling vlan bond interfaces and dangling
bridges. Especially the bonds can result in a bond that cannot be
properly put into a bridge at some point, which makes vlan reuse on an
agent impossible.

To solve this problem we need to bump pyroute2 to 0.6.10, where this has
been fixed[0][1]. The changelog of pyroute2[2] looks like we can safely
upgrade and a manual upgrade in one network agent looks also as if this
is working.

The Kernel patch introducing the problem can be found here[3], OpenStack
bug here[4] and Ubuntu package bug here[5].

[0] svinota/pyroute2#892
[1] svinota/pyroute2#923
[2] https://docs.pyroute2.org/changelog.html
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/?id=a6cec0bcd34264be8887791594be793b3f12719f
[4] https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/1995735
[5] https://bugs.launchpad.net/ubuntu/+source/pyroute2/+bug/1995469
  • Loading branch information
sebageek committed Jan 31, 2024
1 parent 8f2a135 commit 46c5a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ovs>=2.10.0 # Apache-2.0
ovsdbapp>=1.15.2 # Apache-2.0
packaging>=20.4 # Apache-2.0
psutil>=5.3.0 # BSD
pyroute2>=0.6.6;sys_platform!='win32' # Apache-2.0 (+ dual licensed GPL2)
pyroute2>=0.6.10;sys_platform!='win32' # Apache-2.0 (+ dual licensed GPL2)
pyOpenSSL>=17.1.0 # Apache-2.0

python-novaclient>=9.1.0 # Apache-2.0
Expand Down

0 comments on commit 46c5a4d

Please sign in to comment.