From ee10c12ab1f7561781933501cfd7804b86497055 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Thu, 12 Jan 2023 03:29:25 -0500 Subject: [PATCH] import hyperv-daemons-0-0.34.20180415git.el8_7 --- ..._config-Workaround-for-gateway-numbe.patch | 46 +++++++++++++++++++ SPECS/hyperv-daemons.spec | 10 +++- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 SOURCES/hpvd-redhat-hv_set_if_config-Workaround-for-gateway-numbe.patch diff --git a/SOURCES/hpvd-redhat-hv_set_if_config-Workaround-for-gateway-numbe.patch b/SOURCES/hpvd-redhat-hv_set_if_config-Workaround-for-gateway-numbe.patch new file mode 100644 index 0000000..2918485 --- /dev/null +++ b/SOURCES/hpvd-redhat-hv_set_if_config-Workaround-for-gateway-numbe.patch @@ -0,0 +1,46 @@ +From 8acc8ecc93352bfb3d78e8d37c5ed03a4948a39d Mon Sep 17 00:00:00 2001 +From: Mohammed Gamal +Date: Tue, 8 Nov 2022 16:20:17 +0100 +Subject: [PATCH] redhat: hv_set_if_config: Workaround for gateway numbering in + NetworkManager + +RH-Author: Mohamed Gamal Morsy +RH-MergeRequest: 10: redhat: hv_set_if_config: Workaround for gateway numbering in NetworkManager +RH-Bugzilla: 2150255 +RH-Acked-by: Emanuele Giuseppe Esposito +RH-Acked-by: Jon Maloy +RH-Commit: [1/1] a52af3c2a8c4365cbe6777fe1afe4ebcf81954d6 + +Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2150255 + +Unlike older sysconfig scripts, NetworkManager expects GATEWAYx=ipaddr for all values of x. +So the first gateway is GATEWAY0 instead of GATEWAY. Other values should remain unchanged. +Workaround this by replacing GATEWAY= with GATEWAY0=. + +A proper fix however, would be to generate NetworkManager keyfiles instead of ifcfg files. +That can be done eitter by changing hypervkvpd code to do that or to let the script parse +ifcfg files and generate corresponding NetworkManager keyfiles + +Signed-off-by: Mohammed Gamal +--- + hv_set_ifconfig.sh | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/hv_set_ifconfig.sh b/hv_set_ifconfig.sh +index 146829b..fe7fccf 100644 +--- a/hv_set_ifconfig.sh ++++ b/hv_set_ifconfig.sh +@@ -54,6 +54,10 @@ echo "IPV6INIT=yes" >> $1 + echo "PEERDNS=yes" >> $1 + echo "ONBOOT=yes" >> $1 + ++#Unlike older sysconfig scripts, NetworkManager expects GATEWAYx=ipaddr for all values of x. ++#So the first gateway is GATEWAY0 instead of GATEWAY. Other values should remain unchanged. ++#Workaround this by replacing GATEWAY= with GATEWAY0=. ++sed -i "s/GATEWAY=/GATEWAY0=/" $1 + + cp $1 /etc/sysconfig/network-scripts/ + +-- +2.37.3 + diff --git a/SPECS/hyperv-daemons.spec b/SPECS/hyperv-daemons.spec index c97a62e..75c76b4 100644 --- a/SPECS/hyperv-daemons.spec +++ b/SPECS/hyperv-daemons.spec @@ -13,7 +13,7 @@ Name: hyperv-daemons Version: 0 -Release: 0.33%{?snapver}%{?dist} +Release: 0.34%{?snapver}%{?dist} Summary: Hyper-V daemons suite Group: System Environment/Daemons @@ -66,6 +66,8 @@ Patch7: hpvd-Use-filename-for-connection-profile.patch Patch8: hpvd-hypervkvpd.service-ordering-fixes.patch # For bz#2115761 - [Hyper-V][RHEL-8] hypervkvpd.service service ordering Patch9: hpvd-redhat-Add-ConditionalVirtualization-to-the-rest-of-.patch +# For bz#2150255 - [Hyper-V][RHEL-8] Cannot set gateway properly when set static IPADDR0,NETMASK0,GATEWAY in ifcfg-eth0 [rhel-8.7.0.z] +Patch10: hpvd-redhat-hv_set_if_config-Workaround-for-gateway-numbe.patch # For bz#2020141 - [Hyper-V][RHEL8.6][ARM64] No hyperv-daemons package built for aarch64 platform # Patch6: hpvd-Enable-build-on-aarch64.patch @@ -182,6 +184,7 @@ cp -pvL %{SOURCE4} hv_set_ifconfig.sh %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build # HYPERV KVP DAEMON @@ -299,6 +302,11 @@ fi %{_sbindir}/vmbus_testing %changelog +* Mon Dec 05 2022 Jon Maloy - 0-0.34.20180415git.el8_7 +- hpvd-redhat-hv_set_if_config-Workaround-for-gateway-numbe.patch [bz#2150255] +- Resolves: bz#2150255 + ([Hyper-V][RHEL-8] Cannot set gateway properly when set static IPADDR0,NETMASK0,GATEWAY in ifcfg-eth0 [rhel-8.7.0.z]) + * Tue Aug 16 2022 Miroslav Rezanina - 0-0.33.20180415git - hpvd-hypervkvpd.service-ordering-fixes.patch [bz#2115761] - hpvd-redhat-Add-ConditionalVirtualization-to-the-rest-of-.patch [bz#2115761]