Description of problem: dracut does not support LiveCD based setups on iSCSI backed storage Steps to Reproduce: 1. Copy LiveCD contents to iscsi storage 2. Attemt booting from iscsi remote storage Actual results: - iscsi connection is made, disk is attached, but root can not be found. I've tried the exact same setup with the filesystem extracted from the dmsquash and placed on the storage and it boots fine. It just looks like layered boot scenarios of (livecd/iscsi) don't work in this case. Expected results: livecd based images booting from remote iscsi
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
(In reply to comment #0) > 2. Attemt booting from iscsi remote storage What was the root= parameter you have used?
#default saved set timeout=5 #hiddenmenu menuentry "oVirt Node Hypervisor 2.2.3-0.1.fc16.gita1053cb" { set root=(hd0,2) linux /vmlinuz0 root=LABEL=Root root=iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 ip=eth0:dhcp crashkernel=512M-2G:64M,2G-:128M elevator=deadline quiet rd_NO_LVM rhgb rd.luks=0 rd.md=0 rd.dm=0 initrd /initrd0.img } dracut Warning: Can't mount root filesystem iscsistart: transport class version 2.0-870. iscsid version 2.0-872.15.f16 iscsistart: Logging into iqn.2006-01.com.openfiler:tsn.ac316c1511c5 192.168.122.147:3260,1 iscsistart: version 2.0-872.15.f16 iscsistart: Connection1:0 to [target: iqn.2006-01.com.openfiler:tsn.ac316c1511c5, portal: 192.168.122.147,3260] through [iface: default] is operational now mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy mount: /dev/sdb already mounted or /sysroot busy dracut Warning: Can't mount root filesystem Dropping to debug shell. sh: can't access tty; job control turned off ------------------------------ changing root line to: root=live:iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 ip=eth0:dhcp [ 0.880906] ioremap error for 0x3ffff000-0x40000000, requested 0x10, got 0x0 Warning: No netboot configured, ignoring ip= lines [ 1.352627] dracut: FATAL: Don't know how to handle 'root=live:iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5' [ 1.356854] dracut: Refusing to continue dracut Warning: Signal caught! dracut Warning: dracut: FATAL: Don't know how to handle 'root=live:iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5' dracut Warning: dracut: Refusing to continue [ 1.363538] Kernel panic - not syncing: Attempted to kill init! [ 1.365935] Pid: 1, comm: init Not tainted 3.2.6-3.fc16.x86_64 #1 [ 1.368104] Call Trace: [ 1.368695] [<ffffffff815d7120>] panic+0x91/0x1a7 [ 1.369832] [<ffffffff81072541>] do_exit+0x861/0x8a0 [ 1.371082] [<ffffffff810728d2>] do_group_exit+0x42/0xa0 [ 1.372562] [<ffffffff81072947>] sys_exit_group+0x17/0x20 [ 1.374067] [<ffffffff815e9982>] system_call_fastpath+0x16/0x1b
This dracut bug is blocking ovirt-node that will support booting from iSCSI targets with boot parameters netroot=iscsi: https://bugzilla.redhat.com/show_bug.cgi?id=520111 Please fix in Fedora and bring it into RHEL6.3
fixed the "root=iscsi:..." versus "netroot=iscsi:..." bug in F17/rawhide
(In reply to comment #3) > #default saved > set timeout=5 > #hiddenmenu > menuentry "oVirt Node Hypervisor 2.2.3-0.1.fc16.gita1053cb" { > set root=(hd0,2) > linux /vmlinuz0 root=LABEL=Root > root=iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 > ip=eth0:dhcp crashkernel=512M-2G:64M,2G-:128M elevator=deadline quiet rd_NO_LVM > rhgb rd.luks=0 rd.md=0 rd.dm=0 > initrd /initrd0.img > } You should specify "root=LABEL=Root netroot=iscsi:..." and not "root=" twice!!
yeah not sure what happened on the double root entry, i saw some documentation that looked updated since F12 timeframe, anyways Tried with these two kernel lines, only difference is adding live: to the root= BOOT_IMAGE=/vmlinuz0 root=live:LABEL=Root netroot=iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 ip=eth0:dhcp crashkernel=512M-2G:64M,2G-:128M elevator=deadline rd_NO_LVM rd.luks=0 rd.md=0 rd.dm=0 iscsi_initiator=iqn.2006-01.com.redhat:tsn.123456 console=ttyS0,115200n8 BOOT_IMAGE=/vmlinuz0 root=LABEL=Root netroot=iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 ip=eth0:dhcp crashkernel=512M-2G:64M,2G-:128M elevator=deadline rd_NO_LVM rd.luks=0 rd.md=0 rd.dm=0 iscsi_initiator=iqn.2006-01.com.redhat:tsn.123456 console=ttyS0,115200n8 When booting with live in the root arg we end up at: iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 iscsistart: Missing or Invalid version from /sys/module/scsi_transport_iscsi/version. Make sure a up to date scsi_transport_iscsi module is loaded and a up todate version of iscsid is running. Exiting... [ 28.964605] dracut Warning: No root device "live:/dev/disk/by-label/Root" found Without live in the root= arg we end up with fsck errors and mounted file systems. Both full boot logs are attached. Not sure if it just a combination of livecd+iscsi that isnt just setup to work together yet or what.
Created attachment 564564 [details] with live arg
Created attachment 564565 [details] wo live arg
Can you try the dracut version from F17?
rebuilt dracut-016-9.git20120217.fc17.src.rpm on f16 and built iso with it. Seems like with live: activated it wont login to the iscsi target. ----------------- with live [ 4.139860] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 4.649597] udevd[133]: starting version 173 [ 4.836794] device-mapper: multipath: version 1.3.0 loaded [ 4.916032] dracut: rd.md=0: removing MD RAID activation [ 4.987648] device-mapper: multipath round-robin: version 1.0.0 loaded [ 6.085622] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) [ 6.139549] 8139cp 0000:00:07.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 [ 6.402579] 8139cp 0000:00:07.0: eth2: RTL-8139C+ at 0xffffc90000508000, 52:54:00:fc:19:89, IRQ 11 [ 6.515594] 8139cp 0000:00:08.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11 [ 6.627964] 8139cp 0000:00:08.0: eth3: RTL-8139C+ at 0xffffc9000051c000, 52:54:00:73:8d:62, IRQ 11 [ 6.698483] 8139too: 8139too Fast Ethernet driver 0.9.28 iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 iscsistart: Missing or Invalid version from /sys/module/scsi_transport_iscsi/version. Make sure a up to date scsi_transport_iscsi module is loaded and a up todate version of iscsid is running. Exiting... [ 34.049659] dracut Warning: Unable to process initqueue dracut Warning: Unable to proces[ 34.051137] dracut Warning: /dev/disk/by-label/Root does not exist s initqueue dracut Warning: [ 34.052340] dracut Warning: /dev/mapper/live-rw does not exist /dev/disk/by-label/Root does not exist dracut Warning: /dev/mapper/live-rw does not exist Dropping to debug shell. sh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell dracut:/# ls /dev/disk/by-label Boot BootBackup ovirt-node-image dracut:/# ls /dev/sd* /dev/sda ------------------- w/o live [ 1.463518] device-mapper: multipath round-robin: version 1.0.0 loaded [ 1.558517] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) [ 1.561396] 8139cp 0000:00:07.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 [ 1.577397] 8139cp 0000:00:07.0: eth0: RTL-8139C+ at 0xffffc9000050e000, 52:54:00:fc:19:89, IRQ 11 [ 1.583439] 8139cp 0000:00:08.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11 [ 1.604733] 8139cp 0000:00:08.0: eth1: RTL-8139C+ at 0xffffc9000053a000, 52:54:00:73:8d:62, IRQ 11 [ 1.622064] 8139too: 8139too Fast Ethernet driver 0.9.28 [ 1.712548] 8139cp 0000:00:07.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1 [ 1.768186] Refined TSC clocksource calibration: 1729.018 MHz. iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 iscsistart: transport class version 2.0-870. iscsid version 2.0-872.15.f16 iscsistart: Logging into iqn.2006-01.com.openfiler:tsn.ac316c1511c5 192.168.122.147:3260,1 iscsistart: can not connect to iSCSI daemon (111)! iscsistart: version 2.0-872.15.f16 [ 9.286610] scsi2 : iSCSI Initiator over TCP/IP iscsistart: Connection1:0 to [target: iqn.2006-01.com.openfiler:tsn.ac316c1511c5, portal: 192.168.122.147,3260] through [iface: default] is operational now [ 9.551577] scsi 2:0:0:0: Direct-Access OPNFILER VIRTUAL-DISK 0 PQ: 0 ANSI: 4 [ 9.553566] sd 2:0:0:0: Attached scsi generic sg2 type 0 [ 9.556967] sd 2:0:0:0: [sdb] 17891328 512-byte logical blocks: (9.16 GB/8.53 GiB) [ 9.561008] sd 2:0:0:0: [sdb] Write Protect is off [ 9.563823] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA [ 9.587140] sdb: sdb1 sdb2 sdb3 [ 9.595835] sd 2:0:0:0: [sdb] Attached SCSI disk mount: /dev/sdb2 already mounted or /sysroot busy umount: /sysroot: not mounted [ 10.173865] dracut: Checking ext2: /dev/disk/by-label/Root [ 10.176394] dracut: issuing e2fsck -a /dev/disk/by-label/Root e2fsck: Device or resource busy while trying to open /dev/disk/by-label/Root [ 10.184456] dracut Warning: e2fsck returned with 8 dracut Warning: e2fsck returned with 8 [ 10.189047] dracut Warning: Filesystem mounted or opened exclusively by another program? dracut Warning: Filesystem mounted or opened exclusively by another program? [ 10.195319] dracut Warning: *** An error occurred during the file system check. [ 10.198248] dracut Warning: *** Dropping you to a shell; the system will try dracut Warning: *** An error occurred during the file system check. dracut Warning: [ 10.202539] dracut Warning: *** to mount the filesystem(s), when you leave the shell. *** Dropping you to a shell; the system will try dracut Warning: *** to mount t[ 10.205879] dracut Warning: he filesystem(s), when you leave the shell. dracut Warning: Dropping to debug shell. sh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell (Repair filesystem):/# ls /dev/disk/by-label Boot BootBackup Root RootBackup ovirt-node-image
can you boot with "rd.debug" appended to the kernel command line and save away /run/initramfs/init.log and attach it here? usb stick, nfs, scp might help
Created attachment 564738 [details] init.log.live
iscsistart: Missing or Invalid version from /sys/module/scsi_transport_iscsi/version. Make sure a up to date scsi_transport_iscsi module is loaded and a up todate version of iscsid is running. Exiting...
Did a couple more tests and still confused on where the problem is based on how the kargs are setup it fails differently. Three scenarios below, (bad "root=" label, non live root format, and then correct format) iscsistart only seems to fail when its the correct format netroot=iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 is set on all three tests With bad Root=LABEL=live:Root it logs into the target fine, just the label is wrong. [ 1.640576] 8139too: 8139too Fast Ethernet driver 0.9.28 [ 1.698118] 8139cp 0000:00:03.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1 iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 iscsistart: transport class version 2.0-870. iscsid version 2.0-872.15.f16 iscsistart: Logging into iqn.2006-01.com.openfiler:tsn.ac316c1511c5 192.168.122.147:3260,1 iscsistart: can not connect to iSCSI daemon (111)! iscsistart: version 2.0-872.15.f16 [ 5.228664] scsi2 : iSCSI Initiator over TCP/IP iscsistart: Connection1:0 to [target: iqn.2006-01.com.openfiler:tsn.ac316c1511c5, portal: 192.168.122.147,3260] through [iface: default] is operational now [ 5.495784] scsi 2:0:0:0: Direct-Access OPNFILER VIRTUAL-DISK 0 PQ: 0 ANSI: 4 [ 5.504838] sd 2:0:0:0: Attached scsi generic sg2 type 0 [ 5.506831] sd 2:0:0:0: [sdb] 17891328 512-byte logical blocks: (9.16 GB/8.53 GiB) [ 5.509789] sd 2:0:0:0: [sdb] Write Protect is off [ 5.512203] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA [ 5.527551] sdb: sdb1 sdb2 sdb3 [ 5.532435] sd 2:0:0:0: [sdb] Attached SCSI disk [ 27.242886] dracut Warning: Unable to process initqueue dracut Warning: Unable to process initqueue [ 27.245526] dracut Warning: /dev/disk/by-label/live:Root does not exist dracut Warning: /dev/disk/by-label/live:Root does not exist Dropping to debug shell. sh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell dracut:/# ls /dev/disk/by-label -al total 0 drwxr-xr-x 2 root 0 120 Mar 19 18:52 . drwxr-xr-x 8 root 0 160 Mar 19 18:52 .. lrwxrwxrwx 1 root 0 10 Mar 19 18:52 Boot -> ../../dm-1 lrwxrwxrwx 1 root 0 10 Mar 19 18:52 BootBackup -> ../../dm-2 lrwxrwxrwx 1 root 0 10 Mar 19 18:52 Root -> ../../dm-5 lrwxrwxrwx 1 root 0 9 Mar 19 18:52 ovirt-node-image.iso.edited -> ../../sr0 Without the live: bad Root=LABEL=Root it logs into the target fine, its just not in the right format iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 iscsistart: transport class version 2.0-870. iscsid version 2.0-872.15.f16 iscsistart: Logging into iqn.2006-01.com.openfiler:tsn.ac316c1511c5 192.168.122.147:3260,1 iscsistart: can not connect to iSCSI daemon (111)! iscsistart: version 2.0-872.15.f16 iscsistart: Connection1:0 to [target: iqn.2006-01.com.openfiler:tsn.ac316c1511c5, portal: 192.168.122.147,3260] through [iface: default] is operational now dracut Warning: /sysroot has no proper rootfs layout, ignoring and removing offending mount hook dracut Warning: Can't mount root filesystem Dropping to debug shell. In correct format: root=live:LABEL=Root netroot=iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 ip=eth0:dhcp crashkernel=512M-2G:64M,2G-:128M elevator=deadline rd_NO_LVM rd.luks=0 rd.md=0 rd.dm=0 console=ttyS0,115200n8 [ 0.000000] BIOS-provided physical RAM map: [ 1.080702] dracut: dracut-016-9.git20120217.fc16 [ 1.091147] dracut: rd.luks=0: removing cryptoluks activation [ 1.099938] dracut: root was live:LABEL=Root, is now live:/dev/disk/by-label/Root [ 1.105980] dracut: rd.lvm=0: removing LVM activation [ 1.155088] RPC: Registered named UNIX socket transport module. [ 1.156662] RPC: Registered udp transport module. [ 1.157656] RPC: Registered tcp transport module. [ 1.158689] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.233051] udevd[118]: starting version 173 [ 1.242513] device-mapper: multipath: version 1.3.0 loaded [ 1.254223] dracut: rd.dm=0: removing DM RAID activation [ 1.259806] device-mapper: multipath round-robin: version 1.0.0 loaded [ 1.271926] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2 [ 1.284292] dracut: rd.md=0: removing MD RAID activation [ 1.512868] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) [ 1.533124] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 [ 1.534982] 8139cp 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 [ 1.607275] 8139cp 0000:00:03.0: eth0: RTL-8139C+ at 0xffffc90000900000, 52:54:00:7a:66:b5, IRQ 11 [ 1.623524] 8139too: 8139too Fast Ethernet driver 0.9.28 [ 1.632155] Refined TSC clocksource calibration: 1729.003 MHz. [ 1.800325] 8139cp 0000:00:03.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1 iscsi:192.168.122.147::3260::iqn.2006-01.com.openfiler:tsn.ac316c1511c5 iscsistart: Missing or Invalid version from /sys/module/scsi_transport_iscsi/version. Make sure a up to date scsi_transport_iscsi module is loaded and a up todate version of iscsid is running. Exiting...
Ok, it will not work with the current internal dracut design. I might get it to work in F18.
Discussed at 2012-12-03 blocker review meeting: http://meetbot.fedoraproject.org/fedora-qa/2012-12-03/f18final-blocker-review-1.2.2012-12-03-17.25.log.txt . Rejected as a blocker, this does not clearly hit any of the criteria. Booting an image file stored on iSCSI is not a 'supported remote package source' as mentioned in the most obvious potential criterion - that phrase refers to package sources, stuff you pass with inst.repo= or change on the Installation Source spoke, not places you can boot an ISO from.
This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.