Bug 1285607

Summary: Initramfs regeneration failed during run command "ovirt-node-rebuild-initramfs"
Product: Red Hat Enterprise Virtualization Manager Reporter: cshao <cshao>
Component: ovirt-nodeAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED ERRATA QA Contact: cshao <cshao>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.0CC: cshao, fdeutsch, gklein, huiwa, huzhao, leiwang, lsurette, mgoldboi, yaniwang, ycui, ykaul
Target Milestone: ovirt-3.6.1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: ovirt-node-3.6.0-0.22.20151126git72acbb2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 14:44:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
/var/log/*.* + sosreport none

Description cshao 2015-11-26 03:35:33 UTC
Created attachment 1099091 [details]
/var/log/*.* + sosreport

Description of problem:
Initramfs regeneration failed during run command "ovirt-node-rebuild-initramfs"

# cat /etc/redhat-release 
Red Hat Enterprise Virtualization Hypervisor (Beta) release 7.2 (20151112.1.el7ev)
# ovirt-node-rebuild-initramfs
INFO - Preparing to regenerate the initramfs
INFO - The regenreation will overwrite the existing
INFO - Rebuilding for kver: 3.10.0-327.el7.x86_64
INFO - Mounting '/liveos' to /boot
ERROR - Initramfs regeneration failed
Traceback (most recent call last):
  File "/sbin/ovirt-node-rebuild-initramfs", line 35, in <module>
  File "/usr/lib/python2.7/site-packages/ovirt/node/utils/system.py", line 1403, in rebuild
    with mounted_boot(source=self.boot_source):
  File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/usr/lib/python2.7/site-packages/ovirt/node/utils/system.py", line 374, in mounted_boot
    raise RuntimeError("Failed to mount /liveos")
RuntimeError: Failed to mount /liveos

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install RHEV-H 7.2
2. Press F2 key to drop to shell
3. Run command "ovirt-node-rebuild-initramfs" to regenerate the initramfs.

Actual results:
Initramfs regeneration failed during run command "ovirt-node-rebuild-initramfs"

Expected results:
"ovirt-node-rebuild-initramfs" can work well.

Additional info:

Comment 1 Fabian Deutsch 2015-11-26 09:52:22 UTC
Is this 100% reproducible?

I can not reproduce it locally.

Comment 3 Fabian Deutsch 2015-11-26 11:47:18 UTC
Another patch was needed for machines like the machine where it failed in comment 0

Comment 5 cshao 2015-12-14 10:09:10 UTC
Test version:

Test steps:
1. Install RHEV-H7.2
2. Run command: 
# ovirt-node-rebuild-initramfs
INFO - Preparing to regenerate the initramfs
INFO - The regenreation will overwrite the existing
INFO - Rebuilding for kver: 3.10.0-327.3.1.el7.x86_64
INFO - Mounting '/liveos' to /boot
INFO - Generating new initramfs '/var/tmp/initrd0.img.new' for kver 3.10.0-327.3.1.el7.x86_64 (this can take a while)
INFO - Installing the new initramfs '/var/tmp/initrd0.img.new' to '/boot/initrd0.img'
INFO - Successfully unmounted /liveos and /boot
INFO - Initramfs regenration completed successfully

Test result:
Initramfs regenration completed successfully.

So the bug is fixed, change bug status to VERIFIED.

Comment 7 errata-xmlrpc 2016-03-09 14:44:03 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.