1 heat_template_version: pike
4 OpenStack Neutron openvswitch service
7 DockerOpenvswitchImage:
10 DockerNeutronConfigImage:
11 description: The container image to use for the neutron config_volume
15 description: Dictionary packing service data
19 description: Mapping of service_name -> network name. Typically set
20 via parameter_defaults in the resource registry. This
21 mapping overrides those in ServiceNetMapDefaults.
28 description: Role name on which the service is applied
32 description: Parameters specific to the role
36 description: Mapping of service endpoint -> protocol. Typically set
37 via parameter_defaults in the resource registry.
39 UpgradeRemoveUnusedPackages:
41 description: Remove package if the service is being disabled during upgrade
47 type: ./containers-common.yaml
50 type: ../../puppet/services/neutron-ovs-agent.yaml
52 EndpointMap: {get_param: EndpointMap}
53 ServiceData: {get_param: ServiceData}
54 ServiceNetMap: {get_param: ServiceNetMap}
55 DefaultPasswords: {get_param: DefaultPasswords}
56 RoleName: {get_param: RoleName}
57 RoleParameters: {get_param: RoleParameters}
61 description: Role data for Neutron openvswitch service
63 service_name: {get_attr: [NeutronOvsAgentBase, role_data, service_name]}
64 config_settings: {get_attr: [NeutronOvsAgentBase, role_data, config_settings]}
65 logging_source: {get_attr: [NeutronOvsAgentBase, role_data, logging_source]}
66 logging_groups: {get_attr: [NeutronOvsAgentBase, role_data, logging_groups]}
67 step_config: &step_config
68 get_attr: [NeutronOvsAgentBase, role_data, step_config]
70 config_volume: neutron
71 puppet_tags: neutron_config,neutron_agent_ovs,neutron_plugin_ml2
72 step_config: *step_config
73 config_image: {get_param: DockerNeutronConfigImage}
75 /var/lib/kolla/config_files/neutron_ovs_agent.json:
76 command: /usr/bin/neutron-openvswitch-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-dir /etc/neutron/conf.d/common
78 - source: "/var/lib/kolla/config_files/src/*"
81 preserve_properties: true
83 - path: /var/log/neutron
84 owner: neutron:neutron
90 image: {get_param: DockerNeutronConfigImage}
99 - /etc/puppet/modules:/usr/share/openstack-puppet/modules
101 - file,file_line,concat,augeas,neutron::plugins::ovs::bridge
104 - include neutron::agents::ml2::ovs
107 - {get_attr: [ContainersCommon, volumes]}
109 - /var/lib/kolla/config_files/neutron_ovs_agent.json:/var/lib/kolla/config_files/config.json:ro
110 - /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
111 - /lib/modules:/lib/modules:ro
113 - /etc/puppet:/etc/puppet:ro
114 - /usr/share/openstack-puppet/modules/:/usr/share/openstack-puppet/modules/:ro
115 - /var/run/openvswitch/db.sock:/var/run/openvswitch/db.sock
117 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
120 image: {get_param: DockerOpenvswitchImage}
127 - {get_attr: [ContainersCommon, volumes]}
129 - /var/lib/kolla/config_files/neutron_ovs_agent.json:/var/lib/kolla/config_files/config.json:ro
130 - /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
131 - /lib/modules:/lib/modules:ro
133 - /var/log/containers/neutron:/var/log/neutron
135 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
137 - name: create persistent logs directory
139 path: /var/log/containers/neutron
142 - name: Stop and disable neutron_ovs_agent service
144 service: name=neutron-openvswitch-agent state=stopped enabled=no
145 - name: Remove openstack-neutron-openvswitch package if operator requests it
146 yum: name=openstack-neutron-openvswitch state=removed
149 when: {get_param: UpgradeRemoveUnusedPackages}