Project

Profile

Help

Issue #4979

Sync/update of errata from Amazon Linux fails due to unknown datetime format

Added by dgoetz 5 months ago. Updated about 2 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version:
2.19.0
Platform Release:
2.21.0
Blocks Release:
OS:
CentOS 7
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 56

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.

Associated revisions

Revision 0c850a0b View on GitHub
Added by ggainey 3 months ago

Teach Pulp about Amazon errata-data-format

closes #4979
https://pulp.plan.io/issues/4979

History

#1 Updated by ttereshc 4 months 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.

#2 Updated by ttereshc 4 months 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

#3 Updated by dkliban@redhat.com 4 months ago

  • Sprint changed from Sprint 55 to Sprint 56

#4 Updated by ggainey 4 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ggainey

#5 Updated by ggainey 4 months ago

  • Status changed from ASSIGNED to POST

#6 Updated by ggainey 3 months ago

  • Status changed from POST to MODIFIED

#7 Updated by dalley 3 months ago

  • Platform Release set to 2.21.0

#8 Updated by dalley about 2 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF