Bug 1921810 - syncing a repo with an erratum without an updated date results in a bad date in published metadata (upgrade to pulp-rpm 3.9)
Summary: syncing a repo with an erratum without an updated date results in a bad date ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.9.0
Assignee: James Jeffers
QA Contact: Tasos Papaioannou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-28 16:25 UTC by Justin Sherrill
Modified: 2021-04-21 13:11 UTC (History)
1 user (show)

Fixed In Version: tfm-rubygem-katello-3.18.1.14-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:10:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31902 0 Normal New Upgrade pulp-rpm to 3.9 for 3.18, and 3.17 2021-02-17 11:06:58 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:11:04 UTC

Description Justin Sherrill 2021-01-28 16:25:07 UTC
When running on pulp3:

1.     create a repo and remote pointing to https://fixtures.pulpproject.org/rpm-advisory-no-update-date/repodata/
2.    sync the remote, create a publication and distribution
3.    examine the repodata, look for the Bird erratum section of the updateinfo xml:

  <update from="errata" status="stable" type="security" version="1">
    <id>RHEA-2012:0056</id>
    <title>Bird_Erratum</title>
    <issued date="2013-01-27 16:08:08"/>
    <updated date="0693-02-18 07:00:00"/>

Note that the date is nonsense. this causes an issue for things trying to consumer this date, such as katello or another pulp server trying to sync



This is also a problem for the migration and the repositories that get created from it.

We'll need to upgrade to pulp-rpm 3.9 for the fix

Comment 1 James Jeffers 2021-02-16 14:44:56 UTC
Connecting redmine issue https://projects.theforeman.org/issues/31785 from this bug

Comment 2 Justin Sherrill 2021-03-02 00:44:58 UTC
Moving to POST, 

NOTE, this requires:

* katello cherry pick (from associated foreman issue)
* new rubygem-pulp_rpm_client build (3.9.0)
* new python3-pulp-rpm  build (3.9.0)

Comment 4 Tasos Papaioannou 2021-03-17 14:42:15 UTC
Verified on 6.9.0 snap 17.

Comment 7 errata-xmlrpc 2021-04-21 13:10:30 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 (Moderate: Satellite 6.9 Release), 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/RHSA-2021:1313


Note You need to log in before you can comment on or make changes to this bug.