Bug 1805589
Summary: | grub2-mkconfig produces incorrect config if host installed over iSCSI | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Germano Veit Michel <gveitmic> | ||||||
Component: | redhat-virtualization-host | Assignee: | Nir Levy <nlevy> | ||||||
Status: | CLOSED ERRATA | QA Contact: | cshao <cshao> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 4.3.8 | CC: | cshao, dfediuck, jeharris, lsvaty, mavital, mtessun, nlevy, peyu, qiyuan, sbonazzo, shlei, weiwang, yaniwang, yturgema | ||||||
Target Milestone: | ovirt-4.4.2 | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2020-10-05 13:09:40 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: | |||||||||
Attachments: |
|
Description
Germano Veit Michel
2020-02-21 05:04:49 UTC
Created attachment 1664611 [details]
grub.cfg at step 1
Created attachment 1664612 [details]
grub.cfg at step 3
This issue can be reproduced following the steps in #c0. It also can be reproduced by adding a rd.lvm.lv to /etc/default/grub, see steps: 1. install rhvh-4.3.8.1-0.20200126.0, use auto partitioning 2. check lvs [root@dell-per740-28 ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home rhvh Vwi-aotz-- 1.00g pool00 4.79 pool00 rhvh twi-aotz-- <787.96g 1.98 2.70 rhvh-4.3.8.1-0.20200126.0 rhvh Vwi---tz-k <760.96g pool00 root rhvh-4.3.8.1-0.20200126.0+1 rhvh Vwi-aotz-- <760.96g pool00 rhvh-4.3.8.1-0.20200126.0 1.87 root rhvh Vri---tz-k <760.96g pool00 swap rhvh -wi-ao---- 4.00g tmp rhvh Vwi-aotz-- 1.00g pool00 4.84 var rhvh Vwi-aotz-- 15.00g pool00 3.42 var_crash rhvh Vwi-aotz-- 10.00g pool00 2.86 var_log rhvh Vwi-aotz-- 8.00g pool00 3.30 var_log_audit rhvh Vwi-aotz-- 2.00g pool00 4.78 3. check rd.lvm.lv in /boot/grub2/grub.cfg [root@dell-per740-28 ~]# egrep -o "rd.lvm.lv=[.0-9a-z_/+-]+" /boot/grub2/grub.cfg rd.lvm.lv=rhvh/swap rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1 4. check /etc/default/grub [root@dell-per740-28 ~]# cat /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX='crashkernel=auto spectre_v2=retpoline rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1 rd.lvm.lv=rhvh/swap rhgb quiet' GRUB_DISABLE_RECOVERY="true" 5. Add "rd.lvm.lv=rhvh/var" to GRUB_CMDLINE_LINUX in /etc/default/grub, make sure it's the first rd.lvm.lv in GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX='crashkernel=auto spectre_v2=retpoline rd.lvm.lv=rhvh/var rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1 rd.lvm.lv=rhvh/swap rhgb quiet' 6. run grub2-mkconfig [root@dell-per740-28 ~]# grub2-mkconfig | egrep -o "rd.lvm.lv=[.0-9a-z_/+-]+" Generating grub configuration file ... Found linux image: /boot/rhvh-4.3.8.1-0.20200126.0+1//vmlinuz-3.10.0-1062.12.1.el7.x86_64 Found initrd image: /boot/rhvh-4.3.8.1-0.20200126.0+1/initramfs-3.10.0-1062.12.1.el7.x86_64.img rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1 rd.lvm.lv=rhvh/swap rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1 done As you can see, there is no rd.lvm.lv=rhvh/var, but two rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1 Besides, in my tests, I found if rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1 is the first rd.lvm.lv in GRUB_CMDLINE_LINUX, grub2-mkconfig could generate correct result: [root@dell-per740-28 ~]# cat /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX='crashkernel=auto spectre_v2=retpoline rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1 rd.lvm.lv=rhvh/var rd.lvm.lv=rhvh/swap rhgb quiet' GRUB_DISABLE_RECOVERY="true" [root@dell-per740-28 ~]# grub2-mkconfig | egrep -o "rd.lvm.lv=[.0-9a-z_/+-]+" Generating grub configuration file ... Found linux image: /boot/rhvh-4.3.8.1-0.20200126.0+1//vmlinuz-3.10.0-1062.12.1.el7.x86_64 Found initrd image: /boot/rhvh-4.3.8.1-0.20200126.0+1/initramfs-3.10.0-1062.12.1.el7.x86_64.img rd.lvm.lv=rhvh/var rd.lvm.lv=rhvh/swap rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1 done I tested several rhvh versions, the same results. So seems this is not a regression bug. Besides, as I mentioned in c#3, this bug can be easily reproduced by put a rd.lvm.lv before rd.lvm.lv=rhvh/rhvh-4.3.8.1-0.20200126.0+1, not specific to iSCSI machine. Moving to 4.4.2 not being a regression and not critical for 4.4 GA. We need to discuss about this with grub package maintainer, looks like a grub issue. Qin, does this reproduce on 4.4 ? This is not reproducible on the latest rhvh 4.4, rhvh-4.4.0.16-0.20200401.0. Moving to QA according to comment #10 verify this bug according #c10. 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 (Important: Red Hat Virtualization security, bug fix, and enhancement update), 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://access.redhat.com/errata/RHSA-2020:4172 |