Sync/update of errata from Amazon Linux fails due to unknown datetime format
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.
Updated by ttereshc about 3 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.