Bug 664023 - [RFE] support non-rpm content uploads
Summary: [RFE] support non-rpm content uploads
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: Sprint 21
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 563609 pulp-verified verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-12-17 18:45 UTC by Daniel Mach
Modified: 2011-08-15 15:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-15 15:14:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Daniel Mach 2010-12-17 18:45:39 UTC
Pulp supports only RPMs now.
We'll need another file types to be supported.

ISOs are a good start, we'll definitely need to support *any* file types in the future.

Please clone this to server component if appropriate.

Comment 1 Pradeep Kilambi 2011-03-01 21:40:47 UTC
Just adding a note, pulp now supports uploading any content type. If its has an rpm header it creates a package object, if not its treated as a generic file. 

To upload use,

pulp-admin content upload

To List,

pulp-admin content list

To delete orphaned,

pulp-admin content delete

To specifically add/remove files and package from and to repos,

pulp-admin repo add_package/remove_package/add_file/remove_file

Comment 2 Jeff Ortel 2011-03-02 21:34:41 UTC
Build: 0.144

Comment 3 Preethi Thomas 2011-03-07 20:29:20 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.144-1.fc14.noarch


[root@preethi ~]# pulp-admin content
Usage: pulp-admin <options> content <action> <options>
Supported Actions:
	upload         upload content to pulp server;
	list           list content(packages/files) on pulp server;
	delete         Delete content from the pulp server

pulp-admin: error: no action given: please see --help
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo
Usage: pulp-admin <options> repo <action> <options>
Supported Actions:
	
	add_package    Add package to a repository.
	remove_package Remove package from the repository.
	add_errata     Add errata to a repository
	remove_errata  Remove errata from the repository
	add_file       Add file to a repository.
	remove_file    Remove file from a repository.

pulp-admin: error: no action given: please see --help
[root@preethi ~]# 


[root@preethi ~]# pulp-admin content delete --csv=orphaned.csv
Successfully delete content [grinder-0.0.81-1.fc14.noarch.rpm] from pulp server
Successfully delete content [gofer-0.20-1.fc14.noarch.rpm] from pulp server
Content with filename [grinder-0.0.81-1.noarch.rpm.1] could not be found on server; skipping delete
Successfully delete content [pulp-cds-0.0.143-1.fc14.noarch.rpm] from pulp server
Successfully delete content [antlr-2.7.7-6.fc12.x86_64.rpm] from pulp server
[root@preethi ~]#

Comment 4 Preethi Thomas 2011-08-15 15:14:50 UTC
Closing with current community release

pulp-0.0.223


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