From 79005b59d58d4ffa577352301219accd95feece3 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Mon, 26 Sep 2022 09:46:44 -0400 Subject: [PATCH] import powerpc-utils-1.3.9-8.el9_0 --- ...3.9-Fix-NM-HNV-setting-primary-slave.patch | 24 +++++++++++++++++++ SPECS/powerpc-utils.spec | 6 ++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 SOURCES/powerpc-utils-1.3.9-Fix-NM-HNV-setting-primary-slave.patch diff --git a/SOURCES/powerpc-utils-1.3.9-Fix-NM-HNV-setting-primary-slave.patch b/SOURCES/powerpc-utils-1.3.9-Fix-NM-HNV-setting-primary-slave.patch new file mode 100644 index 0000000..c684057 --- /dev/null +++ b/SOURCES/powerpc-utils-1.3.9-Fix-NM-HNV-setting-primary-slave.patch @@ -0,0 +1,24 @@ +commit 5c2d5e838e8a9e2e744b89fa42724118e1cccded +Author: Mingming Cao +Date: Thu Feb 24 09:02:05 2022 -0800 + + hcnmgr: Fix NM HNV setting primary slave + + Fix incorrect usage active_slave attribute instead of primary. + + Signed-off-by: Mingming Cao + Signed-off-by: Tyrel Datwyler + +diff --git a/scripts/hcnmgr b/scripts/hcnmgr +index fdb6eaa..3dc1ad2 100644 +--- a/scripts/hcnmgr ++++ b/scripts/hcnmgr +@@ -375,7 +375,7 @@ do_config_vdevice_nm() { + # if the device is primary, and link is up, force it as primary se + if [[ $MODE == "primary" ]]; then + hcnlog INFO "Change bonding primary slave to $DEVNAME" +- echo "$DEVNAME" >"$BOND_PATH"/active_slave ++ echo "$DEVNAME" >"$BOND_PATH"/primary + fi + + hcnlog DEBUG "do_config_vdevice: exit" diff --git a/SPECS/powerpc-utils.spec b/SPECS/powerpc-utils.spec index 210c7c1..c9798ce 100644 --- a/SPECS/powerpc-utils.spec +++ b/SPECS/powerpc-utils.spec @@ -1,6 +1,6 @@ Name: powerpc-utils Version: 1.3.9 -Release: 7%{?dist} +Release: 8%{?dist} Summary: PERL-based scripts for maintaining and servicing PowerPC systems License: GPLv2 @@ -40,6 +40,7 @@ Patch10: powerpc-utils-1.3.9-sanitize-devspec-output.patch Patch11: powerpc-utils-1.3.9-bootlist-fix-nvme-support-in-ANA-mode.patch Patch12: powerpc-utils-c44313686e69123c00406727ea44e52873a1e2c4.patch Patch13: powerpc-utils-d512169a87cc146bcd3844f266abef903d8d3c54.patch +Patch14: powerpc-utils-1.3.9-Fix-NM-HNV-setting-primary-slave.patch %description PERL-based scripts for maintaining and servicing PowerPC systems. @@ -209,6 +210,9 @@ systemctl enable hcn-init.service >/dev/null 2>&1 || : %changelog +* Tue Apr 26 2022 Than Ngo - 1.3.9-8 +- Resolves: #2078532, hcnmgr: Fix NM HNV setting primary slave + * Thu Mar 17 2022 Than Ngo - 1.3.9-7 - fix invalid hex number message - ofpathname: Fix nvme support in ANA mode