Bug 917041 - [RFE] Create directory structure before exporting to local directories
Summary: [RFE] Create directory structure before exporting to local directories
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: Master
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2.1.1
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-01 14:06 UTC by Lukas Zapletal
Modified: 2014-03-31 01:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-04 10:31:41 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.