Bug 1384813

Summary: Unable to use verbose logging with qemu-ga sysconfig file
Product: Red Hat Enterprise Linux 7 Reporter: Marko Myllynen <myllynen>
Component: qemu-guest-agentAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: knoel
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-18 04:53:21 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:

Description Marko Myllynen 2016-10-14 08:43:20 UTC
Description of problem:
On RHEL 6 it was possible to do something like this to enable verbose qemu-ga logging:

LOGFILE="/path/log --verbose"

With RHEL 7 such a trick is not possible and there's no way to enable verbose logging (expect by manually editing the .service file which isn't the greatest idea).

Please make it possible to enable qemu-qa verbose logging via a configuration mechanism. This is crucial when, e.g., investigating whether filesystems are getting frozen as expected.

Comment 2 Marc-Andre Lureau 2016-10-18 04:53:21 UTC
When switching to rhel7, the package config changed. Tbh, I think the jounal is a lot more powerful than just redirecting to a seperate file, but you may configure it that way now:

cat /etc/qemu-ga/qemu-ga.conf 

[general]
blacklist=guest-info
verbose=1
logfile=/path/log

With that, I think we can close this bug. Reopen if anything is missing.

Comment 3 Marko Myllynen 2016-10-18 05:15:36 UTC
Right, I was actually testing on RHEL 7.2 where the configuration file doesn't work but on RHEL 7.3 Beta this can be done as you showed above. Thanks!