From 92760c054ed3d60555c6950e8f05df50c03cca49 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 21 Dec 2023 17:42:55 +0100 Subject: [PATCH 1/2] Fix vif unplug operations failing on RL9.3 An instance on a hypervisor running Rocky Linux 9.3 would fail to resize or cold migrate with the error: Traceback (most recent call last): File "/var/lib/kolla/venv/lib/python3.9/site-packages/os_vif/__init__.py", line 110, in unplug plugin.unplug(vif, instance_info) File "/var/lib/kolla/venv/lib/python3.9/site-packages/vif_plug_ovs/ovs.py", line 445, in unplug self._unplug_bridge(vif, instance_info) File "/var/lib/kolla/venv/lib/python3.9/site-packages/vif_plug_ovs/ovs.py", line 376, in _unplug_bridge linux_net.delete_bridge(vif.bridge_name, v1_name) File "/var/lib/kolla/venv/lib/python3.9/site-packages/oslo_privsep/priv_context.py", line 271, in _wrap return self.channel.remote_call(name, args, kwargs, File "/var/lib/kolla/venv/lib/python3.9/site-packages/oslo_privsep/daemon.py", line 215, in remote_call raise exc_type(*result[2]) pr2modules.netlink.exceptions.NetlinkError: (95, 'Operation not supported') This appears to be caused by incompatibility between pyroute2<0.6.10 and the Rocky Linux 9.3 kernel. More details are available on Launchpad [1]. [1] https://bugs.launchpad.net/ubuntu/+source/pyroute2/+bug/1995469 --- etc/kayobe/kolla.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/kayobe/kolla.yml b/etc/kayobe/kolla.yml index 1f975c609..99a603408 100644 --- a/etc/kayobe/kolla.yml +++ b/etc/kayobe/kolla.yml @@ -396,6 +396,10 @@ kolla_build_blocks: {% endif %} {% endraw %} {% endif %} + # Fix for https://bugs.launchpad.net/ubuntu/+source/pyroute2/+bug/1995469 + # which was experienced on Rocky Linux 9.3 kernel. This file is from + # pyroute2 0.6.6 with the fix backported from 0.6.10. + RUN curl -o /var/lib/kolla/venv/lib/python3.9/site-packages/pr2modules/iproute/linux.py https://raw.githubusercontent.com/stackhpc/pyroute2/stackhpc/yoga/pyroute2.core/pr2modules/iproute/linux.py magnum_base_footer: | RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | head -n -1 | bash {% raw %} From 0dd6f8872f7350818f217a9889bcbac82c13942f Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Thu, 4 Jan 2024 17:01:01 +0000 Subject: [PATCH 2/2] Fix no response from neutron metadata server during cloud-init Instances created on a hypervisor running on Rocky Linux kernel 5.14.0-362.13.1.el9_3 fail to get response from metadata server due to pyroute2 incompatibilty. Which led ssh key authentication failure. --- etc/kayobe/kolla.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/kayobe/kolla.yml b/etc/kayobe/kolla.yml index 99a603408..d5cc1e435 100644 --- a/etc/kayobe/kolla.yml +++ b/etc/kayobe/kolla.yml @@ -400,6 +400,13 @@ kolla_build_blocks: # which was experienced on Rocky Linux 9.3 kernel. This file is from # pyroute2 0.6.6 with the fix backported from 0.6.10. RUN curl -o /var/lib/kolla/venv/lib/python3.9/site-packages/pr2modules/iproute/linux.py https://raw.githubusercontent.com/stackhpc/pyroute2/stackhpc/yoga/pyroute2.core/pr2modules/iproute/linux.py + neutron_base_footer: | + # Fix for neutron_ovn_metadata_agent start up failure caused by https://bugs.launchpad.net/ubuntu/+source/pyroute2/+bug/1995469 + # which was experienced on Rocky Linux 9.3 kernel. This file is from + # pyroute2 0.6.6 with the fix backported from 0.6.10. + # This ultimately fixes ssh key authentication failure on newly created + # instances with Rocky Linux 9.3 kernel. + RUN curl -o /var/lib/kolla/venv/lib/python3.9/site-packages/pr2modules/iproute/linux.py https://raw.githubusercontent.com/stackhpc/pyroute2/stackhpc/yoga/pyroute2.core/pr2modules/iproute/linux.py magnum_base_footer: | RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | head -n -1 | bash {% raw %}