Project

Profile

Help

Issue #4979

closed

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

Added by dgoetz over 5 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.19.0
Platform Release:
2.21.0
OS:
CentOS 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 56
Quarter:

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

Actions #1

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.

Actions #2

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
Actions #3

Updated by dkliban@redhat.com over 5 years ago

  • Sprint changed from Sprint 55 to Sprint 56
Actions #4

Updated by ggainey over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ggainey
Actions #5

Updated by ggainey over 5 years ago

  • Status changed from ASSIGNED to POST

Added by ggainey over 5 years ago

Revision 0c850a0b | View on GitHub

Teach Pulp about Amazon errata-data-format

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

Actions #6

Updated by ggainey over 5 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by dalley over 5 years ago

  • Platform Release set to 2.21.0
Actions #8

Updated by dalley about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF