1 heat_template_version: pike
4 L2 Gateway agent configured with Puppet
8 description: Mapping of service_name -> network name. Typically set
9 via parameter_defaults in the resource registry. This
10 mapping overrides those in ServiceNetMapDefaults.
17 description: Role name on which the service is applied
21 description: Parameters specific to the role
25 description: Mapping of service endpoint -> protocol. Typically set
26 via parameter_defaults in the resource registry.
30 description: L2 gateway agent OVSDB server list.
31 type: comma_delimited_list
32 L2gwAgentEnableManager:
34 description: Connection can be initiated by the ovsdb server.
36 L2gwAgentManagerTableListeningPort:
38 description: port number for L2 gateway agent, so that it can listen
40 L2gwAgentPeriodicInterval:
42 description: The L2 gateway agent checks connection state with the OVSDB
43 servers. The interval is number of seconds between attempts.
45 L2gwAgentMaxConnectionRetries:
47 description: The L2 gateway agent retries to connect to the OVSDB server
49 L2gwAgentSocketTimeout:
51 description: socket timeout
53 MonitoringSubscriptionNeutronL2gwAgent:
54 default: 'overcloud-neutron-l2gw-agent'
56 NeutronL2gwAgentLoggingSource:
59 tag: openstack.neutron.agent.l2gw
60 path: /var/log/neutron/l2gw-agent.log
63 internal_manager_enabled: {equals: [{get_param: L2gwAgentEnableManager}, True]}
67 description: Role data for the L2 Gateway role.
69 service_name: neutron_l2gw_agent
70 monitoring_subscription: {get_param: MonitoringSubscriptionNeutronL2gwAgent}
71 logging_source: {get_param: NeutronL2gwAgentLoggingSource}
76 - neutron::agents::l2gw::ovsdb_hosts: {get_param: L2gwAgentOvsdbHosts}
77 neutron::agents::l2gw::enable_manager: {get_param: L2gwAgentEnableManager}
78 neutron::agents::l2gw::manager_table_listening_port: {get_param: L2gwAgentManagerTableListeningPort}
79 neutron::agents::l2gw::periodic_interval: {get_param: L2gwAgentPeriodicInterval}
80 neutron::agents::l2gw::max_connection_retries: {get_param: L2gwAgentMaxConnectionRetries}
81 neutron::agents::l2gw::socket_timeout: {get_param: L2gwAgentSocketTimeout}
84 - internal_manager_enabled
85 - tripleo.neutron_l2gw_agent.firewall_rules:
86 '142 neutron l2gw agent input':
88 dport: {get_param: L2gwAgentManagerTableListeningPort}
92 include tripleo::profile::base::neutron::agents::l2gw
94 - name: Check if neutron_l2gw_agent is deployed
95 command: systemctl is-enabled neutron-l2gw-agent
98 register: neutron_l2gw_agent_enabled
99 - name: "PreUpgrade step0,validation: Check service neutron-l2gw-agent is running"
100 shell: /usr/bin/systemctl show 'neutron-l2gw-agent' --property ActiveState | grep '\bactive\b'
101 when: neutron_l2gw_agent_enabled.rc == 0
102 tags: step0,validation
103 - name: Stop neutron_l2gw_agent service
105 when: neutron_l2gw_agent_enabled.rc == 0
106 service: name=neutron-l2gw-agent state=stopped