Hide Forgot
Description of problem: uploading content to repo which has filter associated fails with index out of range. Version-Release number of selected component (if applicable): [root@preethi ~]# rpm -q pulp pulp-0.0.254-6.fc15.noarch How reproducible: Steps to Reproduce: 1. create a blacklist filter with a package 2. associate the filter to a local repo 3. try content upload to the repo from a dir which has the filtered package Actual results: [root@preethi ~]# pulp-admin content upload --dir=/root/upload/ -r content-1 --nosig -v * Starting Content Upload * Performing Content Uploads to Pulp server Successfully uploaded [gofer-0.32-1.fc14.noarch.rpm] to server Successfully uploaded [test2.txt] to server Successfully uploaded [files.csv] to server Content [test.txt] already exists on the server with checksum [119e74eb7308817acef45688fac0e33262b960802f5fda45c55cd6093dd9d343] Successfully uploaded [pulp-0.0.168-1.fc14.noarch.rpm] to server * Performing Repo Associations Traceback (most recent call last): File "/usr/bin/pulp-admin", line 23, in <module> admin.main() File "/usr/lib/python2.7/site-packages/pulp/client/lib/cli.py", line 152, in main command.main(self.args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/pluginlib/command.py", line 129, in main action.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/pluginlib/command.py", line 211, in main self.run() File "/usr/lib/python2.7/site-packages/pulp/client/admin/plugins/content.py", line 167, in run error_message = e[4] IndexError: list index out of range [root@preethi ~]# pulp-admin filter list +------------------------------------------+ Available Filters +------------------------------------------+ Id : pulp Description : pulp Type : blacklist Package List : ['gofer'] [root@preethi ~]# ls /root/upload/ files.csv pulp-0.0.168-1.fc14.noarch.rpm test.txt gofer-0.32-1.fc14.noarch.rpm test2.txt Expected results: No error when filtering Additional info:
commit 1b0a044bfda3fba0b3f5785fc663101f1bd7042b Author: Sayli Karmarkar <skarmark> Date: Wed Dec 14 10:56:27 2011 -0800 767618 - Fixed error when uploading content to a repo with filter
build 0.254-7
verified [root@preethi ~]# rpm -q pulp pulp-0.0.254-7.fc15.noarch [root@preethi ~]# [root@preethi ~]# pulp-admin repo add_filters --id=content1 -f pulp Successfully added filters ['pulp'] to repository [content1] [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-admin content upload /root/upload/test.txt -r content -v * Starting Content Upload * Performing Content Uploads to Pulp server Successfully uploaded [test.txt] to server * Performing Repo Associations Content association Complete for Repo [content]: Packages: None Files: test.txt * Content Upload complete. [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-admin content upload /root/upload/gofer-0.32-1.fc14.noarch.rpm -r content --nosig -v * Starting Content Upload * Performing Content Uploads to Pulp server Successfully uploaded [gofer-0.32-1.fc14.noarch.rpm] to server * Performing Repo Associations Packages skipped because of filters associated with the repository content : 0 * Metadata generation has been scheduled for repository [content] with a task id [e90d218a-269d-11e1-a95d-002564a85a58]; use `pulp-admin repo generate_metadata --status` to check the status. Content association Complete for Repo [content]: Packages: gofer-0.32-1.fc14.noarch.rpm Files: None * Content Upload complete. [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-admin content upload --dir /root/upload/ -r content1 --nosig -v * Starting Content Upload * Performing Content Uploads to Pulp server Content [gofer-0.32-1.fc14.noarch.rpm] already exists on the server with checksum [af032f3119837475ede531a3b1b0fc44da1f9e3bbe2ca958fe4179cb19e12873] Successfully uploaded [test2.txt] to server Successfully uploaded [files.csv] to server Content [test.txt] already exists on the server with checksum [119e74eb7308817acef45688fac0e33262b960802f5fda45c55cd6093dd9d343] Successfully uploaded [pulp-0.0.168-1.fc14.noarch.rpm] to server * Performing Repo Associations Packages skipped because of filters associated with the repository content1 : 1 * Metadata generation has been scheduled for repository [content1] with a task id [fd957097-269d-11e1-afed-002564a85a58]; use `pulp-admin repo generate_metadata --status` to check the status. Content association Complete for Repo [content1] * Content Upload complete. [root@preethi ~]# pulp-admin repo content --id=content1 +------------------------------------------+ Contents of content1 +------------------------------------------+ Packages in content1: pulp-0.0.168-1.fc14.noarch.rpm Errata in content1: none Files in content1: test.txt test2.txt files.csv [root@preethi ~]#
Pulp v1.0 is released Closed Current Release.
Pulp v1.0 is released.