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 847996 - yum traceback if downloading existing package when offline
Summary: yum traceback if downloading existing package when offline
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: PackageKit
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: beta
: 7.0
Assignee: Richard Hughes
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-14 09:45 UTC by Vladimir Benes
Modified: 2012-11-01 10:22 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-01 10:22:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Vladimir Benes 2012-08-14 09:45:45 UTC
Description of problem:
when I execute pkcon download /tmp mc while offline I get ugly yum traceback and exit code is 0.. 


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


How reproducible:
always

Steps to Reproduce:
1.go offline
2.execute pkcon download /tmp mc

  
Actual results:
Fatal error: Error Type: <class 'yum.Errors.NoMoreMirrorsRepoError'>
Error Value: failure: Packages/mc-4.8.3-1.el7.x86_64.rpm from alpha2: [Errno 256] No more mirrors to try.
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3633, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3630, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib/python2.7/site-packages/packagekit/backend.py, line 836, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib/python2.7/site-packages/packagekit/backend.py, line 664, in dispatch_command
    self.download_packages(directory, package_ids)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1140, in download_packages
    path = repo.getPackage(pkg_download)
  File : /usr/lib/python2.7/site-packages/yum/yumRepo.py, line 957, in getPackage
    **kwargs
  File : /usr/lib/python2.7/site-packages/yum/yumRepo.py, line 933, in _getFile
    raise Errors.NoMoreMirrorsRepoError, errstr


Expected results:
there should be error shown that you are not online or so.. exit code should be non-zero

Additional info:

Comment 1 Richard Hughes 2012-11-01 10:22:31 UTC
commit 03d1ca18ca13e9e6b005377ed87827bccb48c9af
Author: Richard Hughes <richard>
Date:   Thu Nov 1 10:25:03 2012 +0000

    yum: Handle NoMoreMirrorsRepoError when using repo.getPackage()


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