Bug 2052835 - When grubenv is less than 1024 bytes, RHVH cannot enter the new layer after upgrade
Summary: When grubenv is less than 1024 bytes, RHVH cannot enter the new layer after u...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: redhat-virtualization-host
Version: 4.4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Sandro Bonazzola
QA Contact: peyu
URL:
Whiteboard: RHVH_el8.5
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-10 06:32 UTC by peyu
Modified: 2022-02-10 08:26 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-10 08:26:42 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
/var/log (2.48 MB, application/gzip)
2022-02-10 06:32 UTC, peyu
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1809367 1 None None None 2022-02-10 06:32:05 UTC
Red Hat Issue Tracker RHV-44674 0 None None None 2022-02-10 06:35:25 UTC

Description peyu 2022-02-10 06:32:05 UTC
Created attachment 1860269 [details]
/var/log

Description of problem:
Modify /boot/grub2/grubenv manually, remove some padding characters to make the file size less than 1024 bytes, then upgrade RHVH, after upgrade, the default layer of the host is the old layer not the new layer.

Version-Release number of selected component (if applicable):
RHVH: Upgrade RHVH from rhvh-4.4.9.4-0.20220107.0+1 to rhvh-4.4.10.1-0.20220208.0+1
RHVM: 4.4.10.5-0.2.el8ev

How reproducible:
100%

Steps to Reproduce:
1. Install "redhat-virtualization-host-4.4.9-202201072228_8.5" and reboot
2. Remove some padding characters in grubenv to make file size less than 1024 bytes
3. Setup upgrade repo in RHVH and point to "redhat-virtualization-host-4.4.10-202202081536_8.5"
4. Add the host to RHVM
5. Upgrade the host via RHVM
6. After upgrade, check the default layer on the host

Actual results:
The default layer on the host is the old layer "rhvh-4.4.9.4-0.20220107.0+1" not the new layer "rhvh-4.4.10.1-0.20220208.0+1".

Expected results:
The default layer on the host is the new layer "rhvh-4.4.10.1-0.20220208.0+1"

Additional info:

Comment 1 Sandro Bonazzola 2022-02-10 08:26:42 UTC
Closing as not a bug. GRUB requires grubenv to be exactly 1kb so removing bytes from it is not something we can support.


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