Bug 785298 - Adding multiple packages to a Repository does not update Repository IDs for all packages
Summary: Adding multiple packages to a Repository does not update Repository IDs for a...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-27 21:48 UTC by Eric Helms
Modified: 2013-09-09 16:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Eric Helms 2012-01-27 21:48:43 UTC
Description of problem:
When adding multiple packages to a repository via the API, only one of the packages has its repository ID updated.

Version-Release number of selected component (if applicable):
Build 262

How reproducible:
Always

Steps to Reproduce:
1. Create a repository: ACME_Corporation-Dev-TestIndex-Katello_x86_64_6Server
2. Add multiple packages to repository via API:

Resource POST request: /pulp/api/repositories/ACME_Corporation-Dev-TestIndex-Katello_x86_64_6Server/add_package/, {"packageid":["d17064b5-7fdb-4fd2-b513-e41347e0ddc6","a9b591af-e54a-4b13-88ba-c82a3b113ce5","dd41c76d-b863-485c-8ad4-a8a204a32bce","5b17fb9c-bdb6-4b31-bf2e-7cea31a372cd","9a549a7d-786a-4d10-8e5e-d4d036b9e82c","19be618c-1336-43c5-90ba-05196da3111c","3b4d9d62-d42a-47a8-8ede-c0a3208893f4","97154338-22f7-4809-bacc-e565e6c08e21"]}

3. For each of the packages, query the API for package information:
curl -u admin:admin -k https://localhost/pulp/api/packages/<package_id>/
  
Actual results:
Only one of the above packages will list the repository under repoids.  The rest of the packages will not show that they belong the created repository.

Expected results:
All packages added to the repository show that they belong to the repository.

Additional info:

Comment 1 Pradeep Kilambi 2012-01-30 15:06:52 UTC
this is resolved as part of bug#784724

Comment 2 Preethi Thomas 2012-02-01 20:39:33 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.263-1.fc15.noarch

[root@preethi ~]# curl -u admin:admin -k https://localhost/pulp/api/packages/9613d3b9-53a4-4566-ba54-c72bc702c357/
{"license": "LGPLv2", "vendor": "", "name": "python-gofer", "repo_defined": true, "checksum": {"sha256": "51ff31ba1278acf55e0e2ea3afeffb75c4fb1a1688e165c4d07d181e287e4dfb"}, "description": "Contains gofer python lib modules.", "filename": "python-gofer-0.64-1.el6.noarch.rpm", "download_url": "https://preethi.usersys.redhat.com//pulp/repos/repos/pulp/pulp/testing/6Server/x86_64/python-gofer-0.64-1.el6.noarch.rpm", "buildhost": "rhel6-builder", "repoids": ["test", "content"], "epoch": "0", "version": "0.64", "arch": "noarch", "provides": ["python-gofer"], "_ns": "packages", "release": "1.el6", "group": "Development/Languages", "_id": "9613d3b9-53a4-4566-ba54-c72bc702c357", "requires": ["python-qpid", "python(abi)", "PyPAM", "/bin/sh", "python-simplejson"], "id": "9613d3b9-53a4-4566-ba54-c72bc702c357", "size": 92236}[root@preethi ~]# 
[root@preethi ~]# curl -u admin:admin -k https://localhost/pulp/api/packages/c6078274-3508-4063-bb2d-f998a7b6099b/
{"license": "ASL 2.0", "vendor": "", "name": "python-qpid", "repo_defined": true, "checksum": {"sha256": "21a72ab521d6dd364a32c8e2d0f562b2fadd5cf701631417b0779f3258eae59c"}, "description": "The Apache Qpid Python client library for AMQP.", "filename": "python-qpid-0.7.946106-1.el6.noarch.rpm", "download_url": "https://preethi.usersys.redhat.com//pulp/repos/repos/pulp/pulp/testing/6Server/x86_64/python-qpid-0.7.946106-1.el6.noarch.rpm", "buildhost": "rhel6-builder", "repoids": ["test", "content"], "epoch": "0", "version": "0.7.946106", "arch": "noarch", "provides": ["python-qpid"], "_ns": "packages", "release": "1.el6", "group": "Development/Python", "_id": "c6078274-3508-4063-bb2d-f998a7b6099b", "requires": ["/usr/bin/env", "python(abi)", "/usr/bin/python"], "id": "c6078274-3508-4063-bb2d-f998a7b6099b", "size": 419488}[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# curl -u admin:admin -k https://localhost/pulp/api/packages/1d203af1-3e3a-480c-986e-c6cdae219acc/
{"license": "MIT", "vendor": "", "name": "python-oauth2", "repo_defined": true, "checksum": {"sha256": "910f9033f172aa9a2bcc8305e927940ec843706206ea3b43fc602dba7c2b49b5"}, "description": "Oauth2 was originally forked from Leah Culver and Andy Smith's oauth.py\ncode. Some of the tests come from a fork by Vic Fryzel, while a revamped\nRequest class and more tests were merged in from Mark Paschal's fork. A\nnumber of notable differences exist between this code and its forefathers:\n\n- 100% unit test coverage.\n- The DataStore object has been completely ripped out. While creating unit\n  tests for the library I found several substantial bugs with the\n  implementation and confirmed with Andy Smith that it was never fully\n  baked.\n- Classes are no longer prefixed with OAuth.\n- The Request class now extends from dict.\n- The library is likely no longer compatible with Python 2.3.\n- The Client class works and extends from httplib2. It's a thin wrapper\n  that handles automatically signing any normal HTTP request you might\n  wish to make.", "filename": "python-oauth2-1.5.170-2.pulp.el6.noarch.rpm", "download_url": "https://preethi.usersys.redhat.com//pulp/repos/repos/pulp/pulp/testing/6Server/x86_64/python-oauth2-1.5.170-2.pulp.el6.noarch.rpm", "buildhost": "rhel6-builder", "repoids": ["test", "content"], "epoch": "0", "version": "1.5.170", "arch": "noarch", "provides": ["python-oauth2"], "_ns": "packages", "release": "2.pulp.el6", "group": "System Environment/Libraries", "_id": "1d203af1-3e3a-480c-986e-c6cdae219acc", "requires": ["python-httplib2", "python(abi)"], "id": "1d203af1-3e3a-480c-986e-c6cdae219acc", "size": 25080}[root@preethi ~]#

Comment 3 Preethi Thomas 2012-02-24 20:18:25 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 4 Preethi Thomas 2012-02-24 20:19:06 UTC
Pulp v1.0 is released.


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