Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 915317

Summary: Unable to turn on/off logging handlers using enable()/disable() in CLI
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: LoggingAssignee: James Perkins <jperkins>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: brian.stansberry, jperkins, rhatlapa, smcgowan
Target Milestone: ER4   
Target Release: EAP 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-23 18:36:05 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:
Embargoed:

Description Petr Kremensky 2013-02-25 13:43:07 UTC
I am unable to use enable/disable operation in logging handlers.
 
[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
{
    "outcome" => "success",
    "result" => {
        "autoflush" => true,
        "enabled" => true,
        ...
    }
}

Calling disable() won't affect enabled attribute

[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:disable()
{"outcome" => "success"}
[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
{
    "outcome" => "success",
    "result" => {
        "autoflush" => true,
        "enabled" => true,
        ...
    }
}

Must use write-attribute instead

[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE/:write-attribute(name=enabled, value=false)
{"outcome" => "success"}
[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
{
    "outcome" => "success",
    "result" => {
        "autoflush" => true,
        "enabled" => false,
        ...
    }
}

Comment 1 Brian Stansberry 2013-03-02 02:07:26 UTC
James, please assign bz 915317 to yourself. Thanks.

Comment 2 JBoss JIRA Server 2013-03-08 19:44:57 UTC
James Perkins <jperkins> updated the status of jira AS7-6664 to Coding In Progress

Comment 4 JBoss JIRA Server 2013-03-11 18:56:19 UTC
James Perkins <jperkins> made a comment on jira AS7-6664

Closed PR to incorporate into a better change set.

Comment 6 Radim Hatlapatka 2013-03-27 13:57:11 UTC
The issue is not fixed in EAP 6.1.0 ER3

Comment 7 Petr Kremensky 2013-04-03 14:42:09 UTC
Verified on EAP 6.1.0 ER4