Bug 773375 - Repository sync not properly populating repoids of packages
Summary: Repository sync not properly populating repoids of packages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
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-11 17:03 UTC by Justin Sherrill
Modified: 2013-09-09 16:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:14:43 UTC


Attachments (Terms of Use)

Description Justin Sherrill 2012-01-11 17:03:27 UTC
Version-Release number of selected component (if applicable):
pulp-0.0.257-1.fc15.noarch

How reproducible:
Always

Steps to Reproduce:
1.  Create repo A pointing to something like Katello's yum repo
2.  Create repo B pointing to something like Spacewalk's yum repo
3.  Sync repo A
4.  Sync repo B
5.  List packages from repo A and repo B and verify repoids list for each package is accurate
  
Actual results:
The list is not accurate, some of the repos show packages as being in both repos when they are not.

Expected results:
The list is accurate, most (if not all packages) are only in a single repo.

Comment 1 Pradeep Kilambi 2012-01-11 23:07:11 UTC
commit 6fb2980b93196fc95c8e2d760e4c1a49637d807f

Comment 2 Jeff Ortel 2012-01-16 22:47:56 UTC
build: 0.258

Comment 3 Preethi Thomas 2012-01-25 16:13:22 UTC
verified

[root@preethi ~]# curl -u admin:admin -X POST -d '{"repoids":["spacewalk"]}' -k  https://localhost/pulp/api/services/search/packages/  |json_reformat |more
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45569  100 45544  100    25   191k    107 --:--:-- --:--:-- --:--:--  192k
[
  {
    "repoids": [
      "spacewalk"
    ],
    "checksum": {
      "sha": "6eaeee6b3f3bb5d6f37c49bd6e5280ac7e8ee9ec"
    },
    "filename": "nutch-1.0-0.10.20081201040121nightly.fc14.noarch.rpm",
    "epoch": "0",
    "version": "1.0",
    "release": "0.10.20081201040121nightly.fc14",
    "_id": "102d58b9-c32b-4e15-a124-5fa8bf3d7f9c",
    "arch": "noarch",
    "id": "102d58b9-c32b-4e15-a124-5fa8bf3d7f9c",
    "name": "nutch"
  },
  {
    "repoids": [
      "spacewalk"
    ],
    "checksum": {
      "sha": "b467b8064a30273340810246fd5f84813eabf236"


-More--


[root@preethi ~]# curl -u admin:admin -X POST -d '{"repoids":["katello"]}' -k  https://localhost/pulp/api/services/search/packages/  |json_reformat |more  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 56767  100 56744  100    23   220k     91 --:--:-- --:--:-- --:--:--  221k
[
  {
    "repoids": [
      "katello"
    ],
    "checksum": {
      "sha256": "1fa06750e228af2126d990c65ee6fd58bdb2e58ad0f7c9c50a21283736fec7f
c"
    },
    "filename": "rubygem-haml-3.1.2-1.el6.noarch.rpm",
    "epoch": "0",
    "version": "3.1.2",
    "release": "1.el6",
    "_id": "a464fed6-d88d-49c2-84fe-434d3da6ee3f",
    "arch": "noarch",
    "id": "a464fed6-d88d-49c2-84fe-434d3da6ee3f",
    "name": "rubygem-haml"
  },
  {
    "repoids": [
      "katello"
    ],
    "checksum": {

Comment 4 Preethi Thomas 2012-02-24 20:14:43 UTC
Pulp v1.0 is released
Closed Current Release.

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


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