Project

General

Profile

Bug #29488

Applicable errata not showing up for module stream errata

Added by Partha Aji about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Modularity
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Applicable errata not showing up or computed correctly module stream errata.

  • Create a content view that has RHEL 8 appstream
  • Publish the content view
  • Have a rhel8 host consume off it
  • On the host run the following
    """
    $ dnf -y module install nodejs:10
    $ dnf -y install nodejs
    $ dnf -y downgrade nodejs
    """
Now back on the above CV
  • Create an errata excludes filter and exclude RHSA-2020:0579
  • Publish the content view
  • Content -> Errata
  • Search for 'errata_id = RHSA-2020:0579'

Associated revisions

Revision 34ea1d9f (diff)
Added by Partha Aji almost 2 years ago

Fixes #29488 - Make modular errata applicable (#8662)

Prior to this commit the applicable errata was not properly
calculated.

Content hosts upload a list of packages, enabled repos and modulemd
information (aka profiles) on every dnf transaction.
  • When katello receives this information it passes on pulp to calculate
    Packages, Errata and Module Streams that are applicable.
  • Applicable errata is calculated against the "library_instance" of the
    repositories bound to the content host.

However module streams introduce some quirkiness. The prior upload
module stream method would just pass the actual module stream that is
available to the system.

This commit passes the module stream available in the library instance
of the bound repos instead to pulp.

So when new errata get added overtime the new errata would automatically
be marked "applicable".

History

#1 Updated by Partha Aji about 2 years ago

  • Bugzilla link set to 1814095

#2 Updated by Partha Aji about 2 years ago

  • Assignee set to Partha Aji
  • Category set to Modularity

#3 Updated by Ian Ballou about 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.16.0

#4 Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8662 added

#5 Updated by Partha Aji about 2 years ago

Updating the original steps for the bug.

Applicable errata not showing up or computed correctly module stream errata.

  • Create a content view that has RHEL 8 appstream
  • Create an errata excludes filter to exclude RHSA-2020:0579
  • Publish the content view
  • Have a rhel8 host consume off it

On the host run the following

$ dnf -y module install nodejs:10
$ dnf uploadprofile     

Now back on the UI

  • Content -> Errata
  • Search for 'errata_id = RHSA-2020:0579'

Expected:
- showing one applicable host for `RHSA-2020:0579`

Actual:
0 applicable hosts listed for `RHSA-2020:0579`

#6 Updated by The Foreman Bot almost 2 years ago

  • Fixed in Releases added

#7 Updated by Partha Aji almost 2 years ago

  • Status changed from Ready For Testing to Closed

#8 Updated by The Foreman Bot almost 2 years ago

  • Pull request https://github.com/Katello/katello/pull/8722 added

#9 Updated by James Jeffers almost 2 years ago

  • Target version changed from Katello 3.16.0 to Katello 3.15.1

#10 Updated by Jonathon Turel almost 2 years ago

  • Pull request deleted (https://github.com/Katello/katello/pull/8722)

#11 Updated by Jonathon Turel almost 2 years ago

  • Found in Releases Katello 3.15.0 added
  • Fixed in Releases Katello 3.15.1 added
  • Fixed in Releases deleted ()

Also available in: Atom PDF