Bug 176123 - up2date --channel checks for updates on all subscribed channels
up2date --channel checks for updates on all subscribed channels
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: up2date (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bret McMillan
Beth Nackashi
:
Depends On:
Blocks: 179651 RHEL3U8CanFix
  Show dependency treegraph
 
Reported: 2005-12-19 11:57 EST by Beth Nackashi
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version: RHBA-2006-0465
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-07-20 11:15:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Beth Nackashi 2005-12-19 11:57:39 EST
Description of problem:
up2date --channel with no specified package checks for updates on all subscribed
channels.  It should only check for updates on the specified channel.

Version-Release number of selected component (if applicable):
up2date-4.4.56-3

How reproducible:
always

Steps to Reproduce:
1.  Install the latest up2date package.
2.  Subscribe a system to a base and at least one child channel.
3.  Run 'up2date --channel <child channel> -l'
  
Actual results:
up2date will check for updates on all subscribed channels


Expected results:
up2date should only check for updates on the specified child channel

Additional info:
[root@rlx-3-04 tmp]# up2date -l --channel rhn-tools-rhel-3-as-i386

Fetching Obsoletes list for channel: rhel-i386-as-3...

Fetching Obsoletes list for channel: rhn-tools-rhel-3-as-i386...
Comment 2 Fanny Augustin 2006-04-10 20:28:15 EDT
Blocking rhnupr4u4 and rhnupr3u8 to track the progress of the release
Comment 3 Fanny Augustin 2006-04-13 15:31:43 EDT
Moving bugs to the CanFix List
Comment 4 Bret McMillan 2006-04-27 14:40:42 EDT
Should be fixed in >= 4.4.69-1  See #178498 for testplan.
Comment 6 Fanny Augustin 2006-05-09 15:37:04 EDT
This Bug has been fixed in this release
Comment 7 Beth Nackashi 2006-05-12 16:33:29 EDT
--channel=foo will now limit the channel universe for any operations, including
-u, pkgname, --installall, --showall, --showavailable, and -l.

Test plan:
1)  install a system, register it to multiple child channels (extras, fastrack,
and rhn-tools work rather well)
2)  use combinations of --channel=channel_label to see if the output makes sense:

'up2date --channel=foo -l' should list the available updated packages within foo.

'up2date --channel=foo --channel=bar --installall' should install anything
within the specified channels

Negative tests include:
 'up2date --channel=channel_i_dont_have_access_to -u'
 'up2date --channel=doesnt_exist --showall'


Manpage has been updated to eliminate the --installall tie.
Comment 8 Beth Nackashi 2006-05-12 17:10:43 EDT
Verified with up2date-4.4.69-8 and rhnlib-1.8.7-1 on i386, ia64, and x86_64.

Shown are example commands from i386 tests:

PASS-  up2date --channel=rhel-i386-as-3-extras -l
PASS-  up2date --channel=rhel-i386-as-3-extras --channel=rhn-tools-rhel-3-as-i386 -l
PASS-   up2date --channel=rhel-i386-as-3-extras
--channel=rhn-tools-rhel-3-as-i386 --installall (theoretically passed, but there
were some unresolved dependencies)

The negative tests resulted in a new bug:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=191555

I also looked at the manpage, and I'm not really sure what I was supposed to be
checking for there, since it looks pretty much like it did before.

Overall, up2date is now proven to only check the specified channel, which was
the point of this bug.
Comment 9 Beth Nackashi 2006-06-02 14:46:31 EDT
Reopening this bug per comments in 178498.
Comment 10 Bret McMillan 2006-06-06 11:55:09 EDT
Packages are built, should be fixed in up2date 4.4.69-14
Comment 11 Beth Nackashi 2006-06-08 14:50:07 EDT
--installall doesn't require a parameter.  Isn't it supposed to?

Comment 12 Bret McMillan 2006-06-14 11:19:46 EDT
It should require a parameter at this point.
Comment 13 Beth Nackashi 2006-06-20 13:14:13 EDT
[root@fjs-0-06 tmp]# up2date --installall=rhn-tools-rhel-3-as-i386
rhn-applet-actions -f
usage: up2date [OPTIONS] [<packages>]

/usr/sbin/up2date: error: --installall option does not take a value
[root@fjs-0-06 tmp]# rpm -q up2date
up2date-4.4.69-14
Comment 14 Bret McMillan 2006-06-20 15:10:03 EDT
-14 had some bad weirdness.  Repaired packages are -16.
Comment 17 Beth Nackashi 2006-06-20 15:42:36 EDT
These commands now work as they should.  This could mean they complete or fail,
depending.

up2date --channel=rhn-tools-rhel-3-as-i386 --channel=rhel-i386-as-3 rhn-applet
rhn-applet-actions -f

up2date --installall rhn-tools-rhel-3-as-i386 rhn-applet-actions -f

up2date --channel rhn-tools-rhel-3-as-i386 rhn-applet 
Comment 19 Red Hat Bugzilla 2006-07-20 11:15:47 EDT
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 the 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/RHBA-2006-0465.html

Note You need to log in before you can comment on or make changes to this bug.