Project

Profile

Help

Issue #1898

closed

Errata search does not filter packages that are not in repo

Added by ttereshc over 8 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

When you search an erratum in a particular repo, the packages for all repositories will be shown, not only for the requested one.
Sean did a great job filtering this packages during publish.

$ pulp-admin -vv rpm repo content errata --repo-id demo2 --erratum-id RHBA-2016:0173
2016-05-05 20:19:17,231 - DEBUG - sending POST request to /pulp/api/v2/repositories/demo2/search/units/
2016-05-05 20:19:17,260 - INFO - POST request to /pulp/api/v2/repositories/demo2/search/units/ with parameters {"criteria": {"type_ids": ["erratum"], "filters": {"unit": {"id": "RHBA-2016:0173"}}}}

...

      "pkglist": [
        {
          "_pulp_repo_id": "demo", 
          "packages": [
            {
              "src": "pulp-rpm-2.6.0.20-1.el6.src.rpm", 
              "name": "pulp-rpm-handlers", 
              "sum": [
                "sha256", 
                "6ddc8fac32529bce6d790847f7e9ffcd768ee33981cf15a1927a45f2c31c396c"
              ], 
              "filename": "pulp-rpm-handlers-2.6.0.20-1.el6.noarch.rpm", 
              "epoch": "0", 
              "version": "2.6.0.20", 
              "release": "1.el6", 
              "arch": "noarch"
            }, 
            {
              "src": "pulp-2.6.0.20-1.el6.src.rpm", 
              "name": "python-pulp-agent-lib", 
              "sum": [
                "sha256", 
                "ea8ed2cc973b7d909c74a3f7d45b138aa3a6702c35a5a3b3d709783c34eeab07"
              ], 
              "filename": "python-pulp-agent-lib-2.6.0.20-1.el6.noarch.rpm", 
              "epoch": "0", 
              "version": "2.6.0.20", 
              "release": "1.el6", 
              "arch": "noarch"
            }, 
            {
              "src": "pulp-2.6.0.20-1.el6.src.rpm", 
              "name": "python-pulp-common", 
              "sum": [
                "sha256", 
                "64a772457b0f933c9e7fc4fdef6e6b61d1f12452630d4c0b0c57b8130d476930"
              ], 
              "filename": "python-pulp-common-2.6.0.20-1.el6.noarch.rpm", 
              "epoch": "0", 
              "version": "2.6.0.20", 
              "release": "1.el6", 
              "arch": "noarch"
            }, 
            {
              "src": "pulp-rpm-2.6.0.20-1.el6.src.rpm", 
              "name": "python-pulp-rpm-common", 
              "sum": [
                "sha256", 
                "b9dc384115d7e80defcd81061781048c011092ec911d38d3634ed615ea5d9a96"
              ], 
              "filename": "python-pulp-rpm-common-2.6.0.20-1.el6.noarch.rpm", 
              "epoch": "0", 
              "version": "2.6.0.20", 
              "release": "1.el6", 
              "arch": "noarch"
            }
          ], 
          "name": "rhel-6-server-satellite-tools-6_DOT_1-rpms__x86_64", 
          "short": ""
        }, 
        {
          "_pulp_repo_id": "demo2", 
          "packages": [
            {
              "src": "pulp-rpm-2.6.0.20-1.el7sat.src.rpm", 
              "name": "pulp-rpm-handlers", 
              "sum": [
                "sha256", 
                "c755358baf748b2fc878e427e55f0eea8af4b7efa926a8acb4334faefcd6b2d2"
              ], 
              "filename": "pulp-rpm-handlers-2.6.0.20-1.el7sat.noarch.rpm", 
              "epoch": "0", 
              "version": "2.6.0.20", 
              "release": "1.el7sat", 
              "arch": "noarch"
            }, 
            {
              "src": "pulp-2.6.0.20-1.el7sat.src.rpm", 
              "name": "python-pulp-agent-lib", 
              "sum": [
                "sha256", 
                "5ea714b1c2575cceb01e811551d59991c310593258ef651126bbf26080262588"
              ], 
              "filename": "python-pulp-agent-lib-2.6.0.20-1.el7sat.noarch.rpm", 
              "epoch": "0", 
              "version": "2.6.0.20", 
              "release": "1.el7sat", 
              "arch": "noarch"
            }, 
            {
              "src": "pulp-2.6.0.20-1.el7sat.src.rpm", 
              "name": "python-pulp-common", 
              "sum": [
                "sha256", 
                "9b0255830ec86bceb6382dcc79b0b6583232382c981603292162769f37e0788e"
              ], 
              "filename": "python-pulp-common-2.6.0.20-1.el7sat.noarch.rpm", 
              "epoch": "0", 
              "version": "2.6.0.20", 
              "release": "1.el7sat", 
              "arch": "noarch"
            }, 
            {
              "src": "pulp-rpm-2.6.0.20-1.el7sat.src.rpm", 
              "name": "python-pulp-rpm-common", 
              "sum": [
                "sha256", 
                "dcc7a20ff9a9d0da118c53f1f1a2e1918569daa59b7185b0b16bcf8b15373bec"
              ], 
              "filename": "python-pulp-rpm-common-2.6.0.20-1.el7sat.noarch.rpm", 
              "epoch": "0", 
              "version": "2.6.0.20", 
              "release": "1.el7sat", 
              "arch": "noarch"
            }
          ], 
          "name": "rhel-7-server-satellite-tools-6_DOT_1-rpms__x86_64", 
          "short": ""
        }
      ]

...
+----------------------------------------------------------------------+
                        Erratum: RHBA-2016:0173
+----------------------------------------------------------------------+

Id:                RHBA-2016:0173

...

Updated Packages:
  pulp-rpm-handlers-0:2.6.0.20-1.el6.noarch
  python-pulp-agent-lib-0:2.6.0.20-1.el6.noarch
  python-pulp-common-0:2.6.0.20-1.el6.noarch
  python-pulp-rpm-common-0:2.6.0.20-1.el6.noarch
  pulp-rpm-handlers-0:2.6.0.20-1.el7sat.noarch
  python-pulp-agent-lib-0:2.6.0.20-1.el7sat.noarch
  python-pulp-common-0:2.6.0.20-1.el7sat.noarch
  python-pulp-rpm-common-0:2.6.0.20-1.el7sat.noarch

...

Also available in: Atom PDF