Actions
Issue #8176
closedYum groups in comps.xml broken
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.
Updated by daviddavis about 3 years ago
- Project changed from Pulp to RPM Support
Updated by dalley about 3 years ago
- Triaged changed from No to Yes
- Tags Pulp 2 added
Updated by eledor over 2 years ago
hi all,
just wondering if this issue is still being looked at.
thank you!
Updated by pulpbot over 2 years ago
- Description updated (diff)
- Status changed from NEW to CLOSED - DUPLICATE
Actions