Bug 1670657

Summary: Upgrade RHV 4.2.7 -> 4.2.8 Failure due to Non-fatal POSTUN scriptlet failure in rpm package ovirt-vmconsole-1.0.5-4.el7ev.noarch (+yum transaction rollback traceback)
Product: Red Hat Enterprise Virtualization Manager Reporter: Reartes Guillermo <greartes>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.8CC: aperotti, greartes, michal.skrivanek, mkalinin, ratamir, rbarry, Rhev-m-bugs, sfroemer
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-11 23:47:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
console output of yum
none
engine-setup log none

Description Reartes Guillermo 2019-01-30 04:02:50 UTC
Created attachment 1524833 [details]
console output of yum

Description of problem:

This happend on a lab environment. RHVM can (and probably will) be reinstalled.

I tried to Upgrade RHV 4.2.7 -> 4.2.8 (never had any issues), but this time it failed.
 
The rpm package ovirt-vmconsole-1.0.5-4.el7ev.noarch had a Non-fatal POSTUN scriptlet failure.
Additionally, when yum tried to rollback the transaction, it crashed with a rollback.


Version-Release number of selected component (if applicable):
RHV Upgrade RHV 4.2.7 -> 4.2.8

How reproducible:
Unknown (since it happened on this specific upgrade)

Steps to Reproduce:
1. Upgrade RHVM 4.2.7 to 4.2.8
2. engine-setup fails and is also unable to revert the yum transaction

Actual results:
Failed update procedure.

Expected results:
Successfull update or at least being Successfull in reverting the yum transaction.

Additional info:
Looks vety similar... Bug 1665197

Additional note:
Maybe a little description of the "ovirt Team" drop-down. I am not sure this is the correct one.

Comment 1 Reartes Guillermo 2019-01-30 04:05:26 UTC
Created attachment 1524834 [details]
engine-setup log

Comment 2 Reartes Guillermo 2019-01-30 11:00:21 UTC
# yum history
Complementos cargados:enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager, versionlock
ID     | Linea de comandos        | Día y hora       | Acción(es)     | Modific
-------------------------------------------------------------------------------
    27 |                          | 2019-01-30 00:47 | D, E           |   26 ##
    26 |                          | 2019-01-30 00:44 | I, U           |   26 EE
    25 | update ovirt-engine-setu | 2019-01-30 00:40 | Update         |    7   
    24 |                          | 2018-11-28 22:54 | Update         |   11 EE
    23 | update ovirt-engine-setu | 2018-11-28 22:49 | Update         |    7   
    22 |                          | 2018-11-07 22:25 | Update         |   25 EE
    21 | update rhvm-setup-plugin | 2018-11-07 22:20 | Update         |    8   
    20 | install katello-host-too | 2018-10-20 08:56 | Update         |    1 EE
    19 | install katello-agent    | 2018-10-20 08:54 | O, U           |    7   
    18 | update                   | 2018-09-14 15:56 | I, O, U        |  403 EE
    17 |                          | 2018-09-14 15:43 | I, O, U        |   96 EE
    16 | reinstall rh-postgresql9 | 2018-09-14 15:37 | Reinstall      |    1   
    15 | update ovirt*setup*      | 2018-09-14 15:33 | I, O, U        |   47   
    14 | update katello-agent     | 2018-07-12 18:20 | Update         |    1   
    13 |                          | 2018-04-25 11:52 | Update         |   12   
    12 | update ovirt-engine-setu | 2018-04-25 11:14 | Update         |    7   
    11 |                          | 2018-03-26 19:40 | Update         |   15   
    10 | update ovirt-engine-setu | 2018-03-26 19:34 | Update         |    8   
     9 |                          | 2018-02-03 15:13 | Update         |   12   
     8 | update ovirt-engine-setu | 2018-02-03 14:37 | Update         |    7   
history list

Comment 3 Michal Skrivanek 2019-02-01 13:08:20 UTC
fix will be shipped by bug 1671348
if you can test it before that using ovirt-vmconsole-1.0.6-3 that would be great

Comment 4 Steffen Froemer 2019-02-08 09:02:06 UTC
I've tested the package, but I upgraded the package first, so I don't know if this will work during engine-setup execution.
Afterwards the engine-setup runs successfully


[root@rhhi ~]# yum upgrade ovirt-vmconsole-*
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager,
              : versionlock
