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

Bug 498506

Summary: Removing a package from the a channel in the UI doesn't update repo cache
Product: Red Hat Satellite 5 Reporter: Justin Sherrill <jsherril>
Component: WebUIAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Mráka <mmraka>
Severity: medium Docs Contact:
Priority: low    
Version: 530CC: jsefler
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sat530 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 498441 Environment:
Last Closed: 2009-09-10 18:41:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 498441    
Bug Blocks: 485807    

Description Justin Sherrill 2009-04-30 19:30:36 UTC
+++ This bug was initially created as a clone of Bug #498441 +++

When you remove a package from a channel, the new repocache mechanism is never signalled to regenerate the yum cache.  

We should probably add this in ChannelManager.refreshWithNewestPackages() so we cover anytime the newest packages are refreshed to get other cases where we're forgetting to initiate a cache rebuild

--- Additional comment from jsherril on 2009-04-30 15:29:08 EDT ---

579fffa - added call to  ChannelManager.queueChannelChange() within refreshWithNewestPackages(), so we should over everything we need to.

Comment 2 Justin Sherrill 2009-06-05 13:48:22 UTC
1.  Create a custom channel.
2.  Push or add a package to it
3.  Subscribe a system to the channel
4.  run 'yum update packageName' to make sure you can install it 
5.   If you did install it remove it from the system 'rpm -e packageName'
6.  from the webUI remove the package from the channel
7.   wait 10 minutes
8.  Try to yum install it from the client

Expected results:  it shouldn't be available.

Comment 3 Michael Mráka 2009-06-09 09:34:21 UTC
Verified. Satellite-5.3.0-RHEL4-re20090529.0-x86_64

created channel test23 with package libaio-0.3.105-2.x86_64
[root@xen1 ~]# yum list libaio
Available Packages
libaio.x86_64                          0.3.105-2                          test23
[root@xen1 ~]# date
Tue Jun  9 11:18:18 CEST 2009
[root@xen1 ~]# date
Tue Jun  9 11:29:21 CEST 2009
[root@xen1 ~]# yum list libaio
Error: No matching Packages to list
[root@xen1 ~]# yum install libaio
...
No package libaio available.

Comment 4 John Sefler 2009-08-07 18:12:55 UTC
Re-verified in staged (Satellite-5.3.0-RHEL5-re20090724.0) with pushed package updates from Aug 6

on the satellite...
Created a WeatherChannel and pushed a package to it.
[root@dhcp77-153 tmp]# rhnpush --channel=weatherchannel --server=test1182.test.redhat.com --nosig weatherbug-1.0-1.rpm 
Red Hat Network username: john
Red Hat Network password: 
[root@dhcp77-153 tmp]# 
Subscribed a RHEL4 client system to the WeatherChannel

on the client...

[root@fjs-0-12 tmp]# up2date weatherbug

Fetching Obsoletes list for channel: weatherchannel...
########################################

Fetching rpm headers...
########################################

Name                                    Version              Rel               Arch
----------------------------------------------------------------------------------------
weatherbug                              1.0                 1                   i586  


Testing package set / solving RPM inter-dependencies...
There was a package dependency problem. The message was:

Unresolvable chain of dependencies:
weatherbug-1.0-1                         requires jre >= 1.4 
weatherbug  1.0-1                        requires libGLU.so.1
weatherbug  1.0-1                        requires libatk-1.0.so.0
weatherbug  1.0-1                        requires libcairo.so.2
weatherbug  1.0-1                        requires libgnome-2.so.0
weatherbug  1.0-1                        requires libgnomeui-2.so.0
weatherbug  1.0-1                        requires libgnomevfs-2.so.0
weatherbug  1.0-1                        requires libgtk-x11-2.0.so.0
weatherbug  1.0-1                        requires libjawt.so


The following packages were added to your selection to satisfy dependencies:
Package                                Required by
----------------------------------------------------------------------------

[root@fjs-0-12 tmp]# 


on the satellite...
Removed package weatherbug-1.0-1.i586 from the WeatherChannel channel

on the client...
[root@fjs-0-12 tmp]# up2date weatherbug

Fetching package list for channel: weatherchannel...
########################################

Fetching Obsoletes list for channel: weatherchannel...
########################################

Fetching rpm headers...

Name                                    Version              Rel               Arch
----------------------------------------------------------------------------------------


The following packages you requested were not found:
weatherbug


moving to RELEASE_PENDING

Comment 5 Brandon Perkins 2009-09-10 18:41:17 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html