Bug 1323821

Summary: "nothing to do" when yum localinstall tomcat6-6.0.24-94.el6_7.x86_64.rpm from tomcat6-6.0.24-72.el6_5.noarch.rpm
Product: Red Hat Enterprise Linux 6 Reporter: j.ionoff
Component: tomcat6Assignee: Coty Sutherland <csutherl>
Status: CLOSED CURRENTRELEASE QA Contact: tomcat-qe
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5CC: csutherl, j.ionoff
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-07 12:59:31 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:

Description j.ionoff 2016-04-04 20:08:10 UTC
Description of problem:
We can't update tomcat6 from noarch to x86_64 with 'yum localinstall'.

# yum localinstall tomcat6-*.rpm
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 Local Package Process
Examining tomcat6-6.0.24-94.el6_7.x86_64.rpm: tomcat6-6.0.24-94.el6_7.x86_64
Marking tomcat6-6.0.24-94.el6_7.x86_64.rpm as an update to tomcat6-6.0.24-72.el6_5.noarch
Examining tomcat6-admin-webapps-6.0.24-94.el6_7.x86_64.rpm: tomcat6-admin-webapps-6.0.24-94.el6_7.x86_64
Marking tomcat6-admin-webapps-6.0.24-94.el6_7.x86_64.rpm as an update to tomcat6-admin-webapps-6.0.24-72.el6_5.noarch
Examining tomcat6-el-2.1-api-6.0.24-94.el6_7.x86_64.rpm: tomcat6-el-2.1-api-6.0.24-94.el6_7.x86_64
Marking tomcat6-el-2.1-api-6.0.24-94.el6_7.x86_64.rpm as an update to tomcat6-el-2.1-api-6.0.24-72.el6_5.noarch
Examining tomcat6-jsp-2.1-api-6.0.24-94.el6_7.x86_64.rpm: tomcat6-jsp-2.1-api-6.0.24-94.el6_7.x86_64
Marking tomcat6-jsp-2.1-api-6.0.24-94.el6_7.x86_64.rpm as an update to tomcat6-jsp-2.1-api-6.0.24-72.el6_5.noarch
Examining tomcat6-lib-6.0.24-94.el6_7.x86_64.rpm: tomcat6-lib-6.0.24-94.el6_7.x86_64
Marking tomcat6-lib-6.0.24-94.el6_7.x86_64.rpm as an update to tomcat6-lib-6.0.24-72.el6_5.noarch
Examining tomcat6-servlet-2.5-api-6.0.24-94.el6_7.x86_64.rpm: tomcat6-servlet-2.5-api-6.0.24-94.el6_7.x86_64
Marking tomcat6-servlet-2.5-api-6.0.24-94.el6_7.x86_64.rpm as an update to tomcat6-servlet-2.5-api-6.0.24-72.el6_5.noarch
Nothing to do 

Version-Release number of selected component (if applicable):
Tested tomcat6-6.0.24-90.el6.x86_64.rpm and tomcat6-6.0.24-94.el6.x86_64.rpm

How reproducible:
Download tomcat6 packages separately and try to update with 'yum locainstall' or 'yum localupdate' on a RHEL6.5 machine with previously noarch version of tomcat6 installed.

Steps to Reproduce:
1. Install tomcat6 noarch packages (with deps) on a fresh RHEL 6.5.
  - tomcat6-6.0.24-72.el6_5.noarch
  - tomcat6-jsp-2.1-api-6.0.24-72.el6_5.noarch
  - tomcat6-lib-6.0.24-72.el6_5.noarch
  - tomcat6-servlet-2.5-api-6.0.24-72.el6_5.noarch
  - tomcat6-el-2.1-api-6.0.24-72.el6_5.noarch
  - tomcat6-admin-webapps-6.0.24-72.el6_5.noarch
2. Download new tomcat6 x86_64 packages
3. Try to install them with 'yum localinstall'

Actual results:
Nothing done. (yum says nothing to do)

Expected results:
Yum should update packages.

Additional info:
Like some other bugs, maybe "Obsoletes" parameter is missing or not well configured in SPEC file. This may permit update from noarch to x86_64 without a repository.

