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 1377328 - rhevm engine setup is broken due to change in API
Summary: rhevm engine setup is broken due to change in API
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum
Version: 7.3
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Valentina Mukhamedzhanova
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On:
Blocks: 1375561
TreeView+ depends on / blocked
 
Reported: 2016-09-19 12:55 UTC by Nelly Credi
Modified: 2016-11-04 05:32 UTC (History)
8 users (show)

Fixed In Version: yum-3.4.3-150.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 05:32:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2397 0 normal SHIPPED_LIVE yum bug fix and enhancement update 2016-11-03 13:55:12 UTC

Description Nelly Credi 2016-09-19 12:55:51 UTC
Description of problem:
There is a new attribute which is causing an error when running rhevm engine-setup 

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


How reproducible:


Steps to Reproduce:
1. install el7.3 
2. put rhevm repos & yum install ovirt-engine-setup
3. run engine-setup

Actual results:
failing on:
[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-wsp.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf']
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20160919132620-3l1xn1.log
          Version: otopi-1.5.2 (otopi-1.5.2-1.el7ev)
[ INFO  ] Stage: Environment packages setup
[ ERROR ] Yum Cannot queue package iproute: 'YumRepository' object has no attribute '_metadata_cache_req'
[ ERROR ] Failed to execute stage 'Environment packages setup': 'YumRepository' object has no attribute '_metadata_cache_req'

Expected results:
should work

Additional info:
according to valentina, its a bug in yum, but maybe we can fix it in rhevm

Comment 1 Yedidyah Bar David 2016-09-19 14:39:38 UTC
Now verified that the following patch fixes current bug:

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 2db8faf..8bbe1ce 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1473,7 +1473,7 @@ Insufficient space in download directory %s
             else:
                 result = self._getFileRepoXML(local, text)
                 if result is None:
-                    if self.skip_if_unavailable and self._metadata_cache_req in ('write', 'read-only:future'):
+                    if self.skip_if_unavailable and hasattr(self, '_metadata_cache_req') and self._metadata_cache_req in ('write', 'read-only:future'):
                         # Since skip_if_unavailable=True, we can just disable this repo
                         raise Errors.RepoError, "Can't download repomd.xml for %s" % self.ui_id

Reproduction/Verification steps:
1. Install yum-3.4.3-149.el7.noarch and recent otopi
2. Configure a repo with skip_if_unavailable=1 and with an inaccessible baseurl
3. Run 'otopi'

Comment 2 Yedidyah Bar David 2016-09-19 14:41:05 UTC
Also looked and can't see how it can be fixed on otopi side, so this bug is quite urgent for RHV.

Comment 12 errata-xmlrpc 2016-11-04 05:32:39 UTC
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.

https://rhn.redhat.com/errata/RHBA-2016-2397.html


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