Bug 1102562 - [eap6] Make DomainController's Domain name configurable
Summary: [eap6] Make DomainController's Domain name configurable
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.12
Assignee: Libor Zoubek
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 1099854
TreeView+ depends on / blocked
 
Reported: 2014-05-29 08:31 UTC by Libor Zoubek
Modified: 2015-11-02 00:44 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-12-15 11:36:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Libor Zoubek 2014-05-29 08:31:42 UTC
Description of problem:

While trying to solve Bug 1099854 I was looking for a way to distinguish DC's domain. For example, if we have following setup:

DC1 + HC1
DC2 + HC2 + HC3

To be able to create group of all managed servers being managed by DC2 we have to know on HCx resources who's their DC - so we can group by that value.

The first thing that came to my mind was "lets identify DC by it's IP:port" this is unique enough. It is possible to read DC info on HC so we could export it as trait or read-only config and we're done.

Later, I discovered property on DC and HC DMR's root reource called "name" which has "Unnamed Domain" as default value. This value is shared among all controllers in domain, and only DC can update it. I think, this "name" is exactly what I was looking for.

We need to add this property do DomainController's configuration. To improve OOB experience (I suppose nobody knows about this configuration, because it's not available in DC's adminconsole) I'd initialize this value with DC "${IP}:${port} Domain" in case there is default value. This will not require any user interaction in setting up this configuration and still have correct grouping while running multiple domains.



Version-Release number of selected component (if applicable):
RHQ 4.11

Comment 1 Libor Zoubek 2014-05-30 10:11:09 UTC
I'll have to also export Domain Name as Trait, because our dynaGroup language does not allow to group by more than 1 resourceConfigurations

Comment 2 Libor Zoubek 2014-06-23 12:21:45 UTC
in master

commit 26b00066cc413e0026cb351679a9c8b1b68235a8
Author: Libor Zoubek <lzoubek>
Date:   Fri May 30 12:14:24 2014 +0200

    Bug 1102562 - [eap6] Make DomainController's Domain name configurable
    
    Domain Name is now part of resourceConfiguration for DomainController and
    HostController resources. Only DC's are allowed to change this configuration
    (handled by EAP). As 'Domain Name' is not available (and known) from EAP
    admin console, there's a high chance it's unconfigured (having default value
    'Unnamed domain').

Comment 3 Heiko W. Rupp 2014-12-15 11:36:05 UTC
Bulk close of items fixed in RHQ 4.12

If you think this is not solved, then please open a *new* BZ and link to this one.


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