Bug 1565497
| Summary: | Imgbase check FAILED in redhat-virtualization-host-4.2-20180409.1 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | cshao <cshao> | ||||
| Component: | imgbased | Assignee: | Ryan Barry <rbarry> | ||||
| Status: | CLOSED ERRATA | QA Contact: | cshao <cshao> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 4.2.2 | CC: | dfediuck, huzhao, jiaczhan, qiyuan, weiwang, yaniwang, ycui, yzhao | ||||
| Target Milestone: | ovirt-4.2.2 | Keywords: | Rebase, Regression, TestBlocker | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | imgbased-1.0.13 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-05-15 17:57:47 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: |
|
||||||
I saw an error in the attached log /anaconda/ks-script-Lcs1V5.log :
Status: [31m[1mFailure[0m
Reason:
Trying to create a manageable base from '/'
Initial base will be <Base rhvh-4.2.2.1-0.20180409.0 [] />
Initial layer will be <Layer rhvh-4.2.2.1-0.20180409.0+1 />
Creating an initial base <Base rhvh-4.2.2.1-0.20180409.0 [] /> for <LV 'rhvh_dhcp-8-136/root' />
Creating initial layer <Layer rhvh-4.2.2.1-0.20180409.0+1 /> for initial base
Adding a new layer after <Base rhvh-4.2.2.1-0.20180409.0 [] />
Adding a new layer after <Base rhvh-4.2.2.1-0.20180409.0 [] />
New layer will be: <Layer rhvh-4.2.2.1-0.20180409.0+1 />
The root volume does not look like an image
Volume for '/var/crash' was created successful
Volume for '/var/crash' was attached successful
Verifying stream compatability
Migrating /etc (from <LV 'rhvh_dhcp-8-136/rhvh-4.2.2.1-0.20180409.0+1' />)
Migrating /root
Syncing systemd levels
Failed to migrate etc
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 127, in on_new_layer
thread_group_handler(threads)
File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 1512, in thread_group_handler
sys.exit(1)
SystemExit: 1
So, I tried to install redhat-virtualization-host-4.2-20180409.1 with kickstart file, and captured the detailed infos:
2018-04-10 16:10:22,787 [INFO] (MainThread) Trying to create a manageable base from '/'
2018-04-10 16:10:23,005 [INFO] (MainThread) Initial base will be <Base rhvh-4.2.2.1-0.20180409.0 [] />
2018-04-10 16:10:23,006 [INFO] (MainThread) Initial layer will be <Layer rhvh-4.2.2.1-0.20180409.0+1 />
2018-04-10 16:10:23,006 [INFO] (MainThread) Creating an initial base <Base rhvh-4.2.2.1-0.20180409.0 [] /> for <LV 'rhvh_test/root' />
2018-04-10 16:10:23,531 [INFO] (MainThread) Creating initial layer <Layer rhvh-4.2.2.1-0.20180409.0+1 /> for initial base
2018-04-10 16:10:23,531 [INFO] (MainThread) Adding a new layer after <Base rhvh-4.2.2.1-0.20180409.0 [] />
2018-04-10 16:10:23,532 [INFO] (MainThread) Adding a new layer after <Base rhvh-4.2.2.1-0.20180409.0 [] />
2018-04-10 16:10:23,532 [INFO] (MainThread) New layer will be: <Layer rhvh-4.2.2.1-0.20180409.0+1 />
2018-04-10 16:10:24,485 [ERROR] (MainThread) The root volume does not look like an image
2018-04-10 16:10:26,021 [INFO] (MainThread) Volume for '/var/crash' was created successful
2018-04-10 16:10:26,313 [INFO] (MainThread) Volume for '/var/crash' was attached successful
2018-04-10 16:10:26,551 [INFO] (migrate_etc) Verifying stream compatability
2018-04-10 16:10:26,623 [INFO] (migrate_etc) Migrating /etc (from <LV 'rhvh_test/rhvh-4.2.2.1-0.20180409.0+1' />)
2018-04-10 16:10:27,395 [INFO] (migrate_etc) Migrating /root
2018-04-10 16:10:27,397 [INFO] (fix_systemd_services) Syncing systemd levels
2018-04-10 16:10:31,441 [ERROR] (MainThread) Failed to migrate etc
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 127, in on_new_layer
thread_group_handler(threads)
File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 1512, in thread_group_handler
sys.exit(1)
SystemExit: 1
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/site-packages/imgbased/__main__.py", line 53, in <module>
CliApplication()
File "/usr/lib/python2.7/site-packages/imgbased/__init__.py", line 82, in CliApplication
app.hooks.emit("post-arg-parse", args)
File "/usr/lib/python2.7/site-packages/imgbased/hooks.py", line 120, in emit
cb(self.context, *args)
File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 173, in post_argparse
layout.initialize(args.source, args.init_nvr)
File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 220, in initialize
self.app.imgbase.init_layout_from(source, init_nvr)
File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 293, in init_layout_from
self.add_layer(initial_base, new_layer)
File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 192, in add_layer
self.hooks.emit("new-layer-added", prev_lv, new_lv)
File "/usr/lib/python2.7/site-packages/imgbased/hooks.py", line 120, in emit
cb(self.context, *args)
File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 130, in on_new_layer
raise ConfigMigrationError()
imgbased.plugins.osupdater.ConfigMigrationError
So, the installation is failed, this is the reason of imgbase check failure.
Test version; rhvh-4.2.2.1-0.20180410.0+1 imgbased-1.0.13-0.1.el7ev.noarch # imgbase check Status: OK Bootloader ... OK Layer boot entries ... OK Valid boot entries ... OK Mount points ... OK Separate /var ... OK Discard is used ... OK Basic storage ... OK Initialized VG ... OK Initialized Thin Pool ... OK Initialized LVs ... OK Thin storage ... OK Checking available space in thinpool ... OK Checking thinpool auto-extend ... OK There is no FAILED nor error info, so the bug is fixed, change bug status to VERIFIED. 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. https://access.redhat.com/errata/RHSA-2018:1524 BZ<2>Jira Resync |
Created attachment 1419704 [details] /var/log/*; /tmp/*; sosreport Description of problem: Imgbase check FAILED in redhat-virtualization-host-4.2-20180409.1 Version-Release number of selected component (if applicable): redhat-virtualization-host-4.2-20180409.1 imgbased-1.0.12-0.1.el7ev.noarch How reproducible: 100% Steps to Reproduce: 1. Install redhat-virtualization-host-4.2-20180409.1 via PXE. 2. Reboot and login NGN #imgbase check 3. Actual results: 1. After step 2, The status is FAILED: # imgbase check Status: FAILED Bootloader ... FAILED - It looks like there are no valid bootloader entries. Please ensure this is fixed before rebooting. Layer boot entries ... FAILED - No bootloader entries which point to imgbased layers Valid boot entries ... FAILED - No valid boot entries for imgbased layers or non-imgbased layers Mount points ... FAILED - This can happen if the installation was performed incorrectly Separate /var ... OK Discard is used ... FAILED - 'discard' mount option was not added or got removed Basic storage ... OK Initialized VG ... OK Initialized Thin Pool ... OK Initialized LVs ... OK Thin storage ... OK Checking available space in thinpool ... OK Checking thinpool auto-extend ... OK ============ # imgbase w 2018-04-10 02:36:11,237 [ERROR] (MainThread) The root volume does not look like an image Traceback (most recent call last): File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/lib/python2.7/site-packages/imgbased/__main__.py", line 53, in <module> CliApplication() File "/usr/lib/python2.7/site-packages/imgbased/__init__.py", line 82, in CliApplication app.hooks.emit("post-arg-parse", args) File "/usr/lib/python2.7/site-packages/imgbased/hooks.py", line 120, in emit cb(self.context, *args) File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 166, in post_argparse msg = "You are on %s" % app.imgbase.current_layer() File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 382, in current_layer return self.image_from_path(lv) File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 147, in image_from_path return Image.from_lv_name(name) File "/usr/lib/python2.7/site-packages/imgbased/naming.py", line 328, in from_lv_name return cls.from_nvr(lv_name) File "/usr/lib/python2.7/site-packages/imgbased/naming.py", line 323, in from_nvr return Base(nvr) File "/usr/lib/python2.7/site-packages/imgbased/naming.py", line 384, in __init__ self.nvr = NVR.parse(nvr) # For convenience: Parse if necessary File "/usr/lib/python2.7/site-packages/imgbased/naming.py", line 277, in parse raise RuntimeError("Failed to parse NVR: %s" % nvr) RuntimeError: Failed to parse NVR: root Expected results: 1. After step 2, there should be no FAILED nor error info Additional info: