Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionBrad Buckingham
2012-01-20 01:19:20 UTC
Description of problem:
In the System Templates UI, when a user selects a package (e.g. [product-X] => Packages => [package-Y]) to add to a template, the UI will send an 'auto_complete_locker' request to Katello to retrieve/validate the package. In the current implementation, the UI packages_controller will use the pulp API (Pulp::Package.name_search) to retrieve the details; however, for efficiency, we'd like to use elastic search to perform this (e.g. Glue::Pulp::Package.name_search).
Unfortunately, the API using elastic search does not return the correct result. In many cases, the package is not found which will result in the behavior described by bug 773454.
After initial investigation, it appears that this may be related to the indexing of packages not occurring properly. The indexing occurs after a repo sync completes (app/models/repository.rb - index_packages).
For example,
- sync a repo (e.g. rhel-6)
- from rails console, query all packages:
irb(main):025:0> s = Tire.search('katello_package') {query {all}}
irb(main):024:0> s.results.length
=> 10
Given the above search, we should see several thousand packages returned.
Version-Release number of selected component (if applicable):
git master
How reproducible:
always
commit - e4f68e7f04bad063476be2d27db0912e59f73184
Updated the indexing of packages to support an ngram filter. This allows us to support 'auto-complete' for package names as well as queries of the complete package name. Updated the system-templates UI to use elastic search.