Issue #4979
closedSync/update of errata from Amazon Linux fails due to unknown datetime format
Description
I try to sync Amazon Linux 2 repositories which contain Errata but fails when trying to update the errata, everything else works fine. Source for repositores are created by using a Amazon Linux 2 installation, reposync to mirror the basic repository and then modifyrepo to add the updateinfo.xml from yum cache directory.
The error message is "Fail to update the existing erratum ALAS2-2018-939."
Katello version is 3.12 and Pulp is 2.19.1. The old and new version of the Errata file is attached, I see changes in it but not for the Errata mentioned in the error message.
Files
Updated by ttereshc over 5 years ago
The reason for such failure is the unsupported datetime format. Since Pulp has to compare the dates to be able to figure out if an advisory got updated or not.
Expected formats are:
- '%Y-%m-%d %H:%M:%S UTC'
- '%Y-%m-%d %H:%M:%S'
- '%Y-%m-%d'
We can add the one that Amazon produces %Y-%m-%d %H:%M
, though it would be better if they generate dates/times in a more standard form.
Updated by ttereshc over 5 years ago
- Subject changed from Katello complains during reposync about being unable to update existing errate to Sync/update of errata from Amazon Linux fails due to unknown datetime format
- Triaged changed from No to Yes
- Sprint set to Sprint 55
Updated by dkliban@redhat.com over 5 years ago
- Sprint changed from Sprint 55 to Sprint 56
Updated by ggainey over 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ggainey
Updated by ggainey over 5 years ago
- Status changed from ASSIGNED to POST
Added by ggainey over 5 years ago
Updated by ggainey over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset 0c850a0bd79b22da0bfc3fcda68962ba5c33b119.
Updated by dalley about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Teach Pulp about Amazon errata-data-format
closes #4979 https://pulp.plan.io/issues/4979