From da73bad92b8a798767f47f959867c5ee813c81b1 Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Wed, 30 Jul 2025 14:31:32 +0800 Subject: [PATCH 1/5] Try to bring up the most recently used NetworkManager connection profiles Resolves: https://issues.redhat.com/browse/KEX-344 Currently, the nfs_ovs plan fails because nm-wait-online-initrd.service waits for the bonding network to be created. But the bonding network can't be activated because the eth0 NM connection is brought up first which stops the slave connnection profile to be activated, /var/lib/NetworkManager/timestamps keeps the timestamps of NM connections when they are lastly used. When multiple NM connections have the same connection.autoconnect-priority, the latest used NM connection will be activated. [1] https://networkmanager.dev/docs/api/latest/settings-connection.html Fixes: 3f4a9eb4 ("Bring up the network before Open vSwitch bridge") Signed-off-by: Coiby Xu --- dracut/99kdumpbase/module-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dracut/99kdumpbase/module-setup.sh b/dracut/99kdumpbase/module-setup.sh index 1c223ede..936b68e9 100755 --- a/dracut/99kdumpbase/module-setup.sh +++ b/dracut/99kdumpbase/module-setup.sh @@ -344,6 +344,7 @@ _install_nmconnections_before_ovs() { exit 1 fi done <<< "$(nmcli --get-values filename,ACTIVE connection show | grep "no$")" + inst -o /var/lib/NetworkManager/timestamps } kdump_install_nmconnections() { From 5105338bd4b28675efccf63b2bd24ddd3e3209ea Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Thu, 31 Jul 2025 09:38:25 +0800 Subject: [PATCH 2/5] Use config-earlykdump test from kernel-tests The plan is to run kernel-tests in upstream kdump-utils. Use config-earlykdump from kernel-tests so we can retire current nfs_early plan. Signed-off-by: Coiby Xu --- kernel-tests-plans/early.fmf | 6 ++++++ tests/plans/nfs_early.fmf | 30 ------------------------------ 2 files changed, 6 insertions(+), 30 deletions(-) create mode 100644 kernel-tests-plans/early.fmf delete mode 100644 tests/plans/nfs_early.fmf diff --git a/kernel-tests-plans/early.fmf b/kernel-tests-plans/early.fmf new file mode 100644 index 00000000..1bcb4465 --- /dev/null +++ b/kernel-tests-plans/early.fmf @@ -0,0 +1,6 @@ +summary: Kdump early dumping tests +discover+: + test: + - /kdump/config-default-crashkernel + - /kdump/config-any + - /kdump/config-earlykdump diff --git a/tests/plans/nfs_early.fmf b/tests/plans/nfs_early.fmf deleted file mode 100644 index 0381cde5..00000000 --- a/tests/plans/nfs_early.fmf +++ /dev/null @@ -1,30 +0,0 @@ -summary: Kdump NFS early dumping tests -enabled: true -adjust: - enabled: false - when: distro > fedora-40 -discover: - - name: Set up crashkernel - how: fmf - test: - - setup/default_crashkernel - where: - - client - - name: Set up NFS server - how: fmf - test: - - setup/nfs_server - where: - - server - - name: Set up NFS client - how: fmf - test: - - setup/network_client/nfs_early - where: - - client - - name: Check vmcore - how: fmf - test: - - /tests/check_vmcore/nfs - where: - - server From 848407dd6e6c7fda8f109c8886a18f71fc449698 Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Wed, 30 Jul 2025 16:48:21 +0800 Subject: [PATCH 3/5] tests: only run lvm2_thinp test plan on self-hosted runner I plan to use packit to run all test plans. But we still need to run lvm2_thinp test plan on self-hosted runner before we adapt it to packit/testing-farm. Also enable tests against Fedora-41 since tmt no longer supports Fedora-40. Signed-off-by: Coiby Xu --- .github/workflows/main.yml | 2 +- tools/run-integration-tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1fb8ec56..ae026d98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: strategy: matrix: fedora_version: [ - "40", "rawhide" + "41" ] fail-fast: false steps: diff --git a/tools/run-integration-tests.sh b/tools/run-integration-tests.sh index 424e2a37..18d5b404 100755 --- a/tools/run-integration-tests.sh +++ b/tools/run-integration-tests.sh @@ -29,4 +29,4 @@ if [[ ! -f $rpm_path ]]; then echo "Failed to find built kdump-utils rpm ($rpm_path doesn't eixst)" fi -cd tests && tmt --context distro="fedora-${fedora_version}" run --environment CUSTOM_MIRROR="$mirror" --environment KDUMP_UTILS_RPM="$rpm_path" -a provision -h virtual -i fedora:"$fedora_version" +cd tests && tmt --context distro="fedora-${fedora_version}" run --environment CUSTOM_MIRROR="$mirror" --environment KDUMP_UTILS_RPM="$rpm_path" -a provision -h virtual -i fedora:"$fedora_version" plans --name lvm2_thinp From 4af3e37c00d2d965471055021ea9ff81d2544e14 Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Wed, 30 Jul 2025 17:03:52 +0800 Subject: [PATCH 4/5] Enable packit tests against rawhide and aarch64 Let's extend packit tests to rawhide and aarch64 to catch regressions early. Signed-off-by: Coiby Xu --- .packit.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.packit.yaml b/.packit.yaml index 523a8995..b9781613 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -27,7 +27,9 @@ jobs: trigger: pull_request targets: - fedora-41-x86_64 + - fedora-41-aarch64 - fedora-rawhide-x86_64 + - fedora-rawhide-aarch64 packages: - kdump-utils @@ -35,6 +37,9 @@ jobs: trigger: pull_request targets: - fedora-41-x86_64 + - fedora-41-aarch64 + - fedora-rawhide-x86_64 + - fedora-rawhide-aarch64 fmf_path: kernel-tests-plans use_internal_tf: true tf_extra_params: From 3cab2f40719718909d40ab6248840fea1bc52d49 Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Fri, 17 Oct 2025 14:56:52 +0800 Subject: [PATCH 5/5] tests: Avoid using Xen guests Occasionally testing farm will run the tests on a kind of HVM domU machines which doesn't support kdump. AWS EC2 T2 is known to not support kdump [1]. Exclude using Xen guests to avoid this issue. [1] https://issues.redhat.com/browse/RHEL-108739 Signed-off-by: Coiby Xu --- .packit.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.packit.yaml b/.packit.yaml index b9781613..f2d6a023 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -43,6 +43,10 @@ jobs: fmf_path: kernel-tests-plans use_internal_tf: true tf_extra_params: + hardware: + - virtualization: + # use internal NFS/SSH server to avoid creating another VM as NFS/SSH server + hypervisor: '!= xen' environments: - variables: # use internal NFS/SSH server to avoid creating another VM as NFS/SSH server