Bug 1485950 - rhn-search logfile hadoop.log in /usr/sbin
Summary: rhn-search logfile hadoop.log in /usr/sbin
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space28
TreeView+ depends on / blocked
 
Reported: 2017-08-28 14:26 UTC by Pavel Studeník
Modified: 2018-04-20 12:32 UTC (History)
2 users (show)

Fixed In Version: nutch-1.0-0.18.20081201040121nightly.el7.centos
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-20 12:32:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Pavel Studeník 2017-08-28 14:26:05 UTC
Description of problem:
I checked files in sbin directory and I found log file, which should be save in some other directory. The directory sbin is not good for them. I suppose that the log was created by rhn-search. rhn-search has own logfile in directory /var/log/rhn/search/

>> ls /usr/sbin/hadoop.log -hs
2,5M /usr/sbin/hadoop.log

>> tail /usr/sbin/hadoop.log
2017-08-28 10:13:34,747 INFO  tasks.GenericIndexTask - GenericIndexTask<class com.redhat.satellite.search.scheduler.tasks.IndexSystemsTask number of results returned = 0
2017-08-28 10:13:34,751 INFO  tasks.GenericIndexTask - GenericIndexTask<class com.redhat.satellite.search.scheduler.tasks.IndexXccdfIdentTask last processed id = 2, lastRun was Mon Aug 28 06:40:18 EDT 2017
2017-08-28 10:13:34,752 INFO  tasks.GenericIndexTask - GenericIndexTask<class com.redhat.satellite.search.scheduler.tasks.IndexXccdfIdentTask number of results returned = 0
2017-08-28 10:13:34,752 INFO  tasks.GenericIndexTask - class com.redhat.satellite.search.scheduler.tasks.IndexXccdfIdentTaskfound [0] items to index
2017-08-28 10:13:34,752 INFO  index.IndexManager - IndexManager::getIndexReader(xccdfIdent, en_US) path = /var/lib/rhn/search/indexes/xccdfIdent
2017-08-28 10:13:34,753 INFO  tasks.GenericIndexTask - Deleted 0 records from index <xccdfIdent>
2017-08-28 10:13:34,753 INFO  tasks.GenericIndexTask - class com.redhat.satellite.search.scheduler.tasks.IndexSystemsTaskfound [0] items to index
2017-08-28 10:13:34,753 INFO  index.IndexManager - IndexManager::getIndexReader(server, en_US) path = /var/lib/rhn/search/indexes/server
2017-08-28 10:13:34,753 INFO  tasks.GenericIndexTask - Deleted 0 records from index <server>
2017-08-28 10:13:34,754 INFO  tasks.GenericIndexTask - Deleted 0 records from index <hwdevice>


Version-Release number of selected component (if applicable):
spacewalk-setup-2.7.12-1.el6.noarch
spacewalk-search-2.7.6-1.el6.noarch

How reproducible:
always on RHEL

Steps to Reproduce:
1. base installation and using


Actual results:
log file in /usr/sbin

Expected results:
not logfile in /sr/sbin directory

Comment 1 bjw 2017-10-18 16:50:24 UTC
Also seeing  this.  How/where is log rolling configured for this hadoop.log file?  It appears to be rolling daily on it's own, but I ended up with 20gb of logs in 6 hours.

Seeing this sort of stuff:

2017-10-18 11:48:07,101 INFO  index.IndexManager - snapshotTag:uniqId:  <1000010820-123004> not found in list of current/good values assuming this has been deleted from Database and we should remove it.
2017-10-18 11:48:07,101 INFO  index.IndexManager - Removing <snapshotTag> uniqId:1000010820-123004
2017-10-18 11:48:07,101 INFO  index.IndexManager - IndexManager::getIndexReader(snapshotTag, en_US) path = /var/lib/rhn/search/indexes/snapshotTag
2017-10-18 11:48:07,103 INFO  index.IndexManager - snapshotTag:uniqId:  <1000010820-123004> not found in list of current/good values assuming this has been deleted from Database and we should remove it.
2017-10-18 11:48:07,103 INFO  index.IndexManager - Removing <snapshotTag> uniqId:1000010820-123004
2017-10-18 11:48:07,103 INFO  index.IndexManager - IndexManager::getIndexReader(snapshotTag, en_US) path = /var/lib/rhn/search/indexes/snapshotTag
2017-10-18 11:48:07,104 INFO  index.IndexManager - snapshotTag:uniqId:  <1000010821-123005> not found in list of current/good values assuming this has been deleted from Database and we should remove it.
2017-10-18 11:48:07,104 INFO  index.IndexManager - Removing <snapshotTag> uniqId:1000010821-123005
2017-10-18 11:48:07,104 INFO  index.IndexManager - IndexManager::getIndexReader(snapshotTag, en_US) path = /var/lib/rhn/search/indexes/snapshotTag
2017-10-18 11:48:07,105 INFO  index.IndexManager - snapshotTag:uniqId:  <1000010821-123005> not found in list of current/good values assuming this has been deleted from Database and we should remove it.
2017-10-18 11:48:07,105 INFO  index.IndexManager - Removing <snapshotTag> uniqId:1000010821-123005
2017-10-18 11:48:07,105 INFO  index.IndexManager - IndexManager::getIndexReader(snapshotTag, en_US) path = /var/lib/rhn/search/indexes/snapshotTag
2017-10-18 11:48:07,106 INFO  index.IndexManager - snapshotTag:uniqId:  <1000010821-123005> not found in list of current/good values assuming this has been deleted from Database and we should remove it.
2017-10-18 11:48:07,106 INFO  index.IndexManager - Removing <snapshotTag> uniqId:1000010821-123005
2017-10-18 11:48:07,106 INFO  index.IndexManager - IndexManager::getIndexReader(snapshotTag, en_US) path = /var/lib/rhn/search/indexes/snapshotTag

...is actually removing the tags, or is there corrective action that I need to do manually?

Comment 2 Jan Dobes 2017-10-27 10:38:55 UTC
fixed in spacewalk.git(master):

d4ad44b2190c97f1a461f5cb0a71652d3648843d

Comment 3 Jiří Dostál 2018-03-26 12:17:06 UTC
Moving ON_QA

Comment 4 Jiří Dostál 2018-04-20 12:32:26 UTC
Spacewalk 2.8 has been released.
https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes28


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