Project

Profile

Help

Issue #462

closed

unable to upload docker tar file when using latest docker package.

Added by cduryee about 9 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version - Docker:
master
Platform Release:
Target Release - Docker:
1.0.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem: When docker-io-1.0.0-3 is installed, I'm unable to upload saved tar files.

  1. docker pull busybox
  2. docker save busybox > busybox.tar
  3. pulp-admin docker repo uploads upload --repo-id=busybox -f busybox.tar

Version-Release number of selected component (if applicable): latest master (hash f3146f5)

How reproducible: every time

Actual results:

Jun 30 18:20:05 pulp24-clonebase pulp: pulp.server.managers.content.upload:ERROR: Error from the importer while importing uploaded unit to repository [busybox]
Jun 30 18:20:05 pulp24-clonebase pulp: pulp.server.managers.content.upload:ERROR: Traceback (most recent call last):
Jun 30 18:20:05 pulp24-clonebase pulp: pulp.server.managers.content.upload:ERROR: File "/usr/lib/python2.6/site-packages/pulp/server/managers/content/upload.py", line 223, in import_uploaded_unit
Jun 30 18:20:05 pulp24-clonebase pulp: pulp.server.managers.content.upload:ERROR: unit_metadata, file_path, conduit, call_config)
Jun 30 18:20:05 pulp24-clonebase pulp: pulp.server.managers.content.upload:ERROR: File "/usr/lib/python2.6/site-packages/pulp_docker/plugins/importers/importer.py", line 81, in upload_unit
Jun 30 18:20:05 pulp24-clonebase pulp: pulp.server.managers.content.upload:ERROR: metadata = tarutils.get_metadata(file_path)
Jun 30 18:20:05 pulp24-clonebase pulp: pulp.server.managers.content.upload:ERROR: File "/usr/lib/python2.6/site-packages/pulp_docker/common/tarutils.py", line 34, in get_metadata
Jun 30 18:20:05 pulp24-clonebase pulp: pulp.server.managers.content.upload:ERROR: 'size': image_data['Size']
Jun 30 18:20:05 pulp24-clonebase pulp: pulp.server.managers.content.upload:ERROR: KeyError: 'id'

+ This bug was cloned from Bugzilla Bug #1114771 +

Also available in: Atom PDF