Bug 706525 - RFE: support product ID in repodata
Summary: RFE: support product ID in repodata
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 27
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 563609
TreeView+ depends on / blocked
 
Reported: 2011-05-20 19:43 UTC by Daniel Mach
Modified: 2012-02-24 20:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:15:01 UTC


Attachments (Terms of Use)

Description Daniel Mach 2011-05-20 19:43:35 UTC
Could you add support for adding productid to repodata?
Product ID should be stored as a blob (in db? on disk?) and added to a repo during/after createrepo.


Brief specs for an interface (modify to match Pulp interface design):

productid.add(productid, repo_list)
- returns: ??? (probably nothing)
- raise an exception if adding productid to a repo which already contains one
- add productid to the database, store it in each repo record
- add it to repodata after each createrepo


productid.remove(repo_list)
- returns: {repo: productid}
- raise an exception if any repo doesn't exist
- remove productid files from repodata


productid.get(repo_list)
- returns: {repo: productid}


Each change should send a repo change event.

Comment 1 Todd Sanders 2011-05-23 13:42:53 UTC
Supporting custom meta-data on a yum repo makes sense.  We look at supporting adding/removing custom meta-data files, as well as preserving this data through syncs.  Target: Sprint 25

Comment 2 Pradeep Kilambi 2011-07-14 15:21:16 UTC
In sprint 25 we added support for custom metadata Add, list, download and generate operations. We're waiting on dmach's patch to make it into createrepo to support remove metadata.

More info can be found here: https://fedorahosted.org/pulp/wiki/CustomMetadata

Leaving it on Assigned for Remove support

Comment 3 Pradeep Kilambi 2011-08-12 15:56:56 UTC
Added support for remove metadata in Sprint27. This currently works only on fedora-15. Once the remove patch is ported to RHEL-5/6, pulp should automatically handle remove.

Comment 4 Jeff Ortel 2011-08-12 21:48:26 UTC
build: 0.224

Comment 5 Preethi Thomas 2011-09-21 20:17:26 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.232-1.fc15.noarch
[root@preethi ~]# 

[root@preethi ~]# pulp-admin repo
Usage: pulp-admin <options> repo <action> <options>
Supported Actions:
	
	generate_metadata schedule metadata generation for a repository
	add_metadata   add a metadata type to an existing repository
	list_metadata  list metadata type information associated to an existing repository
	download_metadata download a metadata type if available from an existing repository
	remove_metadata remove a metadata type from an existing repository
	

pulp-admin: error: no action given: please see --help

Comment 6 Preethi Thomas 2012-02-24 20:15:01 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 7 Preethi Thomas 2012-02-24 20:16:44 UTC
Pulp v1.0 is released.


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