Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1548994

Summary: [downstream clone - 4.1.10] There is error report when upgrade to rhvh-4.1-20180218.0 / rhvh-4.2-20180218.0
Product: Red Hat Enterprise Virtualization Manager Reporter: RHV bug bot <rhv-bugzilla-bot>
Component: rhev-hypervisor-ngAssignee: Yuval Turgeman <yturgema>
Status: CLOSED ERRATA QA Contact: Huijuan Zhao <huzhao>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.10CC: bugs, cshao, dfediuck, dougsland, eheftman, jiawu, mgoldboi, qiyuan, rbarry, sbonazzo, weiwang, yaniwang, ycui, yturgema, yzhao
Target Milestone: ovirt-4.1.10Keywords: Regression, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: 1547864 Environment:
Last Closed: 2018-03-20 16:41:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1547864    
Bug Blocks:    

Description RHV bug bot 2018-02-26 08:14:40 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1547864 +++
======================================================================

Created attachment 1399170 [details]
All logs from host after upgrade, but before reboot host

Description of problem:
It reported error when upgrade to rhvh-4.1-20180218.0

The error likes below:
warning: %post(redhat-virtualization-host-image-update-4.1-20180218.0.el7_5.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package redhat-virtualization-host-image-update-4.1-20180218.0.el7_5.noarch


Version-Release number of selected component (if applicable):
From: redhat-virtualization-host-4.1-20171207.0
To:   redhat-virtualization-host-4.1-20180218.0
      imgbased-0.9.54-0.1.el7ev.noarch


How reproducible:
100%
Regression bug
Keywords: Upgrade


Steps to Reproduce:
1. Install redhat-virtualization-host-4.1-20171207.0
2. Setup local repos to redhat-virtualization-host-4.1-20180218.0, and upgrade host
   # yum update
3. Focus on the upgrade process.
4. Reboot host


Actual results:
1. After step3, upgrade failed. The output looks like below:
# yum update
......
......
Resolving Dependencies
--> Running transaction check
---> Package redhat-virtualization-host-image-update.noarch 0:4.1-20180218.0.el7_5 will be obsoleting
---> Package redhat-virtualization-host-image-update-placeholder.noarch 0:4.1-8.1.el7 will be obsoleted
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================
 Package                                                Arch                  Version                             Repository                                     Size
======================================================================================================================================================================
Installing:
 redhat-virtualization-host-image-update                noarch                4.1-20180218.0.el7_5                rhel-7-server-rhvh-4-beta-rpms                645 M
     replacing  redhat-virtualization-host-image-update-placeholder.noarch 4.1-8.1.el7

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

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

Installed:
  redhat-virtualization-host-image-update.noarch 0:4.1-20180218.0.el7_5                                                                                              

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

Complete!

2. After step4, can login new layer rhvh-4.1-20180218.0


Expected results:
1. After step3, should upgrade successful and no error report during upgrade.


Additional info:
1. It also report the same error when upgrade via "# yum install redhat-virtualization-host-image-update-4.1-20180218.0.el7_5.noarch.rpm"
2. It reported "failed to upgrade host" when upgrade from rhvm side.

(Originally by Huijuan Zhao)

Comment 1 RHV bug bot 2018-02-26 08:14:48 UTC
Created attachment 1399171 [details]
All logs from host after reboot host

(Originally by Huijuan Zhao)

Comment 3 RHV bug bot 2018-02-26 08:14:53 UTC
Created attachment 1399172 [details]
Screenshot when upgrade from rhvm side

(Originally by Huijuan Zhao)

Comment 4 RHV bug bot 2018-02-26 08:14:59 UTC
Created attachment 1399236 [details]
Log in rhvm when upgrade host failed via rhvm side

(Originally by Huijuan Zhao)

Comment 5 RHV bug bot 2018-02-26 08:15:04 UTC
From the imgbase.log, it seems that the update works fine - but when the postinstall script chroots to the new image we get:

[root@node-13316 ~]# chroot /tmp/tmp.lIYi3qQxfl/ rpm -Uvh --quiet --justdb /usr/share/imgbased/*image-update*.rpm 
error: Failed to initialize NSS library

(Originally by Yuval Turgeman)

Comment 7 RHV bug bot 2018-02-26 08:15:14 UTC
The issue also exists in redhat-virtualization-host-4.2-20180218.0

(Originally by Huijuan Zhao)

Comment 10 Huijuan Zhao 2018-03-06 02:35:50 UTC
This issue is fixed in rhvh-4.1-20180305.0 and rhvh-4.2-20180305.0.

Test version 1:
From: redhat-virtualization-host-4.1-20171207.0
To:   redhat-virtualization-host-4.1-20180305.0

Test version 2:
From: redhat-virtualization-host-4.1-20171207.0
To:   redhat-virtualization-host-4.2-20180305.0

Test steps:
Same as comment 0

Test results:
There is no error report during upgrade, upgrade successful.


So change the status to VERIFIED.

Comment 14 errata-xmlrpc 2018-03-20 16:41:23 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-2018:0570

Comment 15 Franta Kust 2019-05-16 13:05:52 UTC
BZ<2>Jira Resync