Project

Profile

Help

Issue #7660

closed

pulp fails downloading Amazon Linux repository

Added by vchepkov about 4 years ago. Updated about 4 years ago.

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

Description

pulp 2.21.3 fails to download packages from Amazon Linux repository. the problem is metadata of Amazon repository, more specifically, time attribute of the rpm package :

importers/yum/repomd/primary.py on line 135 expect value to be integer:

package_info['time'] = int(time_element.attrib['file'])

changing this line to

package_info['time'] = int(time_element.attrib['file'].splt('.')[0])

fixed issue for me

This is stack from failure

https://gist.github.com/vchepkov/1d12035982b46ddd15c8714779eeaac5

Also available in: Atom PDF