Bug 1292736

Summary: running virt-who in big vmware environments results in to fast growing logfiles
Product: Red Hat Enterprise Linux 7 Reporter: Christian Horn <chorn>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: medium Docs Contact:
Priority: high    
Version: 7.3CC: cww, dnagarat, egolov, hsun, jherrman, ldai, mgazdik, mkalyat, mkolaja, ovasik, rbalakri, rkondusk, rnovacek, scott.higgins, sgao, shihliu, xdmoon
Target Milestone: alphaKeywords: ZStream
Target Release: 7.3   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: virt-who-0.17-1.el7 Doc Type: Bug Fix
Doc Text:
Previously, virt-who was very verbose when writing to its log file. As a result, the log file grew very quickly, especially in large environments. Now, virt-who logs significantly less information in non-debug mode, and the log file thus grows slower.
Story Points: ---
Clone Of: 1281715
: 1369473 (view as bug list) Environment:
Last Closed: 2016-11-04 05:07:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1281715, 1355624    
Bug Blocks: 1203710, 1296845, 1298337, 1313485, 1369473    

Comment 2 Christian Horn 2015-12-18 09:03:53 UTC
We need this fix also in rhel7.

Comment 4 Radek Novacek 2016-03-08 06:48:15 UTC
This is already fixed upstream and will be resolved by rebase.

Comment 6 Radek Novacek 2016-05-17 12:59:53 UTC
Fixed in virt-who-0.17-1.el7.

Comment 8 Radek Novacek 2016-07-12 06:13:43 UTC
*** Bug 1355624 has been marked as a duplicate of this bug. ***

Comment 9 Eko 2016-07-18 05:01:38 UTC
verified with virt-who-0.17-6.el7
disable DEBUG option, there is no host/guests json info in rhsm.log
enable DEBUG option, will print the json info

Comment 13 Radek Novacek 2016-07-26 12:59:33 UTC
Deepannagaraj, it is possible to do a hotfix for this bug. Please follow official hotfix process and propose this bug for z-stream.

https://mojo.redhat.com/docs/DOC-80399

Comment 18 Radek Novacek 2016-09-29 05:43:00 UTC
Mithun,

virt-who logs to the /var/log/rhsm/rhsm.log file. If something in /var/log/foreman/ is growing too fast, I would guess it is a different issue. But it would be best if someone can analyze the big file for log entries that are filling it. Only that way we can be sure what is the problem there.

Comment 19 Evgeni Golov 2016-09-29 07:58:02 UTC
(In reply to Radek Novacek from comment #18)
> Mithun,
> 
> virt-who logs to the /var/log/rhsm/rhsm.log file. If something in
> /var/log/foreman/ is growing too fast, I would guess it is a different
> issue. But it would be best if someone can analyze the big file for log
> entries that are filling it. Only that way we can be sure what is the
> problem there.

Radek,

virt-who submits data to Candlepin via Foreman/Katello.
Sadly Foreman will log the whole request (incl the full JSON) to production log. So thats the reason for foreman/production.log to grow.
Same happens in Candlepin, see c11 for a workaround.

Comment 21 Radek Novacek 2016-10-06 06:10:01 UTC
Mithun,

does the customer use filter_hosts/exclude_hosts options to run virt-who only against systems that do run Red Hat servers? If not, you might suggest it to them, I think it would both reduce the load and generate less logs.

Comment 23 errata-xmlrpc 2016-11-04 05:07:50 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://rhn.redhat.com/errata/RHBA-2016-2387.html