Comment 2 Coty Sutherland 2016-04-04 21:19:58 UTC
Can you please open a case with Red Hat support and provide a sosreport from the affected machine for our review? I have tried to reproduce the issue on a newly created RHEL 6.5 machine to no avail. Here are my steps:

1. Create new minimal machine
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)

2. Install tomcat6 and yum-utils for yumdownloader
# yum install tomcat6-6.0.24-72.el6_5.noarch yum-utils

3. Download the updated RPMs
# yumdownloader tomcat6 tomcat6-el-2.1-api tomcat6-jsp-2.1-api tomcat6-lib tomcat6-servlet-2.5-api

4. Try to update
# yum localinstall tomcat6-*
Loaded plugins: product-id, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
Setting up Local Package Process
Examining tomcat6-6.0.24-94.el6_7.x86_64.rpm: tomcat6-6.0.24-94.el6_7.x86_64
Marking tomcat6-6.0.24-94.el6_7.x86_64.rpm as an update to tomcat6-6.0.24-72.el6_5.noarch     

</snip>

Upgrade       5 Package(s)

Total size: 3.6 M
Is this ok [y/N]: N
Exiting on user Command

I've tried a couple of other things (adding similarly named packages to try and trip yum update) but nothing seems to reproduce what you're seeing. I'm going to close this for now, but pending the results of the support case, we can reopen it and continue looking into the issue.

Comment 3 j.ionoff 2016-04-04 21:45:36 UTC
Have you tried to delete your yum repository configuration and caches like the bug 872611 ?

Extract from comments on bug 872611 concerning virt-manager package:
> Geyang Kong 2012-11-05 03:20:39 EST

I've retried following steps and reproduced this bug now:

1. Install rhel6.2 with virtualization tools
2. Make sure it has virt-manager-0.8.6-4.el6.noarch
3. Make a rhel6.4 repo(since virt-manager-0.9.0-15 depends on some other packages so this step is necessary).
4. Download virt-manager-0.9.0-15.el6.x86_64.rpm
5. yum update virt-manager
6. rpm -e virt-manager
7. Delete the yum repo created in step 3.(This step is necessary, or yum update will work well)
8. Download virt-manager-0.8.6-4.el6.noarch.rpm and install it.
9. yum update virt-manager-0.9.0-15.el6.x86_64.rpm

Comment 4 Coty Sutherland 2016-04-05 15:02:54 UTC
> Have you tried to delete your yum repository configuration and caches like the bug 872611 ?

I had not...using --disablerepo shows the issue:

+++
# yum --disablerepo="*" localinstall tomcat6-*
Loaded plugins: product-id, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
Setting up Local Package Process
Examining tomcat6-6.0.24-94.el6_7.x86_64.rpm: tomcat6-6.0.24-94.el6_7.x86_64
Marking tomcat6-6.0.24-94.el6_7.x86_64.rpm as an update to tomcat6-6.0.24-78.el6_5.noarch

<snip>

Nothing to do
+++

The rpm install method seems to work fine, or even putting the RPMs into a local repository works. IMO yum shouldn't check any caches when using localinstall, but that's another issue.

Additionally, it's worth noting that the rhel-6.8 tomcat6 RPMs will be reverting back to noarch, so this issue won't exist in builds after 95.

I'll set this back to new for now and test a build containing the obsoletes tag to see if that resolves the problem, but I really think the solution here is using the 6.8 RPMs, once they've released, so it may be closed again later.

Comment 5 Coty Sutherland 2016-06-02 12:06:54 UTC
The RHEL 6.8 erratum for tomcat6 released last month; can you please try the install the RPMs from https://access.redhat.com/errata/RHBA-2016:0870 locally and see if that resolves the issue?

Comment 6 Coty Sutherland 2016-07-07 12:59:31 UTC
I just tested this with the rhel-6.8 RPMs and it works as expected. Please upgrade to consume to fix.

Comment 7 j.ionoff 2016-10-17 12:00:13 UTC
ok, it works with new noarch packages.