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 df22b21..d18b5d2 100644 --- a/SPECS/powerpc-utils.spec +++ b/SPECS/powerpc-utils.spec @@ -1,6 +1,6 @@ Name: powerpc-utils Version: 1.3.9 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PERL-based scripts for maintaining and servicing PowerPC systems Group: System Environment/Base @@ -36,6 +36,7 @@ Patch7: powerpc-utils-1.3.8-hcnmgr.patch Patch8: powerpc-utils-support-vnic-as-backup-device-for-HNV.patch # fixed hexdump format Patch9: powerpc-utils-1.3.9-fix-hexdump-format.patch +Patch10: powerpc-utils-1.3.9-Fix-NM-HNV-setting-primary-slave.patch %description PERL-based scripts for maintaining and servicing PowerPC systems. @@ -198,6 +199,9 @@ systemctl enable hcn-init.service >/dev/null 2>&1 || : %{_mandir}/man8/lparnumascore.8* %changelog +* Mon Apr 25 2022 Than Ngo - 1.3.9-2 +- Resolves: #2078537, hcnmgr: Fix NM HNV setting primary slave + * Thu Dec 09 2021 Than Ngo - 1.3.9-1 - Resolves: #2028690, rebase to 1.3.9