Bug 1103330

Summary: Docker repo upload skips uploading some image layers when there are multiple leaf nodes
Product: [Retired] Pulp Reporter: Sayli Karmarkar <skarmark>
Component: docker-supportAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED UPSTREAM QA Contact: pulp-qe-list
Severity: high Docs Contact:
Priority: medium    
Version: MasterCC: cperry
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-28 22:09:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sayli Karmarkar 2014-05-30 18:46:02 UTC
Description of problem:
Docker repo upload does not generate correct unit_key and it skips uploading some image layers when there are multiple leaf nodes.

$ pulp-admin docker repo create --repo-id=busybox

$ pulp-admin docker repo uploads upload --repo-id=busybox -f /home/skarmark/git/pulp1/pulp/busybox.tar

$ pulp-admin docker repo list
Id:                  busybox
Display Name:        busybox
Description:         None
Content Unit Counts: 
  Docker Image: 4


Only 4 images are uploaded when busybox actually contains more images.

Comment 1 Sayli Karmarkar 2014-05-30 19:47:03 UTC
https://github.com/pulp/pulp_docker/pull/22

Comment 2 Sayli Karmarkar 2014-06-01 20:42:41 UTC
$ pulp-admin docker repo create --repo-id=busybox

$ pulp-admin docker repo uploads upload --repo-id=busybox -f /home/skarmark/git/pulp1/pulp/busybox.tar

$ pulp-admin docker repo list
Id:                  busybox
Display Name:        busybox
Description:         None
Content Unit Counts: 
  Docker Image: 8

Comment 3 Brian Bouterse 2015-02-28 22:09:24 UTC
Moved to https://pulp.plan.io/issues/442