Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1692383

Summary: Satellite imports only first collection from a modular erratum
Product: Red Hat Satellite 5 Reporter: Michael Mráka <mmraka>
Component: Satellite SynchronizationAssignee: Michael Mráka <mmraka>
Status: CLOSED ERRATA QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: rdrazny, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-backend-2.5.3-174-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-19 18:11:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1578342    

Description Michael Mráka 2019-03-25 13:30:26 UTC
Description of problem:
If updateinfo.xml for modular channel (e.g. RHEL8) contains an erratum with multiple collections (multiple modules) only frist one is imported.

Version-Release number of selected component (if applicable):
spacewalk-backend-2.5.3-173.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. copy a repo with modular content and updateinfo.xml to local disk
2. update one of erratum so it contains multiple <collection> elements
3. update repomd.xml with new checksums for updateinfo
4. sync repo with spaewalk-repo-sync into custom channel
5. verify in webUI channel > errata whether eaatum shows both collections and all packages 

Actual results:
only first collection (module) and its packages are shown

Expected results:
all collections and packages shown

Additional info:

Comment 1 Michael Mráka 2019-04-02 13:10:48 UTC
Fixed in upstream spacewalk git by
commit 532fc4bac274825917bd80b7a06142357261c445
    reindent for blocks
commit 25172146d0d9d5e142836feab477cd2cf119fb5e
    1692383 - import packages from all collections not just first one

Comment 3 Michael Mráka 2019-05-23 09:46:58 UTC
Backported to SATELLITE-5.8 as
commit cc06564f16c9faf53169a3846a1c8310c73425ee
    reindent for blocks
commit 1c79210e3c5c531da7ac1ca474cea3518343a88b
    1692383 - import packages from all collections not just first one

Comment 4 Radovan Drazny 2019-05-29 12:41:19 UTC
Reproduced the issue on spacewalk-backend-2.5.3-173 using the reproducer in the initial report. After update to spacewalk-backend-2.5.3-174, and sync of a repo with modular erratum and multiple package collections, all packages have been imported into the erratum in question.

VERIFIED

Comment 6 errata-xmlrpc 2019-06-19 18:11:14 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://access.redhat.com/errata/RHBA-2019:1551