Bug 984581
| Summary: | There is no notifier.log generation | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Ilanit Stein <istein> | |
| Component: | ovirt-engine-notification-service | Assignee: | Yair Zaslavsky <yzaslavs> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Belka <jbelka> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 3.3.0 | CC: | acathrow, bazulay, cpelland, iheim, mperina, oourfali, pstehlik, Rhev-m-bugs | |
| Target Milestone: | --- | Keywords: | Regression, Triaged, ZStream | |
| Target Release: | 3.3.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | infra | |||
| Fixed In Version: | is8 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 997426 (view as bug list) | Environment: | ||
| Last Closed: | 2014-01-21 22:12:01 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 989422, 997426 | |||
|
Description
Ilanit Stein
2013-07-15 13:47:28 UTC
This works upstream, but does not work on downstream 3.3 -Dlog4j.configuration accepts a file in URL format, and should use it for configuration, unless the URL is malformed or represents a file not found, and in this case, it will look for the configuration at the classpath (and of course, the file does not exist at the classpath). For some reason JBoss Log Manager on RHEL does not initialize log4j configuration from system property (-Dlog4j.configuration=...), but when I configure log4j using:
DOMConfigurator.configure("/etc/ovirt-engine/notifier/log4j.xml");
in Notifier.main() method, logging works fine and log files are created.
I will continue to investigate why this works on Fedora and not on RHEL
Well, the problem is, that RHEL JBoss contains its own reimplemented log4j classes known as log4j-jboss-logmanager. The org.apache.log4j.LogManager class originally reads system property and configures Logger instance. But this initialization is completely missing from log4j-jboss-logmanager reimplementation. ok is21, /etc/ovirt-engine/notifier/log4j.xml is accessed and its configuration is applied (I see DEBUG priority...). Closing - RHEV 3.3 Released |