Merge "Fix the host_in_groups error in kolla-kubernetes."

This commit is contained in:
Jenkins 2017-02-14 16:00:25 +00:00 committed by Gerrit Code Review
commit fe3bb84a22

View File

@ -8,12 +8,13 @@ neutron_services:
enabled: "{{ neutron_plugin_agent == 'openvswitch' }}" enabled: "{{ neutron_plugin_agent == 'openvswitch' }}"
host_in_groups: >- host_in_groups: >-
{{ {{
inventory_hostname in groups['compute'] True if orchestration_engine == 'KUBERNETES' else
or (enable_manila | bool and inventory_hostname in groups['manila-share']) inventory_hostname in groups['compute']
or inventory_hostname in groups['neutron-dhcp-agent'] or (enable_manila | bool and inventory_hostname in groups['manila-share'])
or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-l3-agent']
or inventory_hostname in groups['neutron-vpnaas-agent'] or inventory_hostname in groups['neutron-metadata-agent']
or inventory_hostname in groups['neutron-vpnaas-agent']
}} }}
volumes: volumes:
- "{{ node_config_directory }}/openvswitch-db-server/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/openvswitch-db-server/:{{ container_config_directory }}/:ro"
@ -27,12 +28,13 @@ neutron_services:
enabled: "{{ neutron_plugin_agent == 'openvswitch' }}" enabled: "{{ neutron_plugin_agent == 'openvswitch' }}"
host_in_groups: >- host_in_groups: >-
{{ {{
inventory_hostname in groups['compute'] True if orchestration_engine == 'KUBERNETES' else
or (enable_manila | bool and inventory_hostname in groups['manila-share']) inventory_hostname in groups['compute']
or inventory_hostname in groups['neutron-dhcp-agent'] or (enable_manila | bool and inventory_hostname in groups['manila-share'])
or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-l3-agent']
or inventory_hostname in groups['neutron-vpnaas-agent'] or inventory_hostname in groups['neutron-metadata-agent']
or inventory_hostname in groups['neutron-vpnaas-agent']
}} }}
privileged: True privileged: True
volumes: volumes:
@ -46,7 +48,7 @@ neutron_services:
image: "{{ neutron_server_image_full }}" image: "{{ neutron_server_image_full }}"
enabled: true enabled: true
group: "neutron-server" group: "neutron-server"
host_in_groups: "{{ inventory_hostname in groups['neutron-server'] }}" host_in_groups: "{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-server'] }}"
volumes: volumes:
- "{{ node_config_directory }}/neutron-server/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/neutron-server/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"
@ -58,20 +60,21 @@ neutron_services:
privileged: True privileged: True
host_in_groups: >- host_in_groups: >-
{{ {{
( inventory_hostname in groups['compute'] True if orchestration_engine == 'KUBERNETES' else
or (enable_manila | bool and inventory_hostname in groups['manila-share']) ( inventory_hostname in groups['compute']
or inventory_hostname in groups['neutron-dhcp-agent'] or (enable_manila | bool and inventory_hostname in groups['manila-share'])
or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-l3-agent']
or inventory_hostname in groups['neutron-vpnaas-agent'] or inventory_hostname in groups['neutron-metadata-agent']
and not enable_nova_fake | bool or inventory_hostname in groups['neutron-vpnaas-agent']
) or and not enable_nova_fake | bool
( inventory_hostname in groups['neutron-dhcp-agent'] ) or
or inventory_hostname in groups['neutron-l3-agent'] ( inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-l3-agent']
or inventory_hostname in groups['neutron-vpnaas-agent'] or inventory_hostname in groups['neutron-metadata-agent']
and enable_nova_fake | bool or inventory_hostname in groups['neutron-vpnaas-agent']
) and enable_nova_fake | bool
)
}} }}
volumes: volumes:
- "{{ node_config_directory }}/neutron-openvswitch-agent/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/neutron-openvswitch-agent/:{{ container_config_directory }}/:ro"
@ -86,18 +89,19 @@ neutron_services:
privileged: True privileged: True
host_in_groups: >- host_in_groups: >-
{{ {{
( inventory_hostname in groups['compute'] True if orchestration_engine == 'KUBERNETES' else
or (enable_manila | bool and inventory_hostname in groups['manila-share']) ( inventory_hostname in groups['compute'] or
or inventory_hostname in groups['neutron-dhcp-agent'] or (enable_manila | bool and inventory_hostname in groups['manila-share'])
or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-l3-agent']
and not enable_nova_fake | bool or inventory_hostname in groups['neutron-metadata-agent']
) or and not enable_nova_fake | bool
( inventory_hostname in groups['neutron-dhcp-agent'] ) or
or inventory_hostname in groups['neutron-l3-agent'] ( inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-l3-agent']
and enable_nova_fake | bool or inventory_hostname in groups['neutron-metadata-agent']
) and enable_nova_fake | bool
)
}} }}
volumes: volumes:
- "{{ node_config_directory }}/neutron-sfc-agent/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/neutron-sfc-agent/:{{ container_config_directory }}/:ro"
@ -116,12 +120,13 @@ neutron_services:
NEUTRON_INTERFACE: "{{ neutron_external_interface }}" NEUTRON_INTERFACE: "{{ neutron_external_interface }}"
host_in_groups: >- host_in_groups: >-
{{ {{
inventory_hostname in groups['compute'] True if orchestration_engine == 'KUBERNETES' else
or (enable_manila | bool and inventory_hostname in groups['manila-share']) inventory_hostname in groups['compute']
or inventory_hostname in groups['neutron-dhcp-agent'] or (enable_manila | bool and inventory_hostname in groups['manila-share'])
or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-metadata-agent'] or inventory_hostname in groups['neutron-l3-agent']
or inventory_hostname in groups['neutron-vpnaas-agent'] or inventory_hostname in groups['neutron-metadata-agent']
or inventory_hostname in groups['neutron-vpnaas-agent']
}} }}
volumes: volumes:
- "{{ node_config_directory }}/neutron-linuxbridge-agent/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/neutron-linuxbridge-agent/:{{ container_config_directory }}/:ro"
@ -135,7 +140,7 @@ neutron_services:
privileged: True privileged: True
enabled: True enabled: True
group: "neutron-dhcp-agent" group: "neutron-dhcp-agent"
host_in_groups: "{{ inventory_hostname in groups['neutron-dhcp-agent'] }}" host_in_groups: "{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-dhcp-agent'] }}"
volumes: volumes:
- "{{ node_config_directory }}/neutron-dhcp-agent/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/neutron-dhcp-agent/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"
@ -150,8 +155,9 @@ neutron_services:
enabled: "{{ not enable_neutron_vpnaas | bool }}" enabled: "{{ not enable_neutron_vpnaas | bool }}"
host_in_groups: >- host_in_groups: >-
{{ {{
inventory_hostname in groups['neutron-l3-agent'] True if orchestration_engine == 'KUBERNETES' else
or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) inventory_hostname in groups['neutron-l3-agent']
or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool)
}} }}
volumes: volumes:
- "{{ node_config_directory }}/neutron-l3-agent/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/neutron-l3-agent/:{{ container_config_directory }}/:ro"
@ -166,7 +172,7 @@ neutron_services:
privileged: True privileged: True
enabled: "{{ enable_neutron_lbaas | bool }}" enabled: "{{ enable_neutron_lbaas | bool }}"
group: "neutron-lbaas-agent" group: "neutron-lbaas-agent"
host_in_groups: "{{ inventory_hostname in groups['neutron-lbaas-agent'] }}" host_in_groups: "{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-lbaas-agent'] }}"
volumes: volumes:
- "{{ node_config_directory }}/neutron-lbaas-agent/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/neutron-lbaas-agent/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"
@ -181,8 +187,9 @@ neutron_services:
enabled: true enabled: true
host_in_groups: >- host_in_groups: >-
{{ {{
inventory_hostname in groups['neutron-metadata-agent'] True if orchestration_engine == 'KUBERNETES' else
or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool) inventory_hostname in groups['neutron-metadata-agent']
or (inventory_hostname in groups['compute'] and enable_neutron_dvr | bool)
}} }}
volumes: volumes:
- "{{ node_config_directory }}/neutron-metadata-agent/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/neutron-metadata-agent/:{{ container_config_directory }}/:ro"
@ -196,7 +203,7 @@ neutron_services:
privileged: True privileged: True
enabled: "{{ enable_neutron_vpnaas | bool }}" enabled: "{{ enable_neutron_vpnaas | bool }}"
group: "neutron-vpnaas-agent" group: "neutron-vpnaas-agent"
host_in_groups: "{{ inventory_hostname in groups['neutron-vpnaas-agent'] }}" host_in_groups: "{{ True if orchestration_engine == 'KUBERNETES' else inventory_hostname in groups['neutron-vpnaas-agent'] }}"
volumes: volumes:
- "{{ node_config_directory }}/neutron-vpnaas-agent/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/neutron-vpnaas-agent/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"