Merge "clean opendaylight section in inventory file"

This commit is contained in:
Jenkins 2017-06-27 02:41:04 +00:00 committed by Gerrit Code Review
commit e0ea0dc88b
1 changed files with 2 additions and 2 deletions

View File

@ -218,14 +218,14 @@ def enable_neutron_backend(req, cluster_id, kolla_config):
roles = registry.get_roles_detail(req.context, **params)
all_neutron_backends = registry.list_neutron_backend_metadata(
req.context, **params)
node_names = ['opendaylight', 'cinder:children']
clean_inventory_file(kolla_file, 'multinode', node_names)
for role in roles:
for neutron_backend in all_neutron_backends:
if role['name'] == 'CONTROLLER_LB' \
and neutron_backend[
'neutron_backends_type'] == 'opendaylight' \
and neutron_backend['role_id'] == role['id']:
node_names = ['opendaylight', 'cinder:children']
clean_inventory_file(kolla_file, 'multinode', node_names)
update_inventory_file(kolla_file, 'multinode',
'opendaylight', kolla_config['Odl_ips'],
1, 'ssh')