Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1337766

Summary: yum update path/to/*.rpm fails with a transaction
Product: Red Hat Enterprise Linux 6 Reporter: Alois Mahdal <amahdal>
Component: yumAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.8CC: james.antill
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 10:37:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
without repo - stderr
none
without repo - stdout
none
with repo - stderr
none
with repo - stdout
none
yum debug log none

Description Alois Mahdal 2016-05-20 03:03:54 UTC
Description of problem
======================

A certain upgrade around preupgrade-assistant packages cannot be done using
`yum localupdate path/to/rpms/*.rpm`, but can be, using repo created using
createrepo and `file://` protocol.

Here is the transcript:

    [root@sheep-41 ~]# rpm -qa \*upgrade\* | grep -v CoreOS | sort
    preupgrade-assistant-2.1.1-5.el6.x86_64
    preupgrade-assistant-contents-0.6.41-2.el6.noarch
    preupgrade-assistant-debuginfo-2.1.1-5.el6.x86_64
    preupgrade-assistant-tools-2.1.1-5.el6.x86_64
    preupgrade-assistant-ui-2.1.1-5.el6.x86_64
    redhat-upgrade-tool-0.7.43-1.el6.noarch
    [root@sheep-41 ~]# ll ipu-brewinstall/
    total 8012
    -rw-r--r--. 1 root root  207496 May  6 00:46 preupgrade-assistant-2.1.6-5.el6.noarch.rpm
    -rw-r--r--. 1 root root  351912 May  6 00:46 preupgrade-assistant-el6toel7-0.6.49-1.el6.noarch.rpm
    -rw-r--r--. 1 root root 1511540 May  6 00:46 preupgrade-assistant-el6toel7-data-0.20160505-1.el6.noarch.rpm
    -rw-r--r--. 1 root root   34928 May  6 00:46 preupgrade-assistant-tools-2.1.6-5.el6.noarch.rpm
    -rw-r--r--. 1 root root 5990068 May  6 00:46 preupgrade-assistant-ui-2.1.6-5.el6.noarch.rpm
    -rw-r--r--. 1 root root   95536 May  6 00:46 redhat-upgrade-tool-0.7.43-1.el6.noarch.rpm
    [root@sheep-41 ~]# yum update ipu-brewinstall/*
    Loaded plugins: product-id, security, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    Setting up Update Process
    Examining ipu-brewinstall/preupgrade-assistant-2.1.6-5.el6.noarch.rpm: preupgrade-assistant-2.1.6-5.el6.noarch
    Marking ipu-brewinstall/preupgrade-assistant-2.1.6-5.el6.noarch.rpm as an update to preupgrade-assistant-2.1.1-5.el6.x86_64
    Examining ipu-brewinstall/preupgrade-assistant-el6toel7-0.6.49-1.el6.noarch.rpm: preupgrade-assistant-el6toel7-0.6.49-1.el6.noarch
    Package preupgrade-assistant-el6toel7 not installed, cannot update it. Run yum install to install it instead.
    Examining ipu-brewinstall/preupgrade-assistant-el6toel7-data-0.20160505-1.el6.noarch.rpm: preupgrade-assistant-el6toel7-data-0.20160505-1.el6.noarch
    Package preupgrade-assistant-el6toel7-data not installed, cannot update it. Run yum install to install it instead.
    Examining ipu-brewinstall/preupgrade-assistant-tools-2.1.6-5.el6.noarch.rpm: preupgrade-assistant-tools-2.1.6-5.el6.noarch
    Marking ipu-brewinstall/preupgrade-assistant-tools-2.1.6-5.el6.noarch.rpm as an update to preupgrade-assistant-tools-2.1.1-5.el6.x86_64
    Examining ipu-brewinstall/preupgrade-assistant-ui-2.1.6-5.el6.noarch.rpm: preupgrade-assistant-ui-2.1.6-5.el6.noarch
    Marking ipu-brewinstall/preupgrade-assistant-ui-2.1.6-5.el6.noarch.rpm as an update to preupgrade-assistant-ui-2.1.1-5.el6.x86_64
    Examining ipu-brewinstall/redhat-upgrade-tool-0.7.43-1.el6.noarch.rpm: 1:redhat-upgrade-tool-0.7.43-1.el6.noarch
    ipu-brewinstall/redhat-upgrade-tool-0.7.43-1.el6.noarch.rpm: does not update installed package.
    Resolving Dependencies
    --> Running transaction check
    ---> Package preupgrade-assistant.x86_64 0:2.1.1-5.el6 will be updated
    --> Processing Dependency: preupgrade-assistant = 2.1.1 for package: preupgrade-assistant-ui-2.1.1-5.el6.x86_64
    ---> Package preupgrade-assistant.x86_64 0:2.1.1-5.el6 will be obsoleted
    --> Processing Dependency: preupgrade-assistant = 2.1.1 for package: preupgrade-assistant-ui-2.1.1-5.el6.x86_64
    ---> Package preupgrade-assistant.noarch 0:2.1.6-5.el6 will be obsoleting
    ---> Package preupgrade-assistant-tools.x86_64 0:2.1.1-5.el6 will be obsoleted
    ---> Package preupgrade-assistant-tools.x86_64 0:2.1.1-5.el6 will be updated
    ---> Package preupgrade-assistant-tools.noarch 0:2.1.6-5.el6 will be obsoleting
    --> Finished Dependency Resolution
    Error: Package: preupgrade-assistant-ui-2.1.1-5.el6.x86_64 (@brew-build-repo-8R9)
               Requires: preupgrade-assistant = 2.1.1
               Removing: preupgrade-assistant-2.1.1-5.el6.x86_64 (@brew-build-repo-8R9)
                   preupgrade-assistant = 2.1.1-5.el6
               Obsoleted By: preupgrade-assistant-2.1.6-5.el6.noarch (/preupgrade-assistant-2.1.6-5.el6.noarch)
                   preupgrade-assistant = 2.1.6-5.el6
               Updated By: preupgrade-assistant-2.1.6-5.el6.noarch (/preupgrade-assistant-2.1.6-5.el6.noarch)
                   preupgrade-assistant = 2.1.6-5.el6
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    [root@sheep-41 ~]# 

See below for details.


Version-Release number of selected component
============================================

yum-3.2.29-73.el6


How reproducible
================

At times


Steps to Reproduce
==================

See info below for details on "old" vs. "new"

 1. install old RPMs (by `yum install path/to/*.rpm`)

 2. install new RPMs using `yum update /path/to/directory/*`


Actual results
==============

Failure as can be seen above

What *did* work, though, is this:

 *  installing using `rpm -U /path/to/directory/*`

 *  creating custom repo and installing via yum from there.

so the transaction is possible with given RPMs.


Expected results
================

 *  upgraded:    preupgrade-assistant
 *  installed:   preupgrade-assistant-el6toel7
 *  installed:   preupgrade-assistant-el6toel7-data
 *  removed:     preupgrade-assistant-contents
 *  kept as is:  redhat-upgrade-tool


Additional info
===============

There are 2 significant changes done between these releases,
so the transaction is not trivial.  Here are exact versions
and notes:


## Old versions ###

    preupgrade-assistant-2.1.1-5.el6.x86_64
    preupgrade-assistant-debuginfo-2.1.1-5.el6.x86_64
    preupgrade-assistant-tools-2.1.1-5.el6.x86_64
    preupgrade-assistant-ui-2.1.1-5.el6.x86_64
    preupgrade-assistant-contents-0.6.41-2.el6.noarch
    redhat-upgrade-tool-0.7.43-1.el6.noarch

Notice:

 *  p-a is arch-specific
 *  there's this "-contents" component (modules for p-a)


## New versions ###

    preupgrade-assistant-2.1.6-5.el6.noarch
    preupgrade-assistant-tools-2.1.6-5.el6.noarch
    preupgrade-assistant-ui-2.1.6-5.el6.noarch
    preupgrade-assistant-el6toel7-0.6.49-1.el6.noarch
    preupgrade-assistant-el6toel7-data-0.20160505-1.el6.noarch
    redhat-upgrade-tool-0.7.43-1.el6.noarch

Notice:

 *  p-a is now **noarch**
 *  -contents is no more
 *  instead, there are -el6toel7 and -el6toel7-data (separate
    components


### Changes ###

 *  We replaced -contents with 2 separate noarch, single-RPM
    components:

     *  preupgrade-assistant-el6toel7
     *  preupgrade-assistant-el6toel7-data

 *  We converted preupgrade-assistant to a noarch component

 *  redhat-upgrade-tool has not changed

Comment 1 Alois Mahdal 2016-05-20 03:13:29 UTC
(In reply to Alois Mahdal from comment #0)
[...]
> 
> How reproducible
> ================
> 
> At times

...I mean, Always with this transaction.

Comment 2 Alois Mahdal 2016-05-20 03:26:09 UTC
Created attachment 1159783 [details]
without repo - stderr

Comment 3 Alois Mahdal 2016-05-20 03:26:38 UTC
Created attachment 1159784 [details]
without repo - stdout

Comment 4 Alois Mahdal 2016-05-20 03:27:07 UTC
Created attachment 1159785 [details]
with repo - stderr

Comment 5 Alois Mahdal 2016-05-20 03:27:31 UTC
Created attachment 1159786 [details]
with repo - stdout

Comment 6 Alois Mahdal 2016-05-20 03:28:13 UTC
Created attachment 1159787 [details]
yum debug log

Comment 7 Alois Mahdal 2016-05-20 03:30:46 UTC
Note that attachments I have posted are from RHEL6.7, ie. older yum.

Comment 11 Jan Kurik 2017-12-06 10:37:13 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/