From e45503dc52311ffa7ddb5fb7b25caac1f8743de5 Mon Sep 17 00:00:00 2001 From: liyuenan Date: Thu, 12 Jan 2017 11:28:13 +0800 Subject: FIX external net create JIRA: - The dictionary public_net_info in network.yml had changed to pass the yamllint: public_net_info: enable: True change to: public_net_info: enable: "True" Because of that, the public_net_info.enable in group_var/all had changed. 'public_net_info': {..., 'enable': True, ...} change to: 'public_net_info': {..., 'enable': 'True', ...} So the conditionals in roles/ext-network/tasks/main.yml should be changed, otherwise the ext-net can not be created. Change-Id: I7b4aeb1d0edec0ad77252849704bdf3055adfa5a Signed-off-by: liyuenan --- deploy/adapters/ansible/roles/ext-network/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deploy/adapters/ansible/roles/ext-network/tasks') diff --git a/deploy/adapters/ansible/roles/ext-network/tasks/main.yml b/deploy/adapters/ansible/roles/ext-network/tasks/main.yml index 0fc3ee3a..d212dd99 100644 --- a/deploy/adapters/ansible/roles/ext-network/tasks/main.yml +++ b/deploy/adapters/ansible/roles/ext-network/tasks/main.yml @@ -29,7 +29,7 @@ --provider:network_type {{ public_net_info.type }} \ --provider:physical_network {{ public_net_info.provider_network }} \ --router:external "True" - when: public_net_info.enable == True + when: public_net_info.enable == "True" and inventory_hostname == groups['controller'][0] - name: create external subnet @@ -42,5 +42,5 @@ --allocation-pool \ start={{ public_net_info.floating_ip_start }},end={{ public_net_info.floating_ip_end }} \ {{ public_net_info.network }} {{ public_net_info.floating_ip_cidr }} - when: public_net_info.enable == True + when: public_net_info.enable == "True" and inventory_hostname == groups['controller'][0] -- cgit 1.2.3-korg