Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 922593

Summary: ovirt-node-2.6.1 based on rhel 6.3 repo can't auto install via pxe
Product: [Retired] oVirt Reporter: Wenyi Gao <gwysu>
Component: ovirt-nodeAssignee: Joey Boggs <jboggs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, deeptik, fdeutsch, gaoweny, gwysu, jboggs, mburns, mgoldboi, ovirt-bugs, ovirt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 922772 (view as bug list) Environment:
Last Closed: 2013-11-28 13:55:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 922772    

Description Wenyi Gao 2013-03-18 03:18:26 UTC
Description of problem:

When I install automatically the ovirt-node-2.6.1 iso that I built based on rhel6.3 repo  to our machine via pxe, I ran into the following error:

Starting ovirt-firstboot: Performing automatic disk partitioning
ERROR:ovirtnode.storage:HostVG/AppVG exists on a separate disk
ERROR:ovirtnode.storage:Manual Intervention required

It seems the auto install will stop if the "HostVG"  exists on the
disk on the machine.


In the emergency shell 

[root@mcptest ~]# cat /proc/cmdline
ksdevice=bootif text BOOTIF=eth0 firstboot storage_init=/dev/sda lang= storage_vol=50:1024:512:5:2048:-1 standalone hostname=mcptest
vga=791 rootpw=$1$cfm5kMmj$M1uknfs/8aSeZkJyf/NBC/
root=live:/ovirt-node-image-2.6.1-1.1.el6.iso ssh_pwauth=1
ks=http://9.181.129.219/cblr/svc/op/ks/system/62 rootfstype=auto ro
liveimg nomodeset check rootflags=loop crashkernel=512M-2G:64M,2G-:128M
elevator=deadline processor.max_cstate=1 install rhgb rd_NO_LUKS
rd_NO_MD rd_NO_DM


[root@mcptest ~]# pvs
   PV                                              VG     Fmt Attr
PSize PFree
   /dev/mapper/3600605b003b86620166a1ddb0bfa15b7p4 HostVG lvm2 a--
1.36t    0



We are installing it to the hard disk , and the previous installation is
RHEVH 6.3. During the installation, before performing the disk format, it checks that there is a existing HostVG on the disk, so it stops installing.


There is another question confused me. If I install rhev-hypervisor6-6.4-20130221 with ovirt-node-2.5.0 via pxe, which has same check_existing_hostvg code as what mentioned below,  I can install it successfully, in addition, I do some debug before run
_functions.OVIRT_VARS["OVIRT_ROOT_INSTALL"] = "y"
         if _functions.check_existing_hostvg("") or \
            _functions.check_existing_hostvg("","AppVG"):
             logger.error("HostVG/AppVG exists on a separate disk")
             logger.error("Manual Intervention required")
             return False
         if storage.perform_partitioning():
             return True

[root@mcptest ~]# pvs

I didn't got the HostVG information that got in ovirt-node-2.6.1 version. So I guess ovirt-node-2.5.0 does something about HostVG before check
but ovirt-node-2.6.1 doesn't.

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

How reproducible:



Steps to Reproduce:
1. Build an ovirt-node-2.6.1 iso based on rhel6.3 repo
2. Install the iso to a bare mahcine via pxe, the parameters is like below:

sdevice=bootif text BOOTIF=eth0 firstboot storage_init=/dev/sda lang= storage_vol=50:1024:512:5:2048:-1 standalone hostname=mcptest
vga=791 rootpw=$1$cfm5kMmj$M1uknfs/8aSeZkJyf/NBC/
root=live:/ovirt-node-image-2.6.1-1.1.el6.iso ssh_pwauth=1
ks=http://9.181.129.219/cblr/svc/op/ks/system/62 rootfstype=auto ro
liveimg nomodeset check rootflags=loop crashkernel=512M-2G:64M,2G-:128M
elevator=deadline processor.max_cstate=1 install rhgb rd_NO_LUKS
rd_NO_MD rd_NO_DM

3. 
  
Actual results:

Starting ovirt-firstboot: Performing automatic disk partitioning
ERROR:ovirtnode.storage:HostVG/AppVG exists on a separate disk
ERROR:ovirtnode.storage:Manual Intervention required


Expected results:
Get installed successfully


Additional info:

Comment 1 Deepti 2013-05-08 09:37:26 UTC
Any updates on how when we will have fix for this ? 

Thanks!!!
Deepti.

Comment 2 Fabian Deutsch 2013-11-28 13:55:26 UTC
Hey Wenyi and Deepti,

can you please try ovirt-node-iso-3.0.3 and reopen if necessary.

Comment 3 Wen Yi Gao 2016-12-07 03:25:26 UTC
Thanks for the fix.