Hide Forgot
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.
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"
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.
*** Bug 732355 has been marked as a duplicate of this bug. ***
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.
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