Bug 917041

Summary: [RFE] Create directory structure before exporting to local directories
Product: [Retired] Pulp Reporter: Lukas Zapletal <lzap>
Component: user-experienceAssignee: Jason Connor <jconnor>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: MasterCC: mmccune, rbarlow, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: 2.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-04 10:31:41 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 Lukas Zapletal 2013-03-01 14:06:50 UTC
When exporting multiple repositories, we
need to create the directory structure in advance, which is a bit tricky
since katello-disconnected can be used on a client. Would you mind
creating a small bit (maybe a export option, maybe this could be a
default) to create directory where repository is about to export with
all the parents directories? Like mkdir -p /export/path/blah/blah.
It could help me to simplify disconnected.

Comment 1 Randy Barlow 2013-03-04 21:58:09 UTC
Hi Lukas,

Would you mind explaining what you are looking for here a little bit more explicitly? I'm just now starting to learn about our ISO export distributor, and so I am not yet very familiar with everything that it does (or doesn't do).

Are you asking for a way to specify a directory tree that a list of repositories should map to? For example, if you had repo_1, repo_2, and repo_3, would you want to be able to specify that the ISO filesystem were laid out in some particular way that put each repo at different (or the same?) paths?

Perhaps a JSON structure mapping repo IDs to paths inside the ISO would work?

{
    "repo_1": "/repository_1",
    "repo_2": "/other_repositories",
    "repo_3": "/other_repositories"
}

Or am I misinterpreting the request?

Thank you, sir!

Comment 3 Lukas Zapletal 2013-04-04 10:31:41 UTC
"""
However, I think the short-coming you want to address is: Pulp assumes this directory (/var/lib/pulp/published/http/exports) already exists, and returns an error if it does not.
"""

Since the directory is already created and since I mis-understood how ISO export works, I think I can close this RFE now. We need to re-think how Katello will import the ISO files keeping the directory structure.

Thanks.