Change checkers of config's applying order

Now for a node with multi-roles configs fot the same section
are merging by ID-priority. Thus last config for cinder will
be have higher priority and will rewrite compute config

Change-Id: Ic35a6c5efb05974dc7ab7ae36cc175a91471c778
Closes-Bug: #1587023
This commit is contained in:
Ksenia Demina 2016-05-31 16:30:26 +03:00
parent 628136142e
commit 44555374e7
1 changed files with 2 additions and 1 deletions

View File

@ -1268,9 +1268,10 @@ class ServicesReconfiguration(TestBasic):
cluster_id,
role='cinder')
# Configs are merging with ID-priority
general_config = {}
general_config.update(config_for_cinder_role)
general_config.update(config_for_compute_role)
general_config.update(config_for_cinder_role)
structured_config = get_structured_config_dict(general_config)
service_name = 'nova-compute'
uptime = self.get_service_uptime(target_node, service_name)