Configuration is now properly applied to new nodes

If the configuration of software component has not been changed, but a
set of nodes in the server group has been modified, the component's
default checkClusterIsConfigured method will now properly return true,
thus the configuration will be applied on newly added nodes.

This is achieved by storing instance ids as part of component's
'configuration' attributed stored for its server group.

Change-Id: Ic8bbddc577518071d90a6e33518156047a1d2e2e
Closes-bug: #1634206
This commit is contained in:
Alexander Tivelkov 2016-10-17 20:09:25 +03:00 committed by Serg Melikyan
parent c47623f8bb
commit d698116869
2 changed files with 7 additions and 2 deletions

View File

@ -210,7 +210,7 @@ Methods:
- serverGroup:
Contract: $.class(ServerGroup).notNull()
Body:
- $key: $this.getConfigurationKey()
- $key: list($this.getConfigurationKey()) + $serverGroup.getKey()
- $state: $serverGroup.getAttr(configuration)
- Return: $key = $state
@ -317,7 +317,7 @@ Methods:
Then:
- $this.completeConfigurationEvent.notify($this, $servers, $serverGroup, $failedServers)
- $this.onCompleteConfiguration($servers, $serverGroup, $failedServers)
- $key: $this.getConfigurationKey()
- $key: list($this.getConfigurationKey()) + $serverGroup.getKey()
- $serverGroup.setAttr(configuration, $key)
- $this.report(format('Finished configuring {0} ({1} errors encountered)',
name($this), $numFailures or 'no'))

View File

@ -23,6 +23,11 @@ Name: ServerGroup
Methods:
getServers:
getKey:
Body:
- Return: $this.getServers().select(id($)).orderBy($)
deployServers:
Usage: Static
Arguments: