Bug 1284432
Summary: | [RFE] Provide a way to easily configure the log level for ovirt optimiser and optaplanner | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Roman Hodain <rhodain> |
Component: | ovirt-optimizer | Assignee: | Martin Sivák <msivak> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Shira Maximov <mshira> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.0 | CC: | amarchuk, dfediuck, gdesmet, gklein, juwu, lsurette, mavital, mgoldboi, msivak, rbalakri, rgolan, rhodain, sbonazzo, srevivo, ykaul |
Target Milestone: | ovirt-4.0.4 | Keywords: | FutureFeature |
Target Release: | 4.0.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ovirt-optimizer-0.10 | Doc Type: | Enhancement |
Doc Text: |
This update adds logging configuration files to /etc/ovirt-optimizer so the files are easy to locate.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-10-17 13:09:48 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | SLA | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1347215 | ||
Bug Blocks: |
Description
Roman Hodain
2015-11-23 10:26:34 UTC
@Martin Sivak For OptaPlanner, adjusting the logging level is decribed here: http://docs.jboss.org/optaplanner/release/latest/optaplanner-docs/html_single/index.html#logging So I presume this will be a matter of bridging that to /etc/ovirt-optimizer somehow. If you're using logback as the logging implementation, the log level can be adjusted at runtime during bootstrap (see Logback/Slf4J documentation). Since the ability to properly debug is important enough, targeting for 3.6.4. Uh Roman, what version did you test? You were running the 3.5 deployment when we were discussing this. 3.6 is very different in this area. It uses a proper ovirt-optimizer-jboss service and there is a config file in /usr/share/java/ovirt-optimizer/jboss7.war/WEB-INF/classes/log4j.properties It might be a good idea to add a symlink to /etc/ though. At that time the deployment was 3.5. The issue was noticed on a production system. This bug is flagged for 3.6, yet the milestone is for 4.0 version, therefore the milestone has been reset. Please set the correct milestone or add the flag. Already merged, but I do not have the build version yet as there are more changes to come. This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions Can be move to MOD now? Doron asked me to wait with downstream Optimizer update until we finish the RPMs of Optaplanner. So I do not have the downstream build yet. verified on : ovirt-optimizer-0.11-1.el7ev.noarch verification steps: 1. installing the optimizer 2. edit the last two lines in the file : /etc/ovirt-optimizer/jboss-log4j.properties to the wanted behaviour: DEBUG/WARNING/INFO/ERROR for example : log4j.logger.org.optaplanner=DEBUG, appout log4j.logger.org.ovirt.optimizer=DEBUG, appout 3. restart the ovirt-optimizer-jboss service 4. check that the logs are in the correct behaviour ( in : /var/log/ovirt-optimizer/jboss/ovirt-optimizer.log) |