1 heat_template_version: pike
4 OpenDaylight OVS Configuration.
9 description: Set opendaylight service port
13 description: The username for the opendaylight server.
18 description: The password for the opendaylight server.
20 OpenDaylightConnectionProtocol:
21 description: L7 protocol used for REST access
25 description: URL postfix to verify ODL has finished starting up
27 default: 'restconf/operational/network-topology:network-topology/topology/netvirt:1'
28 OpenDaylightApiVirtualIP:
31 OpenDaylightProviderMappings:
32 description: Mappings between logical networks and physical interfaces.
33 Required for VLAN deployments. For example physnet1 -> eth1.
34 type: comma_delimited_list
35 default: "datacentre:br-ex"
36 HostAllowedNetworkTypes:
37 description: Allowed tenant network types for this OVS host. Note this can
38 vary per host or role to constrain which hosts nova instances
39 and networks are scheduled to.
40 type: comma_delimited_list
41 default: ['local', 'vlan', 'vxlan', 'gre']
43 description: Whether or not to configure enable DPDK in OVS
47 description: Specify the mode for OVS with vhostuser port creation. In
48 client mode, the hypervisor will be responsible for creating
49 vhostuser sockets. In server mode, OVS will create them.
53 - allowed_values: [ 'client', 'server' ]
55 description: Specify the directory to use for vhostuser sockets
57 default: "/var/run/openvswitch"
60 description: Mapping of service endpoint -> protocol. Typically set
61 via parameter_defaults in the resource registry.
65 description: Dictionary packing service data
69 description: Mapping of service_name -> network name. Typically set
70 via parameter_defaults in the resource registry. This
71 mapping overrides those in ServiceNetMapDefaults.
78 description: Role name on which the service is applied
82 description: Parameters specific to the role
87 type: ./openvswitch.yaml
89 ServiceData: {get_param: ServiceData}
90 ServiceNetMap: {get_param: ServiceNetMap}
91 DefaultPasswords: {get_param: DefaultPasswords}
92 EndpointMap: {get_param: EndpointMap}
93 RoleName: {get_param: RoleName}
94 RoleParameters: {get_param: RoleParameters}
96 # Merging role-specific parameters (RoleParameters) with the default parameters.
97 # RoleParameters will have the precedence over the default parameters.
105 - neutron::plugins::ovs::opendaylight::allowed_network_types: HostAllowedNetworkTypes
106 neutron::plugins::ovs::opendaylight::enable_dpdk: OvsEnableDpdk
107 neutron::plugins::ovs::opendaylight::vhostuser_socket_dir: VhostuserSocketDir
108 neutron::plugins::ovs::opendaylight::vhostuser_mode: OvsVhostuserMode
109 neutron::plugins::ovs::opendaylight::provider_mappings: OpenDaylightProviderMappings
110 - values: {get_param: [RoleParameters]}
112 HostAllowedNetworkTypes: {get_param: HostAllowedNetworkTypes}
113 OvsEnableDpdk: {get_param: OvsEnableDpdk}
114 VhostuserSocketDir: {get_param: VhostuserSocketDir}
115 OvsVhostuserMode: {get_param: OvsVhostuserMode}
116 OpenDaylightProviderMappings: {get_param: OpenDaylightProviderMappings}
120 description: Role data for the OpenDaylight service.
122 service_name: opendaylight_ovs
125 - opendaylight::odl_rest_port: {get_param: OpenDaylightPort}
126 opendaylight::username: {get_param: OpenDaylightUsername}
127 opendaylight::password: {get_param: OpenDaylightPassword}
128 neutron::plugins::ovs::opendaylight::odl_username: {get_param: OpenDaylightUsername}
129 neutron::plugins::ovs::opendaylight::odl_password: {get_param: OpenDaylightPassword}
130 opendaylight_check_url: {get_param: OpenDaylightCheckURL}
131 opendaylight::nb_connection_protocol: {get_param: OpenDaylightConnectionProtocol}
132 neutron::agents::ml2::ovs::local_ip: {get_param: [ServiceNetMap, NeutronTenantNetwork]}
133 tripleo.opendaylight_ovs.firewall_rules:
134 '118 neutron vxlan networks':
137 '136 neutron gre networks':
139 - get_attr: [Ovs, role_data, config_settings]
140 - get_attr: [RoleParametersValue, value]
142 include tripleo::profile::base::neutron::plugins::ovs::opendaylight
145 - get_attr: [Ovs, role_data, upgrade_tasks]
147 - name: Check if openvswitch is deployed
148 command: systemctl is-enabled openvswitch
151 register: openvswitch_enabled
152 - name: "PreUpgrade step0,validation: Check service openvswitch is running"
153 shell: /usr/bin/systemctl show 'openvswitch' --property ActiveState | grep '\bactive\b'
154 when: openvswitch_enabled.rc == 0
155 tags: step0,validation
156 - name: Stop openvswitch service
158 when: openvswitch_enabled.rc == 0
159 service: name=openvswitch state=stopped