Bug 1162347

Summary: [RFE] uploading a directory does not preserve directory hierarchy
Product: [Retired] Pulp Reporter: Justin Garrison <justin.garrison>
Component: iso-supportAssignee: pulp-bugs
Status: CLOSED UPSTREAM QA Contact: pulp-qe-list
Severity: medium Docs Contact:
Priority: low    
Version: 2.4.3CC: justin.garrison, mhrivnak
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-19 01:20:20 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:

Description Justin Garrison 2014-11-10 21:33:50 UTC
Description of problem: When uploading a directory to an iso repo using the -d flag the files inside the directory are flattened into a single folder and folder hierarchy is not preserved.

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

How reproducible: always

Steps to Reproduce:
1. Create iso repo
2. Upload files using -d flag

Actual results: All files are put at the root of the /pulp/isos/repo/ folder

Expected results: Folder structure would be preserved

Additional info:

Comment 1 Michael Hrivnak 2014-11-17 16:08:51 UTC
Can you elaborate on why it would be helpful to preserve the directory hierarchy?

Comment 2 Justin Garrison 2014-11-17 16:27:59 UTC
I want to host extracted iso images in pulp (http) for PXE boot. When the iso is extracted it has isolinux/ and images/ folders. When importing that folder into pulp it removes the directories and recursively publishes each file at the root of the repo url. That obviously breaks pxe booting which automatically looks for those folders.

Comment 3 Michael Hrivnak 2014-11-17 17:22:19 UTC
For now, you might be able to use the pulp_rpm yum plugins to manage these files. The importer and distributor will handle all files required for kickstart, including those in isolinux/ and images/.

Otherwise, this will likely be addressed by a new "file plugin" that we intend to implement in the future.

Comment 4 Brian Bouterse 2015-02-19 01:20:20 UTC
Moved to https://pulp.plan.io/issues/269