Bug 880030

Summary: The /EFI/redhat/grub.conf missed backup version and the grub title does not update to latest after upgrade rhev-h via cmdline in uefi mode
Product: Red Hat Enterprise Linux 6 Reporter: haiyang,dong <hadong>
Component: ovirt-nodeAssignee: Mike Burns <mburns>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.4CC: acathrow, bsarathy, chchen, cshao, gouyang, hadong, hambrose, jboggs, leiwang, mburns, ovirt-maint, thildred, ycui
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-node-2.5.0-10.el6 Doc Type: Bug Fix
Doc Text:
Previously, a successful kernel upgrade of a Red Hat Enterprise Virtualization Hypervisor node in UEFI mode updated the backup boot option in /grub/grub.conf instead of /EFI/redhat/grub.conf. Booting the backup option from the grub menu in UEFI mode failed as a result. Now, the correct grub configuration is updated on upgrade, and the backup kernel boot option works as expected in UEFI mode.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-28 16:46:04 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:

Description haiyang,dong 2012-11-26 03:37:10 UTC
Description of problem:
In fact, rhev-h used the /EFI/redhat/grub.conf in /dev/mapper/36782bcb03cdfa200174636ff055184dcp1 to boot rhev-h under uefi mode.
But when upgrade rhev-h via cmdline in uefi mode, rhev-h still saved the backup version in the /grub/grub.conf of /dev/mapper/36782bcb03cdfa200174636ff055184dcp3
So that when upgrade rhev-h via cmdline in uefi mode success, it couldn't find to the backup version to boot.

Also noticed that the grub title does not update to latest in the /EFI/redhat/grub.conf.

No this issue when upgrade rhev-h  via tui/rhev-m in uefi mode

Version-Release number of selected component (if applicable):
rhev-hypervisor6-6.4-20121031.0.el6

How reproducible:
100%

Steps to Reproduce:
1.install the old rhev-h in uefi mode.
2.upgrade the rhev-h  via cmdline in uefi mode.

Actual result:
After upgrade rhev-h from rhev-hypervisor6-6.4-20121031.0.el6 to rhev-hypervisor6-6.4-20121120.0.el6 via cmdline in uefi mode.
we only selected the new version to boot,the /EFI/redhat/grub.conf missed the backup version part

[root@dell-per510-01 admin]# mount /dev/mapper/36782bcb03cdfa200174636ff055184dcp1 /mnt
[root@dell-per510-01 admin]# mount
..........
/dev/mapper/36782bcb03cdfa200174636ff055184dcp3 on /dev/.initramfs/live type unknown (ro)
/dev/mapper/36782bcb03cdfa200174636ff055184dcp1 on /mnt type vfat (rw)
...........
[root@dell-per510-01 admin]# cat /mnt/EFI/redhat/grub.conf 
device (hd0) HD(1,800,79800,739c6818-37e6-4783-bf1f-102d1c056e82)
default saved
timeout 5
hiddenmenu
splashimage=(hd0,2)/grub/splash.xpm.gz
title RHEV Hypervisor 6.4-20121031.0.el6
    root (hd0,2)
    kernel /vmlinuz0 root=live:LABEL=Root ro rootfstype=auto rootflags=ro crashkernel=512M-2G:64M,2G-:128M elevator=deadline rhgb quiet rd_NO_LVM rd.luks=0 rd.md=0 rd.dm=0
    initrd /initrd0.img

    [root@dell-per510-01 admin]# cat /dev/.initramfs/live/grub/grub.conf 
default saved
timeout 5
hiddenmenu
title Red Hat Enterprise Virtualization Hypervisor (6.4-20121120.0)
    root (hd0,2)
    kernel /vmlinuz0 root=live:LABEL=Root ro rootfstype=ext2 rootflags=ro crashkernel=512M-2G:64M,2G-:128M elevator=deadline rhgb quiet rd_NO_LVM rd.luks=0 rd.md=0 rd.dm=0
    initrd /initrd0.img
title BACKUP Red Hat Enterprise Virtualization Hypervisor (6.4-20121031.0.el6)
    root (hd0,1)
    kernel /vmlinuz0 root=live:LABEL=RootBackup ro rootfstype=ext2 rootflags=ro crashkernel=512M-2G:64M,2G-:128M elevator=deadline rhgb quiet rd_NO_LVM rd.luks=0 rd.md=0 rd.dm=0
    initrd /initrd0.img
    savedefault

Expect result:
The /EFI/redhat/grub.conf could save the backup version part when upgrade rhev-h via cmdline in uefi mode

Comment 5 haiyang,dong 2012-12-19 02:38:33 UTC
Test version:
rhev-hypervisor6-6.4-20121212.1.el6 
ovirt-node-2.5.0-11.el6

Tested as follows:
1.install the rhev-h in uefi mode.
2.upgrade the rhev-h via cmdline in uefi mode.

[root@localhost admin]# mount /dev/mapper/1ATA_SAMSUNG_HD322GM_S2PAJ90B519911p1 /mnt
[root@localhost admin]# cat /mnt/EFI/redhat/grub.conf 
device (hd0) HD(1,800,79800,8fbadf70-7650-4104-8447-1f46e41fddc3)
default saved
timeout 5
hiddenmenu
splashimage=(hd0,1)/grub/splash.xpm.gz
title RHEV Hypervisor 6.4-20121212.1
    root (hd0,1)
    kernel /vmlinuz0 root=live:LABEL=Root ro rootfstype=auto rootflags=ro crashkernel=512M-2G:64M,2G-:128M elevator=deadline rhgb quiet rd_NO_LVM rd.luks=0 rd.md=0 rd.dm=0
    initrd /initrd0.img
    
title BACKUP RHEV Hypervisor 6.4-20121212.1
    root (hd0,2)
    kernel /vmlinuz0 root=live:LABEL=RootBackup ro rootfstype=auto rootflags=ro crashkernel=512M-2G:64M,2G-:128M elevator=deadline rhgb quiet rd_NO_LVM rd.luks=0 rd.md=0 rd.dm=0
    initrd /initrd0.img
    savedefault
    [root@localhost admin]# 

so this bug has been fixed, change the status into "VERIFIED"

Comment 7 errata-xmlrpc 2013-02-28 16:46:04 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-2013-0556.html