RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 613754 - Local Install and reboot fails
Summary: Local Install and reboot fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node
Version: 6.0
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Alan Pevec
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 627122 (view as bug list)
Depends On: 613679 623846
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-12 18:28 UTC by Mike Burns
Modified: 2016-04-26 15:45 UTC (History)
13 users (show)

Fixed In Version: ovirt-node-1.9.3-12.git0ffa622.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 623846 (view as bug list)
Environment:
Last Closed: 2010-11-11 14:52:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
ovirt.log (35.16 KB, text/plain)
2010-07-12 18:29 UTC, Mike Burns
no flags Details
handle spaces in device names (2.98 KB, patch)
2010-08-23 21:47 UTC, Alan Pevec
no flags Details | Diff
ovirt.log for snapshot 13 (95.02 KB, text/plain)
2010-08-26 07:38 UTC, Vivian Bian
no flags Details
handle spaces in device names, follow-up (10.46 KB, patch)
2010-08-30 21:45 UTC, Alan Pevec
no flags Details | Diff

Description Mike Burns 2010-07-12 18:28:31 UTC
Description of problem:
After configuring through firstboot menu, choosing "local install and reboot" fails. 

Local Installation and Reboot


This option will exit the menu, and require a reboot. 
Please ensure that you have configured the local storage 
and networking correctly on the previous menu before 
continuing.

Current kernel boot parameters are:
ksdevice=bootif lang= rootflags=loop text elevator=deadline ovirt_standalone crashkernel=128M@16M processor.max_cstate=1 console=tty1 console=ttyS0,115200n8 kssendmac

Please enter kernel boot arguments (hit return to use the above): 
Do you wish to continue ([Y]es/[N]o)? y
installing the image.
Root partition not available

ERROR: Local install and reboot FAILED. See /var/log/ovirt.log


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


How reproducible:
Always

Steps to Reproduce:
1.Configure rhev-h through firstboot
2.Choose "Local Install and Reboot"
3.
  
Actual results:
Failure

Expected results:
Installs and reboots

Additional info:

Comment 1 Mike Burns 2010-07-12 18:29:04 UTC
Created attachment 431238 [details]
ovirt.log

Comment 10 Mike Burns 2010-08-13 19:41:47 UTC
I've tried to work around the issue in RHEV-H, but it doesn't appear possible.  I've escalated bz 623846 to be a blocker for RHEL 6 because of this.

Comment 11 Mike Burns 2010-08-13 20:32:25 UTC
Moving to rhev-hypervisor to track inclusion of package with fix in it. No code change should be necessary.

Comment 12 Denise Dumas 2010-08-16 21:10:26 UTC
623846 is in Mod and will be picked up in tonight's nightly compose to enable pre-Snapshot sanity-checking on Tuesday.

Comment 16 Mike Burns 2010-08-17 20:39:25 UTC
This BZ is being closed since it is fixed by the parted bz and no actual changes need to be made on ovirt-node/rhev-h side.

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

Comment 17 Alan Pevec 2010-08-20 12:07:31 UTC
See bug 624781 comment 4 and 6,
there still seems to be inconsistency between /dev/mapper/ and underlying sd* block devices.

Comment 18 Alan Pevec 2010-08-20 12:19:22 UTC
Here's example:

[root@localhost /]# grep parted /live/isolinux/manifest-srpm.txt 
parted-2.1-10.el6.src.rpm

