** Description changed: [Impact] The iscsi autopkgtest can fail on kernels that do not provide iscsi_target_mod, such as the KVM kernel cited in the bug. The test then cannot set up its iSCSI backstore, causing autopkgtest to fail even though this is a test-environment limitation. [Test Plan] Run the iscsi autopkgtest on a non-generic kernel without iscsi_target_mod, with autopkgtest reboot support enabled. Verify that the test switches to linux-generic, reboots, loads the module, and proceeds with the iSCSI tests. Also run it on a generic kernel where the module is already available. [Where problems could occur] The change affects only the iSCSI autopkgtest setup, not resource-agent runtime behavior. Risk is limited to the test environment: installing or booting the generic kernel may fail, or the module may still be unavailable after reboot. In those cases, the setup emits a warning and the test continues, so the autopkgtest may still fail. [Other Info] This fix is marked to be blocked in -proposed - -------- - The autopkgtests fails on Noble because of the missing kernel module iscsi_target_mod + The autopkgtests fails on Jammy because of the missing kernel module iscsi_target_mod .... 1815s Setting up resource-agents (1:4.7.0-1ubuntu7.4) ... 1815s Processing triggers for libc-bin (2.35-0ubuntu3.15) ... 1815s Processing triggers for man-db (2.10.2-1) ... 1815s Processing triggers for initramfs-tools (0.140ubuntu13.5) ... 1815s update-initramfs: Generating /boot/initrd.img-5.15.0-1109-kvm 1823s autopkgtest [10:37:00]: test command13: debian/tests/run-ocft iscsi 1823s autopkgtest [10:37:00]: test command13: [----------------------- 1823s Running: ocft make iscsi 1823s Making 'iscsi': 1823s - case 0: check base env 1823s - case 1: check base env: invalid 'OCF_RESKEY_portal' 1823s - case 2: check base env: unset 'OCF_RESKEY_target' 1823s - case 3: normal start 1823s - case 4: normal stop 1824s - case 5: double start 1824s - case 6: double stop 1824s - case 7: monitor when running 1824s - case 8: monitor when not running 1824s - case 9: unimplemented command 1824s Running: ocft test -v iscsi 1824s Initializing 'iscsi' ... 1826s Oct 06 10:37:02 ERROR: Warning: Could not load preferences file /root/.targetcli/prefs.bin. b'modprobe: FATAL: Module iscsi_target_mod not found in directory /lib/modules/5.15.0-1109-kvm\n' 1826s Oct 06 10:37:02 ERROR: Could not create _Backstore in configFS 1826s ERROR: 'SETUP-AGENT' failed, the return code is 1. 1826s WARNING: SETUP failed, break all tests of 'iscsi'. 1826s autopkgtest [10:37:03]: test command13: -----------------------] 1827s command13 FAIL non-zero exit status 1 ... Autopkgtests log: https://autopkgtest.ubuntu.com/results/autopkgtest- jammy/jammy/amd64/r/resource-agents/20261006_103706_a9699@/log.gz
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2169706 Title: autopkgtest fails in Jammy because of iscsi_target_mod kernel module To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/2169706/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
