Offending line in 'Setting sysctl values' play in Neutron role

Bug #1664962 reported by Thomas O'Neill
This bug report is a duplicate of:  Bug #1665188: typo in neutron's defaults/main.yml. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

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 evalua
ting 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-meta
data-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_ag
ent == '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_hostnam$
 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_INTE$
FACE': 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', $
'/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-se$
ver', 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_metadat$
_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_$
lugin_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_$
onfig_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-age$
t'] 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 gr$
ups['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': Tr$
e}, 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['ne$
tron-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_metad$
ta_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_neutr$
n_vpnaas | bool }}', u'host_in_groups': u"{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostnamein 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'k$
lla_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 invent$
ry_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-a$
ent'] 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_lba$
s_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_$
irectory }}/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/$
og/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== 'K$
BERNETES' 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_confi$
_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

The error appears to have been in '/home/user/kolla-ansible/ansible/roles/neutron/tasks/config.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: Setting sysctl values
  ^ here

Getting this with the latest kolla-ansible code, definitely an issue with commit a1901d4264aa63b195ff1ccbcded5e63bf31c1ce as this issue doesn't occur when this commit is reverted.

Revision history for this message
eagle (openstack-eagle) wrote :

I see the bug fixed in commit 79b4774. see see bug 1665188

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

try ocata branch, which fixed this issue.
next release will be released soon.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.