1 heat_template_version: ocata
4 OpenStack Neutron OVS agent configured with Puppet
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
24 Enable/disable the L2 population feature in the Neutron agents.
26 NeutronBridgeMappings:
28 The OVS logical->physical bridge mappings to use. See the Neutron
29 documentation for details. Defaults to mapping br-ex - the external
30 bridge on hosts - to a physical name 'datacentre' which can be used
31 to create provider networks (and we use this for the default floating
32 network) - if changing this either use different post-install network
33 scripts or be sure to keep 'datacentre' as a mapping network name.
34 type: comma_delimited_list
35 default: "datacentre:br-ex"
39 The tunnel types for the Neutron tenant network.
40 type: comma_delimited_list
41 NeutronAgentExtensions:
44 Comma-separated list of extensions enabled for the Neutron agents.
45 type: comma_delimited_list
49 Enable support for distributed routing in the OVS Agent.
51 NeutronEnableARPResponder:
54 Enable ARP responder feature in the OVS Agent.
56 MonitoringSubscriptionNeutronOvs:
57 default: 'overcloud-neutron-ovs-agent'
59 NeutronOVSFirewallDriver:
62 Configure the classname of the firewall driver to use for implementing
63 security groups. Possible values depend on system configuration. Some
64 examples are: noop, openvswitch, iptables_hybrid. The default value of an
65 empty string will result in a default supported configuration.
67 NeutronOpenVswitchAgentLoggingSource:
70 tag: openstack.neutron.agent.openvswitch
71 path: /var/log/neutron/openvswitch-agent.log
74 no_firewall_driver: {equals : [{get_param: NeutronOVSFirewallDriver}, '']}
79 type: ./neutron-base.yaml
81 ServiceNetMap: {get_param: ServiceNetMap}
82 DefaultPasswords: {get_param: DefaultPasswords}
83 EndpointMap: {get_param: EndpointMap}
86 type: ./openvswitch-upgrade.yaml
90 description: Role data for the Neutron OVS agent service.
92 service_name: neutron_ovs_agent
93 monitoring_subscription: {get_param: MonitoringSubscriptionNeutronOvs}
94 logging_source: {get_param: NeutronOpenVswitchAgentLoggingSource}
99 - get_attr: [NeutronBase, role_data, config_settings]
100 - neutron::agents::ml2::ovs::l2_population: {get_param: NeutronEnableL2Pop}
101 neutron::agents::ml2::ovs::enable_distributed_routing: {get_param: NeutronEnableDVR}
102 neutron::agents::ml2::ovs::arp_responder: {get_param: NeutronEnableARPResponder}
103 neutron::agents::ml2::ovs::bridge_mappings: {get_param: NeutronBridgeMappings}
104 neutron::agents::ml2::ovs::tunnel_types: {get_param: NeutronTunnelTypes}
105 neutron::agents::ml2::ovs::extensions: {get_param: NeutronAgentExtensions}
106 # NOTE: bind IP is found in Heat replacing the network name with the
107 # local node IP for the given network; replacement examples
108 # (eg. for internal_api):
110 # internal_api_uri -> [IP]
111 # internal_api_subnet - > IP/CIDR
112 neutron::agents::ml2::ovs::local_ip: {get_param: [ServiceNetMap, NeutronTenantNetwork]}
113 tripleo.neutron_ovs_agent.firewall_rules:
114 '118 neutron vxlan networks':
117 '136 neutron gre networks':
123 - neutron::agents::ml2::ovs::firewall_driver: {get_param: NeutronOVSFirewallDriver}
125 include ::tripleo::profile::base::neutron::ovs
128 expression: $.data.ovs_upgrade + $.data.neutron_ovs_upgrade
131 get_attr: [OpenVswitchUpgrade, role_data, upgrade_tasks]
133 - name: Check if neutron_ovs_agent is deployed
134 command: systemctl is-enabled neutron-openvswitch-agent
137 register: neutron_ovs_agent_enabled
138 - name: "PreUpgrade step0,validation: Check service neutron-openvswitch-agent is running"
139 shell: /usr/bin/systemctl show 'neutron-openvswitch-agent' --property ActiveState | grep '\bactive\b'
140 when: neutron_ovs_agent_enabled.rc == 0
141 tags: step0,validation
142 - name: Stop neutron_ovs_agent service
144 when: neutron_ovs_agent_enabled.rc == 0
145 service: name=neutron-openvswitch-agent state=stopped