| Summary: | not able to upload a file to a repo using content upload | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | jortel, pkilambi |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:14:25 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
commit 0aa9eaefd04e1ce593852289606dbea8215f6c0d 0.254-6 verified [root@preethi ~]# rpm -q pulp pulp-0.0.254-6.fc15.noarch [root@preethi ~]# [root@preethi ~]# pulp-admin content upload --dir /root/upload/ -r content -v --nosig * 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 Package with same NVREA [(u'gofer', u'0', u'0.32', u'1.fc14', u'noarch')] already exists in repo [content] Package with same filename [gofer-0.32-1.fc14.noarch.rpm] already exists in repo [content] Packages skipped because of filters associated with the repository content : 0 * Metadata generation has been scheduled for repository [content] with a task id [88fa4a8c-2591-11e1-9659-002564a85a58]; use `pulp-admin repo generate_metadata --status` to check the status. Content association Complete for Repo [content]: Packages: pulp-0.0.168-1.fc14.noarch.rpm gofer-0.32-1.fc14.noarch.rpm Files: test.txt test2.txt files.csv error: * Content Upload complete. [root@preethi ~]# Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |
Description of problem: using content upload to upload files to a repo fails with UnboundLocalError Version-Release number of selected component (if applicable): [root@preethi ~]# rpm -q pulp pulp-0.0.254-5.fc15.noarch How reproducible: Steps to Reproduce: 1. create a repo (I tried both yum & file) 2. run pulp-admin content upload with -f and -r option 3. see the error Actual results: [root@preethi ~]# pulp-admin -u admin -p admin content upload /root/upload/test.txt -r file-repo1 -v * Starting Content Upload * Performing Content Uploads to Pulp server Content [test.txt] already exists on the server with checksum [119e74eb7308817acef45688fac0e33262b960802f5fda45c55cd6093dd9d343] * 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 177, in run if filtered_count == 0: UnboundLocalError: local variable 'filtered_count' referenced before assignment [root@preethi ~]# Expected results: successful upload to the repo Additional info: