Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1188120 - Applicability API returning no results
Summary: Applicability API returning no results
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: sat6-pulp-blocker
TreeView+ depends on / blocked
 
Reported: 2015-02-02 06:31 UTC by Mike McCune
Modified: 2017-07-26 19:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-06 16:40:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mike McCune 2015-02-02 06:31:46 UTC
Created a consumer with 1 package installed, profile via: 

/pulp/api/v2/consumers/integration_test_consumer_support/profiles/ 

          "profile":
           [
               {
                   "vendor": "Fedora",
                   "name": "elephant",
                   "epoch": 0,
                   "version": "0.2",
                   "release": "0.7",
                   "arch": "noarch"
               }
           ],
           "_href": "/pulp/api/v2/consumers/integration_test_consumer_support/profiles/integration_test_consumer_support/rpm/",
           "content_type": "rpm",
           "_ns": "consumer_unit_profiles",
           ....


Bound to the repo in question via:

/pulp/api/v2/consumers/integration_test_consumer_support/bindings/

[
   {
       "notify_agent": false,
       "repo_id": "integration_test_id",
       "_href": "/pulp/api/v2/consumers/integration_test_consumer_support/bindings/integration_test_id/yum_dist/",
       "type_id": "yum_distributor",
       "deleted": false,
       "_ns": "consumer_bindings",
       "_id":
       {
           "$oid": "54ce97abb2ff9879e94e1b70"
       },
       "consumer_id": "integration_test_consumer_support",
...

which contains a new version of above 'elephant' package via:

/pulp/api/v2/repositories/integration_test_id/search/units/

[
   {
....snip....
    },
   {
       "updated": "2015-02-02T06:15:11Z",
       "repo_id": "integration_test_id",
       "created": "2015-02-02T06:15:11Z",
       "_ns": "repo_content_units",
       "unit_id": "df36fed0-1c03-4c3c-ade3-0363b51aa0fa",
       "metadata":
       {
           "_id": "df36fed0-1c03-4c3c-ade3-0363b51aa0fa",
           "name": "elephant",
           "version": "0.3",
           "_content_type_id": "rpm"
       },
       "unit_type_id": "rpm",
       "owner_type": "importer",
       "_id":
       {
           "$oid": "54cf15efb2ff981e8887d7e5"
       },
       "id": "54cf15efb2ff981e8887d7e5",
       "owner_id": "yum_importer"
   },

we regenerated applicability:

 "POST /pulp/api/v2/consumers/actions/content/regenerate_applicability//

and fetched it after the task is done but nothing in it:



    [
       {
           "applicability":
           {
               "rpm":
               [
                   "df36fed0-1c03-4c3c-ade3-0363b51aa0fa"
               ],
               "erratum":
               [
               ]
           },
           "consumers":
           [
               "integration_test_consumer_support"
           ]
       }
    ]

Comment 1 Mike McCune 2015-02-02 06:32:08 UTC
using : pulp-server-2.6.0-0.5.beta.el6.noarch

Comment 2 Chris Duryee 2015-02-02 21:10:23 UTC
This appears to be caused by the erratum's package list mentioning an elephant package with no epoch, whereas the elephant 0.3 package itself has an epoch of "0". Thus, the erratum is not applicable since it does not contain a package that the consumer has access to.

I am closing this BZ but feel free to re-open or reach out on IRC if updating the erratum does not fix this, or if you need any help otherwise.

Comment 3 RHEL Program Management 2015-03-03 20:19:27 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.


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