Bug 496664 - Add newly registered systems to search index immediately
Summary: Add newly registered systems to search index immediately
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 530
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 457073
TreeView+ depends on / blocked
 
Reported: 2009-04-20 15:44 UTC by John Matthews
Modified: 2009-09-10 19:32 UTC (History)
1 user (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-10 19:32:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Matthews 2009-04-20 15:44:17 UTC
Description of problem:
Search server polls the database on a configurable time, default is 5 minutes.  This means that when a system is registered, it will not be picked up by search server until the next triggering of this indexing task.

This bug is to note work added to allow a means of system registrations to trigger indexing of new data immediately.

Version-Release number of selected component (if applicable):
All 5.3 ISOs prior to and including 4/19/09


How reproducible:
Always

Steps to Reproduce:
1. Register a new system
2. Search for the new system
  
Actual results:
System isn't found, until you wait 5 minutes then re-search.

Expected results:
System should be available within seconds after a registration.

Additional info:

Comment 1 John Matthews 2009-04-20 15:48:58 UTC
Below two commits in VADER fix this.


commit 6469c552728ffc004afa97cd570ccea8023ddf06

    Search server adding a xmlrpc call that will allow updates to be triggered immediately
    This will be leveraged by the backend.  When a system is registered a xmlrpc
    message will be sent to search server, causing it to update the system indexes.
 


commit a81f21c046b151fc7f3d4ef2aab6aae604ffe6c0

    When a new system is registered it will notify search service
    Adding hook in backend to send a xmlrpc message to search-server,
    tells search-server to look up servers and index new entries.
    Note:  This is not guaranteed, search-server may ignore this if too
    many requests come in.  Index request limiting is handled
    by the quartz trigger name.  Only one trigger per index will be
    allowed to impact scheduling, any other requests received before
    the intial trigger has finished will be dropped.

Comment 2 John Matthews 2009-05-11 17:30:20 UTC
Missed adding "search_notify.py" to the RPM, below commit takes care of this.

http://git.fedorahosted.org/git/?p=spacewalk.git;a=commit;h=bd6ab324ac7d4736021bfcedea73558f06d24774

Comment 3 Preethi Thomas 2009-06-02 19:53:29 UTC
verified.
looks like this working.
Satellite-5.3.0-RHEL5-re20090529.0-i386-embedded-oracle.iso

Comment 4 Jan Pazdziora 2009-09-07 13:18:12 UTC
Stage validated with Satellite-5.3.0-RHEL5-re20090820.1: run rhnreg_ks and when I hit Search in the WebUI two seconds later, the system was found.

Moving to RELEASE_PENDING.

Comment 5 Brandon Perkins 2009-09-10 19:32:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html


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