Project

Profile

Help

Story #3665

closed

Support different pkglist per repo for erratum units

Added by rmcgover almost 6 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Currently, updateinfo rendering behavior when rendering a specific erratum unit in a repo works like this:

- Start with full pkglist under erratum unit.
- Filter to subset of packages existing in the target repo.
- Render those packages under "pkglist" in the repo's updateinfo.xml.

This means there is a limitation where Pulp can't support the following scenario:

- Errata A, B both contain package P
- Errata A, B are both included in repo X
- In updateinfo.xml for repo X, P should appear in pkglist for A and not B

We would like to ship errata matching this scenario. Could the data model please be updated to make this possible?

Actions #2

Updated by ttereshc almost 6 years ago

Could you elaborate a bit more, please? I agree with the description of current behaviour. I don't completely follow where the issue is.

In the scenario you described, you have two different errata, A and B. They both contain package P.
Pkglists for two different errata are not related and has no impact on each other, even if they are in the same repo X.
What is the suggested criteria for Pulp to decide whether to include package P in erratum A or in erratum B?

I can see a very naive approach - just "don't include package P in the pkglist for erratum B during upload, if you don't want it to be there".
I probably miss something obvious, I'd appreciate any clarification.

Actions #3

Updated by rmcgover almost 6 years ago

ttereshc wrote:

I can see a very naive approach - just "don't include package P in the pkglist for erratum B during upload, if you don't want it to be there".
I probably miss something obvious, I'd appreciate any clarification.

That won't work because it's meant to be present on the same erratum in some other repo, so it must appear in the erratum pkglist.

Let me give an example of the effect of this limitation with real errata shipped by Red Hat:

1. https://access.redhat.com/errata/RHBA-2017:0884 - Red Hat OpenShift Container Platform 3.5 RPM Release Advisory

Shipped 2017-04-12

This advisory is for OpenShift Container Platform 3.5 (only).

One of the packages included in this update was nodejs-4.7.2-1.el7.x86_64.rpm.

With this advisory alone there's no problem, but when combined with a later advisory...

2. https://access.redhat.com/errata/RHBA-2017:1828 - OpenShift Container Platform 3.5, 3.4, and 3.3 bug fix update

Shipped 2017-08-31

This advisory is for OpenShift Container Platform 3.3, 3.4, 3.5.

This advisory was intended to ship nodejs-4.7.2-1.el7.x86_64.rpm to "Red Hat OpenShift Container Platform 3.4" only.

But, because this advisory is also for OpenShift Container Platform 3.5, and because nodejs-4.7.2-1.el7.x86_64.rpm is also in the 3.5 repo, this RPM also appears in updateinfo for this advisory and in the "Updated Packages" section there under OpenShift 3.5 - even though the RPM was already present in the repo from 4 months ago and is not considered to be updated by this advisory. This is considered undesirable.

Hopefully the above is a clearer example of the use-case. RCM wanted to do:

- Ship an advisory for OpenShift 3.5 which includes nodejs-4.7.2-1.el7.x86_64.rpm.
- Later, ship another advisory for OpenShift 3.3, 3.4, 3.5, which includes nodejs-4.7.2-1.el7.x86_64.rpm for OpenShift 3.4.

Problem: the latter advisory appears as updating nodejs-4.7.2-1.el7.x86_64.rpm for OpenShift 3.5 even though that package was already present.

What is the suggested criteria for Pulp to decide whether to include package P in erratum A or in erratum B?

When filing this I had expected that it might need a schema change.

However, after writing out the example I'm now wondering if we can say the criteria should be: if an RPM appears in pkglist of multiple errata in the repo, it's only rendered for the erratum unit with the earlier association datetime.

Actions #4

Updated by dalley almost 6 years ago

  • Tracker changed from Issue to Story
  • % Done set to 0
Actions #5

Updated by sthangav over 5 years ago

Can someone from pulp team update when will this activity can be taken up?

Actions #6

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #7

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF