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.

Bug 1199101

Summary: auto-attach content hosts bulk action does not reindex elasticsearch
Product: Red Hat Satellite Reporter: Tom McKay <tomckay>
Component: Content ManagementAssignee: Tom McKay <tomckay>
Status: CLOSED CURRENTRELEASE QA Contact: Tazim Kolhar <tkolhar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bbuckingham, bkearney, cwelton, tkolhar, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/9655
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:59:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tom McKay 2015-03-05 13:19:28 UTC
After running auto-attach on all content hosts via bulk action, the subscriptions page showed obsolete data. rake katello:reindex corrected.

Comment 1 Tom McKay 2015-03-05 13:19:29 UTC
Created from redmine issue http://projects.theforeman.org/issues/9655

Comment 3 Bryan Kearney 2015-04-20 22:05:33 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9655 has been closed
-------------
Thomas McKay
Applied in changeset commit:katello|98e27b80f96e3d5d15776ee9c20fa9897651eb13.

Comment 4 Bryan Kearney 2015-04-21 01:28:41 UTC
commit 8589d0bc27cb61a4e4625ed4cb1aebb4703d7ee5
Author: Tom McKay <thomasmckay>
Date:   Mon Apr 20 15:10:12 2015 -0400

    fixes #9655 - reindex content hosts and ignore warnings
    
    changed generic exception for rubocop
    
    (cherry picked from commit 98e27b80f96e3d5d15776ee9c20fa9897651eb13)

Comment 5 Bryan Kearney 2015-04-21 01:28:57 UTC
commit 8589d0bc27cb61a4e4625ed4cb1aebb4703d7ee5
Author: Tom McKay <thomasmckay>
Date:   Mon Apr 20 15:10:12 2015 -0400

    fixes #9655 - reindex content hosts and ignore warnings
    
    changed generic exception for rubocop
    
    (cherry picked from commit 98e27b80f96e3d5d15776ee9c20fa9897651eb13)

Comment 6 Tazim Kolhar 2015-04-30 09:27:01 UTC
hi

please provide verification steps

thanks

Comment 7 Tom McKay 2015-05-05 11:49:58 UTC
To verify, run auto-attach from the content hosts bulk action UI page. Note that a system that switches from red to green due to the auto-attach will still show up in searches for "status:red" instead of properly showing up in "status:green".

Comment 8 Tazim Kolhar 2015-05-06 08:56:02 UTC
VERIFIED :

# rpm -qa  | grep foreman
ibm-hs22-02.rhts.eng.brq.redhat.com-foreman-proxy-client-1.0-1.noarch
foreman-gce-1.7.2.18-1.el7sat.noarch
foreman-postgresql-1.7.2.18-1.el7sat.noarch
foreman-compute-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.12-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.8-1.el7sat.noarch
foreman-libvirt-1.7.2.18-1.el7sat.noarch
foreman-vmware-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.1.0-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.4-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.6-1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.12-1.el7sat.noarch
ruby193-rubygem-foreman_docker-1.2.0.10-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.10-1.el7sat.noarch
foreman-debug-1.7.2.18-1.el7sat.noarch
foreman-proxy-1.7.2.4-1.el7sat.noarch
ibm-hs22-02.rhts.eng.brq.redhat.com-foreman-client-1.0-1.noarch
ibm-hs22-02.rhts.eng.brq.redhat.com-foreman-proxy-1.0-2.noarch
foreman-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
puppet-foreman_scap_client-0.3.3-8.el7sat.noarch
foreman-ovirt-1.7.2.18-1.el7sat.noarch


steps:
Upload manifest
enable some redhat repos
register a content host
run auto-attach from the content hosts bulk action UI page
system switches from red to green due to the auto-attach

Comment 9 Bryan Kearney 2015-08-11 13:34:00 UTC
This bug is slated to be released with Satellite 6.1.

Comment 10 Bryan Kearney 2015-08-12 13:59:06 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.