Bug 1152860

Summary: Kickstart can't automatically start installation
Product: Red Hat Enterprise Linux 7 Reporter: Chengyou Liu <cheliu>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: high    
Version: 7.1CC: cheliu, coli, juzhang, michen, scui, shuang, xiagao, xuhan, xutian, yaxue
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-12 20:43:25 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
anacoda.log
none
screenshot when hit the issue none

Description Chengyou Liu 2014-10-15 05:16:58 UTC
Created attachment 947092 [details]
anacoda.log

Description of problem:
Kickstart can't automatically start installation

The process is alive but users must click "Begin Installation" manually to continue to install packages.

Version-Release number of selected component (if applicable):


How reproducible:
3/10

Steps to Reproduce:
1. boot a vm with this:
/bin/qemu-kvm \
    -S  \
    -name 'virt-tests-vm1'  \
    -sandbox off  \
    -M pc  \
    -nodefaults  \
    -vga cirrus  \
    -chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1-20141015-103056-s7mY8zA5,server,nowait \
    -mon chardev=qmp_id_qmpmonitor1,mode=control  \
    -chardev socket,id=serial_id_serial0,path=/tmp/serial-serial0-20141015-103056-s7mY8zA5,server,nowait \
    -device isa-serial,chardev=serial_id_serial0  \
    -chardev socket,id=seabioslog_id_20141015-103056-s7mY8zA5,path=/tmp/seabios-20141015-103056-s7mY8zA5,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20141015-103056-s7mY8zA5,iobase=0x402 \
    -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=03 \
    -drive id=drive_image1,if=none,cache=none,snapshot=off,aio=native,file=/home/autotest-devel/client/tests/virt/shared/data/images/RHEL-Server-7.1-64-virtio.qcow2 \
    -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=1,bus=pci.0,addr=04 \
    -device virtio-net-pci,mac=9a:09:0a:0b:0c:0d,id=idAgaE8C,vectors=4,netdev=idzmJZe1,bus=pci.0,addr=05  \
    -netdev tap,id=idzmJZe1,vhost=on  \
    -m 16384  \
    -smp 16,cores=4,threads=2,sockets=2  \
    -cpu 'Westmere',+kvm_pv_unhalt \
    -drive id=drive_cd1,if=none,snapshot=off,aio=native,media=cdrom,file=/home/autotest-devel/client/tests/virt/shared/data/isos/linux/RHEL7.1-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=/home/autotest-devel/client/tests/virt/shared/data/images/rhel71-64/ks.iso \
    -device ide-cd,id=unattended,drive=drive_unattended,bootindex=3,bus=ide.0,unit=1 \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1  \
    -kernel '/home/autotest-devel/client/tests/virt/shared/data/images/rhel71-64/vmlinuz'  \
    -append 'ksdevice=link ks=cdrom:/dev/sr1:/ks.cfg nicdelay=60 console=ttyS0,115200 console=tty0'  \
    -initrd '/home/autotest-devel/client/tests/virt/shared/data/images/rhel71-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 \
    -enable-kvm \
-monitor stdio
2.
3.

Actual results:
Succeed to install the machine automatically

Expected results:
Not automatically to install packages

Additional info:
ks.cfg:
install
cdrom
graphical
poweroff
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto dhcp
rootpw redhat
firewall --enabled --ssh
selinux --enforcing
timezone --utc Asia/Shanghai
firstboot --disable
bootloader --location=mbr --append="console=tty0 console=ttyS0,115200"
zerombr
clearpart --all --initlabel
autopart
xconfig --startxonboot
services --enable rc-local

%packages --ignoremissing
@base
@core
@development
@additional-devel
@debugging-tools
@network-tools
@fonts
@x11
@gnome-desktop
lftp
gcc
gcc-c++
patch
make
git
nc
NetworkManager
ntpdate
redhat-lsb
numactl-libs
numactl
sg3_utils
hdparm
lsscsi
libaio-devel
perl-Time-HiRes
flex
prelink
-abrt
%end

%post
echo "OS install is completed" > /dev/ttyS0
echo "remove rhgb quiet by grubby" > /dev/ttyS0
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
echo "dhclient" > /dev/ttyS0
dhclient
echo "get repo" > /dev/ttyS0
wget http://fileshare.englab.nay.redhat.com/pub/section2/repo/epel/rhel-autotest.repo -O /etc/yum.repos.d/rhel-autotest.repo
echo "yum makecache" > /dev/ttyS0
yum makecache
echo "yum install -y stress" > /dev/ttyS0
yum install -y stress
echo "chkconfig sshd on" > /dev/ttyS0
chkconfig sshd on
echo "iptables -F" > /dev/ttyS0
iptables -F
echo "echo 0 > selinux/enforce" > /dev/ttyS0
echo 0 > /selinux/enforce
echo "chkconfig NetworkManager on" > /dev/ttyS0
chkconfig NetworkManager on
echo "update ifcfg-*" > /dev/ttyS0
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-*
echo "Disable lock cdrom udev rules" > /dev/ttyS0
sed -i "/--lock-media/s/^/#/" /usr/lib/udev/rules.d/60-cdrom_id.rules 2>/dev/null>&1
echo "ifconfig -a | tee /dev/ttyS0" >> /etc/rc.local
chmod +x /etc/rc.local
ln -sf /etc/rc.local /etc/rc.d/rc.local
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
%end

Comment 2 Chengyou Liu 2014-10-15 05:32:38 UTC
(In reply to Chengyou Liu from comment #0)

> Actual results:
> Succeed to install the machine automatically
> 
> Expected results:
> Not automatically to install packages

Sorry for the wrong description. Should be like this:
Actual results:
Not automatically to install packages

Expected results:
Succeed to install the machine automatically

Version-Release number of selected component (if applicable):
anaconda-19.31.98-1

Comment 4 Chengyou Liu 2014-10-15 05:39:28 UTC
Created attachment 947095 [details]
screenshot when hit the issue

Comment 5 David Shea 2014-10-15 15:53:49 UTC
Can you please attach the kickstart file that you are using, along with the other log files from the installer (storage.log, packaging.log, program.log)?

Comment 7 David Cantrell 2014-12-12 20:43:25 UTC

*** This bug has been marked as a duplicate of bug 1025346 ***