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 1314563 - katello:reindex is not currently reindexing docker content
Summary: katello:reindex is not currently reindexing docker content
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Brad Buckingham
QA Contact: Jitendra Yejare
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-03 22:57 UTC by Brad Buckingham
Modified: 2019-09-25 21:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 09:25:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14049 0 None None None 2016-04-22 15:08:30 UTC
Red Hat Product Errata RHBA-2016:1501 0 normal SHIPPED_LIVE Red Hat Satellite 6.2 Capsule and Server 2016-07-27 12:28:58 UTC

Description Brad Buckingham 2016-03-03 22:57:51 UTC
Description of problem:

The 'foreman-rake katello:reindex' is often use to ensure that the Satellite (katello) database is kept in sync with backend services (e.g. pulp, candlepin).  While this is not something that is used all of the time, there are times that it is run as part of debugging and resolving issues.

It appears that the current re-index does not include Docker content (i.e. Katello::DockerManifest & Katello::DockerTag).  We should update this to be consistent.

Version-Release number of selected component (if applicable):
Satellite 6.2 snap 2

How reproducible:
always

Steps to Reproduce:

first, let's destroy the docker content in the katello database, leaving in place the data from backend services.  (Note: this should NOT be done on a production system, this is just for testing purposes)
1. foreman-rake console
2. User.current=User.first
3. Katello::DockerManifest.all.count   # keep the count
4. Katello::DockerTag.all.count        # keep the count

5. Katello::DockerManifest.destroy_all

6. Katello::DockerManifest.all.count   # should return 0
7. Katello::DockerTag.all.count        # should return 0

from outside of the console:
8. foreman-rake katello:reindex

from inside of the console:
9. Katello::DockerManifest.all.count   # should return same number as 3 above
10. Katello::DockerTag.all.count       # should return same number as 4 above

Actual results:

The counts from 3 & 9 and 4 & 10 do not match.

Expected results:

The counts should be the same, indicating that the docker content was re-indexed.  In addition, if look closer at the responses (without the '.count') the records should be similar (i.e. ids may be different, but the core content is the same).

Additional info:

Comment 1 Brad Buckingham 2016-03-03 22:58:14 UTC
Created redmine issue http://projects.theforeman.org/issues/14049 from this bug

Comment 2 Bryan Kearney 2016-03-03 23:02:07 UTC
Upstream bug component is Content Management

Comment 4 Brad Buckingham 2016-03-04 14:14:48 UTC
Upstream Katello PR: https://github.com/Katello/katello/pull/5844

Comment 6 Jitendra Yejare 2016-04-15 09:03:20 UTC
Verified in Sat 6.2 snap 8.1.

The issue in not reproducible.

I see that, the counts of docker manifests and tags are same as earlier on re-indexing.


So moving this to verified.

Comment 8 errata-xmlrpc 2016-07-27 09:25:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501


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