Bug 1102562

Summary: [eap6] Make DomainController's Domain name configurable
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: PluginsAssignee: Libor Zoubek <lzoubek>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.11CC: hrupp, theute
Target Milestone: ---   
Target Release: RHQ 4.12   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-15 11: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:
Bug Depends On:    
Bug Blocks: 1099854    

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.