Bug 1373387 - RHVH 7.3 Miss RHVH 4.0 version info in Grub
Summary: RHVH 7.3 Miss RHVH 4.0 version info in Grub
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-node
Classification: oVirt
Component: Installation & Update
Version: 4.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ovirt-4.0.5
: 4.0
Assignee: Ryan Barry
QA Contact: cshao
URL:
Whiteboard:
: 1373370 (view as bug list)
Depends On: 1337595
Blocks: 1372376 1375561
TreeView+ depends on / blocked
 
Reported: 2016-09-06 07:19 UTC by cshao
Modified: 2017-01-18 07:38 UTC (History)
11 users (show)

Fixed In Version: imgbased-0.8.5-0.1.el7ev
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-18 07:38:06 UTC
oVirt Team: Node
Embargoed:
rule-engine: ovirt-4.0.z+
rule-engine: blocker+
mgoldboi: planning_ack+
fdeutsch: devel_ack+
cshao: testing_ack+


Attachments (Terms of Use)
/var/log/*.*; /tmp/log; sosreport; grub.cfg; ks (7.91 MB, application/x-gzip)
2016-09-06 07:19 UTC, cshao
no flags Details
0826 vs 0817 (12.73 KB, image/png)
2016-09-07 00:59 UTC, cshao
no flags Details
0826-cmdline (12.01 KB, image/png)
2016-09-08 10:19 UTC, cshao
no flags Details

Description cshao 2016-09-06 07:19:40 UTC
Created attachment 1198100 [details]
/var/log/*.*; /tmp/log; sosreport; grub.cfg; ks

Description of problem:
Miss RHVH 4.0 version info in Grub.

Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.0-20160826.0
imgbased-0.8.4-1.el7ev.noarch


How reproducible:
100%


Steps to Reproduce:
1. Install RHVH via ks file in attachment.
2. Reboot RHVH.
3. Focus on Grub.

Actual results:
Miss RHVH 4.0 version info in Grub.

Expected results:
RHVH 4.0 version info can show in Grub.

Additional info:

Comment 1 Fabian Deutsch 2016-09-06 12:04:11 UTC
Could you please provide a screenshot of the incorrect entry?

Comment 2 Ying Cui 2016-09-06 13:20:28 UTC
We can check the grub.cfg in attachment to know the incorrect entry without screenshot.
There are two entries, one entry is 'Red Hat Enterprise Linux (3.10.0-493.el7.x86_64) 7.2', another entry is 'tboot 1.9.4' as submenu.

There is no RHVH entry, probably related to Bug 1373370 - RHVH 4.0_7.3: imgbase check failed.

Comment 3 Fabian Deutsch 2016-09-06 15:10:15 UTC
I requested a screenshot because of bug 1366785, which could indicate that just the wrong grub.cfg is getting updated. Which would mean that the attached grub.cfg is not the one used by grub.

Please, in addition to the info in comment 2, provide a screenshot.

Comment 4 cshao 2016-09-07 00:59:33 UTC
Created attachment 1198473 [details]
0826 vs 0817

Comment 5 Ryan Barry 2016-09-07 18:49:46 UTC
This strongly appears to be identical to rhbz#1373370

I'm not able to reproduce this.

Unfortunately, the anaconda logs are not helpful here (they're still from the build, which I also can't reproduce), but it's clear that the bootloader wasn't updated (rhbz#1373370 occurs because the system is not running on an imgbased layer, as does this).

Can you please provide the method used for installation, including the complete kernel cmdline?

Comment 6 cshao 2016-09-08 10:19:11 UTC
Created attachment 1198985 [details]
0826-cmdline


ks
liveimg --url=http://10.66.10.22:8090/rhvh_ngn/squashimg/redhat-virtualization-host-4.0-20160826.0/redhat-virtualization-host-4.0-20160826.0.x86_64.liveimg.squashfs
%post
imgbase layout --init
%end

The same error after add below line.
imgbase --experimental volume --create /var 4G

Comment 7 Ryan Barry 2016-09-08 14:13:49 UTC
I thought this might be the case...

I'll grab the compose 7.3 stage2 to test.

However, for this bug (or until there's a distilled 7.3 ISO/RHVH 7.3 anaconda build), I would suggest that you install using stage2 from one of the distilled 7.2 ISOs.

This works (and results in an installed 7.3 system), without either of the bugs currently reported on 7.3 (imgbase check failed and no RHVH entry in grub, which are probably the same cause).

I'll report back with whatever I find with the 7.3 stage2.

Comment 8 Ryan Barry 2016-09-08 15:21:10 UTC
*** Bug 1373370 has been marked as a duplicate of this bug. ***

Comment 9 Ryan Barry 2016-09-08 16:39:30 UTC
imgbase initialization fails, because we now expect /var to be a separate volume *before* initialization (as part of osupdater).

In order to test with the platform stage2, please change your partitioning section to:

reqpart --add-boot
part pv.01 --size=42000 --grow
volgroup HostVG pv.01
logvol swap --vgname=HostVG --name=swap --fstype=swap --recommended
logvol none --vgname=HostVG --name=HostPool --thinpool --size=40000 --grow
logvol /    --vgname=HostVG --name=root --thin --poolname=HostPool --fsoptions="defaults,discard" --size=6000
logvol /var --vgname=HostVG --name=var  --thin --poolname=HostPool --fsoptions="defaults,discard" --size=15000

We're actively working on getting the RHV installclass into platform anaconda.

---------------------------------------------------------

In the meantime (for 7.3), I'll update redhat-virtualization-host-productimg to contain the RHV installclass so we can consume platform anaconda directly.

I put a product.img (with .buildstamp added so it gets rebranded) here:
http://cloud.rbarry.org/product.img

If you put it in http://path/to/stage2/images/product.img, anaconda will automatically grab/use it. Then you can use autopartitioning (and exactly the same kickstart as 7.2 builds)

Comment 10 Huijuan Zhao 2016-09-19 05:28:31 UTC
Due to "imgbase check"/"imgbase w"/"imgbase layout" is failed and no RHVH boot entry, this bug will block update from 7.3_4.0 to 7.3_4.0 (from redhat-virtualization-host-4.0-20160826.0 to redhat-virtualization-host-4.0-20160912.1)

Comment 11 Red Hat Bugzilla Rules Engine 2016-09-19 06:18:43 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 12 Ryan Barry 2016-09-19 12:21:08 UTC
(In reply to Huijuan Zhao from comment #10)
> Due to "imgbase check"/"imgbase w"/"imgbase layout" is failed and no RHVH
> boot entry, this bug will block update from 7.3_4.0 to 7.3_4.0 (from
> redhat-virtualization-host-4.0-20160826.0 to
> redhat-virtualization-host-4.0-20160912.1)

Have you tried with the product.img from comment #9?

Comment 13 Huijuan Zhao 2016-09-20 08:19:54 UTC
(In reply to Ryan Barry from comment #12)
> (In reply to Huijuan Zhao from comment #10)
> > Due to "imgbase check"/"imgbase w"/"imgbase layout" is failed and no RHVH
> > boot entry, this bug will block update from 7.3_4.0 to 7.3_4.0 (from
> > redhat-virtualization-host-4.0-20160826.0 to
> > redhat-virtualization-host-4.0-20160912.1)
> 
> Have you tried with the product.img from comment #9?

Tried according to comment #9, all work well:
"imgbase check"/"imgbase w"/"imgbase layout" is ok and there is RHVH boot entry, do not block update anymore.

Test steps:
1. After add below partitioning section to ks, the auto installation can successful. 

reqpart --add-boot
part pv.01 --size=42000 --grow
volgroup HostVG pv.01
logvol swap --vgname=HostVG --name=swap --fstype=swap --recommended
logvol none --vgname=HostVG --name=HostPool --thinpool --size=40000 --grow
logvol /    --vgname=HostVG --name=root --thin --poolname=HostPool --fsoptions="defaults,discard" --size=6000
logvol /var --vgname=HostVG --name=var  --thin --poolname=HostPool --fsoptions="defaults,discard" --size=15000

2. Grub info can show correctly
3. imgbase w -> pass
imgbase check -> pass
imgbase layout -> pass

Comment 14 Fabian Deutsch 2016-09-22 12:11:14 UTC
Just zstream for now, because it seems ot be related to a missing anaconda build

Comment 15 Ryan Barry 2016-09-30 15:47:38 UTC
Can you please test this on the 7.3 distill?

Comment 16 cshao 2016-10-08 08:51:40 UTC
Test version:
redhat-virtualization-host-4.0-20161007.0
RHVH-4.0-20161007.0-RHVH-x86_64-dvd1.iso
imgbased-0.8.5-0.1.el7ev.noarch

Test version
1. Install RHVH via iso.
2. Reboot RHVH.
3. Focus on Grub.

Test results:
RHVH 4.0 version info can show in Grub.

So the bug is fixed, I will verify this bug after "Fixed In Version" area is filled.

Comment 17 cshao 2016-10-10 05:17:07 UTC
Hi Ryan,

Could you help to fill "Fixed In Version" area with suitable version info?

Thanks.

Comment 18 cshao 2016-10-13 02:55:38 UTC
Verify this bug according #c16.


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