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 988136 - "localinstall" fails if repos are unreachable
Summary: "localinstall" fails if repos are unreachable
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 20:08 UTC by Quanah Gibson-Mount
Modified: 2014-03-24 15:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-24 15:23:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Quanah Gibson-Mount 2013-07-24 20:08:52 UTC
Description of problem:
When installing local packages via localinstall, yum will fail the installation if it can't talk to configured repositories.


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


How reproducible:
100%

Steps to Reproduce:
use localinstall on a local RPM when a repo is not available.

yum -y localinstall -v
/opt/zimbra/.uninstall/packages/zimbra-core-9.0.0_BETA1_1982.RHEL6_64-20130724051041.x86_64.rpm 
Loading "rhnplugin" plugin
Config time: 0.046
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: 
     This system does not have a valid entitlement for Red Hat Network.
     Please visit https://rhn.redhat.com/rhn/systems/SystemEntitlements.do
     or login at https://rhn.redhat.com, and from the "Your RHN" tab,
     select "Subscription Management" to enable RHN service for this system.
Explanation:
    Your organization does not have enough Management entitlements to register
this
    system to Red Hat Network. Please notify your organization administrator of
this error. 
    You should be able to register this system after your organization frees
existing 
    or purchases additional entitlements. Additional entitlements may be
purchased by your
    organization administrator by logging into Red Hat Network and visiting
    the 'Subscription Management' page in the 'Your RHN' section of RHN.

    A common cause of this error code is due to having mistakenly setup an
    Activation Key which is set as the universal default.  If an activation key
is set
    on the account as a universal default, you can disable this key and retry
to avoid
    requiring a Management entitlement.
Yum Version: 3.2.29
Setting up Local Package Process
rpmdb time: 0.000
Examining
/opt/zimbra/.uninstall/packages/zimbra-core-9.0.0_BETA1_1982.RHEL6_64-20130724051041.x86_64.rpm:
zimbra-core-9.0.0_BETA1_1982.RHEL6_64-20130724051041.x86_64
Marking
/opt/zimbra/.uninstall/packages/zimbra-core-9.0.0_BETA1_1982.RHEL6_64-20130724051041.x86_64.rpm
to be installed
Setting up Package Sacks
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel.
Please verify its path and try again



Actual results:
Fails to install local RPM


Expected results:
local RPM installation should succeed.

Comment 2 James Antill 2014-03-24 15:23:22 UTC
 While the actual error here is from rhn, and so is probably a dup. of bug#987667 ... yum mostly does try to speak to the network for installs, due to obsoletes etc. ... you can do something like:

yum --disablerepo='*' install foo.rpm

...and if all the repos. are cached it should work anyway.


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