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

Bug 1426172

Summary: RHVH new build boot entry miss when upgrade from wrapper to wrapper
Product: [oVirt] ovirt-node Reporter: jianwu <jiawu>
Component: Installation & UpdateAssignee: Ryan Barry <rbarry>
Status: CLOSED CURRENTRELEASE QA Contact: jianwu <jiawu>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0CC: bugs, cshao, dguo, gklein, jiawu, leiwang, lsurette, rbalakri, rbarry, Rhev-m-bugs, srevivo, weiwang, yaniwang, ycui, ykaul, ylavi, yzhao
Target Milestone: ovirt-4.1.1Keywords: ZStream
Target Release: 4.1Flags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
cshao: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: imgbased-0.9.14-0.1.el7ev Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1428375 (view as bug list) Environment:
Last Closed: 2017-04-21 09:40:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1428375    
Attachments:
Description Flags
grub file
none
picture 1 for details
none
picture 2 for details
none
0222_update_log1 none

Description jianwu 2017-02-23 11:12:07 UTC
Description of problem:
After register to RHEVM, when upgrade from wrapper to wrapper, the latest build boot entry miss and could not enter new RHVH.

Version-Release number of selected component (if applicable):
RHVH-4.0-20160919.1-RHVH-x86_64-dvd1.iso (first build)
redhat-virtualization-host-image-update-4.0-20161116.1.el7_3.noarch.rpm (second build)
redhat-virtualization-host-4.0-20170222.0.x86_64(new build)
kernel-3.10.0-514.6.2.el7.x86_64
imgbased-0.8.13-0.1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install RHVH-4.0-20160919.1-RHVH-x86_64-dvd1.iso
2. Reboot into new system and register to RHEVM
3. set local repo and run
 "yum install redhat-virtualization-host-image-update-4.0-20161116.1.el7_3.noarch.rpm"
4. Reboot to second build and run "yum update"
5. Reboot into new RHVH

Actual results:
After step 5, new build boot entry miss and fails to log into new system

Expected results:
After step 5, new build entry will display and successfully log into new system

Additional info:
1. It could work when upgrade RHVH-4.0-20160919.1-RHVH-x86_64 to latest one
directly
2. Without register to engine, it is ok from wrapper to wrapper

Comment 1 jianwu 2017-02-23 11:15:23 UTC
Created attachment 1256870 [details]
grub file

Comment 2 jianwu 2017-02-23 11:17:11 UTC
Created attachment 1256873 [details]
picture 1 for details

Comment 3 jianwu 2017-02-23 11:17:56 UTC
Created attachment 1256874 [details]
picture 2 for details

Comment 4 jianwu 2017-02-23 11:23:37 UTC
Created attachment 1256875 [details]
0222_update_log1

Comment 5 jianwu 2017-02-23 11:51:10 UTC
Hi, Ryan

I have emailed to you about this bug's ENV, and because of sosreport too big, so I have copied it to our local nfs storage.

Jiawu
Thanks

Comment 6 Ryan Barry 2017-02-23 13:36:00 UTC
Thanks for the update -

It's very interesting that it works without registering.

The test environment had devices missing from /dev/mapper even though they were present in `lvs` (an issue which was reported separately by RHV QE last week, though only one case and I couldn't reproduce).

I wonder if engine is doing something here.

There is no boot entry because the upgrade process failed (/dev/mapper/rhvh-4.0-0.20160919.0+1 could not be mounted, because no device existed for it even though LVM could see it)

Re-activating all the LVs before updating should fix here.

Comment 7 Red Hat Bugzilla Rules Engine 2017-02-23 18:49:42 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 9 jianwu 2017-03-13 11:52:55 UTC
Hi, 
I have verified this bug on redhat-virtualization-host-4.1-20170308.1.x86_6

Version-Release number of selected component (if applicable):
RHVH-4.0-20160919.1-RHVH-x86_64-dvd1.iso (first build)
redhat-virtualization-host-image-update-4.0-20161116.1.el7_3.noarch.rpm (second build)
redhat-virtualization-host-4.1-20170308.1.x86_6(new build)
imgbased-0.9.17-0.1.el7ev

Test steps:
1. Install RHVH-4.0-20160919.1-RHVH-x86_64-dvd1.iso
2. Reboot into new system and register to RHEVM
3. set local repo and run
 "yum install redhat-virtualization-host-image-update-4.0-20161116.1.el7_3.noarch.rpm"
4. Reboot to second build and run "yum update"
5. Reboot into new RHVH

Test Results:
After step 5, new build entry will display and successfully log into new system, but the oldest build (RHVH-4.0-20160919.1) is gone and there are two layers only,

so I thinks this bug is fixed on this version, I will change status to VERIFIED.