Bug 1538925 - Failed to upgrade to rhvh-4.1-0.20180125.0
Summary: Failed to upgrade to rhvh-4.1-0.20180125.0
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-node
Classification: oVirt
Component: Installation & Update
Version: 4.1
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ovirt-4.2.1
: ---
Assignee: Yuval Turgeman
QA Contact: Huijuan Zhao
URL:
Whiteboard:
Depends On:
Blocks: 1538935
TreeView+ depends on / blocked
 
Reported: 2018-01-26 07:36 UTC by Huijuan Zhao
Modified: 2018-02-12 11:55 UTC (History)
14 users (show)

Fixed In Version:
Clone Of:
: 1538935 (view as bug list)
Environment:
Last Closed: 2018-02-12 11:55:09 UTC
oVirt Team: Node
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: ovirt-4.2+
rule-engine: blocker+
cshao: testing_ack+


Attachments (Terms of Use)
All logs from host (/tmp/imgbased.log, /var/log/*, sosreport) (10.49 MB, application/x-gzip)
2018-01-26 07:36 UTC, Huijuan Zhao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 86808 0 master MERGED osupdater: fixed TypeError on MountPoint 2018-01-26 08:07:52 UTC
oVirt gerrit 86809 0 ovirt-4.1 MERGED osupdater: fixed TypeError on MountPoint 2018-01-26 08:21:33 UTC
oVirt gerrit 86810 0 ovirt-4.2 MERGED osupdater: fixed TypeError on MountPoint 2018-01-26 08:13:02 UTC

Description Huijuan Zhao 2018-01-26 07:36:48 UTC
Created attachment 1386485 [details]
All logs from host (/tmp/imgbased.log, /var/log/*, sosreport)

Description of problem:
Upgrade failed when upgrade to rhvh-4.1-0.20180125.0
There is failed info during upgrade, and missing new build boot entry.

Version-Release number of selected component (if applicable):
From:
redhat-virtualization-host-4.1-20171101.0
To:
redhat-virtualization-host-4.1-20180125.0


How reproducible:
100%
regression bug

Steps to Reproduce:
1. Clean install redhat-virtualization-host-4.1-20171101.0
2. Reboot and login RHVH4.1, setup local repos, upgrade via:
   # yum update
3. Focus on the upgrade process
4. Reboot, focus on the boot entries

Actual results:
1. After step3, upgrade failed, there is failed info during upgrade:
# yum update
......
--> Running transaction check
---> Package redhat-virtualization-host-image-update.noarch 0:4.1-20180125.0.el7_4 will be obsoleting
---> Package redhat-virtualization-host-image-update-placeholder.noarch 0:4.1-7.0.el7 will be obsoleted
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================
 Package                                           Arch             Version                        Repository                                Size
==================================================================================================================================================
Installing:
 redhat-virtualization-host-image-update           noarch           4.1-20180125.0.el7_4           rhel-7-server-rhvh-4-beta-rpms           615 M
     replacing  redhat-virtualization-host-image-update-placeholder.noarch 4.1-7.0.el7

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

Total download size: 615 M
Is this ok [y/d/N]: y
Downloading packages:
redhat-virtualization-host-image-update-latest.rpm                                                                         | 615 MB  00:00:08    
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : redhat-virtualization-host-image-update-4.1-20180125.0.el7_4.noarch                                                            1/2
warning: %post(redhat-virtualization-host-image-update-4.1-20180125.0.el7_4.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package redhat-virtualization-host-image-update-4.1-20180125.0.el7_4.noarch
  Erasing    : redhat-virtualization-host-image-update-placeholder-4.1-7.0.el7.noarch                                                         2/2
  Verifying  : redhat-virtualization-host-image-update-4.1-20180125.0.el7_4.noarch                                                            1/2
  Verifying  : redhat-virtualization-host-image-update-placeholder-4.1-7.0.el7.noarch                                                         2/2

Installed:
  redhat-virtualization-host-image-update.noarch 0:4.1-20180125.0.el7_4                                                                          

Replaced:
  redhat-virtualization-host-image-update-placeholder.noarch 0:4.1-7.0.el7                                                                        

Complete!

2. After step4, missing new build boot entry


Expected results:
1. After step3, should upgrade successful, there should be no failed/error info during upgrade.
2. After step4, there should be new build boot entry.

Additional info:
1. No such issue in the last build, so this is regression issue.
2. Some errors info in /tmp/imgbased.log:
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 "/tmp/tmp.J55PpYHxLB/usr/lib/python2.7/site-packages/imgbased/__main__.py", line 53, in <module>
    CliApplication()
  File "/tmp/tmp.J55PpYHxLB/usr/lib/python2.7/site-packages/imgbased/__init__.py", line 82, in CliApplication
    app.hooks.emit("post-arg-parse", args)
  File "/tmp/tmp.J55PpYHxLB/usr/lib/python2.7/site-packages/imgbased/hooks.py", line 120, in emit
    cb(self.context, *args)
  File "/tmp/tmp.J55PpYHxLB/usr/lib/python2.7/site-packages/imgbased/plugins/update.py", line 56, in post_argparse
    base_lv, _ = LiveimgExtractor(app.imgbase).extract(args.FILENAME)
  File "/tmp/tmp.J55PpYHxLB/usr/lib/python2.7/site-packages/imgbased/plugins/update.py", line 118, in extract
    "%s" % size, nvr)
  File "/tmp/tmp.J55PpYHxLB/usr/lib/python2.7/site-packages/imgbased/plugins/update.py", line 99, in add_base_with_tree
    new_layer_lv = self.imgbase.add_layer(new_base)
  File "/tmp/tmp.J55PpYHxLB/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 "/tmp/tmp.J55PpYHxLB/usr/lib/python2.7/site-packages/imgbased/hooks.py", line 120, in emit
    cb(self.context, *args)
  File "/tmp/tmp.J55PpYHxLB/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 123, in on_new_layer
    raise ConfigMigrationError()
imgbased.plugins.osupdater.ConfigMigrationError

Comment 2 Huijuan Zhao 2018-01-26 12:48:40 UTC
Update:
Also encountered this issue in redhat-virtualization-host-4.2-20180125.0

Comment 3 Yuval Turgeman 2018-01-26 12:54:10 UTC
(In reply to Huijuan Zhao from comment #2)
> Update:
> Also encountered this issue in redhat-virtualization-host-4.2-20180125.0

Thanks, the fix was added to both versions

Comment 4 Huijuan Zhao 2018-01-28 12:46:59 UTC
This bug is fixed in rhvh-4.1-0.20180126.0 and rhvh-4.2.1.2-0.20180126.0, QE will verify this bug when the status is ON_QA.


1. Test version:
From:
redhat-virtualization-host-4.1-20171101.0
To:
redhat-virtualization-host-4.1-20180126.0

2. Test version:
From:
redhat-virtualization-host-4.1-20180126.0
To:
redhat-virtualization-host-4.2-20180126.0


Test steps:
Same as comment 0

Comment 5 Huijuan Zhao 2018-01-29 05:24:08 UTC
Change the status to VERIFIED according to Comment 4.

Comment 6 Sandro Bonazzola 2018-02-12 11:55:09 UTC
This bugzilla is included in oVirt 4.2.1 release, published on Feb 12th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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