Bug 790222 - No option to change preserve metadata in repo update
Summary: No option to change preserve metadata in repo update
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Todd Sanders
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 23:31 UTC by James Slagle
Modified: 2013-09-27 14:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-27 14:18:39 UTC


Attachments (Terms of Use)

Description James Slagle 2012-02-13 23:31:04 UTC
There is no option to toggle the preserve metadata flag for "pulp-admin repo update".

Comment 1 Pradeep Kilambi 2012-02-14 14:33:39 UTC
I think this was intentional to not accidentally override a mirrored repo. A user can clone a preserved repo and add custom content to it. This is particularly applicable to say Red Hat content and we dont want user to muck with the metadata.

I'm open to discussion on if we want this to be optional. But seems to make sense to me to lock the repo if its treated as a mirror at the creation time.

Comment 2 James Slagle 2012-02-14 14:54:09 UTC
Supporting that case is what I had in mind, but it's not possible.

You create a repo you intend to be mirrored and use --preserve-metadata.
Clone that repo.
You can't change the cloned repo to not be --preserve-metadata, b/c there is no such option in pulp-admin repo update.

It's possible I'm not understanding the full behavior of --preserve-metadata.

Comment 3 Pradeep Kilambi 2012-02-14 15:05:20 UTC
I was always under the impression that a cloned repo would not inherit the preserve_metadata flag. We already preserve the metadata(an in copy) when a repo is cloned. But once thats done, a clone repo should be open as in i should be able to upload content like any custom repo. If thats not happening, then i would think thats where the bug is.

My concern here is, the only way to lock a repo today is with this preserve_metadata flag. If we allow an update, then we're giving the user opportunity to mess with their preserved content( red hat content) for example.

Comment 4 Ryan Bowlby 2012-10-17 23:16:21 UTC
The only way to fix bug:  782490 was for me to enable --preserve_metadata on the epel repo. Alas, I'd like to go back and modify all local repo mirrors of external content to preserve metadata. There's no way to do so as far as I can tell.

We should be able to at least enable preserve_metadata on an existing repo whose feed is not local.

Comment 90 Michael Hrivnak 2013-09-27 14:18:39 UTC
the --preserve-metadata option no longer exists.


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