Bug 681803 - stage2 doesn't process "bootif" value of network --device in kickstart correctly
Summary: stage2 doesn't process "bootif" value of network --device in kickstart correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Radek Vykydal
QA Contact: Release Test Team
URL:
Whiteboard:
: 729266 (view as bug list)
Depends On: 729266
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-03 10:03 UTC by Vratislav Podzimek
Modified: 2011-12-06 10:30 UTC (History)
3 users (show)

Fixed In Version: anaconda-13.21.127-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 10:30:30 UTC
Target Upstream Version:


Attachments (Terms of Use)
Screenshot of an error window appearing during installation (43.32 KB, image/png)
2011-03-03 10:03 UTC, Vratislav Podzimek
no flags Details
anaconda.log (6.71 KB, application/octet-stream)
2011-03-03 10:16 UTC, Vratislav Podzimek
no flags Details
ifcfg.log (2.81 KB, application/octet-stream)
2011-03-03 10:16 UTC, Vratislav Podzimek
no flags Details
syslog (65.41 KB, application/octet-stream)
2011-03-03 10:18 UTC, Vratislav Podzimek
no flags Details
proposed patch fixing "bootif" value processing (NOT TESTED) (694 bytes, patch)
2011-03-03 11:42 UTC, Vratislav Podzimek
no flags Details | Diff
proposed patch fixing "bootif" value processing (tested and seems to be working) (827 bytes, patch)
2011-03-04 09:50 UTC, Vratislav Podzimek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1565 0 normal SHIPPED_LIVE anaconda bug fix and enhancement update 2011-12-06 00:39:12 UTC

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


Note You need to log in before you can comment on or make changes to this bug.