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 698525 - when systemid file is removed, yum still reports RHEL channels as available
Summary: when systemid file is removed, yum still reports RHEL channels as available
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum-rhn-plugin
Version: 6.1
Hardware: All
OS: Linux
urgent
medium
Target Milestone: rc
: ---
Assignee: Michael Mráka
QA Contact: Martin Minar
URL:
Whiteboard:
: 732355 (view as bug list)
Depends On:
Blocks: 735137
TreeView+ depends on / blocked
 
Reported: 2011-04-21 06:46 UTC by Jan Hutař
Modified: 2018-11-27 21:34 UTC (History)
6 users (show)

Fixed In Version: yum-rhn-plugin-0.9.1-30-el6
Doc Type: Bug Fix
Doc Text:
Due to an error in rhnplugin, running the "yum repolist" command may have incorrectly reported previously cached channels as available. This update adapts rhnplugin to use the list of cached channels only when the user explicitly requests it (for example, by using the "--cacheonly" command line option).
Clone Of:
Environment:
Last Closed: 2011-12-06 16:49:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1664 0 normal SHIPPED_LIVE rhn-client-tools and yum-rhn-plugin bug fix update 2011-12-06 00:50:18 UTC

Description Jan Hutař 2011-04-21 06:46:32 UTC
Description of problem:
When I remove /etc/sysconfig/rhn/systemid file, `yum repolist` still shows RHN channels as available.


Version-Release number of selected component (if applicable):
Distro is: RHEL6.1-20110413.1
  yum-3.2.29-15.el6.noarch
  yum-rhn-plugin-0.9.1-25.el6.noarch
  rhn-client-tools-1.0.0-60.el6.noarch


How reproducible:
reproducible on 1 of 1 system I have tried


Steps to Reproduce:
1. # rhnreg_ks --username=qa --password=redhatqa
2. # yum repolist | grep rhel
rhel-ppc64-server-6       Red Hat Enterprise Linux Server (v. 6 for IBM 4,173
3. # rm -f /etc/sysconfig/rhn/systemid
4. # yum repolist | grep rhel
This system may not be a registered to RHN. SystemId could not be acquired.
RHN Satellite or RHN Classic support will be disabled.
rhel-ppc64-server-6       Red Hat Enterprise Linux Server (v. 6 for IBM 4,173
5. # rm -rf /var/cache/yum/*
6. # yum repolist | grep rhel
This system may not be a registered to RHN. SystemId could not be acquired.
RHN Satellite or RHN Classic support will be disabled.


Actual results:
Repo is still shown as available


Expected results:
When rhnplugin gets de-activated by systemid file removal, repo should not be shown as available by yum.

Comment 3 Michael Mráka 2011-08-02 09:33:25 UTC
The issue has been resolved by changes in

commit 1e91575113158e0059ddb64a005bd61bacd8f60a
    call conduit.getConf() only once 
commit c6dab60fd63054381097162c82aefa0522786d5d
     691283 - create persistdir in _repos_persistdir instead of PWD
commit 45311f1c552c060081fd8ceead8db301cc4a77cc
    fix variable typo
commit 435ceb5915b3afb87601071bb6198067044ea6f4
    add repo name in case you have old format of rhnplugin.repos
commit 84ca6d54fcf2e96b60ee3678a79cc27475b18278
    684342 - beside repo.id, cache even repo.name
commit 7948d023fe2382c718b5a862ff33119bfd2d72fd
    disable network in cache only mode
commit 854bc69edcb98c9f9cbf7d42f79756070543a288
    cache list of last seen channels so we can correctly clean them
commit e3534352c2f6387a427d76a8303b24dfcffa392b
    627525 - disable network communication with certain commands/options
commit cf81c95def90dc3f0930a59310fc5fe84a346a3d
    Revert "627525 - moved communication with satellite server from init_hook
to prerepo
commit 1cdb0b3fd1e7d4551c347ca8b4f9bcf4a624025a
    Revert "cache list of rhn channels so we can correctly clean our stuff"
commit 089c7323b1038ef479ae451b4f09b6459fddd1c9
    Revert "switch off network communication in cache only mode"
commit 62bdd32ce454a75356f4d2612f18afdbf2e65ab7
    Revert "repopulate package sack after initial setup"
commit a6a76ad7b605ecf02fee8bf91acdc43047798022
    Revert "684342 - beside repo.id, cache even repo.name"
commit b0ea86928698700420162d73f790551678e6af35
    Revert "690234 - do not re-create repo if it exist and is type of RhnRepo"
commit cab9f7a2a45ee90bc52582e833fafe0269c35786
    Revert "688870 - resolve --enablerepo/--disablerepo for RHN repos"
commit b88fabfef186dee5535dce32ac205387cd931f02
    Revert "there not opts when called from rhn_check"
commit fee9b40bbd9b697eeb9db3fe4ce41351f456ced6
    Revert "690190 - yumdownloader set callbacks soon, save it to new repo"
commit 171468f5b6051af3ba7fcc16177601f69e4a963a
    Revert "691283 - create persistdir in _repos_persistdir instead of PWD"

Comment 5 Michael Mráka 2011-08-10 08:21:04 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
yum-rhn-plugin wrongly reported previously cached channels as available.

After the fix it uses list of cached channels only in --cacheonly or clean mode.

Comment 7 Milan Zázrivec 2011-08-22 08:45:33 UTC
*** Bug 732355 has been marked as a duplicate of this bug. ***

Comment 10 Jaromir Hradilek 2011-10-27 16:20:24 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,3 +1 @@
-yum-rhn-plugin wrongly reported previously cached channels as available.
+Due to an error in rhnplugin, running the "yum repolist" command may have incorrectly reported previously cached channels as available. This update adapts rhnplugin to use the list of cached channels only when the user explicitly requests it (for example, by using the "--cacheonly" command line option).-
-After the fix it uses list of cached channels only in --cacheonly or clean mode.

Comment 11 errata-xmlrpc 2011-12-06 16:49:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1664.html


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