Bug 1565497 - Imgbase check FAILED in redhat-virtualization-host-4.2-20180409.1
Summary: Imgbase check FAILED in redhat-virtualization-host-4.2-20180409.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: imgbased
Version: 4.2.2
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ovirt-4.2.2
: ---
Assignee: Ryan Barry
QA Contact: cshao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-10 06:57 UTC by cshao
Modified: 2019-05-16 13:09 UTC (History)
8 users (show)

Fixed In Version: imgbased-1.0.13
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-15 17:57:47 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
/var/log/*; /tmp/*; sosreport (9.65 MB, application/x-gzip)
2018-04-10 06:57 UTC, cshao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1524 0 None None None 2018-05-15 17:58:58 UTC

Description cshao 2018-04-10 06:57:08 UTC
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:

Comment 1 Qin Yuan 2018-04-10 08:30:05 UTC
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.

Comment 3 cshao 2018-04-11 10:37:57 UTC
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.

Comment 6 errata-xmlrpc 2018-05-15 17:57:47 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.

https://access.redhat.com/errata/RHSA-2018:1524

Comment 7 Franta Kust 2019-05-16 13:09:31 UTC
BZ<2>Jira Resync


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