Bug 1126070

Summary: RFE: Uploads do not over-write existing images
Product: [Retired] Pulp Reporter: Aaron Weitekamp <aweiteka>
Component: docker-supportAssignee: pulp-bugs
Status: CLOSED INSUFFICIENT_DATA QA Contact: pulp-qe-list
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.4 BetaCC: bmbouter, mhrivnak
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: 2014-08-27 16:16:33 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 Aaron Weitekamp 2014-08-01 18:27:08 UTC
Description of problem:
Docker image layers are essentially permanent objects. Pulp overwrites image layers during upload.

Version-Release number of selected component (if applicable):
2.4Beta

How reproducible:
always

Steps to Reproduce:
1. docker save image
2. upload an image
3. create a new image based on previous image
4. upload image

Actual results:
All image layers are replaced in repo

Expected results:
Only the new layers should be added to repo

Additional info:

Comment 2 Michael Hrivnak 2014-08-04 18:37:28 UTC
Looking at the code, it appears that it will not overwrite the files in /var/lib/pulp/content/ if they already exist. Are you seeing something different?

Please elaborate on what makes you think the layers are being overwritten.

Comment 3 Brian Bouterse 2014-08-27 16:16:33 UTC
Since we haven't received the information we are going to close this. Please reopen it if you have more info to help us resolve it.