Skip to content

errata is associated with only one channel #4

Description

@angystardust

Hi @stevemeier and first of all thanks for you very useful script!
Yesterday I noticed a very strange problem on my Spacewalk 2.7 setup with both Centos6 and CentOS-7 channels synced.
Let's take for example CESA-2018-0093. This is the relevant entry in the errata.latest.xml:

 <CESA-2018--0093 description="Not available" from="centos-announce@centos.org" issue_date="2018-01-17 14:59:21" multirelease="1" notes="Not available" product="CentOS Linux" references="https://access.redhat.com/errata/RHSA-2018:0093 https://lists.centos.org/pipermail/centos-announce/2018-January/022709.html https://lists.centos.org/pipermail/centos-announce/2018-January/022710.html" release="2" severity="Important" solution="Not available" synopsis="Important CentOS microcode_ctl Security Update" topic="Not available" type="Security Advisory">
    <os_arch>i686</os_arch>
    <os_arch>x86_64</os_arch>
    <os_release>6</os_release>
    <os_release>7</os_release>
    <packages>microcode_ctl-1.17-25.4.el6_9.i686.rpm</packages>
    <packages>microcode_ctl-1.17-25.4.el6_9.src.rpm</packages>
    <packages>microcode_ctl-1.17-25.4.el6_9.x86_64.rpm</packages>
    <packages>microcode_ctl-2.1-22.5.el7_4.src.rpm</packages>
    <packages>microcode_ctl-2.1-22.5.el7_4.x86_64.rpm</packages>
  </CESA-2018--0093>

If I run your script with the following parameters:

errata-import.pl --server localhost --errata $TMPDIR/errata.latest.xml --include-channels=centos6-x86_64,centos6-x86_64-updates,centos7-x86_64,centos7-x86_64-updates --rhsa-oval=/$TMPDIR/com.redhat.rhsa-all.xml --publish

at the end of the script execution, I can successfully see the errata published on my Spacewalk instance but it's only linked with one channel (centos7-x86_64) instead of both centos6-x86_64 and centos7-x86_64-updates channels
You can see from the output of spacecmd that the affected packages are both linked to the errata but the linked channel is only one:

spacecmd {SSM:0}> errata_details CESA-2018:0093
Name:       CESA-2018:0093
Product:    CentOS Linux
Type:       Security Advisory
Issue Date: 1/17/18

Topic
-----
Not available

Description
-----------
Not available

Notes
-----
Not available

CVEs
----

Solution
--------
Not available

References
----------
https://access.redhat.com/errata/RHSA-2018:0093
https://lists.centos.org/pipermail/centos-
announce/2018-January/022709.html https://lists.centos.org/pipermail
/centos-announce/2018-January/022710.html

Affected Channels
-----------------
centos7-x86_64-updates

Affected Systems
----------------
2

Affected Packages
-----------------
microcode_ctl-1.17-25.4.el6_9:1.x86_64
microcode_ctl-2.1-22.5.el7_4:2.x86_64

This is the what the script logs if I put it in debug mode:

DEBUG: Processing CESA-2018:0093
DEBUG: Processing CESA-2018:0093 -- OVAL ID is oval:com.redhat.rhsa:def:20180093
INFO: Errata for CESA-2018:0093 already exists
DEBUG: CESA-2018:0093 packages: 18430
DEBUG: Package: microcode_ctl-1.17-25.4.el6_9.i686.rpm not found
DEBUG: Package: microcode_ctl-1.17-25.4.el6_9.src.rpm not found
DEBUG: Package: microcode_ctl-1.17-25.4.el6_9.x86_64.rpm -> 57623 -> centos6-x86_64-updates
DEBUG: Package: microcode_ctl-2.1-22.5.el7_4.src.rpm not found
DEBUG: Package: microcode_ctl-2.1-22.5.el7_4.x86_64.rpm -> 18430 -> centos7-x86_64-updates
INFO: Adding packages to CESA-2018:0093

Is it the expected behaviour? Is there a way to link both channels to I can see the relevant errata applicable for all the relevant systems?
Thanks a lot for your help

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions