rhnpush can perform a 'nochannel' push to upload files in preparation to a release. Another push only subscribes these files to channels (repos), which is significantly faster, because no files are transfered this time. Can you modify pulp to support this scenario? Following 2 actions are needed to do so: - upload a file without specifying a repo - attach the file (identified probably by (name, checksum)) to a repo - allow to specify more repos and files at once The benefit is also in uploading lots and lots of files - files are uploaded first, subscribed to repos later -> it makes uploads more atomic from consumer's perspective
$ sha256sum signed/bash-4.1.2-8.el6.i686.rpm f1e6d6b2896fab6accaafebc9a9c7f6d3367516dbdea4d5af142e2a7cff71771 signed/bash-4.1.2-8.el6.i686.rpm $ sha256sum unsigned/bash-4.1.2-8.el6.i686.rpm 3de776d3a999ab65998a89e561c5bcffad3b5ac16963fc10fcd2f12b1d922606 unsigned/bash-4.1.2-8.el6.i686.rpm Uploading *unsigned* copy of a RPM: $ pulp-admin package upload unsigned/bash-4.1.2-8.el6.i686.rpm STEP: ** Performing Package Uploads to Pulp server ** Successfully uploaded [bash-4.1.2-8.el6.i686.rpm] to server Uploading *signed* copy of a RPM: $ pulp-admin --username=admin --password=admin package upload signed/bash-4.1.2-8.el6.i686.rpm STEP: ** Performing Package Uploads to Pulp server ** Package [bash-4.1.2-8.el6.i686.rpm] already exists on the server with checksum [{'sha256': '3de776d3a999ab65998a89e561c5bcffad3b5ac16963fc10fcd2f12b1d922606'}] -> Can't upload a different RPM with the same N-V-R.A to server. We'll need to distinguish uploaded file by file_name (or NVRA) and sha256sum.
Addressed in Sprint 21. -tsanders
verified [root@preethi ~]# rpm -q pulp pulp-0.0.173-1.fc14.noarch [root@preethi ~]# pulp-admin content upload upload/pulp-0.0.168-1.fc14.noarch.rpm --nosig -v * Starting Content Upload * Performing Content Uploads to Pulp server Successfully uploaded [pulp-0.0.168-1.fc14.noarch.rpm] to server * Content Upload complete.
Closing with current community release pulp-0.0.223