Bug 1384813 - Unable to use verbose logging with qemu-ga sysconfig file
Summary: Unable to use verbose logging with qemu-ga sysconfig file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-guest-agent
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Marc-Andre Lureau
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-14 08:43 UTC by Marko Myllynen
Modified: 2016-10-18 05:15 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-18 04:53:21 UTC
Target Upstream Version:


Attachments (Terms of Use)

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!


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