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
I'll have to also export Domain Name as Trait, because our dynaGroup language does not allow to group by more than 1 resourceConfigurations
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').
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.