1 heat_template_version: pike
4 OpenStack Neutron L3 agent configured with Puppet
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
38 Agent mode for L3 agent. Must be one of legacy or dvr_snat.
45 MonitoringSubscriptionNeutronL3:
46 default: 'overcloud-neutron-l3-agent'
48 NeutronL3AgentLoggingSource:
51 tag: openstack.neutron.agent.l3
52 path: /var/log/neutron/l3-agent.log
54 # DEPRECATED: the following options are deprecated and are currently maintained
55 # for backwards compatibility. They will be removed in the Pike cycle.
56 NeutronExternalNetworkBridge:
57 description: Name of bridge used for external network traffic. Usually L2
58 agent handles port wiring into external bridge, and hence the
59 parameter should be unset.
65 external_network_bridge_empty: {equals : [{get_param: NeutronExternalNetworkBridge}, "''"]}
70 type: ./neutron-base.yaml
72 ServiceData: {get_param: ServiceData}
73 ServiceNetMap: {get_param: ServiceNetMap}
74 DefaultPasswords: {get_param: DefaultPasswords}
75 EndpointMap: {get_param: EndpointMap}
76 RoleName: {get_param: RoleName}
77 RoleParameters: {get_param: RoleParameters}
81 description: Role data for the Neutron L3 agent service.
83 service_name: neutron_l3
84 monitoring_subscription: {get_param: MonitoringSubscriptionNeutronL3}
85 logging_source: {get_param: NeutronL3AgentLoggingSource}
90 - get_attr: [NeutronBase, role_data, config_settings]
91 - neutron::agents::l3::agent_mode: {get_param: NeutronL3AgentMode}
92 tripleo.neutron_l3.firewall_rules:
93 '106 neutron_l3 vrrp':
97 - external_network_bridge_empty
99 - neutron::agents::l3::external_network_bridge: {get_param: NeutronExternalNetworkBridge}
101 include tripleo::profile::base::neutron::l3
103 - name: Check if neutron_l3_agent is deployed
104 command: systemctl is-enabled neutron-l3-agent
107 register: neutron_l3_agent_enabled
108 - name: "PreUpgrade step0,validation: Check service neutron-l3-agent is running"
109 shell: /usr/bin/systemctl show 'neutron-l3-agent' --property ActiveState | grep '\bactive\b'
110 when: neutron_l3_agent_enabled.rc == 0
111 tags: step0,validation
112 - name: Stop neutron_l3 service
114 when: neutron_l3_agent_enabled.rc == 0
115 service: name=neutron-l3-agent state=stopped