Project

Profile

Help

Network maintenance. We will be observing a scheduled maintenance window to mondernize the access routers at our primary data center this Sunday, October 22, 2017 from 20:00 UTC until Monday, October 23, 03:00 UTC. Planio services may be unavailable for about 30 minutes during the maintenance window.

Issue #1263

repomd.xml parsing fails when an empty revision tag is present

Added by roysjosh about 2 years ago. Updated 9 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Severity:
2. Medium
Version:
2.6.2 Beta
Platform Release:
2.8.0
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
Yes
Verification Required:
No

Description

The NSA SIMP 5.1.X repodata contains a <revision /> tag which busts sync
with the following splat:

Downloading metadata from https://dl.bintray.com/simp/5.1.X/.
Starting new HTTPS connection (1): dl.bintray.com
Parsing metadata.
sync failed
Traceback (most recent call last):
File ".../sync.py", line 142, in run
metadata_files = self.get_metadata()
File ".../sync.py", line 226, in get_metadata
metadata_files.parse_repomd()
File ".../metadata.py", line 165, in parse_repomd
self.revision = int(element.text)
TypeError: int() argument must be a string or a number, not 'NoneType'

Related issues

Related to RPM Support - Issue #1357: When trying to sync a repository i get "int() argument must be a string or a number, not 'NoneType'" CLOSED - DUPLICATE Actions
Duplicated by RPM Support - Issue #1746: Beta 2.8.0-0.7, RPM1004 - Error retrieving metadata: Not found CLOSED - DUPLICATE Actions

Associated revisions

Revision 54c8837a View on GitHub
Added by roysjosh about 2 years ago

Fix repomd.xml parsing with an empty revision tag

The NSA SIMP 5.1.X repodata contains a <revision /> tag which busts sync
with the following splat:

Downloading metadata from https://dl.bintray.com/simp/5.1.X/.
Starting new HTTPS connection (1): dl.bintray.com
Parsing metadata.
sync failed
Traceback (most recent call last):
File ".../sync.py", line 142, in run
metadata_files = self.get_metadata()
File ".../sync.py", line 226, in get_metadata
metadata_files.parse_repomd()
File ".../metadata.py", line 165, in parse_repomd
self.revision = int(element.text)
TypeError: int() argument must be a string or a number, not 'NoneType'

closes #710
https://pulp.plan.io/issues/1263

History

#1 Updated by jortel@redhat.com about 2 years ago

  • Triaged changed from No to Yes

#2 Updated by jortel@redhat.com about 2 years ago

  • Assignee set to amacdona@redhat.com

#3 Updated by amacdona@redhat.com about 2 years ago

  • Status changed from NEW to POST
  • Platform Release set to master

#4 Updated by amacdona@redhat.com about 2 years ago

  • Status changed from POST to MODIFIED
  • Platform Release changed from master to 2.8.0

#5 Updated by amacdona@redhat.com almost 2 years ago

  • Related to Issue #1357: When trying to sync a repository i get "int() argument must be a string or a number, not 'NoneType'" added

#7 Updated by dkliban@redhat.com over 1 year ago

  • Status changed from MODIFIED to ON_QA

#8 Updated by ipanova@redhat.com over 1 year ago

  • Duplicated by Issue #1746: Beta 2.8.0-0.7, RPM1004 - Error retrieving metadata: Not found added

#9 Updated by dkliban@redhat.com over 1 year ago

  • Status changed from ON_QA to CLOSED - CURRENTRELEASE

#11 Updated by pulpbot 9 months ago

  • Verified changed from No to Yes

Please register to edit this issue

Also available in: Atom PDF