Bug 987667

Summary: rhn-plugin needs to access the netowkr for yum erase operations
Product: Red Hat Enterprise Linux 6 Reporter: Quanah Gibson-Mount <quanah>
Component: yum-rhn-pluginAssignee: Michael Mráka <mmraka>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: cperry, james.antill, rmeggins, tcallawa
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-10 14:25:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Quanah Gibson-Mount 2013-07-23 20:26:13 UTC
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.

Error Message:
    Service not enabled for system profile: "zqa-103.eng.vmware.com"
Error Class Code: 31
Error Class Info:  
Setting up Remove Process
Resolving Dependencies
--> 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
3.2.2

How reproducible:
Always given constraints above

Steps to Reproduce:
See above

Actual results:
Package removal failure

Expected results:
Package removal success

Comment 1 Quanah Gibson-Mount 2013-07-24 20:12:08 UTC
See also https://bugzilla.redhat.com/show_bug.cgi?id=988136 for the same problem with localinstall

Comment 3 James Antill 2014-03-24 15:19:32 UTC
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.

Comment 4 RHEL Program Management 2014-11-10 14:25:50 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.