Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1062898

Summary: anaconda can not fetch kickstart from floppy/cdrom
Product: Red Hat Enterprise Linux 7 Reporter: xhan
Component: anacondaAssignee: Brian Lane <bcl>
Status: CLOSED NOTABUG QA Contact: Release Test Team <release-test-team-automation>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 7.0CC: bcl, coli, michen, xhan, xutian, xwei
Target Milestone: rcKeywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-11 05:38:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
dracut.png
none
serial.log none

Description xhan 2014-02-08 11:49:24 UTC
Created attachment 860879 [details]
dracut.png

Description of problem:

anaconda can not fetch kickstart from cdrom/floppy

Version-Release number of selected component (if applicable):
anaconda-19.31.56-1.el7 shipped in RHEL-7.0-20140206.0 

How reproducible:
100%

Steps to Reproduce:
1.install a rhel7.0 guest with tree RHEL-7.0-20140206.0
   with option :
    -append 'ks=cdrom:/dev/sr1:/ks.cfg nicdelay=60 console=ttyS0,115200 console=tty0'
    or
    -append 'ks=cdrom:/dev/sr1 nicdelay=60 console=ttyS0,115200 console=tty0'

    or 
    -append 'ks=hd:fd0:/ks.cfg nicdelay=60 console=ttyS0,115200 console=tty0'  \
2.
3.

Actual results:
anaconda can not fetch kickstart from cdrom then goes to dracut

[    8.454309] sr0: scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    8.467455] cdrom: Uniform CD-ROM driver Revision: 3.20
[    8.472617] sr1: scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Basic System.
dracut-initqueue[532]: Warning: Could not boot.
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Basic System.
dracut-initqueue[532]: Warning: Could not boot.


Expected results:
installation would be finished successfully

Additional info:
qemu cmd line:
qemu \
    -S  \
    -name 'virt-tests-vm1'  \
    -sandbox off  \
    -M pc  \
    -nodefaults  \
    -vga cirrus  \
    -monitor stdio \
    -chardev socket,id=serial_id_serial0,path=/tmp/serial-serial0-20140208-181236-lmuFHXTz,server,nowait \
    -device isa-serial,chardev=serial_id_serial0  \
    -chardev socket,id=seabioslog_id_20140208-181236-lmuFHXTz,path=/tmp/seabios-20140208-181236-lmuFHXTz,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20140208-181236-lmuFHXTz,iobase=0x402 \
    -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=03 \
    -drive id=drive_image1,if=none,cache=unsafe,snapshot=off,aio=native,file=RHEL-Server-7.0-64-virtio.qcow2 \
    -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=1,bus=pci.0,addr=04 \
    -drive id=drive_image2,if=none,cache=unsafe,snapshot=off,aio=native,file=./RHEL-Server-7.0-64-virtio.qcow2 \
    -device virtio-blk-pci,id=image2,drive=drive_image2,bootindex=4,bus=pci.0,addr=08 \
    -device virtio-net-pci,mac=9a:69:6a:6b:6c:6d,id=id9FBoEf,netdev=id0dGDx0,bus=pci.0,addr=05  \
    -netdev tap,id=id0dGDx0,vhost=on,script=/etc/qemu-ifup  \
    -m 2048  \
    -smp 1,maxcpus=1,cores=1,threads=1,sockets=2  \
    -cpu 'Opteron_G2',+kvm_pv_unhalt \
    -drive id=drive_cd1,if=none,snapshot=off,aio=native,media=cdrom,file=RHEL7.0-Server-x86_64.iso \
    -device ide-cd,id=cd1,drive=drive_cd1,bootindex=2,bus=ide.0,unit=0 \
    -drive id=drive_unattended,if=none,snapshot=off,aio=native,media=cdrom,file=images/rhel70-64/ks.iso \
    -device ide-cd,id=unattended,drive=drive_unattended,bus=ide.1,unit=0 \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1  \
    -kernel 'data/images/rhel70-64/vmlinuz'  \
    -append 'ks=cdrom:/dev/sr1:/ks.cfg nicdelay=60 console=ttyS0,115200 console=tty0'  \
    -initrd 'data/images/rhel70-64/initrd.img'  \
    -vnc :0  \
    -rtc base=utc,clock=host,driftfix=slew  \
    -boot order=cdn,once=d,menu=off  \
    -no-kvm-pit-reinjection \
    -no-shutdown \

Comment 1 xhan 2014-02-08 11:50:27 UTC
Created attachment 860880 [details]
serial.log

Comment 4 xhan 2014-02-10 10:05:19 UTC
The same command line like "ks=hd:fd0:/ks.cfg" can work on 
  RHEL-7.0-20140127.0 tree which is with anaconda-19.31.51-1.el7.

Comment 5 Brian Lane 2014-02-10 20:21:57 UTC
Note that floppy will not work since the floppy driver was removed from the initrd (see bug 1060691) so that the initrd would be small enough to boot on ppc64. cdrom should work though. 

Please run it with rd.debug on the cmdline and attach the captured output to this bug.

Comment 6 xhan 2014-02-11 05:38:27 UTC
When testing the RHEL-7.0-20140206.0 iso, the initrd.img and vmlinuz are not updated to the corresponding version. 

Use the right version of initrd.img file, there is no this problem.

Comment 7 Xu Tian 2014-02-11 06:48:39 UTC
(In reply to Brian C. Lane from comment #5)
> Note that floppy will not work since the floppy driver was removed from the
> initrd (see bug 1060691) so that the initrd would be small enough to boot on
> ppc64. cdrom should work though. 
> 
> Please run it with rd.debug on the cmdline and attach the captured output to
> this bug.(In reply to Brian C. Lane from comment #5)
> Note that floppy will not work since the floppy driver was removed from the
> initrd (see bug 1060691) so that the initrd would be small enough to boot on
> ppc64. cdrom should work though. 

Do you mean floppy driver in x86 initrd was removed too?

> 
> Please run it with rd.debug on the cmdline and attach the captured output to
> this bug.

Comment 8 Brian Lane 2014-02-12 01:17:48 UTC
(In reply to xu from comment #7)
> (In reply to Brian C. Lane from comment #5)
> > Note that floppy will not work since the floppy driver was removed from the
> > initrd (see bug 1060691) so that the initrd would be small enough to boot on
> > ppc64. cdrom should work though. 
> > 
> > Please run it with rd.debug on the cmdline and attach the captured output to
> > this bug.(In reply to Brian C. Lane from comment #5)
> > Note that floppy will not work since the floppy driver was removed from the
> > initrd (see bug 1060691) so that the initrd would be small enough to boot on
> > ppc64. cdrom should work though. 
> 
> Do you mean floppy driver in x86 initrd was removed too?
> 

yes.

Looks like a commit was missing from the rhel7 branch, the fix for bug 1049237 should fix the cdrom problem.