Bug 1457111 - Failed to install RHVH
Summary: Failed to install RHVH
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: rhev-hypervisor-ng
Version: 4.1.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.1.3
: ---
Assignee: Ryan Barry
QA Contact: Qin Yuan
URL:
Whiteboard:
Depends On:
Blocks: 1368420
TreeView+ depends on / blocked
 
Reported: 2017-05-31 07:25 UTC by Qin Yuan
Modified: 2019-04-28 14:06 UTC (History)
13 users (show)

Fixed In Version: imgbased-0.9.30-0.1.el7ev
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-11 08:41:19 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
/var/log*,/tmp/*,sosreport (8.30 MB, application/x-gzip)
2017-05-31 07:25 UTC, Qin Yuan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1714 0 normal SHIPPED_LIVE redhat-virtualization-host bug fix, and enhancement update 2017-07-11 12:40:41 UTC
oVirt gerrit 77608 0 None MERGED Bump version -- don't try to set LVM thinpool profile 2020-05-11 07:42:37 UTC
oVirt gerrit 77613 0 None MERGED Bump again -- tar is picky about argument ordering 2020-05-11 07:42:37 UTC

Description Qin Yuan 2017-05-31 07:25:46 UTC
Created attachment 1283630 [details]
/var/log*,/tmp/*,sosreport

Description of problem:
Install redhat-virtualization-host-4.1-20170530.0 failed with errors as below:

2017-05-31 14:09:16,693 [INFO] Trying to create a manageable base from '/'
2017-05-31 14:09:17,156 [INFO] Initial base will be <Base rhvh-4.1-0.20170530.0 [] />
2017-05-31 14:09:17,156 [INFO] Initial layer will be <Layer rhvh-4.1-0.20170530.0+1 />
2017-05-31 14:09:17,156 [INFO] Creating an initial base <Base rhvh-4.1-0.20170530.0 [] /> for <LV 'rhvh/root' />
2017-05-31 14:09:18,839 [INFO] Creating initial layer <Layer rhvh-4.1-0.20170530.0+1 /> for initial base
2017-05-31 14:09:18,840 [INFO] Adding a new layer after <Base rhvh-4.1-0.20170530.0 [] />
2017-05-31 14:09:18,840 [INFO] Adding a new layer after <Base rhvh-4.1-0.20170530.0 [] />
2017-05-31 14:09:18,840 [INFO] New layer will be: <Layer rhvh-4.1-0.20170530.0+1 />
2017-05-31 14:09:20,990 [ERROR] Failed to migrate etc
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 112, in on_new_layer
    set_thinpool_profile(imgbase, new_lv)
NameError: global name 'set_thinpool_profile' is not defined
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 51, 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 169, in post_argparse
    layout.initialize(args.source, args.init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 216, in initialize
    self.app.imgbase.init_layout_from(source, init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 292, in init_layout_from
    self.add_layer(initial_base, new_layer)
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 191, 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 132, in on_new_layer
    raise ConfigMigrationError()
imgbased.plugins.osupdater.ConfigMigrationError


Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.1-20170530.0


How reproducible:
100%


Steps to Reproduce:
1. Install redhat-virtualization-host-4.1-20170530.0


Actual results:
1. There are errors as above at the end of installation.


Expected results:
1. Installation could succeed without errors.


Additional info:
1. Try to reboot system after the errors occurred, there is no rhvh boot entry, but still can log into system,
   run "nodectl check":
[root@localtest ~]# nodectl 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
vdsmd ... OK

Comment 1 cshao 2017-05-31 07:46:59 UTC
1. Miss boot entry after upgrade to 4.1-20170530.0, so this bug block upgrade testing.

2. There is also error info during upgrade with "#yum update":
rm: cannot remove ‘/tmp/tmp.tChDzkiKug/usr/share/imgbased/*image-update*.rpm’: No such file or directory

# yum update
Dependencies Resolved

======================================================================================================================================================================
 Package                                                Arch                  Version                             Repository                                     Size
======================================================================================================================================================================
Installing:
 redhat-virtualization-host-image-update                noarch                4.1-20170530.0.el7_3                rhel-7-server-rhvh-4-beta-rpms                545 M
     replacing  redhat-virtualization-host-image-update-placeholder.noarch 4.0-7.1.el7

Transaction Summary
======================================================================================================================================================================
Install  1 Package

Total download size: 545 M
Is this ok [y/d/N]: y
Downloading packages:
redhat-virtualization-host-image-update-latest.rpm                                                                                             | 545 MB  00:00:08     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : redhat-virtualization-host-image-update-4.1-20170530.0.el7_3.noarch                                                                                1/2 
rm: cannot remove ‘/tmp/tmp.tChDzkiKug/usr/share/imgbased/*image-update*.rpm’: No such file or directory
  Erasing    : redhat-virtualization-host-image-update-placeholder-4.0-7.1.el7.noarch                                                                             2/2 
  Verifying  : redhat-virtualization-host-image-update-4.1-20170530.0.el7_3.noarch                                                                                1/2 
  Verifying  : redhat-virtualization-host-image-update-placeholder-4.0-7.1.el7.noarch                                                                             2/2 

Installed:
  redhat-virtualization-host-image-update.noarch 0:4.1-20170530.0.el7_3                                                                                               

Replaced:
  redhat-virtualization-host-image-update-placeholder.noarch 0:4.0-7.1.el7                                                                                            

Complete!

Comment 7 Qin Yuan 2017-06-02 02:57:10 UTC
Test Versions:
redhat-virtualization-host-4.1-20170531.0
imgbased-0.9.30-0.1.el7ev.noarch

Test Steps:
1. Install redhat-virtualization-host-4.1-20170531.0 via PXE

Test Results:
1. Install RHVH successfully.

The bug is fixed, set status to VERIFIED.

Comment 11 cshao 2017-07-06 03:12:07 UTC
Re-verify this bug according #c7.

Comment 13 errata-xmlrpc 2017-07-11 08:41:19 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/RHBA-2017:1714


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