Bug 681803

Summary: stage2 doesn't process "bootif" value of network --device in kickstart correctly
Product: Red Hat Enterprise Linux 6 Reporter: Vratislav Podzimek <vpodzime>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: atodorov, rvykydal, rwilliam
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-13.21.127-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 10:30:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 729266    
Bug Blocks:    
Attachments:
Description Flags
Screenshot of an error window appearing during installation
none
anaconda.log
none
ifcfg.log
none
syslog
none
proposed patch fixing "bootif" value processing (NOT TESTED)
none
proposed patch fixing "bootif" value processing (tested and seems to be working) none

Description Vratislav Podzimek 2011-03-03 10:03:04 UTC
Created attachment 482024 [details]
Screenshot of an error window appearing during installation

Description of problem:
When using "bootif" or "ibft" value in network --device in kickstart anaconda crashes in stage2 while processing it. Problem is that it only tries to find a device of a given name or MAC address but it has a "ibft" or "bootif" string which is neither of these.

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

How reproducible:
every time when using "ibft" or "bootif" in network --device

Steps to Reproduce:
1. use a kickstart file with a network --device="ibft" or network --device="bootif" line
2. go through the installation to stage2
  
Actual results:
Anaconda crashes

Expected results:
Anaconda continues in installation with correctly configured network according to value in kickstart file

Comment 2 Vratislav Podzimek 2011-03-03 10:16:07 UTC
Created attachment 482027 [details]
anaconda.log

Comment 3 Vratislav Podzimek 2011-03-03 10:16:49 UTC
Created attachment 482028 [details]
ifcfg.log

Comment 4 Vratislav Podzimek 2011-03-03 10:18:08 UTC
Created attachment 482029 [details]
syslog

Comment 5 Vratislav Podzimek 2011-03-03 11:42:20 UTC
Created attachment 482049 [details]
proposed patch fixing "bootif" value processing (NOT TESTED)

Comment 6 Vratislav Podzimek 2011-03-04 09:50:30 UTC
Created attachment 482259 [details]
proposed patch fixing "bootif" value processing (tested and seems to be working)

Comment 7 Radek Vykydal 2011-04-21 10:07:03 UTC
The "ibft" issue has been fixed in rhel 6.1 as part of bug #638131 (see https://bugzilla.redhat.com/show_bug.cgi?id=638131#c22), I'll keep this bug open to track the "bootif" issue.

Comment 8 RHEL Program Management 2011-05-13 23:07:49 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 10 Radek Vykydal 2011-07-14 09:04:29 UTC
This should be fixed in anaconda-13.21.121-1.

Comment 12 Alexander Todorov 2011-08-09 10:10:14 UTC
During testing I hit bug #729266

Comment 13 Alexander Todorov 2011-08-10 09:01:08 UTC
*** Bug 729266 has been marked as a duplicate of this bug. ***

Comment 14 Alexander Todorov 2011-08-10 09:15:16 UTC
Hi Radek,
with updates.img from bug #729266 here's what I found:


1) If I create a KVM guest which boots from network (PXE) and append my ks.cfg file to the boot command line everything works fine. PXE supplies the BOOTIF= parameter. This works with or without the updates.img. 

2) If I create a regular virt guest not booting from PXE without updates.img then I get the traceback reported in bug 729266.

3) If I create a regular virt guest not booting from PXE with updates.img. The BOOTIF parameter wasn't present on the command line. There was no traceback but I get an error message:
The provided network interface bootif doesn't exist.

Comment 15 Alexander Todorov 2011-08-10 09:16:09 UTC
If the error in 3) is expected we should probably update the message text so that the user knows BOOTIF was not present.

Comment 16 Radek Vykydal 2011-08-10 14:34:19 UTC
(In reply to comment #15)
> If the error in 3) is expected we should probably update the message text so
> that the user knows BOOTIF was not present.

Sounds reasonable, I've updated the updates.img:
http://rvykydal.fedorapeople.org/updates.729266.img

to say:
"Using --device=bootif without BOOTIF= boot option supplied"
in case 3)

Posting for a-d-l review.

Comment 17 Radek Vykydal 2011-08-11 11:32:21 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > If the error in 3) is expected we should probably update the message text so
> > that the user knows BOOTIF was not present.


This should go to anaconda-13.21.127-1.

Comment 19 Alexander Todorov 2011-08-17 15:00:11 UTC
Tested with anaconda-13.21.128. Both scenarios w/w/o BOOTIF= parameter and network --device bootif work as expected.

Comment 20 errata-xmlrpc 2011-12-06 10:30:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1565.html