Bug 190968

Summary: xen-3.0.2-0.FC5.1 should not bomb if default in grub.conf is not specified
Product: [Fedora] Fedora Reporter: Roy-Magne Mo <rmo>
Component: xenAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: bstein, katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-21 20:06:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 150224    

Description Roy-Magne Mo 2006-05-07 16:13:07 UTC
Description of problem:
If default entry in grub.conf is not specified, pygrub bombs out with a error

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

How reproducible:

Steps to Reproduce:
1. remove or comment out the default line in grub.conf in a xen-guest
Actual results:
# xm create xen04
Using config file "/etc/xen/xen04".
Traceback (most recent call last):
  File "/usr/bin/pygrub", line 260, in ?
    sel = cf.default
  File "/usr/lib/python2.4/site-packages/grub/GrubConf.py", line 193, in
    return self._default
AttributeError: 'GrubConfigFile' object has no attribute '_default'
Error: Boot loader didn't return any data!

Expected results:
pygrub should go to interactive mode, or let me select the entry to boot with
the --entry parameter.

Additional info:

Comment 1 Jeremy Katz 2006-09-21 20:06:10 UTC
This should be fixed now