[root@localhost /]# multipath -l /dev/sda  
0QEMU    QEMU HARDDISK   drive-scsi0-0-1 dm-3 QEMU,QEMU HARDDISK
size=2.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=-1 status=active
  `- 0:0:1:0 sda 8:0  active undef running
[root@localhost /]# parted /dev/dm-3 print
Model: Linux device-mapper (multipath) (dm)
Disk /dev/dm-3: 2147MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End     Size    Type     File system  Flags
 1      512B   256MB   256MB   primary  ext2
 2      257MB  512MB   255MB   primary  ext2
 3      512MB  2147MB  1636MB  primary               lvm

[root@localhost /]# parted /dev/sda print
Error: /dev/sda: unrecognised disk label

So we need workaround from bug 623846 comment 14:
[root@localhost /]# echo 3 > /proc/sys/vm/drop_caches
[root@localhost /]# parted /dev/sda print
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 2147MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End     Size    Type     File system  Flags
 1      512B   256MB   256MB   primary  ext2
 2      257MB  512MB   255MB   primary  ext2
 3      512MB  2147MB  1636MB  primary               lvm

It also wouldn't hurt to align partition boundaries to 1M.

Comment 21 Alan Pevec 2010-08-23 21:47:13 UTC
Created attachment 440506 [details]
handle spaces in device names

Comment 26 Vivian Bian 2010-08-26 07:14:51 UTC
checked with rhev-hypervisor-6.0-13 

[ prerequisite ]
A clean machine with no HostVG created 

Steps to Reproduce:
1.Configure rhev-h through firstboot without shared root, and make root + HostVG on the same disk 
2.Choose "Local Install and Reboot"

actual result :
after installation can't boot 

[root@localhost ~]# ll /dev/disk/by-label/
total 0
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 CONFIG -> ../../dm-8
lrwxrwxrwx. 1 root root 11 Aug 26 07:04 DATA -> ../../dm-10
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 LOGGING -> ../../dm-9
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 RootBackup -> ../../dm-4
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 RootUpdate -> ../../dm-5
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 SWAP -> ../../dm-7
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 _rhev-hypervisor -> ../../dm-0
lrwxrwxrwx. 1 root root  9 Aug 26 07:12 rhev-hypervisor -> ../../sr0

There is no partition named Root , RHEVH can't find grub to boot . 


So set bug status to ASSIGNED

Comment 27 Vivian Bian 2010-08-26 07:38:24 UTC
Created attachment 441130 [details]
ovirt.log for snapshot 13

Comment 28 Alan Pevec 2010-08-26 08:34:43 UTC
What do you have in /boot/grub/device.map ?

Comment 29 Vivian Bian 2010-08-26 08:51:17 UTC
(In reply to comment #28)
> What do you have in /boot/grub/device.map ?

nothing under /boot directory , but
[root@localhost boot]# ll /dev/disk/by-label/
total 0
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 CONFIG -> ../../dm-8
lrwxrwxrwx. 1 root root 11 Aug 26 07:04 DATA -> ../../dm-10
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 LOGGING -> ../../dm-9
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 RootBackup -> ../../dm-4
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 RootUpdate -> ../../dm-5
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 SWAP -> ../../dm-7
lrwxrwxrwx. 1 root root 10 Aug 26 07:04 _rhev-hypervisor -> ../../dm-0
lrwxrwxrwx. 1 root root  9 Aug 26 08:48 rhev-hypervisor -> ../../sr0

[root@localhost boot]# mount /dev/dm-5 /mnt
[root@localhost boot]# cat /mnt/boot/grub/device.map 
(hd0) /dev/sda

Comment 31 Alan Pevec 2010-08-30 21:45:07 UTC
Created attachment 442043 [details]
handle spaces in device names, follow-up

Comment 37 Vivian Bian 2010-09-03 05:16:36 UTC
checked with rhev-hypervisor-6.0-13.1 

steps :
1. partition without shared root on SATA, virtio disk , FC LUN , CCISS disk 
2. install locally and reboot 

actual result :
after installation could boot from SATA, virtio disk , FC LUN , CCISS disk 

So set bug status to VERIFIED

Comment 38 Mike Burns 2010-09-03 12:46:43 UTC
*** Bug 627122 has been marked as a duplicate of this bug. ***

Comment 39 releng-rhel@redhat.com 2010-11-11 14:52:16 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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