Red Hat Bugzilla – Bug 987667
rhn-plugin needs to access the netowkr for yum erase operations
Last modified: 2014-11-10 09:25:50 EST
Description of problem:
When installing local packages via yum, it can be difficult to remove them if the network is down or entitlements have expired. For example, when installing Zimbra via yum localinstall, and then going to uninstall Zimbra, we get:
zimbra-core...yum -y erase -v...Loading "rhnplugin" plugin
Config time: 0.036
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Service not enabled for system profile: "zqa-103.eng.vmware.com"
Error Class Code: 31
Error Class Info:
Setting up Remove Process
--> Running transaction check
---> Package zimbra-core.x86_64 0:8.0.4_GA_5737.RHEL6_64-20130524120036 will be erased
Checking deps for zimbra-core.x86_64 0:8.0.4_GA_5737.RHEL6_64-20130524120036 - e
--> Finished Dependency Resolution
Dependency Process ending
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
We found we could finally get it erased by adding "--disable-repo=*" to the flags for yum erase.
This should not be necessary for removing packages installed outside of the repo system.
Version-Release number of selected component (if applicable):
[build@zre-rhel6-64 ~]$ yum --version
Always given constraints above
Steps to Reproduce:
Package removal failure
Package removal success
See also https://bugzilla.redhat.com/show_bug.cgi?id=988136 for the same problem with localinstall
yum doesn't need to look at the network to do an erase, so you can do:
yum --noplugins erase zimbra
...assigning to rhn-plugin to see if they can fix needing the network.
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.