Hi Guys,
When I deploy a multi-node openstack,I met the following error about neutron:
TASK [neutron : Creating the Neutron service and endpoint] *********************
changed: [kode0] => (item={u'interface': u'admin', u'url': u'http://192.168.102.254:9696'})
changed: [kode0] => (item={u'interface': u'internal', u'url': u'http://192.168.102.254:9696'})
changed: [kode0] => (item={u'interface': u'public', u'url': u'http://192.168.101.254:9696'})
TASK [neutron : Creating the Neutron project, user, and role] ******************
changed: [kode0]
TASK [neutron : include] *******************************************************
included: /opt/bgi-kolla/kolla-ansible/ansible/roles/neutron/tasks/config.yml for kode0, kode2, kode3, kode4, kode1, kode5
TASK [neutron : Setting sysctl values] *****************************************
fatal: [kode1]: FAILED! => {"failed": true, "msg": "The conditional check '(neutron_l3_agent.enabled | bool and neutron_l3_agent.host_in_groups | bool) or (neutron_vpnaas_agent.enabled | bool and neutron_vpnaas_agent.host_in_groups | bool)' failed. The error was: error while evaluating conditional ((neutron_l3_agent.enabled | bool and neutron_l3_agent.host_in_groups | bool) or (neutron_vpnaas_agent.enabled | bool and neutron_vpnaas_agent.host_in_groups | bool)): {{ neutron_services['neutron-vpnaas-agent'] }}: {u'openvswitch-db-server': {u'image': u'{{ openvswitch_db_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/openvswitch-db-server/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/', u'openvswitch_db:/var/lib/openvswitch/'], u'container_name': u'openvswitch_db'}, u'neutron-linuxbridge-agent': {u'image': u'{{ neutron_linuxbridge_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'linuxbridge' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'environment': {u'NEUTRON_INTERFACE': u'{{ neutron_external_interface }}', u'KOLLA_CONFIG_STRATEGY': u'{{ config_strategy }}', u'NEUTRON_BRIDGE': u'br-ex'}, u'volumes': [u'{{ node_config_directory }}/neutron-linuxbridge-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_linuxbridge_agent', u'privileged': True}, u'neutron-server': {u'group': u'neutron-server', u'image': u'{{ neutron_server_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-server'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-server/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_server'}, u'neutron-vpnaas-agent': {u'group': u'neutron-vpnaas-agent', u'image': u'{{ neutron_vpnaas_agent_image_full }}', u'enabled': u'{{ enable_neutron_vpnaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-vpnaas-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'/lib/modules:/lib/modules:ro', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_vpnaas_agent', u'privileged': True}, u'openvswitch-vswitchd': {u'image': u'{{ openvswitch_vswitchd_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/openvswitch-vswitchd/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'openvswitch_vswitchd', u'privileged': True}, u'neutron-openvswitch-agent': {u'image': u'{{ neutron_openvswitch_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else ( inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] and not enable_nova_fake | bool ) or ( inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] and enable_nova_fake | bool ) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-openvswitch-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_openvswitch_agent', u'privileged': True}, u'neutron-dhcp-agent': {u'group': u'neutron-dhcp-agent', u'image': u'{{ neutron_dhcp_agent_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-dhcp-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-dhcp-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run/:/run/:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_dhcp_agent', u'privileged': True}, u'neutron-l3-agent': {u'image': u'{{ neutron_l3_agent_image_full }}', u'enabled': u'{{ not enable_neutron_vpnaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-l3-agent'] or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-l3-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_l3_agent', u'privileged': True}, u'neutron-sfc-agent': {u'image': u'{{ neutron_sfc_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'sfc' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else ( inventory_hostname in groups['compute'] or or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] and not enable_nova_fake | bool ) or ( inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] and enable_nova_fake | bool ) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-sfc-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_sfc_agent', u'privileged': True}, u'neutron-lbaas-agent': {u'group': u'neutron-lbaas-agent', u'image': u'{{ neutron_lbaas_agent_image_full }}', u'enabled': u'{{ enable_neutron_lbaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-lbaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-lbaas-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_lbaas_agent', u'privileged': True}, u'neutron-metadata-agent': {u'image': u'{{ neutron_metadata_agent_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-metadata-agent'] or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-metadata-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_metadata_agent', u'privileged': True}}: 'or' is undefined\n\nThe error appears to have been in '/opt/bgi-kolla/kolla-ansible/ansible/roles/neutron/tasks/config.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Setting sysctl values\n ^ here\n"}
fatal: [kode3]: FAILED! => {"failed": true, "msg": "The conditional check '(neutron_l3_agent.enabled | bool and neutron_l3_agent.host_in_groups | bool) or (neutron_vpnaas_agent.enabled | bool and neutron_vpnaas_agent.host_in_groups | bool)' failed. The error was: error while evaluating conditional ((neutron_l3_agent.enabled | bool and neutron_l3_agent.host_in_groups | bool) or (neutron_vpnaas_agent.enabled | bool and neutron_vpnaas_agent.host_in_groups | bool)): {{ neutron_services['neutron-vpnaas-agent'] }}: {u'openvswitch-db-server': {u'image': u'{{ openvswitch_db_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/openvswitch-db-server/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/', u'openvswitch_db:/var/lib/openvswitch/'], u'container_name': u'openvswitch_db'}, u'neutron-linuxbridge-agent': {u'image': u'{{ neutron_linuxbridge_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'linuxbridge' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'environment': {u'NEUTRON_INTERFACE': u'{{ neutron_external_interface }}', u'KOLLA_CONFIG_STRATEGY': u'{{ config_strategy }}', u'NEUTRON_BRIDGE': u'br-ex'}, u'volumes': [u'{{ node_config_directory }}/neutron-linuxbridge-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_linuxbridge_agent', u'privileged': True}, u'neutron-server': {u'group': u'neutron-server', u'image': u'{{ neutron_server_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-server'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-server/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_server'}, u'neutron-vpnaas-agent': {u'group': u'neutron-vpnaas-agent', u'image': u'{{ neutron_vpnaas_agent_image_full }}', u'enabled': u'{{ enable_neutron_vpnaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-vpnaas-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'/lib/modules:/lib/modules:ro', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_vpnaas_agent', u'privileged': True}, u'openvswitch-vswitchd': {u'image': u'{{ openvswitch_vswitchd_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/openvswitch-vswitchd/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'openvswitch_vswitchd', u'privileged': True}, u'neutron-openvswitch-agent': {u'image': u'{{ neutron_openvswitch_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else ( inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] and not enable_nova_fake | bool ) or ( inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] and enable_nova_fake | bool ) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-openvswitch-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_openvswitch_agent', u'privileged': True}, u'neutron-dhcp-agent': {u'group': u'neutron-dhcp-agent', u'image': u'{{ neutron_dhcp_agent_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-dhcp-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-dhcp-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run/:/run/:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_dhcp_agent', u'privileged': True}, u'neutron-l3-agent': {u'image': u'{{ neutron_l3_agent_image_full }}', u'enabled': u'{{ not enable_neutron_vpnaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-l3-agent'] or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-l3-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_l3_agent', u'privileged': True}, u'neutron-sfc-agent': {u'image': u'{{ neutron_sfc_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'sfc' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else ( inventory_hostname in groups['compute'] or or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] and not enable_nova_fake | bool ) or ( inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] and enable_nova_fake | bool ) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-sfc-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_sfc_agent', u'privileged': True}, u'neutron-lbaas-agent': {u'group': u'neutron-lbaas-agent', u'image': u'{{ neutron_lbaas_agent_image_full }}', u'enabled': u'{{ enable_neutron_lbaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-lbaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-lbaas-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_lbaas_agent', u'privileged': True}, u'neutron-metadata-agent': {u'image': u'{{ neutron_metadata_agent_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-metadata-agent'] or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-metadata-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_metadata_agent', u'privileged': True}}: 'or' is undefined\n\nThe error appears to have been in '/opt/bgi-kolla/kolla-ansible/ansible/roles/neutron/tasks/config.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Setting sysctl values\n ^ here\n"}
fatal: [kode0]: FAILED! => {"failed": true, "msg": "The conditional check '(neutron_l3_agent.enabled | bool and neutron_l3_agent.host_in_groups | bool) or (neutron_vpnaas_agent.enabled | bool and neutron_vpnaas_agent.host_in_groups | bool)' failed. The error was: error while evaluating conditional ((neutron_l3_agent.enabled | bool and neutron_l3_agent.host_in_groups | bool) or (neutron_vpnaas_agent.enabled | bool and neutron_vpnaas_agent.host_in_groups | bool)): {{ neutron_services['neutron-vpnaas-agent'] }}: {u'openvswitch-db-server': {u'image': u'{{ openvswitch_db_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/openvswitch-db-server/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/', u'openvswitch_db:/var/lib/openvswitch/'], u'container_name': u'openvswitch_db'}, u'neutron-linuxbridge-agent': {u'image': u'{{ neutron_linuxbridge_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'linuxbridge' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'environment': {u'NEUTRON_INTERFACE': u'{{ neutron_external_interface }}', u'KOLLA_CONFIG_STRATEGY': u'{{ config_strategy }}', u'NEUTRON_BRIDGE': u'br-ex'}, u'volumes': [u'{{ node_config_directory }}/neutron-linuxbridge-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_linuxbridge_agent', u'privileged': True}, u'neutron-server': {u'group': u'neutron-server', u'image': u'{{ neutron_server_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-server'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-server/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_server'}, u'neutron-vpnaas-agent': {u'group': u'neutron-vpnaas-agent', u'image': u'{{ neutron_vpnaas_agent_image_full }}', u'enabled': u'{{ enable_neutron_vpnaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-vpnaas-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'/lib/modules:/lib/modules:ro', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_vpnaas_agent', u'privileged': True}, u'openvswitch-vswitchd': {u'image': u'{{ openvswitch_vswitchd_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/openvswitch-vswitchd/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'openvswitch_vswitchd', u'privileged': True}, u'neutron-openvswitch-agent': {u'image': u'{{ neutron_openvswitch_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else ( inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] and not enable_nova_fake | bool ) or ( inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] and enable_nova_fake | bool ) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-openvswitch-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_openvswitch_agent', u'privileged': True}, u'neutron-dhcp-agent': {u'group': u'neutron-dhcp-agent', u'image': u'{{ neutron_dhcp_agent_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-dhcp-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-dhcp-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run/:/run/:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_dhcp_agent', u'privileged': True}, u'neutron-l3-agent': {u'image': u'{{ neutron_l3_agent_image_full }}', u'enabled': u'{{ not enable_neutron_vpnaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-l3-agent'] or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-l3-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_l3_agent', u'privileged': True}, u'neutron-sfc-agent': {u'image': u'{{ neutron_sfc_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'sfc' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else ( inventory_hostname in groups['compute'] or or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] and not enable_nova_fake | bool ) or ( inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] and enable_nova_fake | bool ) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-sfc-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_sfc_agent', u'privileged': True}, u'neutron-lbaas-agent': {u'group': u'neutron-lbaas-agent', u'image': u'{{ neutron_lbaas_agent_image_full }}', u'enabled': u'{{ enable_neutron_lbaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-lbaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-lbaas-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_lbaas_agent', u'privileged': True}, u'neutron-metadata-agent': {u'image': u'{{ neutron_metadata_agent_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-metadata-agent'] or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-metadata-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_metadata_agent', u'privileged': True}}: 'or' is undefined\n\nThe error appears to have been in '/opt/bgi-kolla/kolla-ansible/ansible/roles/neutron/tasks/config.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Setting sysctl values\n ^ here\n"}
fatal: [kode2]: FAILED! => {"failed": true, "msg": "The conditional check '(neutron_l3_agent.enabled | bool and neutron_l3_agent.host_in_groups | bool) or (neutron_vpnaas_agent.enabled | bool and neutron_vpnaas_agent.host_in_groups | bool)' failed. The error was: error while evaluating conditional ((neutron_l3_agent.enabled | bool and neutron_l3_agent.host_in_groups | bool) or (neutron_vpnaas_agent.enabled | bool and neutron_vpnaas_agent.host_in_groups | bool)): {{ neutron_services['neutron-vpnaas-agent'] }}: {u'openvswitch-db-server': {u'image': u'{{ openvswitch_db_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/openvswitch-db-server/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/', u'openvswitch_db:/var/lib/openvswitch/'], u'container_name': u'openvswitch_db'}, u'neutron-linuxbridge-agent': {u'image': u'{{ neutron_linuxbridge_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'linuxbridge' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'environment': {u'NEUTRON_INTERFACE': u'{{ neutron_external_interface }}', u'KOLLA_CONFIG_STRATEGY': u'{{ config_strategy }}', u'NEUTRON_BRIDGE': u'br-ex'}, u'volumes': [u'{{ node_config_directory }}/neutron-linuxbridge-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_linuxbridge_agent', u'privileged': True}, u'neutron-server': {u'group': u'neutron-server', u'image': u'{{ neutron_server_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-server'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-server/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_server'}, u'neutron-vpnaas-agent': {u'group': u'neutron-vpnaas-agent', u'image': u'{{ neutron_vpnaas_agent_image_full }}', u'enabled': u'{{ enable_neutron_vpnaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-vpnaas-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'/lib/modules:/lib/modules:ro', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_vpnaas_agent', u'privileged': True}, u'openvswitch-vswitchd': {u'image': u'{{ openvswitch_vswitchd_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/openvswitch-vswitchd/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'openvswitch_vswitchd', u'privileged': True}, u'neutron-openvswitch-agent': {u'image': u'{{ neutron_openvswitch_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'openvswitch' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else ( inventory_hostname in groups['compute'] or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] and not enable_nova_fake | bool ) or ( inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-vpnaas-agent'] and enable_nova_fake | bool ) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-openvswitch-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_openvswitch_agent', u'privileged': True}, u'neutron-dhcp-agent': {u'group': u'neutron-dhcp-agent', u'image': u'{{ neutron_dhcp_agent_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-dhcp-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-dhcp-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run/:/run/:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_dhcp_agent', u'privileged': True}, u'neutron-l3-agent': {u'image': u'{{ neutron_l3_agent_image_full }}', u'enabled': u'{{ not enable_neutron_vpnaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-l3-agent'] or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-l3-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_l3_agent', u'privileged': True}, u'neutron-sfc-agent': {u'image': u'{{ neutron_sfc_agent_image_full }}', u'enabled': u\"{{ neutron_plugin_agent == 'sfc' }}\", u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else ( inventory_hostname in groups['compute'] or or (enable_manila | bool and inventory_hostname in groups['manila-share']) or inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] and not enable_nova_fake | bool ) or ( inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent'] and enable_nova_fake | bool ) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-sfc-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/lib/modules:/lib/modules:ro', u'/run:/run:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_sfc_agent', u'privileged': True}, u'neutron-lbaas-agent': {u'group': u'neutron-lbaas-agent', u'image': u'{{ neutron_lbaas_agent_image_full }}', u'enabled': u'{{ enable_neutron_lbaas | bool }}', u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-lbaas-agent'] }}\", u'volumes': [u'{{ node_config_directory }}/neutron-lbaas-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run:/run:shared', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_lbaas_agent', u'privileged': True}, u'neutron-metadata-agent': {u'image': u'{{ neutron_metadata_agent_image_full }}', u'enabled': True, u'host_in_groups': u\"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-metadata-agent'] or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) }}\", u'volumes': [u'{{ node_config_directory }}/neutron-metadata-agent/:{{ container_config_directory }}/:ro', u'/etc/localtime:/etc/localtime:ro', u'/run/netns/:/run/netns/:shared', u'neutron_metadata_socket:/var/lib/neutron/kolla/', u'kolla_logs:/var/log/kolla/'], u'container_name': u'neutron_metadata_agent', u'privileged': True}}: 'or' is undefined\n\nThe error appears to have been in '/opt/bgi-kolla/kolla-ansible/ansible/roles/neutron/tasks/config.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Setting sysctl values\n ^ here\n"}
skipping: [kode4] => (item={u'name': u'net.ipv4.ip_forward', u'value': 1})
skipping: [kode5] => (item={u'name': u'net.ipv4.ip_forward', u'value': 1})
skipping: [kode4] => (item={u'name': u'net.ipv4.conf.all.rp_filter', u'value': 0})
skipping: [kode5] => (item={u'name': u'net.ipv4.conf.all.rp_filter', u'value': 0})
skipping: [kode4] => (item={u'name': u'net.ipv4.conf.default.rp_filter', u'value': 0})
skipping: [kode5] => (item={u'name': u'net.ipv4.conf.default.rp_filter', u'value': 0})
[root@kola kolla-ansible]# grep neutron /etc/kolla/globals.yml -irn
62:# Neutron - Networking Options
85:# This is the raw interface given to neutron as its external network port. Even
89:neutron_external_interface: "eth2"
92:#neutron_plugin_agent: "openvswitch"
155:enable_horizon_neutron_lbaas: "{{ enable_neutron_lbaas | bool }}"
175:enable_neutron_dvr: "no"
176:enable_neutron_lbaas: "no"
177:enable_neutron_fwaas: "no"
178:enable_neutron_qos: "yes"
179:enable_neutron_agent_ha: "no"
180:enable_neutron_vpnaas: "no"
kolla 4.0.0.0rc1
kolla-ansible 4.0.0.0rc1
ansible 2.2
This was already fixed in upstream. default/ main.yml (neutron_sfc_agent block) caused this.
A duplicate or in neutron/
https:/ /github. com/openstack/ kolla-ansible/ commit/ 7c727c88dffff68 f026e97f1e47c85 a1ac067744
Please try applying previous patch before marking bug as invalid. Next kolla-ansible tag will happen next week.