Bug 1921810

Summary: syncing a repo with an erratum without an updated date results in a bad date in published metadata (upgrade to pulp-rpm 3.9)
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: RepositoriesAssignee: James Jeffers <jjeffers>
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: zhunting
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.18.1.14-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:10:30 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:

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