Bug 882846 - rhev-h still filtered out live usb device in ROOT/HOSTVG_STORAGE_PAGE when boot from PXE
Summary: rhev-h still filtered out live usb device in ROOT/HOSTVG_STORAGE_PAGE when bo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 3.5.0
Assignee: Ryan Barry
QA Contact: Virtualization Bugs
URL:
Whiteboard: node
: 883313 886439 (view as bug list)
Depends On: 858545 node-storage-rewrite
Blocks: 885017
TreeView+ depends on / blocked
 
Reported: 2012-12-03 08:44 UTC by haiyang,dong
Modified: 2016-02-10 20:03 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, a livecd image on a USB disk would be filtered out by the Hypervisor TUI if the Hypervisor was booted from PXE. Now, the USB disk is visible as expected in the TUI if the Hypervisor has been booted from PXE.
Clone Of:
Environment:
Last Closed: 2015-02-11 20:42:21 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:0160 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update 2015-02-12 01:34:52 UTC
oVirt gerrit 27308 0 None None None Never

Description haiyang,dong 2012-12-03 08:44:13 UTC
Description of problem:
Make livecd to USB disk via livecd-iso-to-disk ,then plug that USB media into local host. Boot from PXE.
Enter into ROOT/HOSTVG_STORAGE_PAGE to check that rhev-h still filtered out live usb device in these pages.

when boot from CD media,  rhev-h will list live usb device in ROOT/HOSTVG_STORAGE_PAGE,
so no this issue on booting from cd media

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

How reproducible:
100% 
  
Steps to Reproduce:
1.Make livecd to USB disk via livecd-iso-to-disk
2.Plug that USB media into local host and boot from PXE
3.clean install rhev-h via TUI
4.Enter ROOT/HOSTVG_STORAGE_PAGE

Actual result:
After Step 4,check that rhev-h still filtered out live usb device in these pages.

Expect result:
rhev-h should also list live usb device in ROOT/HOSTVG_STORAGE_PAGE when boot from PXE

Additional info:
Maybe the root cause is that:
When boot from PXE
Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48) 
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ovirtnode.ovirtfunctions import *
>>> get_live_disk()
'/dev/sdb1'
>>> exit()

so rhev-h will filter out live usb device(/dev/sdb) in ROOT/HOSTVG_STORAGE_PAGE

When boot from CD media
Python 2.6.6 (r266:84292, Oct 12 2012, 14:26:36) 
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ovirtnode.ovirtfunctions import *
>>> get_live_disk()
'sr0'
>>> exit()

so rhev-h will list live usb device(/dev/sdb) in ROOT/HOSTVG_STORAGE_PAGE

Comment 2 Joey Boggs 2012-12-03 22:18:21 UTC
if/elif/else loggic needed some tweaks can you try this testbuild:


http://jenkins.virt.bos.redhat.com/jenkins/job/rhev-hypervisor-6/lastSuccessfulBuild/artifact/rhev-hypervisor6-6.4-20121126.0.auto1171.el6.iso


booted from pxe
cd/usb inserted, cd device will show up in list

Comment 3 haiyang,dong 2012-12-04 02:53:02 UTC
(In reply to comment #2)
> if/elif/else loggic needed some tweaks can you try this testbuild:
> 
> 
> http://jenkins.virt.bos.redhat.com/jenkins/job/rhev-hypervisor-6/
> lastSuccessfulBuild/artifact/rhev-hypervisor6-6.4-20121126.0.auto1171.el6.iso
> 
> 
> booted from pxe
> cd/usb inserted, cd device will show up in list

Plug live usb media/CD into local host and booted rhev-hypervisor6-6.4-20121126.0.auto1171.el6 from PXE, can see that:
rhev-h will list live usb device(/dev/sdb) in ROOT/HOSTVG_STORAGE_PAGE

so this iso work well for this bug

Comment 5 cshao 2012-12-12 03:24:52 UTC
*** Bug 883313 has been marked as a duplicate of this bug. ***

Comment 6 Mike Burns 2012-12-14 14:03:15 UTC
patch causes issues seen in bug 886439

Comment 7 Mike Burns 2012-12-14 20:55:37 UTC
*** Bug 886439 has been marked as a duplicate of this bug. ***

Comment 10 Mike Burns 2013-06-10 22:17:36 UTC
Need to rework the filter logic

Test by booting from:

pxe
cdrom
usb (livecd-iso-to-disk)
usb (dd)

Comment 15 Mike Burns 2013-06-27 18:05:20 UTC
This will require reworking the logic for detecting the live device.

We need to ensure that the logic handles the following operating systems

EL6 and derivatives
Fedora 18/19

And the following cases:

1. Boot from disk (/dev/mapper/, /dev/vda, etc)
2. Boot from usb (livecd-iso-to-disk)
3. Boot from usb (dd)
4. Boot from pxe
5. Boot from iso
6. Boot from cd
7. Boot from virtual media

#2 and #3 are *not* the same
#5 and #6 might be the same
#7 is definitely different than #6 (some virtual media don't recognize the label on the disk.

Comment 18 Fabian Deutsch 2014-07-24 16:02:14 UTC
This is a mass change, moving bugs of merged patches into MODIFIED.

Please correct the state, if you think that the move was not justified.

Comment 19 haiyang,dong 2014-11-11 12:12:16 UTC
Test version:
rhev-hypervisor6-6.6-20141107.0.iso
ovirt-node-3.1.0-0.25.20141107gitf6dc7b9.el6.noarch


Test Steps
1.Make livecd to USB disk via livecd-iso-to-disk
2.Plug that USB media into local host and boot from PXE
3.clean install rhev-h via TUI
4.Enter ROOT/HOSTVG_STORAGE_PAGE

Test results:
rhev-h will list live usb device in ROOT/HOSTVG_STORAGE_PAGE when boot from PXE

so this bug has been fixed in in rhevh 6.6 for RHEV 3.5 bulid version, change the status into "VERIFIED"

Comment 21 errata-xmlrpc 2015-02-11 20:42:21 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.

https://rhn.redhat.com/errata/RHEA-2015-0160.html


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