Project

Profile

Help

Issue #8176

Yum groups in comps.xml broken

Added by jdjeffers 3 months ago. Updated 2 months ago.

Status:
NEW
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

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.

History

#1 Updated by daviddavis 3 months ago

  • Project changed from Pulp to RPM Support

#2 Updated by dalley 2 months ago

  • Triaged changed from No to Yes
  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF