Bug 814152 - [eap6] logging - adding console/file handler
Summary: [eap6] logging - adding console/file handler
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Agent
Version: 4.4
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Simeon Pinder
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On: 782506
Blocks: as7-plugin
TreeView+ depends on / blocked
 
Reported: 2012-04-19 10:15 UTC by Libor Zoubek
Modified: 2015-11-02 00:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-01 19:22:44 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 815378 0 medium NEW Logging Handler using Filters in AS7 is not currently supported. 2022-03-31 04:28:35 UTC

Internal Links: 815378

Description Libor Zoubek 2012-04-19 10:15:08 UTC
Description of problem: It is not possible to add or remove console handler


Version-Release number of selected component (if applicable):
Version: 4.4.0-SNAPSHOT
Build Number: a5e442c
EAP6 ER5

How reproducible:always


Steps to Reproduce:
1.import EAP6 in standalone mode
2.go to logging->CONSOLE resource, operations
3.add new called "MY"
  
Actual results:
java.lang.Exception: JBAS014803: Duplicate resource [
    ("subsystem" => "logging"),
    ("console-handler" => "CONSOLE")
], rolled-back=true

same applies to adding FILE handler


Expected results: new handler is added


Additional info: Is there any special reason why file handler can be added only via an operation on another file handler resource? This way it is possible to remove the last handler and then not being able to add it back anymore. If it is possible we could switch to 'Create Child' way or at least move operation to 'logging' subsystem resource.

Comment 1 Simeon Pinder 2012-04-19 16:29:28 UTC
The original issue with CONSOLE was fixed earlier this morning.  The operations were removed for the logging types and instead modifiable via Create/Delete child operations.

There is still an issue with File type. Working on that now.

Comment 2 Simeon Pinder 2012-04-20 13:28:20 UTC
Both of these should be fixed with this commit to master 16f2db3d262eb05a5ca, BUT there is a problem with the File handler(https://bugzilla.redhat.com/show_bug.cgi?id=782506) where handlers that use files should be showing that the file type is required in the configuration editor but they currently are not. 

This means that until this is fixed, tests of the following handlers that attempt to update, add or modify configurations with File Handler, Periodic Rotating File Handler and Size Rotating File Handler should only be done by specifying the required file parameters.

Comment 3 Simeon Pinder 2012-04-23 14:28:46 UTC
All fixes for this bz are in master.

Additionally the filter type should not be used when testing out Logging Handlers as there is an issue writing the type data back to the AS7 servers. See the following issues for details:

https://bugzilla.redhat.com/show_bug.cgi?id=815378
https://issues.jboss.org/browse/AS7-4582

Moving this to ON_QA as the original issues raised have been addressed.  Will file additional BZ's for new issues.

Comment 4 Heiko W. Rupp 2013-09-01 19:22:44 UTC
Bulk closing of BZs that have no target version set, but which are ON_QA for more than a year and thus are in production for a long time.


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