Page tree

Skip to end of metadata
Go to start of metadata

Overview

To model the relationship between a containing domain and the host that it contains we need to use consolidation rules to tie the two together.

In previous releases this consolidation rule was contained within the Xen Domain module, due to the addition of the Citrix XenServer/XenSource XenServer module we have decided to separate it into a separate module to represent the common functionality used by both Citrix/XenSource modules.

Consolidation Rules

The consolidation rules require that we have identified both the host that is being contained and the containing domain, once both have been identified a HostContainment relationship is created between the two nodes.

Consolidate from Domain

The consolidation rule from the Domain SI, the pattern is named "ConsolidateFromSI", triggers on the creation or modification of a Software Instance where the vm_type attribute is set to "Xen Domain", and where the "xen_uuid" attribute exists.

Once triggered the pattern searches for a host where the "serial" attribute is equal to the "xen_uuid" attribute of the domain.

If the pattern was able to identify a matching host, then it creates the relationship between the two nodes.

Consolidate from Host

The consolidation rule from the Host – the Pattern is named "ConsolidateFromHost" – triggers on a Host where "vendor" is set to "Xen".

Once triggered, the Pattern sets the "virtual" flag of the Host to "true". Subsequently, it identifies the "uuid" of the Host by retrieving the "serial" attribute. It then performs a search in the DataStore to find a Software Instance with the "vm_type" of "XenServer Domain".

If the pattern was able to identify a Software Instance then it creates the relationship between the two nodes.