1 heat_template_version: pike
4 OpenStack Neutron L3 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: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
34 Agent mode for L3 agent. Must be one of legacy or dvr_snat.
41 MonitoringSubscriptionNeutronL3:
42 default: 'overcloud-neutron-l3-agent'
44 NeutronL3AgentLoggingSource:
47 tag: openstack.neutron.agent.l3
48 path: /var/log/neutron/l3-agent.log
50 # DEPRECATED: the following options are deprecated and are currently maintained
51 # for backwards compatibility. They will be removed in the Pike cycle.
52 NeutronExternalNetworkBridge:
53 description: Name of bridge used for external network traffic. Usually L2
54 agent handles port wiring into external bridge, and hence the
55 parameter should be unset.
61 external_network_bridge_empty: {equals : [{get_param: NeutronExternalNetworkBridge}, "''"]}
66 type: ./neutron-base.yaml
68 ServiceNetMap: {get_param: ServiceNetMap}
69 DefaultPasswords: {get_param: DefaultPasswords}
70 EndpointMap: {get_param: EndpointMap}
71 RoleName: {get_param: RoleName}
72 RoleParameters: {get_param: RoleParameters}
76 description: Role data for the Neutron L3 agent service.
78 service_name: neutron_l3
79 monitoring_subscription: {get_param: MonitoringSubscriptionNeutronL3}
80 logging_source: {get_param: NeutronL3AgentLoggingSource}
85 - get_attr: [NeutronBase, role_data, config_settings]
86 - neutron::agents::l3::agent_mode: {get_param: NeutronL3AgentMode}
87 tripleo.neutron_l3.firewall_rules:
88 '106 neutron_l3 vrrp':
92 - external_network_bridge_empty
94 - neutron::agents::l3::external_network_bridge: {get_param: NeutronExternalNetworkBridge}
96 include tripleo::profile::base::neutron::l3
98 - name: Check if neutron_l3_agent is deployed
99 command: systemctl is-enabled neutron-l3-agent
102 register: neutron_l3_agent_enabled
103 - name: "PreUpgrade step0,validation: Check service neutron-l3-agent is running"
104 shell: /usr/bin/systemctl show 'neutron-l3-agent' --property ActiveState | grep '\bactive\b'
105 when: neutron_l3_agent_enabled.rc == 0
106 tags: step0,validation
107 - name: Stop neutron_l3 service
109 when: neutron_l3_agent_enabled.rc == 0
110 service: name=neutron-l3-agent state=stopped