Project

Profile

Help

Issue #8176

closed

Yum groups in comps.xml broken

Added by jdjeffers almost 2 years ago. Updated 11 months ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_rpm/2264":https://github.com/pulp/pulp_rpm/issues/2264


This is from a discussion on the Foreman forums (https://community.theforeman.org/t/bug-smart-proxies-do-not-sync-katello-3-15-through-3-18-rc2/21654/5).

A user provided a possible workaround:

I may have found a workaround (WARNING: possible dirty hack detected). The problem seems to be with the Yum groups defined in comps.xml (I wasn’t able to find the file itself, but as most repos seem to have this problem, I decided ‘just’ to check Yum docs what it’s supposed to do)

And I edited the Python file (/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/group.py) throwing the errors.

Replace

    packagelist = element.find('packagelist')
    conditional, default, mandatory, optional = _parse_packagelist(
        packagelist.findall('packagereq'))
with

    packagelist = element.find('packagelist')
    try:
        conditional, default, mandatory, optional = _parse_packagelist(
            packagelist.findall('packagereq'))
    except:
        conditional, default, mandatory, optional = [], [], [], []
This bypasses any faulty comps.xml files, but I DO NOT KNOW if and what this might break in the long term. I am still currently testing it.
Actions #1

Updated by daviddavis almost 2 years ago

  • Project changed from Pulp to RPM Support
Actions #2

Updated by dalley almost 2 years ago

  • Triaged changed from No to Yes
  • Tags Pulp 2 added
Actions #3

Updated by eledor about 1 year ago

hi all,

just wondering if this issue is still being looked at.

thank you!

Actions #4

Updated by pulpbot 11 months ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF