| Summary: | content upload failure with packages | ||
|---|---|---|---|
| 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: | 1.0.0 | Keywords: | Triaged |
| 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:16:22 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 d8297adcd3adf93b3e1374bd677c9d899084434c build: 0.259 verified [root@preethi ~]# pulp-admin content upload --dir /root/upload/ -v --nosig* 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 Successfully uploaded [test.txt] to server Successfully uploaded [pulp-0.0.168-1.fc14.noarch.rpm] to server * Content Upload complete. [root@preethi ~]# pulp-admin content upload --dir /root/upload/ -v --nosig -r content * 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] Content [test2.txt] already exists on the server with checksum [8ff2165791201edf1f3ed70518d8b30115a1272eabe231a50fe50445a9ff19ae] Content [files.csv] already exists on the server with checksum [c6cd8ebc039bb5f184408e2726da5f3cd614ec912856e4af8a44d0deee040f5b] Content [test.txt] already exists on the server with checksum [119e74eb7308817acef45688fac0e33262b960802f5fda45c55cd6093dd9d343] Content [pulp-0.0.168-1.fc14.noarch.rpm] already exists on the server with checksum [8052aa889f23423d7a94548620ad1f01ff6862219357e41427fd4944535f4a52] * 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 [61b23b3d-45f1-11e1-9189-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 * Content Upload complete. [root@preethi ~]# pulp-admin repo clone --id=content --clone_id=clone_1 -f blacklist --feed=none -F Repository [content] is being cloned as [clone_1] Clone: Finished Item Details: RPMs: 1/2 [root@preethi ~]# pulp-admin content upload --dir /root/upload/ -v --nosig -r clone_1 * 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] Content [test2.txt] already exists on the server with checksum [8ff2165791201edf1f3ed70518d8b30115a1272eabe231a50fe50445a9ff19ae] Content [files.csv] already exists on the server with checksum [c6cd8ebc039bb5f184408e2726da5f3cd614ec912856e4af8a44d0deee040f5b] Content [test.txt] already exists on the server with checksum [119e74eb7308817acef45688fac0e33262b960802f5fda45c55cd6093dd9d343] Content [pulp-0.0.168-1.fc14.noarch.rpm] already exists on the server with checksum [8052aa889f23423d7a94548620ad1f01ff6862219357e41427fd4944535f4a52] * Performing Repo Associations Package with same NVREA [(u'gofer', u'0', u'0.32', u'1.fc14', u'noarch')] already exists in repo [clone_1] Package with same filename [gofer-0.32-1.fc14.noarch.rpm] already exists in repo [clone_1] Packages skipped because of filters associated with the repository clone_1 : 1 * Metadata generation has been scheduled for repository [clone_1] with a task id [843c3587-45f6-11e1-b87f-002564a85a58]; use `pulp-admin repo generate_metadata --status` to check the status. Content association Complete for Repo [clone_1] error: * Content Upload complete. [root@preethi ~]# Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |
Description of problem: package upload with pulp-admin content upload fails with type error Version-Release number of selected component (if applicable): [root@preethi ~]# rpm -q pulp pulp-0.0.258-1.fc15.noarch How reproducible: Steps to Reproduce: 1. run pulp-admin content upload to upload a package 2. 3. Actual results: [root@preethi ~]# pulp-admin content upload --dir /root/upload/ -v --nosig * Starting Content Upload * Performing Content Uploads to Pulp server error: operation failed: TypeError: 'NoneType' object is not subscriptable [root@preethi ~]# pulp-admin -u admin -p admin content upload /root/upload/pulp-0.0.168-1.fc14.noarch.rpm -v -r content-upload --nosig * Starting Content Upload * Performing Content Uploads to Pulp server error: operation failed: TypeError: 'NoneType' object is not subscriptable Expected results: package upload success. Additional info: 2012-01-18 11:45:23,182 6330:139987127359232: pulp.server.webservices.controllers.decorators:ERROR: decorators:52 Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", line 48, in report_error return method(self, *args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator value = method(self, *args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/services.py", line 205, in POST return self.ok(capi.process()) File "/usr/lib/python2.7/site-packages/pulp/server/api/upload.py", line 284, in process return self.__import_rpm() File "/usr/lib/python2.7/site-packages/pulp/server/api/upload.py", line 349, in __import_rpm pkg = bsync.import_package(packageInfo) File "/usr/lib/python2.7/site-packages/pulp/server/api/synchronizers.py", line 492, in import_package newpkg = self.__import_package_with_retry(package, repo, repo_defined) File "/usr/lib/python2.7/site-packages/pulp/server/api/synchronizers.py", line 464, in __import_package_with_retry repo_defined=repo_defined, repoids=[repo['id']]) TypeError: 'NoneType' object is not subscriptable