Bug 1002590 - wrong WebUI advice how to regenerate search index
Summary: wrong WebUI advice how to regenerate search index
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 560
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Ales Dujicek
URL:
Whiteboard:
Depends On:
Blocks: sat570-lowbug
TreeView+ depends on / blocked
 
Reported: 2013-08-29 13:45 UTC by Martin Korbel
Modified: 2019-03-22 07:07 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-13 09:54:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
rhn-search (76.90 KB, image/png)
2013-08-29 13:45 UTC, Martin Korbel
no flags Details

Description Martin Korbel 2013-08-29 13:45:52 UTC
Created attachment 791812 [details]
rhn-search

Description of problem:
When we have a non-consistent searching index data, We can see this error message
"SearchServer index and database entries appear to be out of sync. Please run '/usr/sbin/rhn-search cleanindex'"
But file /usr/sbin/rhn-search does not exist.


Version-Release number of selected component (if applicable):
Sat5.6.0@RHEL6

How reproducible:
10%

Steps to Reproduce:
Sorry, but I have not been success to make reproducer. 
Inasmuch as this bug has not high priority and it is only mistake in text. 
I think the reproducer is not necessary.
The error message you can see in attachmet rhn-search.png

Actual results:
"SearchServer index and database entries appear to be out of sync. Please run '/usr/sbin/rhn-search cleanindex'"

Expected results:
"SearchServer index and database entries appear to be out of sync. Please run 'service rhn-search cleanindex'"

Comment 1 Tomas Lestach 2013-08-30 06:43:21 UTC
Valid bug.
However I am not happy about this change at this time, as it will complicate the merge process of translated strings.

What I did was:
sed -i 's/\/usr\/sbin\/rhn-search cleanindex/service rhn-search cleanindex/' java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_*

Please note I touched 3 different strings:
packages.search.index_files_missing
packages.search.index_files_missing_for_docs
searchserver.index_out_of_sync_with_db


spacewalk.git: 6f3ec5ff59ab8854cd8244c5ac3f3afd66e061f3

Comment 3 Michael Mráka 2013-10-02 14:03:51 UTC
In spacewalk it's been (re)fixed by creating /usr/sbin/rhn-search both on SystemV and systemd based OSes.

commit 4c3e294e7883df195c20b7ee9d5b5818e9c06c3d
    1002590 - unified way how we call rhn-search cleanindex

Comment 5 Clifford Perry 2015-01-13 09:54:13 UTC
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is
being moved to a Closed Current Release state. 

The Satellite 5.7 GA Errata:
 - https://rhn.redhat.com/errata/RHSA-2015-0033.html 

Satellite 5.7 Release Notes:
 -
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html

Satellite Customer Portal Blog announcement for release:
 - https://access.redhat.com/blogs/1169563/posts/1315743 

Cliff


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