Examining ovirt-vmconsole-1.0.6-3.el7ev.noarch.rpm: ovirt-vmconsole-1.0.6-3.el7ev.noarch
Marking ovirt-vmconsole-1.0.6-3.el7ev.noarch.rpm as an update to ovirt-vmconsole-1.0.6-2.el7ev.noarch
Examining ovirt-vmconsole-host-1.0.6-3.el7ev.noarch.rpm: ovirt-vmconsole-host-1.0.6-3.el7ev.noarch
Package ovirt-vmconsole-host not installed, cannot update it. Run yum install to install it instead.
Examining ovirt-vmconsole-proxy-1.0.6-3.el7ev.noarch.rpm: ovirt-vmconsole-proxy-1.0.6-3.el7ev.noarch
Marking ovirt-vmconsole-proxy-1.0.6-3.el7ev.noarch.rpm as an update to ovirt-vmconsole-proxy-1.0.6-2.el7ev.noarch
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try remov$
ng/installing packages by hand (maybe package-cleanup can help).
--> Running transaction check
---> Package ovirt-vmconsole.noarch 0:1.0.6-2.el7ev will be updated
---> Package ovirt-vmconsole.noarch 0:1.0.6-3.el7ev will be an update
---> Package ovirt-vmconsole-proxy.noarch 0:1.0.6-2.el7ev will be updated
---> Package ovirt-vmconsole-proxy.noarch 0:1.0.6-3.el7ev will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================
 Package                     Arch         Version              Repository                                         Size                                                                                                                [23/1532]
=======================================================================================================================
Updating:
 ovirt-vmconsole             noarch       1.0.6-3.el7ev        /ovirt-vmconsole-1.0.6-3.el7ev.noarch             257 k
 ovirt-vmconsole-proxy       noarch       1.0.6-3.el7ev        /ovirt-vmconsole-proxy-1.0.6-3.el7ev.noarch        41 k

Transaction Summary
=======================================================================================================================
Upgrade  2 Packages

Total size: 298 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : ovirt-vmconsole-1.0.6-3.el7ev.noarch                                                                1/4
Failed to resolve allow statement at /etc/selinux/targeted/tmp/modules/400/ovirt_vmconsole/cil:562
semodule:  Failed!
  Updating   : ovirt-vmconsole-proxy-1.0.6-3.el7ev.noarch                                                          2/4
ValueError: Port tcp/2222 already defined
  Cleanup    : ovirt-vmconsole-proxy-1.0.6-2.el7ev.noarch                                                          3/4
  Cleanup    : ovirt-vmconsole-1.0.6-2.el7ev.noarch                                                                4/4
Failed to resolve allow statement at /etc/selinux/targeted/tmp/modules/400/ovirt_vmconsole/cil:562
semodule:  Failed!
warning: %postun(ovirt-vmconsole-1.0.6-2.el7ev.noarch) scriptlet failed, exit status 1
Non-fatal POSTUN scriptlet failure in rpm package ovirt-vmconsole-1.0.6-2.el7ev.noarch
Uploading Package Profile
jb-eap-7-for-rhel-7-server-rpms/x86_64                                                          | 2.4 kB  00:00:00
rhel-7-server-ansible-2-rpms/x86_64                                                             | 2.4 kB  00:00:00
rhel-7-server-rhv-4-tools-rpms/x86_64                                                           | 2.4 kB  00:00:00
rhel-7-server-rhv-4.2-manager-rpms/x86_64                                                       | 2.4 kB  00:00:00
rhel-7-server-rpms/x86_64                                                                       | 2.0 kB  00:00:00
rhel-7-server-satellite-tools-6.3-rpms/x86_64                                                   | 2.1 kB  00:00:00
rhel-7-server-supplementary-rpms/x86_64                                                         | 2.0 kB  00:00:00
  Verifying  : ovirt-vmconsole-1.0.6-3.el7ev.noarch                                                                1/4
  Verifying  : ovirt-vmconsole-proxy-1.0.6-3.el7ev.noarch                                                          2/4
  Verifying  : ovirt-vmconsole-proxy-1.0.6-2.el7ev.noarch                                                          3/4
  Verifying  : ovirt-vmconsole-1.0.6-2.el7ev.noarch                                                                4/4

Updated:
  ovirt-vmconsole.noarch 0:1.0.6-3.el7ev                  ovirt-vmconsole-proxy.noarch 0:1.0.6-3.el7ev

Complete!
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager, versionlock

Comment 5 Ryan Barry 2019-02-11 23:47:36 UTC
Probable duplicate of1671348

*** This bug has been marked as a duplicate of bug 1671348 ***

Comment 6 Red Hat Bugzilla 2023-09-14 04:45:55 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days