Bug 826066

Summary: [eap6] Cannot Create Path Sub-Resources for HornetQ server
Product: [Other] RHQ Project Reporter: Stefan Negrea <snegrea>
Component: PluginsAssignee: Stefan Negrea <snegrea>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 4.4CC: hrupp
Target Milestone: ---   
Target Release: RHQ 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 835697 (view as bug list) Environment:
Last Closed: 2013-09-01 10:05:44 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:
Bug Depends On:    
Bug Blocks: 707223, 827636, 833089, 835697, 835698, 835702    

Description Stefan Negrea 2012-05-29 13:54:56 UTC
If I try to add Child resource for 'hornetq' typeof 'Path', resourceName I type in is ignored and new resource is always called 'journal-directory'. 

I was checking AS7 CLI and messaging schema found out that there are 4 possible path names, that can be added (in schema directoryType):

paging-directory
bindings-directory
journal-directory
large-messages-directory


Using CLI I can do this:

/subsystem=messaging/hornetq-server=default/path=paging-directory:add(path=/tmp)
{
    "outcome" => "success",
    "response-headers" => {
        "operation-requires-reload" => true,
        "process-state" => "reload-required"
    }
}

But I cannot do the same using JON, since resource-name is ignored and there's always passed 'journal-directory'


This applies only to the messaging subsystem for server and NOT to the messaging subsystem of deployments (eg: /deployment=test.war/subsystem=messaging). The messaging subsystem for deployments does not have Path children.

Comment 1 Charles Crouch 2012-05-29 14:03:35 UTC
(9:00:59 AM) ccrouch: do you think its critical?
(9:01:55 AM) stefan_n: I am not sure ...
(9:02:01 AM) stefan_n: hard for me to say
(9:02:51 AM) stefan_n: if it helps, that functionality is not exposed in the AS7 Admin Console

Comment 2 Charles Crouch 2012-06-11 15:28:00 UTC
As per 6/4/12 triage, target for jon311

Comment 3 Stefan Negrea 2012-06-12 21:28:32 UTC
Created a generic component to handle templated resources. Path is now a templated resources with __name as a configuration setting.


master branch commits:

http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=e03cd902cb0c2043feafdf3c0a2555f13e9d4128

http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=ba758053aebffb25af2f35fab27a49ee1a942258

Comment 4 Heiko W. Rupp 2013-09-01 10:05:44 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.