1 From ca87d09638f46ba49a866832030970bf43ade74e Mon Sep 17 00:00:00 2001
2 From: Tim Rozet <tdrozet@gmail.com>
3 Date: Tue, 12 Jan 2016 16:49:57 -0500
4 Subject: [PATCH] Adds current opnfv patch with ODL and ONOS support
7 environments/onos.yaml | 8 +
8 environments/opendaylight-external.yaml | 25 ++
9 environments/opendaylight.yaml | 26 ++
10 environments/opendaylight_l3.yaml | 9 +
11 environments/opendaylight_sdnvpn.yaml | 29 ++
12 environments/opendaylight_sfc.yaml | 28 ++
13 network/endpoints/endpoint_map.yaml | 31 ++
14 overcloud-resource-registry-puppet.yaml | 3 +
15 overcloud-without-mergepy.yaml | 103 +++++
16 puppet/all-nodes-config.yaml | 27 ++
17 puppet/compute.yaml | 41 ++
18 puppet/controller.yaml | 104 ++++-
19 puppet/hieradata/common.yaml | 1 +
20 puppet/hieradata/controller.yaml | 5 +-
21 puppet/manifests/overcloud_compute.pp | 49 ++-
22 puppet/manifests/overcloud_controller.pp | 128 +++++-
23 puppet/manifests/overcloud_controller_pacemaker.pp | 482 ++++++++++++++-------
24 puppet/manifests/overcloud_opendaylight.pp | 27 ++
25 puppet/opendaylight-puppet.yaml | 223 ++++++++++
26 puppet/vip-config.yaml | 1 +
27 20 files changed, 1188 insertions(+), 162 deletions(-)
28 create mode 100644 environments/onos.yaml
29 create mode 100644 environments/opendaylight-external.yaml
30 create mode 100644 environments/opendaylight.yaml
31 create mode 100644 environments/opendaylight_l3.yaml
32 create mode 100644 environments/opendaylight_sdnvpn.yaml
33 create mode 100644 environments/opendaylight_sfc.yaml
34 create mode 100644 puppet/manifests/overcloud_opendaylight.pp
35 create mode 100644 puppet/opendaylight-puppet.yaml
37 diff --git a/environments/onos.yaml b/environments/onos.yaml
39 index 0000000..510aca9
41 +++ b/environments/onos.yaml
44 + #This a bug for odl deployment. Once bug fixed OpenDaylightCount can be remove.
45 + OpenDaylightCount: 0
48 + neutron_service_plugins: ['onos_router']
49 + neutron_mechanism_drivers: ['onos_ml2']
50 + neutron_tenant_network_type: vxlan
51 diff --git a/environments/opendaylight-external.yaml b/environments/opendaylight-external.yaml
53 index 0000000..411df21
55 +++ b/environments/opendaylight-external.yaml
57 +# Environment file used to enable OpenDaylight
58 +# Currently uses overcloud image that is assumed
59 +# to be virt-customized with ODL RPM already on it
61 +# These parameters customize the OpenDaylight Node
62 +# The user name and password are for the ODL service
63 +# Defaults are included here for reference
65 +# OpenDaylightFlavor: baremetal
66 +# OpenDaylightHostname: opendaylight-server
67 +# OpenDaylightImage: overcloud-full
68 +# OpenDaylightUsername: admin
69 +# OpenDaylightPassword: admin
72 + # increase this if you need more ODL nodes
73 + OpenDaylightCount: 1
76 + neutron_mechanism_drivers: ['opendaylight']
77 + neutron_tenant_network_type: vxlan
78 + # Enable this if you want OpenDaylight on the contollers
79 + # reduce OpenDaylightCount to 0 if you don't want any
80 + # OpenDaylight only nodes
81 + #opendaylight_install: true
82 diff --git a/environments/opendaylight.yaml b/environments/opendaylight.yaml
84 index 0000000..cfa4ad3
86 +++ b/environments/opendaylight.yaml
88 +# Environment file used to enable OpenDaylight
89 +# Currently uses overcloud image that is assumed
90 +# to be virt-customized with ODL RPM already on it
92 +# These parameters customize the OpenDaylight Node
93 +# The user name and password are for the ODL service
94 +# Defaults are included here for reference
96 +# OpenDaylightFlavor: baremetal
97 +# OpenDaylightHostname: opendaylight-server
98 +# OpenDaylightImage: overcloud-full
99 +# OpenDaylightUsername: admin
100 +# OpenDaylightPassword: admin
103 + # increase this if you need more ODL nodes
104 + # OpenDaylightCount: 1
106 + OpenDaylightEnableHA: true
108 + neutron_mechanism_drivers: ['opendaylight']
109 + neutron_tenant_network_type: vxlan
110 + # Enable this if you want OpenDaylight on the contollers
111 + # reduce OpenDaylightCount to 0 if you don't want any
112 + # OpenDaylight only nodes
113 + opendaylight_install: true
114 diff --git a/environments/opendaylight_l3.yaml b/environments/opendaylight_l3.yaml
116 index 0000000..05c0aff
118 +++ b/environments/opendaylight_l3.yaml
121 + #NeutronEnableL3Agent: false
122 + NeutronEnableForceMetadata: true
123 + OpenDaylightEnableL3: "'yes'"
124 + NeutronServicePlugins: "networking_odl.l3.l3_odl.OpenDaylightL3RouterPlugin"
126 + neutron_mechanism_drivers: ['opendaylight']
127 + neutron_tenant_network_type: vxlan
128 + opendaylight_install: true
129 diff --git a/environments/opendaylight_sdnvpn.yaml b/environments/opendaylight_sdnvpn.yaml
131 index 0000000..3a14975
133 +++ b/environments/opendaylight_sdnvpn.yaml
135 +# Environment file used to enable OpenDaylight
136 +# Currently uses overcloud image that is assumed
137 +# to be virt-customized with ODL RPM already on it
139 +# These parameters customize the OpenDaylight Node
140 +# The user name and password are for the ODL service
141 +# Defaults are included here for reference
142 +#parameter_defaults:
143 +# OpenDaylightFlavor: baremetal
144 +# OpenDaylightHostname: opendaylight-server
145 +# OpenDaylightImage: overcloud-full
146 +# OpenDaylightUsername: admin
147 +# OpenDaylightPassword: admin
150 + # increase this if you need more ODL nodes
151 + # OpenDaylightCount: 1
152 + ControllerEnableSwiftStorage: false
153 + OpenDaylightFeatures: "odl-ovsdb-openstack,odl-vpnservice-api,odl-vpnservice-impl,odl-vpnservice-impl-rest,odl-vpnservice-impl-ui,odl-vpnservice-core"
155 + NeutronServicePlugins: "router,qos,networking_bgpvpn.neutron.services.plugin.BGPVPNPlugin"
157 + tripleo::ringbuilder::build_ring: False
158 + neutron_mechanism_drivers: ['opendaylight']
159 + neutron_tenant_network_type: vxlan
160 + # Enable this if you want OpenDaylight on the contollers
161 + # reduce OpenDaylightCount to 0 if you don't want any
162 + # OpenDaylight only nodes
163 + opendaylight_install: true
164 diff --git a/environments/opendaylight_sfc.yaml b/environments/opendaylight_sfc.yaml
166 index 0000000..3dd1e13
168 +++ b/environments/opendaylight_sfc.yaml
170 +# Environment file used to enable OpenDaylight
171 +# Currently uses overcloud image that is assumed
172 +# to be virt-customized with ODL RPM already on it
174 +# These parameters customize the OpenDaylight Node
175 +# The user name and password are for the ODL service
176 +# Defaults are included here for reference
177 +#parameter_defaults:
178 +# OpenDaylightFlavor: baremetal
179 +# OpenDaylightHostname: opendaylight-server
180 +# OpenDaylightImage: overcloud-full
181 +# OpenDaylightUsername: admin
182 +# OpenDaylightPassword: admin
185 + # increase this if you need more ODL nodes
186 + # OpenDaylightCount: 1
187 + ControllerEnableSwiftStorage: false
188 + OpenDaylightFeatures: "odl-ovsdb-sfc-rest"
191 + tripleo::ringbuilder::build_ring: False
192 + neutron_mechanism_drivers: ['opendaylight']
193 + neutron_tenant_network_type: vxlan
194 + # Enable this if you want OpenDaylight on the contollers
195 + # reduce OpenDaylightCount to 0 if you don't want any
196 + # OpenDaylight only nodes
197 + opendaylight_install: true
198 diff --git a/network/endpoints/endpoint_map.yaml b/network/endpoints/endpoint_map.yaml
199 index 0521401..7caa91b 100644
200 --- a/network/endpoints/endpoint_map.yaml
201 +++ b/network/endpoints/endpoint_map.yaml
202 @@ -4,6 +4,9 @@ description: >
203 A Map of OpenStack Endpoints
209 CeilometerApiVirtualIP:
212 @@ -43,6 +46,9 @@ parameters:
216 + AodhAdmin: {protocol: 'http', port: '8042', host: 'IP_ADDRESS'}
217 + AodhInternal: {protocol: 'http', port: '8042', host: 'IP_ADDRESS'}
218 + AodhPublic: {protocol: 'http', port: '8042', host: 'IP_ADDRESS'}
219 CeilometerAdmin: {protocol: 'http', port: '8777', host: 'IP_ADDRESS'}
220 CeilometerInternal: {protocol: 'http', port: '8777', host: 'IP_ADDRESS'}
221 CeilometerPublic: {protocol: 'http', port: '8777', host: 'IP_ADDRESS'}
222 @@ -83,6 +89,28 @@ parameters:
227 + type: OS::TripleO::Endpoint
229 + EndpointName: AodhInternal
230 + EndpointMap: { get_param: EndpointMap }
231 + CloudName: {get_param: CloudName}
232 + IP: {get_param: AodhApiVirtualIP}
234 + type: OS::TripleO::Endpoint
236 + EndpointName: AodhPublic
237 + EndpointMap: { get_param: EndpointMap }
238 + CloudName: {get_param: CloudName}
239 + IP: {get_param: PublicVirtualIP}
241 + type: OS::TripleO::Endpoint
243 + EndpointName: AodhAdmin
244 + EndpointMap: { get_param: EndpointMap }
245 + CloudName: {get_param: CloudName}
246 + IP: {get_param: AodhApiVirtualIP}
249 type: OS::TripleO::Endpoint
251 @@ -407,6 +435,9 @@ resources:
255 + AodhInternal: {get_attr: [ AodhInternal, endpoint] }
256 + AodhPublic: {get_attr: [ AodhPublic, endpoint] }
257 + AodhAdmin: {get_attr: [ AodhAdmin, endpoint] }
258 CeilometerInternal: {get_attr: [ CeilometerInternal, endpoint] }
259 CeilometerPublic: {get_attr: [ CeilometerPublic, endpoint] }
260 CeilometerAdmin: {get_attr: [ CeilometerAdmin, endpoint] }
261 diff --git a/overcloud-resource-registry-puppet.yaml b/overcloud-resource-registry-puppet.yaml
262 index 4cfed6b..adecc79 100644
263 --- a/overcloud-resource-registry-puppet.yaml
264 +++ b/overcloud-resource-registry-puppet.yaml
265 @@ -27,6 +27,9 @@ resource_registry:
266 # To disable, replace with firstboot/userdata_default.yaml
267 OS::TripleO::NodeAdminUserData: firstboot/userdata_heat_admin.yaml
269 + # This configures OpenDaylight to drive the network
270 + OS::TripleO::OpenDaylightNode: puppet/opendaylight-puppet.yaml
272 # Hooks for operator extra config
273 # NodeUserData == Cloud-init additional user-data, e.g cloud-config
274 # ControllerExtraConfigPre == Controller configuration pre service deployment
275 diff --git a/overcloud-without-mergepy.yaml b/overcloud-without-mergepy.yaml
276 index a532c2f..9c6e3cd 100644
277 --- a/overcloud-without-mergepy.yaml
278 +++ b/overcloud-without-mergepy.yaml
279 @@ -15,6 +15,11 @@ parameters:
280 description: The password for the keystone admin account, used for monitoring, querying neutron etc.
285 + description: The password for the aodh services
290 description: The ceilometer backend type.
291 @@ -113,6 +118,10 @@ parameters:
294 description: Neutron ID for ctlplane network.
295 + NeutronEnableForceMetadata:
297 + description: If True, DHCP always provides metadata route to VM.
299 NeutronEnableTunnelling:
302 @@ -227,6 +236,35 @@ parameters:
304 description: Should MongoDb journaling be disabled
308 + description: Set opendaylight service port
310 + OpenDaylightEnableL3:
311 + description: Knob to enable/disable ODL L3
314 + OpenDaylightEnableHA:
315 + description: Knob to enable/disable ODL HA
318 + OpenDaylightFeatures:
319 + description: List of features to install with ODL
320 + type: comma_delimited_list
321 + default: "odl-ovsdb-openstack"
322 + OpenDaylightInstall:
324 + description: Whether to install OpenDaylight on the control nodes.
326 + OpenDaylightUsername:
328 + description: The username for the opendaylight server.
330 + OpenDaylightPassword:
333 + description: The password for the opendaylight server.
335 PublicVirtualFixedIPs:
338 @@ -575,6 +613,8 @@ parameters:
340 NeutronTenantNetwork: tenant
341 CeilometerApiNetwork: internal_api
342 + AodhApiNetwork: internal_api
343 + OpenDaylightApiNetwork: internal_api
344 MongoDbNetwork: internal_api
345 CinderApiNetwork: internal_api
346 CinderIscsiNetwork: storage
347 @@ -664,6 +704,18 @@ parameters:
348 structure as ExtraConfig.
351 +# OpenDaylight specific parameters
356 + default: overcloud-full
358 + OpenDaylightFlavor:
360 + description: Flavor for OpenDaylight node
363 # Hostname format for each role
364 # Note %index% is translated into the index of the node, e.g 0/1/2 etc
365 # and %stackname% is replaced with OS::stack_name in the template below.
366 @@ -688,6 +740,10 @@ parameters:
368 description: Format for CephStorage node hostnames
369 default: '%stackname%-cephstorage-%index%'
370 + OpenDaylightHostnameFormat:
372 + description: Format for OpenDaylight node hostnames
373 + default: '%stackname%-opendaylight-%index%'
375 # Identifiers to trigger tasks on nodes
377 @@ -758,6 +814,7 @@ resources:
379 CloudName: {get_param: CloudName}
380 CeilometerApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, CeilometerApiNetwork]}]}
381 + AodhApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, AodhApiNetwork]}]}
382 CinderApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, CinderApiNetwork]}]}
383 GlanceApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, GlanceApiNetwork]}]}
384 GlanceRegistryVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, GlanceRegistryNetwork]}]}
385 @@ -770,6 +827,29 @@ resources:
386 SwiftProxyVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, SwiftProxyNetwork]}]}
387 PublicVirtualIP: {get_attr: [VipMap, net_ip_map, external]}
390 + type: OS::Heat::ResourceGroup
391 + depends_on: Networks
393 + count: {get_param: OpenDaylightCount}
394 + removal_policies: {get_param: ComputeRemovalPolicies}
396 + type: OS::TripleO::OpenDaylightNode
398 + UpdateIdentifier: {get_param: UpdateIdentifier}
399 + OpenDaylightFlavor: {get_param: OpenDaylightFlavor}
400 + OpenDaylightImage: {get_param: OpenDaylightImage}
401 + OpenDaylightPort: {get_param: OpenDaylightPort}
402 + OpenDaylightUsername: {get_param: OpenDaylightUsername}
403 + OpenDaylightFeatures: {get_param: OpenDaylightFeatures}
404 + OpenDaylightPassword: {get_param: OpenDaylightPassword}
405 + OpenDaylightEnableL3: {get_param: OpenDaylightEnableL3}
406 + OpenDaylightHostname:
408 + template: {get_param: OpenDaylightHostnameFormat}
410 + '%stackname%': {get_param: 'OS::stack_name'}
413 type: OS::Heat::ResourceGroup
415 @@ -781,6 +861,7 @@ resources:
417 AdminPassword: {get_param: AdminPassword}
418 AdminToken: {get_param: AdminToken}
419 + AodhPassword: {get_param: AodhPassword}
420 CeilometerBackend: {get_param: CeilometerBackend}
421 CeilometerMeteringSecret: {get_param: CeilometerMeteringSecret}
422 CeilometerPassword: {get_param: CeilometerPassword}
423 @@ -832,6 +913,7 @@ resources:
424 NeutronBridgeMappings: {get_param: NeutronBridgeMappings}
425 NeutronExternalNetworkBridge: {get_param: NeutronExternalNetworkBridge}
426 NeutronEnableTunnelling: {get_param: NeutronEnableTunnelling}
427 + NeutronEnableForceMetadata: {get_param: NeutronEnableForceMetadata}
428 NeutronNetworkVLANRanges: {get_param: NeutronNetworkVLANRanges}
429 NeutronPublicInterface: {get_param: NeutronPublicInterface}
430 NeutronPublicInterfaceDefaultRoute: {get_param: NeutronPublicInterfaceDefaultRoute}
431 @@ -853,6 +935,13 @@ resources:
432 NovaPassword: {get_param: NovaPassword}
433 NtpServer: {get_param: NtpServer}
434 MongoDbNoJournal: {get_param: MongoDbNoJournal}
435 + OpenDaylightPort: {get_param: OpenDaylightPort}
436 + OpenDaylightInstall: {get_param: OpenDaylightInstall}
437 + OpenDaylightUsername: {get_param: OpenDaylightUsername}
438 + OpenDaylightFeatures: {get_param: OpenDaylightFeatures}
439 + OpenDaylightPassword: {get_param: OpenDaylightPassword}
440 + OpenDaylightEnableL3: {get_param: OpenDaylightEnableL3}
441 + OpenDaylightEnableHA: {get_param: OpenDaylightEnableHA}
442 PcsdPassword: {get_resource: PcsdPassword}
443 PublicVirtualInterface: {get_param: PublicVirtualInterface}
444 RabbitPassword: {get_param: RabbitPassword}
445 @@ -878,6 +967,8 @@ resources:
446 ServiceNetMap: {get_param: ServiceNetMap}
447 EndpointMap: {get_attr: [EndpointMap, endpoint_map]}
448 CeilometerApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, CeilometerApiNetwork]}]}
449 + AodhApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, AodhApiNetwork]}]}
450 + OpenDaylightApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, OpenDaylightApiNetwork]}]}
451 CinderApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, CinderApiNetwork]}]}
452 HeatApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, HeatApiNetwork]}]}
453 GlanceApiVirtualIP: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, GlanceApiNetwork]}]}
454 @@ -948,6 +1039,10 @@ resources:
455 NovaPublicIP: {get_attr: [PublicVirtualIP, ip_address]}
456 NovaPassword: {get_param: NovaPassword}
457 NtpServer: {get_param: NtpServer}
458 + OpenDaylightPort: {get_param: OpenDaylightPort}
459 + OpenDaylightUsername: {get_param: OpenDaylightUsername}
460 + OpenDaylightPassword: {get_param: OpenDaylightPassword}
461 + OpenDaylightEnableHA: {get_param: OpenDaylightEnableHA}
462 RabbitHost: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, RabbitMqNetwork]}]}
463 RabbitPassword: {get_param: RabbitPassword}
464 RabbitUserName: {get_param: RabbitUserName}
465 @@ -1068,6 +1163,7 @@ resources:
466 compute_hosts: {get_attr: [Compute, hosts_entry]}
467 controller_hosts: {get_attr: [Controller, hosts_entry]}
468 controller_ips: {get_attr: [Controller, ip_address]}
469 + opendaylight_ip: {get_attr: [OpenDaylightNode, ip_address]}
470 block_storage_hosts: {get_attr: [BlockStorage, hosts_entry]}
471 object_storage_hosts: {get_attr: [ObjectStorage, hosts_entry]}
472 ceph_storage_hosts: {get_attr: [CephStorage, hosts_entry]}
473 @@ -1081,6 +1177,8 @@ resources:
474 heat_api_node_ips: {get_attr: [ControllerIpListMap, net_ip_map, {get_param: [ServiceNetMap, HeatApiNetwork]}]}
475 swift_proxy_node_ips: {get_attr: [ControllerIpListMap, net_ip_map, {get_param: [ServiceNetMap, SwiftProxyNetwork]}]}
476 ceilometer_api_node_ips: {get_attr: [ControllerIpListMap, net_ip_map, {get_param: [ServiceNetMap, CeilometerApiNetwork]}]}
477 + aodh_api_node_ips: {get_attr: [ControllerIpListMap, net_ip_map, {get_param: [ServiceNetMap, AodhApiNetwork]}]}
478 + opendaylight_api_node_ips: {get_attr: [ControllerIpListMap, net_ip_map, {get_param: [ServiceNetMap, OpenDaylightApiNetwork]}]}
479 nova_api_node_ips: {get_attr: [ControllerIpListMap, net_ip_map, {get_param: [ServiceNetMap, NovaApiNetwork]}]}
480 nova_metadata_node_ips: {get_attr: [ControllerIpListMap, net_ip_map, {get_param: [ServiceNetMap, NovaMetadataNetwork]}]}
481 glance_api_node_ips: {get_attr: [ControllerIpListMap, net_ip_map, {get_param: [ServiceNetMap, GlanceApiNetwork]}]}
482 @@ -1189,6 +1287,8 @@ resources:
483 nova_api_vip: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, NovaApiNetwork]}]}
484 nova_metadata_vip: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, NovaMetadataNetwork]}]}
485 ceilometer_api_vip: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, CeilometerApiNetwork]}]}
486 + aodh_api_vip: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, AodhApiNetwork]}]}
487 + opendaylight_api_vip: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, OpenDaylightApiNetwork]}]}
488 heat_api_vip: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, HeatApiNetwork]}]}
489 horizon_vip: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, HorizonNetwork]}]}
490 redis_vip: {get_attr: [RedisVirtualIP, ip_address]}
491 @@ -1434,6 +1534,9 @@ outputs:
493 description: Controller VIP for public API endpoints
494 value: {get_attr: [PublicVirtualIP, ip_address]}
496 + description: VIP for Aodh API internal endpoint
497 + value: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, AodhApiNetwork]}]}
498 CeilometerInternalVip:
499 description: VIP for Ceilometer API internal endpoint
500 value: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, CeilometerApiNetwork]}]}
501 diff --git a/puppet/all-nodes-config.yaml b/puppet/all-nodes-config.yaml
502 index 2bc519b..1ebaff5 100644
503 --- a/puppet/all-nodes-config.yaml
504 +++ b/puppet/all-nodes-config.yaml
505 @@ -8,6 +8,8 @@ parameters:
506 type: comma_delimited_list
508 type: comma_delimited_list
510 + type: comma_delimited_list
512 type: comma_delimited_list
513 object_storage_hosts:
514 @@ -34,6 +36,10 @@ parameters:
515 type: comma_delimited_list
516 ceilometer_api_node_ips:
517 type: comma_delimited_list
519 + type: comma_delimited_list
520 + opendaylight_api_node_ips:
521 + type: comma_delimited_list
523 type: comma_delimited_list
524 nova_metadata_node_ips:
525 @@ -82,6 +88,10 @@ resources:
526 raw_data: {get_file: hieradata/RedHat.yaml}
529 + opendaylight_controller_ip:
532 + - {get_param: opendaylight_ip}
536 @@ -166,6 +176,22 @@ resources:
539 - {get_param: ceilometer_api_node_ips}
542 + template: "['SERVERS_LIST']"
547 + - {get_param: aodh_api_node_ips}
548 + opendaylight_api_node_ips:
550 + template: "['SERVERS_LIST']"
555 + - {get_param: opendaylight_api_node_ips}
558 template: "['SERVERS_LIST']"
559 @@ -239,6 +265,7 @@ resources:
560 neutron::rabbit_hosts: *rabbit_nodes_array
561 nova::rabbit_hosts: *rabbit_nodes_array
562 keystone::rabbit_hosts: *rabbit_nodes_array
563 + aodh::rabbit_hosts: *rabbit_nodes_array
567 diff --git a/puppet/compute.yaml b/puppet/compute.yaml
568 index 70c7403..ba7cbfd 100644
569 --- a/puppet/compute.yaml
570 +++ b/puppet/compute.yaml
571 @@ -213,6 +213,27 @@ parameters:
577 + description: Set opendaylight service port
579 + OpenDaylightUsername:
581 + description: The username for the opendaylight server.
583 + OpenDaylightPassword:
586 + description: The password for the opendaylight server.
588 + OpenDaylightEnableHA:
589 + description: Knob to enable/disable ODL HA
594 + description: Set onos service port
598 default: '' # Has to be here because of the ignored empty value bug
599 @@ -320,6 +341,11 @@ resources:
601 ControlPlaneIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
604 + type: OS::TripleO::Controller::Ports::ExternalPort
606 + ControlPlaneIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
609 type: OS::TripleO::Network::Ports::NetIpMap
611 @@ -327,6 +353,7 @@ resources:
612 InternalApiIp: {get_attr: [InternalApiPort, ip_address]}
613 StorageIp: {get_attr: [StoragePort, ip_address]}
614 TenantIp: {get_attr: [TenantPort, ip_address]}
615 + ExternalIp: {get_attr: [ExternalPort, ip_address]}
618 type: OS::TripleO::Compute::Net::SoftwareConfig
619 @@ -335,6 +362,7 @@ resources:
620 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
621 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
622 TenantIpSubnet: {get_attr: [TenantPort, ip_subnet]}
623 + ExternalIpSubnet: {get_attr: [ExternalPort, ip_subnet]}
626 type: OS::TripleO::SoftwareDeployment
627 @@ -406,6 +434,11 @@ resources:
628 neutron::rabbit_user: {get_input: rabbit_user}
629 neutron::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
630 neutron::rabbit_port: {get_input: rabbit_client_port}
631 + opendaylight_port: {get_input: opendaylight_port}
632 + opendaylight_username: {get_input: opendaylight_username}
633 + opendaylight_password: {get_input: opendaylight_password}
634 + opendaylight_enable_ha: {get_input: opendaylight_enable_ha}
635 + onos_port: {get_input: onos_port}
636 neutron_flat_networks: {get_input: neutron_flat_networks}
637 neutron_host: {get_input: neutron_host}
638 neutron::agents::ml2::ovs::local_ip: {get_input: neutron_local_ip}
639 @@ -459,6 +492,11 @@ resources:
640 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
641 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
642 glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
643 + opendaylight_port: {get_param: OpenDaylightPort}
644 + opendaylight_username: {get_param: OpenDaylightUsername}
645 + opendaylight_password: {get_param: OpenDaylightPassword}
646 + opendaylight_enable_ha: {get_param: OpenDaylightEnableHA}
647 + onos_port: {get_param: ONOSPort}
648 neutron_flat_networks: {get_param: NeutronFlatNetworks}
649 neutron_host: {get_param: NeutronHost}
650 neutron_local_ip: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, NeutronTenantNetwork]}]}
651 @@ -570,6 +608,9 @@ outputs:
653 description: IP address of the server in the tenant network
654 value: {get_attr: [TenantPort, ip_address]}
655 + external_ip_address:
656 + description: IP address of the server in the external network
657 + value: {get_attr: [ExternalPort, ip_address]}
659 description: Hostname of the server
660 value: {get_attr: [NovaCompute, name]}
661 diff --git a/puppet/controller.yaml b/puppet/controller.yaml
662 index ea0b3af..0a3668e 100644
663 --- a/puppet/controller.yaml
664 +++ b/puppet/controller.yaml
665 @@ -14,6 +14,14 @@ parameters:
666 description: The keystone auth secret and db password.
674 + description: The password for the aodh services.
677 CeilometerApiVirtualIP:
680 @@ -357,6 +365,10 @@ parameters:
682 description: Allow automatic l3-agent failover
684 + NeutronEnableForceMetadata:
686 + description: If True, DHCP always provides metadata route to VM.
688 NeutronEnableTunnelling:
691 @@ -443,6 +455,42 @@ parameters:
697 + description: Set opendaylight service port
699 + OpenDaylightInstall:
701 + description: Whether to install OpenDaylight on the control nodes.
703 + OpenDaylightUsername:
705 + description: The username for the opendaylight server.
707 + OpenDaylightPassword:
710 + description: The password for the opendaylight server.
712 + OpenDaylightEnableL3:
713 + description: Knob to enable/disable ODL L3
716 + OpenDaylightEnableHA:
717 + description: Knob to enable/disable ODL HA
720 + OpenDaylightFeatures:
721 + description: List of features to install with ODL
722 + type: comma_delimited_list
723 + default: "odl-ovsdb-openstack"
724 + OpenDaylightApiVirtualIP:
729 + description: Set onos service port
733 description: The password for the 'pcsd' user.
734 @@ -696,6 +744,7 @@ resources:
736 bootstack_nodeid: {get_attr: [Controller, name]}
737 neutron_enable_tunneling: {get_param: NeutronEnableTunnelling}
738 + neutron_enable_force_metadata: {get_param: NeutronEnableForceMetadata}
739 haproxy_log_address: {get_param: HAProxySyslogAddress}
740 heat.watch_server_url:
742 @@ -774,6 +823,7 @@ resources:
743 - {get_param: MysqlVirtualIP}
745 keystone_ca_certificate: {get_param: KeystoneCACertificate}
746 + keystone_admin_vip: {get_param: KeystoneAdminApiVirtualIP}
747 keystone_signing_key: {get_param: KeystoneSigningKey}
748 keystone_signing_certificate: {get_param: KeystoneSigningCertificate}
749 keystone_ssl_certificate: {get_param: KeystoneSSLCertificate}
750 @@ -805,6 +855,14 @@ resources:
751 template: tripleo-CLUSTER
753 CLUSTER: {get_param: MysqlClusterUniquePart}
754 + opendaylight_port: {get_param: OpenDaylightPort}
755 + opendaylight_install: {get_param: OpenDaylightInstall}
756 + opendaylight_username: {get_param: OpenDaylightUsername}
757 + opendaylight_password: {get_param: OpenDaylightPassword}
758 + opendaylight_enable_l3: {get_param: OpenDaylightEnableL3}
759 + opendaylight_enable_ha: {get_param: OpenDaylightEnableHA}
760 + opendaylight_features: {get_param: OpenDaylightFeatures}
761 + onos_port: {get_param: ONOSPort}
762 neutron_flat_networks: {get_param: NeutronFlatNetworks}
763 neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
764 neutron_agent_mode: {get_param: NeutronAgentMode}
765 @@ -879,6 +937,7 @@ resources:
766 ceilometer_backend: {get_param: CeilometerBackend}
767 ceilometer_metering_secret: {get_param: CeilometerMeteringSecret}
768 ceilometer_password: {get_param: CeilometerPassword}
769 + aodh_password: {get_param: AodhPassword}
770 ceilometer_coordination_url:
773 @@ -891,6 +950,12 @@ resources:
774 - - 'mysql://ceilometer:unset@'
775 - {get_param: MysqlVirtualIP}
777 + ceilometer_public_url: {get_param: [EndpointMap, CeilometerPublic, uri]}
778 + ceilometer_internal_url: {get_param: [EndpointMap, CeilometerInternal, uri]}
779 + ceilometer_admin_url: {get_param: [EndpointMap, CeilometerAdmin, uri]}
780 + aodh_public_url: {get_param: [EndpointMap, AodhPublic, uri]}
781 + aodh_internal_url: {get_param: [EndpointMap, AodhInternal, uri]}
782 + aodh_admin_url: {get_param: [EndpointMap, AodhAdmin, uri]}
783 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
784 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
785 nova_password: {get_param: NovaPassword}
786 @@ -948,6 +1013,8 @@ resources:
787 neutron_api_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, NeutronApiNetwork]}]}
788 neutron_local_ip: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, NeutronTenantNetwork]}]}
789 ceilometer_api_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CeilometerApiNetwork]}]}
790 + aodh_api_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, AodhApiNetwork]}]}
791 + opendaylight_api_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, OpenDaylightApiNetwork]}]}
792 nova_api_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, NovaApiNetwork]}]}
793 nova_metadata_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, NovaMetadataNetwork]}]}
794 horizon_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, HorizonNetwork]}]}
795 @@ -1041,7 +1108,7 @@ resources:
796 cinder_iscsi_ip_address: {get_input: cinder_iscsi_network}
797 cinder::database_connection: {get_input: cinder_dsn}
798 cinder::api::keystone_password: {get_input: cinder_password}
799 - cinder::api::auth_uri: {get_input: keystone_auth_uri}
800 + cinder::api::keystone_auth_host: {get_input: keystone_admin_vip}
801 cinder::api::identity_uri: {get_input: keystone_identity_uri}
802 cinder::api::bind_host: {get_input: cinder_api_network}
803 cinder::rabbit_userid: {get_input: rabbit_username}
804 @@ -1136,6 +1203,18 @@ resources:
805 mysql_bind_host: {get_input: mysql_network}
806 mysql_virtual_ip: {get_input: mysql_virtual_ip}
809 + opendaylight_port: {get_input: opendaylight_port}
810 + opendaylight_install: {get_input: opendaylight_install}
811 + opendaylight_username: {get_input: opendaylight_username}
812 + opendaylight_password: {get_input: opendaylight_password}
813 + opendaylight_enable_l3: {get_input: opendaylight_enable_l3}
814 + opendaylight_enable_ha: {get_input: opendaylight_enable_ha}
815 + opendaylight_features: {get_input: opendaylight_features}
818 + onos_port: {get_input: onos_port}
821 neutron::bind_host: {get_input: neutron_api_network}
822 neutron::rabbit_password: {get_input: rabbit_password}
823 @@ -1152,6 +1231,7 @@ resources:
824 neutron_flat_networks: {get_input: neutron_flat_networks}
825 neutron::agents::metadata::shared_secret: {get_input: neutron_metadata_proxy_shared_secret}
826 neutron::agents::metadata::metadata_ip: {get_input: neutron_api_network}
827 + neutron::agents::dhcp::enable_force_metadata: {get_input: neutron_enable_force_metadata}
828 neutron_agent_mode: {get_input: neutron_agent_mode}
829 neutron_router_distributed: {get_input: neutron_router_distributed}
830 neutron::core_plugin: {get_input: neutron_core_plugin}
831 @@ -1198,6 +1278,27 @@ resources:
832 snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
833 snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
836 + aodh::rabbit_userid: {get_input: rabbit_username}
837 + aodh::rabbit_password: {get_input: rabbit_password}
838 + aodh::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
839 + aodh::rabbit_port: {get_input: rabbit_client_port}
840 + aodh::debug: {get_input: debug}
841 + aodh::wsgi::apache::ssl: false
842 + aodh::api::service_name: 'httpd'
843 + aodh::api::host: {get_input: aodh_api_network}
844 + aodh::api::keystone_password: {get_input: aodh_password}
845 + aodh::api::keystone_auth_uri: {get_input: keystone_auth_uri}
846 + aodh::api::keystone_identity_uri: {get_input: keystone_identity_uri}
847 + aodh::auth::auth_password: {get_input: aodh_password}
848 + aodh::keystone::auth::public_url: {get_input: aodh_public_url }
849 + aodh::keystone::auth::internal_url: {get_input: aodh_internal_url }
850 + aodh::keystone::auth::admin_url: {get_input: aodh_admin_url }
851 + aodh::keystone::auth::password: {get_input: aodh_password }
852 + aodh::keystone::auth::region: {get_input: keystone_region}
853 + # for a migration path from ceilometer-alarm to aodh, we use the same database & coordination
854 + aodh::evaluator::coordination_url: {get_input: ceilometer_coordination_url}
857 nova::rabbit_userid: {get_input: rabbit_username}
858 nova::rabbit_password: {get_input: rabbit_password}
859 @@ -1244,6 +1345,7 @@ resources:
860 tripleo::loadbalancer::haproxy_log_address: {get_input: haproxy_log_address}
861 tripleo::packages::enable_install: {get_input: enable_package_install}
862 tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
863 + tripleo::loadbalancer::opendaylight: {get_input: opendaylight_enable_ha}
865 # Hook for site-specific additional pre-deployment config, e.g extra hieradata
866 ControllerExtraConfigPre:
867 diff --git a/puppet/hieradata/common.yaml b/puppet/hieradata/common.yaml
868 index 030f661..5840016 100644
869 --- a/puppet/hieradata/common.yaml
870 +++ b/puppet/hieradata/common.yaml
871 @@ -6,6 +6,7 @@ ceilometer::agent::auth::auth_region: 'regionOne'
872 # FIXME: Might be better to use 'service' tenant here but this requires
873 # changes in the tripleo-incubator keystone role setup
874 ceilometer::agent::auth::auth_tenant_name: 'admin'
875 +aodh::auth::auth_tenant_name: 'admin'
877 nova::network::neutron::neutron_admin_tenant_name: 'service'
878 nova::network::neutron::neutron_admin_username: 'neutron'
879 diff --git a/puppet/hieradata/controller.yaml b/puppet/hieradata/controller.yaml
880 index 4b7fd81..7dbc2e9 100644
881 --- a/puppet/hieradata/controller.yaml
882 +++ b/puppet/hieradata/controller.yaml
883 @@ -32,6 +32,7 @@ redis::sentinel::notification_script: '/usr/local/bin/redis-notifications.sh'
885 nova::api::admin_tenant_name: 'service'
886 glance::api::keystone_tenant: 'service'
887 +aodh::api::keystone_tenant: 'service'
888 glance::registry::keystone_tenant: 'service'
889 neutron::server::auth_tenant: 'service'
890 neutron::agents::metadata::auth_tenant: 'service'
891 @@ -39,6 +40,7 @@ cinder::api::keystone_tenant: 'service'
892 swift::proxy::authtoken::admin_tenant_name: 'service'
893 ceilometer::api::keystone_tenant: 'service'
894 heat::keystone_tenant: 'service'
895 +aodh::keystone::auth::tenant: 'service'
898 keystone::cron::token_flush::maxdelay: 3600
899 @@ -72,7 +74,7 @@ neutron::agents::dhcp::dnsmasq_config_file: /etc/neutron/dnsmasq-neutron.conf
902 nova::notify_on_state_change: 'vm_and_task_state'
903 -nova::api::default_floating_pool: 'public'
904 +nova::api::default_floating_pool: 'external'
905 nova::api::osapi_v3: true
906 nova::scheduler::filter::ram_allocation_ratio: '1.0'
908 @@ -115,6 +117,7 @@ tripleo::loadbalancer::mysql: true
909 tripleo::loadbalancer::redis: true
910 tripleo::loadbalancer::swift_proxy_server: true
911 tripleo::loadbalancer::ceilometer: true
912 +tripleo::loadbalancer::aodh: true
913 tripleo::loadbalancer::heat_api: true
914 tripleo::loadbalancer::heat_cloudwatch: true
915 tripleo::loadbalancer::heat_cfn: true
916 diff --git a/puppet/manifests/overcloud_compute.pp b/puppet/manifests/overcloud_compute.pp
917 index cd41cc7..474d782 100644
918 --- a/puppet/manifests/overcloud_compute.pp
919 +++ b/puppet/manifests/overcloud_compute.pp
920 @@ -75,9 +75,52 @@ class { '::neutron::plugins::ml2':
921 tenant_network_types => [hiera('neutron_tenant_network_type')],
924 -class { '::neutron::agents::ml2::ovs':
925 - bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
926 - tunnel_types => split(hiera('neutron_tunnel_types'), ','),
927 +if 'opendaylight' in hiera('neutron_mechanism_drivers') {
929 + if str2bool(hiera('opendaylight_install', 'false')) {
930 + $controller_ips = split(hiera('controller_node_ips'), ',')
931 + if hiera('opendaylight_enable_ha', false) {
932 + $odl_ovsdb_iface = "tcp:${controller_ips[0]}:6640 tcp:${controller_ips[1]}:6640 tcp:${controller_ips[2]}:6640"
933 + # Workaround to work with current puppet-neutron
934 + # This isn't the best solution, since the odl check URL ends up being only the first node in HA case
935 + $opendaylight_controller_ip = $controller_ips[0]
936 + # Bug where netvirt:1 doesn't come up right with HA
937 + # Check ovsdb:1 instead
938 + $net_virt_url = 'restconf/operational/network-topology:network-topology/topology/ovsdb:1'
940 + $opendaylight_controller_ip = $controller_ips[0]
941 + $odl_ovsdb_iface = "tcp:${opendaylight_controller_ip}:6640"
942 + $net_virt_url = 'restconf/operational/network-topology:network-topology/topology/netvirt:1'
945 + $opendaylight_controller_ip = hiera('opendaylight_controller_ip')
946 + $odl_ovsdb_iface = "tcp:${opendaylight_controller_ip}:6640"
947 + $net_virt_url = 'restconf/operational/network-topology:network-topology/topology/netvirt:1'
950 + $opendaylight_port = hiera('opendaylight_port')
951 + $private_ip = hiera('neutron::agents::ml2::ovs::local_ip')
952 + $opendaylight_url = "http://${opendaylight_controller_ip}:${opendaylight_port}/${net_virt_url}"
954 + class { '::neutron::plugins::ovs::opendaylight':
955 + tunnel_ip => $private_ip,
956 + odl_username => hiera('opendaylight_username'),
957 + odl_password => hiera('opendaylight_password'),
958 + odl_check_url => $opendaylight_url,
959 + odl_ovsdb_iface => $odl_ovsdb_iface,
962 +} elsif 'onos_ml2' in hiera('neutron_mechanism_drivers') {
963 + $controller_ips = split(hiera('controller_node_ips'), ',')
964 + class {'onos::ovs_computer':
965 + manager_ip => $controller_ips[0]
969 + class { 'neutron::agents::ml2::ovs':
970 + bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
971 + tunnel_types => split(hiera('neutron_tunnel_types'), ','),
975 if 'cisco_n1kv' in hiera('neutron_mechanism_drivers') {
976 diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp
977 index 1f6c2be..a3c0479 100644
978 --- a/puppet/manifests/overcloud_controller.pp
979 +++ b/puppet/manifests/overcloud_controller.pp
980 @@ -30,6 +30,21 @@ if hiera('step') >= 1 {
982 if hiera('step') >= 2 {
984 + if str2bool(hiera('opendaylight_install', 'false')) {
985 + class {"opendaylight":
986 + extra_features => any2array(hiera('opendaylight_features', 'odl-ovsdb-openstack')),
987 + odl_rest_port => hiera('opendaylight_port'),
988 + enable_l3 => hiera('opendaylight_enable_l3', 'no'),
992 + if 'onos_ml2' in hiera('neutron_mechanism_drivers') {
993 + # install onos and config ovs
995 + controllers_ip => $controller_node_ips
999 if count(hiera('ntp::servers')) > 0 {
1002 @@ -158,6 +173,9 @@ if hiera('step') >= 2 {
1004 if hiera('step') >= 3 {
1011 #TODO: need a cleanup-keystone-tokens.sh solution here
1012 @@ -223,9 +241,7 @@ if hiera('step') >= 3 {
1013 include ::nova::scheduler
1014 include ::nova::scheduler::filter
1017 include ::neutron::server
1018 - include ::neutron::agents::l3
1019 include ::neutron::agents::dhcp
1020 include ::neutron::agents::metadata
1022 @@ -237,15 +253,101 @@ if hiera('step') >= 3 {
1023 require => Package['neutron'],
1026 + if 'onos_ml2' in hiera('neutron_mechanism_drivers') {
1027 + # config neutron service_plugins to onos driver
1028 + class { '::neutron':
1029 + service_plugins => [hiera('neutron_service_plugins')]
1033 + if ! ('opendaylight' in hiera('neutron_mechanism_drivers')) or ! str2bool(hiera('opendaylight_enable_l3', 'no')) {
1034 + include ::neutron::agents::l3
1038 class { '::neutron::plugins::ml2':
1039 flat_networks => split(hiera('neutron_flat_networks'), ','),
1040 tenant_network_types => [hiera('neutron_tenant_network_type')],
1041 mechanism_drivers => [hiera('neutron_mechanism_drivers')],
1043 - class { '::neutron::agents::ml2::ovs':
1044 - bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
1045 - tunnel_types => split(hiera('neutron_tunnel_types'), ','),
1047 + if 'opendaylight' in hiera('neutron_mechanism_drivers') {
1048 + if ! str2bool(hiera('opendaylight_enable_l3', 'no')) {
1049 + Service['neutron-server'] -> Service['neutron-l3']
1052 + if str2bool(hiera('opendaylight_install', 'false')) {
1053 + $controller_ips = split(hiera('controller_node_ips'), ',')
1054 + $opendaylight_controller_ip = $controller_ips[0]
1056 + $opendaylight_controller_ip = hiera('opendaylight_controller_ip')
1059 + # co-existence hacks for SFC
1060 + if hiera('opendaylight_features', 'odl-ovsdb-openstack') =~ /odl-ovsdb-sfc-rest/ {
1061 + $opendaylight_port = hiera('opendaylight_port')
1062 + $netvirt_coexist_url = "http://${opendaylight_controller_ip}:${opendaylight_port}/restconf/config/netvirt-providers-config:netvirt-providers-config"
1063 + $netvirt_post_body = "{'netvirt-providers-config': {'table-offset': 1}}"
1064 + $sfc_coexist_url = "http://${opendaylight_controller_ip}:${opendaylight_port}/restconf/config/sfc-of-renderer:sfc-of-renderer-config"
1065 + $sfc_post_body = "{ 'sfc-of-renderer-config' : { 'sfc-of-table-offset' : 150, 'sfc-of-app-egress-table-offset' : 11 }}"
1066 + $odl_username = hiera('opendaylight_username')
1067 + $odl_password = hiera('opendaylight_password')
1068 + exec { 'Coexistence table offsets for netvirt':
1069 + command => "curl -o /dev/null --fail --silent -u ${odl_username}:${odl_password} ${netvirt_coexist_url} -i -H 'Content-Type: application/json' --data \'${netvirt_post_body}\' -X PUT",
1072 + path => '/usr/sbin:/usr/bin:/sbin:/bin',
1075 + exec { 'Coexistence table offsets for sfc':
1076 + command => "curl -o /dev/null --fail --silent -u ${odl_username}:${odl_password} ${sfc_coexist_url} -i -H 'Content-Type: application/json' --data \'${sfc_post_body}\' -X PUT",
1079 + path => '/usr/sbin:/usr/bin:/sbin:/bin',
1083 + $private_ip = hiera('neutron::agents::ml2::ovs::local_ip')
1084 + $net_virt_url = 'restconf/operational/network-topology:network-topology/topology/netvirt:1'
1085 + $opendaylight_url = "http://${opendaylight_controller_ip}:${opendaylight_port}/${net_virt_url}"
1086 + $odl_ovsdb_iface = "tcp:${opendaylight_controller_ip}:6640"
1088 + class { '::neutron::plugins::ml2::opendaylight':
1089 + odl_username => hiera('opendaylight_username'),
1090 + odl_password => hiera('opendaylight_password'),
1091 + odl_url => "http://${opendaylight_controller_ip}:${opendaylight_port}/controller/nb/v2/neutron";
1094 + class { '::neutron::plugins::ovs::opendaylight':
1095 + tunnel_ip => $private_ip,
1096 + odl_username => hiera('opendaylight_username'),
1097 + odl_password => hiera('opendaylight_password'),
1098 + odl_check_url => $opendaylight_url,
1099 + odl_ovsdb_iface => $odl_ovsdb_iface,
1102 + } elsif 'onos_ml2' in hiera('neutron_mechanism_drivers') {
1103 + #config ml2_conf.ini with onos url address
1104 + $onos_port = hiera('onos_port')
1105 + $private_ip = hiera('neutron::agents::ml2::ovs::local_ip')
1107 + neutron_plugin_ml2 {
1108 + 'onos/username': value => 'admin';
1109 + 'onos/password': value => 'admin';
1110 + 'onos/url_path': value => "http://${controller_node_ips[0]}:${onos_port}/onos/vtn";
1115 + class { 'neutron::agents::ml2::ovs':
1116 + bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
1117 + tunnel_types => split(hiera('neutron_tunnel_types'), ','),
1120 + Service['neutron-server'] -> Service['neutron-ovs-agent-service']
1121 + Service['neutron-server'] -> Service['neutron-l3']
1124 if 'cisco_n1kv' in hiera('neutron_mechanism_drivers') {
1125 include ::neutron::plugins::ml2::cisco::nexus1000v
1127 @@ -280,8 +382,6 @@ if hiera('step') >= 3 {
1130 Service['neutron-server'] -> Service['neutron-dhcp-service']
1131 - Service['neutron-server'] -> Service['neutron-l3']
1132 - Service['neutron-server'] -> Service['neutron-ovs-agent-service']
1133 Service['neutron-server'] -> Service['neutron-metadata']
1136 @@ -447,6 +547,20 @@ if hiera('step') >= 3 {
1138 Cron <| title == 'ceilometer-expirer' |> { command => "sleep $((\$(od -A n -t d -N 3 /dev/urandom) % 86400)) && ${::ceilometer::params::expirer_command}" }
1141 + include ::aodh::auth
1142 + include ::aodh::api
1143 + include ::aodh::evaluator
1144 + include ::aodh::notifier
1145 + include ::aodh::listener
1146 + include ::aodh::client
1147 + include ::aodh::db::sync
1148 + class { '::aodh' :
1149 + database_connection => $ceilometer_database_connection,
1151 + # To manage the upgrade:
1152 + Exec['ceilometer-dbsync'] -> Exec['aodh-db-sync']
1157 diff --git a/puppet/manifests/overcloud_controller_pacemaker.pp b/puppet/manifests/overcloud_controller_pacemaker.pp
1158 index 3fb92f3..29f9c7f 100644
1159 --- a/puppet/manifests/overcloud_controller_pacemaker.pp
1160 +++ b/puppet/manifests/overcloud_controller_pacemaker.pp
1161 @@ -380,6 +380,29 @@ if hiera('step') >= 2 {
1165 + if str2bool(hiera('opendaylight_install', 'false')) {
1166 + $node_string = split(hiera('bootstack_nodeid'), '-')
1167 + $controller_index = $node_string[-1]
1168 + $ha_node_index = $controller_index + 1
1170 + class {"opendaylight":
1171 + extra_features => any2array(hiera('opendaylight_features', 'odl-ovsdb-openstack')),
1172 + odl_rest_port => hiera('opendaylight_port'),
1173 + odl_bind_ip => $controller_node_ips[$controller_index],
1174 + enable_l3 => hiera('opendaylight_enable_l3', 'no'),
1175 + enable_ha => hiera('opendaylight_enable_ha', false),
1176 + ha_node_ips => split(hiera('controller_node_ips'), ','),
1177 + ha_node_index => $ha_node_index,
1181 + if 'onos_ml2' in hiera('neutron_mechanism_drivers') {
1182 + # install onos and config ovs
1184 + controllers_ip => $controller_node_ips
1188 exec { 'galera-ready' :
1189 command => '/usr/bin/clustercheck >/dev/null',
1191 @@ -584,7 +607,14 @@ if hiera('step') >= 3 {
1192 include ::nova::network::neutron
1194 # Neutron class definitions
1196 + if 'onos_ml2' in hiera('neutron_mechanism_drivers') {
1197 + # config neutron service_plugins to onos driver
1198 + class { '::neutron':
1199 + service_plugins => [hiera('neutron_service_plugins')]
1204 class { '::neutron::server' :
1205 sync_db => $sync_db,
1206 manage_service => false,
1207 @@ -594,10 +624,6 @@ if hiera('step') >= 3 {
1208 manage_service => false,
1211 - class { '::neutron::agents::l3' :
1212 - manage_service => false,
1215 class { '::neutron::agents::metadata':
1216 manage_service => false,
1218 @@ -609,18 +635,98 @@ if hiera('step') >= 3 {
1219 notify => Service['neutron-dhcp-service'],
1220 require => Package['neutron'],
1224 + if ('networking_bgpvpn.neutron.services.plugin.BGPVPNPlugin' in hiera('neutron::service_plugins'))
1226 + class { 'neutron::config':
1227 + server_config => {
1228 + 'service_providers/service_provider' => {
1229 + 'value' => 'BGPVPN:Dummy:networking_bgpvpn.neutron.services.service_drivers.driver_api.BGPVPNDriver:default'
1235 class { '::neutron::plugins::ml2':
1236 flat_networks => split(hiera('neutron_flat_networks'), ','),
1237 tenant_network_types => [hiera('neutron_tenant_network_type')],
1238 mechanism_drivers => [hiera('neutron_mechanism_drivers')],
1240 - class { '::neutron::agents::ml2::ovs':
1241 - manage_service => false,
1243 - bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
1244 - tunnel_types => split(hiera('neutron_tunnel_types'), ','),
1246 + if 'opendaylight' in hiera('neutron_mechanism_drivers') {
1247 + if str2bool(hiera('opendaylight_install', 'false')) {
1248 + $controller_ips = split(hiera('controller_node_ips'), ',')
1249 + if hiera('opendaylight_enable_ha', false) {
1250 + $odl_ovsdb_iface = "tcp:${controller_ips[0]}:6640 tcp:${controller_ips[1]}:6640 tcp:${controller_ips[2]}:6640"
1251 + # Workaround to work with current puppet-neutron
1252 + # This isn't the best solution, since the odl check URL ends up being only the first node in HA case
1253 + $opendaylight_controller_ip = $controller_ips[0]
1254 + # Bug where netvirt:1 doesn't come up right with HA
1255 + # Check ovsdb:1 instead
1256 + $net_virt_url = 'restconf/operational/network-topology:network-topology/topology/ovsdb:1'
1258 + $opendaylight_controller_ip = $controller_ips[0]
1259 + $odl_ovsdb_iface = "tcp:${opendaylight_controller_ip}:6640"
1260 + $net_virt_url = 'restconf/operational/network-topology:network-topology/topology/netvirt:1'
1263 + $opendaylight_controller_ip = hiera('opendaylight_controller_ip')
1264 + $odl_ovsdb_iface = "tcp:${opendaylight_controller_ip}:6640"
1265 + $net_virt_url = 'restconf/operational/network-topology:network-topology/topology/netvirt:1'
1268 + $opendaylight_port = hiera('opendaylight_port')
1269 + $private_ip = hiera('neutron::agents::ml2::ovs::local_ip')
1270 + $opendaylight_url = "http://${opendaylight_controller_ip}:${opendaylight_port}/${net_virt_url}"
1271 + $odl_vip = hiera('opendaylight_api_vip')
1274 + fail('ODL VIP not set in hiera or empty')
1277 + class { '::neutron::plugins::ml2::opendaylight':
1278 + odl_username => hiera('opendaylight_username'),
1279 + odl_password => hiera('opendaylight_password'),
1280 + odl_url => "http://${odl_vip}:${opendaylight_port}/controller/nb/v2/neutron";
1283 + class { '::neutron::plugins::ovs::opendaylight':
1284 + tunnel_ip => $private_ip,
1285 + odl_username => hiera('opendaylight_username'),
1286 + odl_password => hiera('opendaylight_password'),
1287 + odl_check_url => $opendaylight_url,
1288 + odl_ovsdb_iface => $odl_ovsdb_iface,
1291 + if ! str2bool(hiera('opendaylight_enable_l3', 'no')) {
1292 + class { '::neutron::agents::l3' :
1293 + manage_service => false,
1297 + } elsif 'onos_ml2' in hiera('neutron_mechanism_drivers') {
1298 + #config ml2_conf.ini with onos url address
1299 + $onos_port = hiera('onos_port')
1300 + $private_ip = hiera('neutron::agents::ml2::ovs::local_ip')
1302 + neutron_plugin_ml2 {
1303 + 'onos/username': value => 'admin';
1304 + 'onos/password': value => 'admin';
1305 + 'onos/url_path': value => "http://${controller_node_ips[0]}:${onos_port}/onos/vtn";
1309 + class { '::neutron::agents::l3' :
1310 + manage_service => false,
1313 + class { 'neutron::agents::ml2::ovs':
1314 + manage_service => false,
1316 + bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
1317 + tunnel_types => split(hiera('neutron_tunnel_types'), ','),
1320 if 'cisco_ucsm' in hiera('neutron_mechanism_drivers') {
1321 include ::neutron::plugins::ml2::cisco::ucsm
1323 @@ -645,8 +751,10 @@ if hiera('step') >= 3 {
1324 if hiera('neutron_enable_bigswitch_ml2', false) {
1325 include ::neutron::plugins::ml2::bigswitch::restproxy
1327 - neutron_l3_agent_config {
1328 - 'DEFAULT/ovs_use_veth': value => hiera('neutron_ovs_use_veth', false);
1329 + if !('onos_ml2' in hiera('neutron_mechanism_drivers') or str2bool(hiera('opendaylight_enable_l3', 'no'))) {
1330 + neutron_l3_agent_config {
1331 + 'DEFAULT/ovs_use_veth': value => hiera('neutron_ovs_use_veth', false);
1334 neutron_dhcp_agent_config {
1335 'DEFAULT/ovs_use_veth': value => hiera('neutron_ovs_use_veth', false);
1336 @@ -813,13 +921,13 @@ if hiera('step') >= 3 {
1337 swift::storage::filter::healthcheck { $swift_components : }
1340 + $mongo_node_string = join($mongo_node_ips_with_port, ',')
1342 case downcase(hiera('ceilometer_backend')) {
1344 $ceilometer_database_connection = hiera('ceilometer_mysql_conn_string')
1347 - $mongo_node_string = join($mongo_node_ips_with_port, ',')
1348 $ceilometer_database_connection = "mongodb://${mongo_node_string}/ceilometer?replicaSet=${mongodb_replset}"
1351 @@ -879,6 +987,62 @@ if hiera('step') >= 3 {
1355 + $aodh_database_connection = "mongodb://${mongo_node_string}/aodh?replicaSet=${mongodb_replset}"
1357 + class { '::aodh::db':
1358 + database_connection => $aodh_database_connection
1363 + include ::aodh::config
1364 + include ::aodh::auth
1365 + include ::aodh::client
1366 + class { '::aodh::api':
1367 + manage_service => false,
1370 + class { '::aodh::evaluator':
1371 + manage_service => false,
1374 + class { '::aodh::notifier':
1375 + manage_service => false,
1378 + class { '::aodh::listener':
1379 + manage_service => false,
1383 + $event_pipeline = "---
1385 + - name: event_source
1391 + - name: event_sink
1395 + - notifier://?topic=alarm.all
1400 + file { '/etc/ceilometer/event_pipeline.yaml':
1401 + ensure => present,
1402 + content => $event_pipeline
1406 + groups => 'nobody'
1411 # httpd/apache and horizon
1412 # NOTE(gfidente): server-status can be consumed by the pacemaker resource agent
1413 class { '::apache' :
1414 @@ -1055,62 +1219,21 @@ if hiera('step') >= 4 {
1415 clone_params => 'interleave=true',
1416 require => Pacemaker::Resource::Service[$::keystone::params::service_name],
1418 - pacemaker::resource::service { $::neutron::params::l3_agent_service:
1419 - clone_params => 'interleave=true',
1420 + if !('onos_ml2' in hiera('neutron_mechanism_drivers')) {
1421 + pacemaker::resource::service { $::neutron::params::l3_agent_service:
1422 + clone_params => 'interleave=true',
1425 pacemaker::resource::service { $::neutron::params::dhcp_agent_service:
1426 clone_params => 'interleave=true',
1428 - pacemaker::resource::service { $::neutron::params::ovs_agent_service:
1429 - clone_params => 'interleave=true',
1431 pacemaker::resource::service { $::neutron::params::metadata_agent_service:
1432 clone_params => 'interleave=true',
1434 - pacemaker::resource::ocf { $::neutron::params::ovs_cleanup_service:
1435 - ocf_agent_name => 'neutron:OVSCleanup',
1436 - clone_params => 'interleave=true',
1438 pacemaker::resource::ocf { 'neutron-netns-cleanup':
1439 ocf_agent_name => 'neutron:NetnsCleanup',
1440 clone_params => 'interleave=true',
1443 - # neutron - one chain ovs-cleanup-->netns-cleanup-->ovs-agent
1444 - pacemaker::constraint::base { 'neutron-ovs-cleanup-to-netns-cleanup-constraint':
1445 - constraint_type => 'order',
1446 - first_resource => "${::neutron::params::ovs_cleanup_service}-clone",
1447 - second_resource => 'neutron-netns-cleanup-clone',
1448 - first_action => 'start',
1449 - second_action => 'start',
1450 - require => [Pacemaker::Resource::Ocf[$::neutron::params::ovs_cleanup_service],
1451 - Pacemaker::Resource::Ocf['neutron-netns-cleanup']],
1453 - pacemaker::constraint::colocation { 'neutron-ovs-cleanup-to-netns-cleanup-colocation':
1454 - source => 'neutron-netns-cleanup-clone',
1455 - target => "${::neutron::params::ovs_cleanup_service}-clone",
1456 - score => 'INFINITY',
1457 - require => [Pacemaker::Resource::Ocf[$::neutron::params::ovs_cleanup_service],
1458 - Pacemaker::Resource::Ocf['neutron-netns-cleanup']],
1460 - pacemaker::constraint::base { 'neutron-netns-cleanup-to-openvswitch-agent-constraint':
1461 - constraint_type => 'order',
1462 - first_resource => 'neutron-netns-cleanup-clone',
1463 - second_resource => "${::neutron::params::ovs_agent_service}-clone",
1464 - first_action => 'start',
1465 - second_action => 'start',
1466 - require => [Pacemaker::Resource::Ocf['neutron-netns-cleanup'],
1467 - Pacemaker::Resource::Service[$::neutron::params::ovs_agent_service]],
1469 - pacemaker::constraint::colocation { 'neutron-netns-cleanup-to-openvswitch-agent-colocation':
1470 - source => "${::neutron::params::ovs_agent_service}-clone",
1471 - target => 'neutron-netns-cleanup-clone',
1472 - score => 'INFINITY',
1473 - require => [Pacemaker::Resource::Ocf['neutron-netns-cleanup'],
1474 - Pacemaker::Resource::Service[$::neutron::params::ovs_agent_service]],
1477 - #another chain keystone-->neutron-server-->ovs-agent-->dhcp-->l3
1478 pacemaker::constraint::base { 'keystone-to-neutron-server-constraint':
1479 constraint_type => 'order',
1480 first_resource => "${::keystone::params::service_name}-clone",
1481 @@ -1120,65 +1243,110 @@ if hiera('step') >= 4 {
1482 require => [Pacemaker::Resource::Service[$::keystone::params::service_name],
1483 Pacemaker::Resource::Service[$::neutron::params::server_service]],
1485 - pacemaker::constraint::base { 'neutron-server-to-openvswitch-agent-constraint':
1486 - constraint_type => 'order',
1487 - first_resource => "${::neutron::params::server_service}-clone",
1488 - second_resource => "${::neutron::params::ovs_agent_service}-clone",
1489 - first_action => 'start',
1490 - second_action => 'start',
1491 - require => [Pacemaker::Resource::Service[$::neutron::params::server_service],
1492 - Pacemaker::Resource::Service[$::neutron::params::ovs_agent_service]],
1494 - pacemaker::constraint::base { 'neutron-openvswitch-agent-to-dhcp-agent-constraint':
1495 - constraint_type => 'order',
1496 - first_resource => "${::neutron::params::ovs_agent_service}-clone",
1497 - second_resource => "${::neutron::params::dhcp_agent_service}-clone",
1498 - first_action => 'start',
1499 - second_action => 'start',
1500 - require => [Pacemaker::Resource::Service[$::neutron::params::ovs_agent_service],
1501 - Pacemaker::Resource::Service[$::neutron::params::dhcp_agent_service]],
1502 + if 'openvswitch' in hiera('neutron_mechanism_drivers') {
1503 + pacemaker::resource::service { $::neutron::params::ovs_agent_service:
1504 + clone_params => "interleave=true",
1506 + pacemaker::resource::ocf { $::neutron::params::ovs_cleanup_service:
1507 + ocf_agent_name => "neutron:OVSCleanup",
1508 + clone_params => "interleave=true",
1510 + # neutron - one chain ovs-cleanup-->netns-cleanup-->ovs-agent
1511 + pacemaker::constraint::base { 'neutron-ovs-cleanup-to-netns-cleanup-constraint':
1512 + constraint_type => "order",
1513 + first_resource => "${::neutron::params::ovs_cleanup_service}-clone",
1514 + second_resource => "neutron-netns-cleanup-clone",
1515 + first_action => "start",
1516 + second_action => "start",
1517 + require => [Pacemaker::Resource::Ocf["${::neutron::params::ovs_cleanup_service}"],
1518 + Pacemaker::Resource::Ocf['neutron-netns-cleanup']],
1520 + pacemaker::constraint::colocation { 'neutron-ovs-cleanup-to-netns-cleanup-colocation':
1521 + source => "neutron-netns-cleanup-clone",
1522 + target => "${::neutron::params::ovs_cleanup_service}-clone",
1523 + score => "INFINITY",
1524 + require => [Pacemaker::Resource::Ocf["${::neutron::params::ovs_cleanup_service}"],
1525 + Pacemaker::Resource::Ocf['neutron-netns-cleanup']],
1527 + pacemaker::constraint::base { 'neutron-netns-cleanup-to-openvswitch-agent-constraint':
1528 + constraint_type => "order",
1529 + first_resource => "neutron-netns-cleanup-clone",
1530 + second_resource => "${::neutron::params::ovs_agent_service}-clone",
1531 + first_action => "start",
1532 + second_action => "start",
1533 + require => [Pacemaker::Resource::Ocf["neutron-netns-cleanup"],
1534 + Pacemaker::Resource::Service["${::neutron::params::ovs_agent_service}"]],
1536 + pacemaker::constraint::colocation { 'neutron-netns-cleanup-to-openvswitch-agent-colocation':
1537 + source => "${::neutron::params::ovs_agent_service}-clone",
1538 + target => "neutron-netns-cleanup-clone",
1539 + score => "INFINITY",
1540 + require => [Pacemaker::Resource::Ocf["neutron-netns-cleanup"],
1541 + Pacemaker::Resource::Service["${::neutron::params::ovs_agent_service}"]],
1544 + #another chain keystone-->neutron-server-->ovs-agent-->dhcp-->l3
1545 + pacemaker::constraint::base { 'neutron-server-to-openvswitch-agent-constraint':
1546 + constraint_type => "order",
1547 + first_resource => "${::neutron::params::server_service}-clone",
1548 + second_resource => "${::neutron::params::ovs_agent_service}-clone",
1549 + first_action => "start",
1550 + second_action => "start",
1551 + require => [Pacemaker::Resource::Service[$::neutron::params::server_service],
1552 + Pacemaker::Resource::Service[$::neutron::params::ovs_agent_service]],
1554 + pacemaker::constraint::base { 'neutron-openvswitch-agent-to-dhcp-agent-constraint':
1555 + constraint_type => "order",
1556 + first_resource => "${::neutron::params::ovs_agent_service}-clone",
1557 + second_resource => "${::neutron::params::dhcp_agent_service}-clone",
1558 + first_action => "start",
1559 + second_action => "start",
1560 + require => [Pacemaker::Resource::Service["${::neutron::params::ovs_agent_service}"],
1561 + Pacemaker::Resource::Service["${::neutron::params::dhcp_agent_service}"]],
1564 + pacemaker::constraint::colocation { 'neutron-openvswitch-agent-to-dhcp-agent-colocation':
1565 + source => "${::neutron::params::dhcp_agent_service}-clone",
1566 + target => "${::neutron::params::ovs_agent_service}-clone",
1567 + score => "INFINITY",
1568 + require => [Pacemaker::Resource::Service["${::neutron::params::ovs_agent_service}"],
1569 + Pacemaker::Resource::Service["${::neutron::params::dhcp_agent_service}"]],
1572 - pacemaker::constraint::colocation { 'neutron-openvswitch-agent-to-dhcp-agent-colocation':
1573 - source => "${::neutron::params::dhcp_agent_service}-clone",
1574 - target => "${::neutron::params::ovs_agent_service}-clone",
1575 - score => 'INFINITY',
1576 - require => [Pacemaker::Resource::Service[$::neutron::params::ovs_agent_service],
1577 - Pacemaker::Resource::Service[$::neutron::params::dhcp_agent_service]],
1579 - pacemaker::constraint::base { 'neutron-dhcp-agent-to-l3-agent-constraint':
1580 - constraint_type => 'order',
1581 - first_resource => "${::neutron::params::dhcp_agent_service}-clone",
1582 - second_resource => "${::neutron::params::l3_agent_service}-clone",
1583 - first_action => 'start',
1584 - second_action => 'start',
1585 - require => [Pacemaker::Resource::Service[$::neutron::params::dhcp_agent_service],
1586 - Pacemaker::Resource::Service[$::neutron::params::l3_agent_service]],
1588 - pacemaker::constraint::colocation { 'neutron-dhcp-agent-to-l3-agent-colocation':
1589 - source => "${::neutron::params::l3_agent_service}-clone",
1590 - target => "${::neutron::params::dhcp_agent_service}-clone",
1591 - score => 'INFINITY',
1592 - require => [Pacemaker::Resource::Service[$::neutron::params::dhcp_agent_service],
1593 - Pacemaker::Resource::Service[$::neutron::params::l3_agent_service]],
1595 - pacemaker::constraint::base { 'neutron-l3-agent-to-metadata-agent-constraint':
1596 - constraint_type => 'order',
1597 - first_resource => "${::neutron::params::l3_agent_service}-clone",
1598 - second_resource => "${::neutron::params::metadata_agent_service}-clone",
1599 - first_action => 'start',
1600 - second_action => 'start',
1601 - require => [Pacemaker::Resource::Service[$::neutron::params::l3_agent_service],
1602 - Pacemaker::Resource::Service[$::neutron::params::metadata_agent_service]],
1604 - pacemaker::constraint::colocation { 'neutron-l3-agent-to-metadata-agent-colocation':
1605 - source => "${::neutron::params::metadata_agent_service}-clone",
1606 - target => "${::neutron::params::l3_agent_service}-clone",
1607 - score => 'INFINITY',
1608 - require => [Pacemaker::Resource::Service[$::neutron::params::l3_agent_service],
1609 - Pacemaker::Resource::Service[$::neutron::params::metadata_agent_service]],
1610 + if !('onos_ml2' in hiera('neutron_mechanism_drivers') or str2bool(hiera('opendaylight_enable_l3', 'no'))) {
1611 + pacemaker::constraint::base { 'neutron-dhcp-agent-to-l3-agent-constraint':
1612 + constraint_type => 'order',
1613 + first_resource => "${::neutron::params::dhcp_agent_service}-clone",
1614 + second_resource => "${::neutron::params::l3_agent_service}-clone",
1615 + first_action => 'start',
1616 + second_action => 'start',
1617 + require => [Pacemaker::Resource::Service[$::neutron::params::dhcp_agent_service],
1618 + Pacemaker::Resource::Service[$::neutron::params::l3_agent_service]],
1620 + pacemaker::constraint::colocation { 'neutron-dhcp-agent-to-l3-agent-colocation':
1621 + source => "${::neutron::params::l3_agent_service}-clone",
1622 + target => "${::neutron::params::dhcp_agent_service}-clone",
1623 + score => 'INFINITY',
1624 + require => [Pacemaker::Resource::Service[$::neutron::params::dhcp_agent_service],
1625 + Pacemaker::Resource::Service[$::neutron::params::l3_agent_service]],
1627 + pacemaker::constraint::base { 'neutron-l3-agent-to-metadata-agent-constraint':
1628 + constraint_type => 'order',
1629 + first_resource => "${::neutron::params::l3_agent_service}-clone",
1630 + second_resource => "${::neutron::params::metadata_agent_service}-clone",
1631 + first_action => 'start',
1632 + second_action => 'start',
1633 + require => [Pacemaker::Resource::Service[$::neutron::params::l3_agent_service],
1634 + Pacemaker::Resource::Service[$::neutron::params::metadata_agent_service]],
1636 + pacemaker::constraint::colocation { 'neutron-l3-agent-to-metadata-agent-colocation':
1637 + source => "${::neutron::params::metadata_agent_service}-clone",
1638 + target => "${::neutron::params::l3_agent_service}-clone",
1639 + score => 'INFINITY',
1640 + require => [Pacemaker::Resource::Service[$::neutron::params::l3_agent_service],
1641 + Pacemaker::Resource::Service[$::neutron::params::metadata_agent_service]],
1646 pacemaker::resource::service { $::nova::params::api_service_name :
1647 clone_params => 'interleave=true',
1648 @@ -1276,7 +1444,7 @@ if hiera('step') >= 4 {
1649 Pacemaker::Resource::Service[$::nova::params::conductor_service_name]],
1653 + # Ceilometer and Aodh
1654 case downcase(hiera('ceilometer_backend')) {
1656 pacemaker::resource::service { $::ceilometer::params::agent_central_service_name :
1657 @@ -1298,10 +1466,19 @@ if hiera('step') >= 4 {
1658 pacemaker::resource::service { $::ceilometer::params::api_service_name :
1659 clone_params => 'interleave=true',
1661 - pacemaker::resource::service { $::ceilometer::params::alarm_evaluator_service_name :
1662 + pacemaker::resource::service { $::aodh::params::notifier_service_name :
1663 clone_params => 'interleave=true',
1665 - pacemaker::resource::service { $::ceilometer::params::alarm_notifier_service_name :
1666 + pacemaker::resource::service { $::aodh::params::expirer_package_serice :
1667 + clone_params => 'interleave=true',
1669 + pacemaker::resource::service { $::aodh::params::listener_service_name :
1670 + clone_params => 'interleave=true',
1672 + pacemaker::resource::service { $::aodh::params::api_service_name :
1673 + clone_params => 'interleave=true',
1675 + pacemaker::resource::service { $::aodh::params::evaluator_service_name :
1676 clone_params => 'interleave=true',
1678 pacemaker::resource::service { $::ceilometer::params::agent_notification_service_name :
1679 @@ -1315,8 +1492,19 @@ if hiera('step') >= 4 {
1680 # Fedora doesn't know `require-all` parameter for constraints yet
1681 if $::operatingsystem == 'Fedora' {
1682 $redis_ceilometer_constraint_params = undef
1683 + $redis_aodh_constraint_params = undef
1685 $redis_ceilometer_constraint_params = 'require-all=false'
1686 + $redis_aodh_constraint_params = 'require-all=false'
1688 + pacemaker::constraint::base { 'keystone-then-aodh-api-constraint':
1689 + constraint_type => 'order',
1690 + first_resource => "${::keystone::params::service_name}-clone",
1691 + second_resource => "${::aodh::params::api_service_name}-clone",
1692 + first_action => 'start',
1693 + second_action => 'start',
1694 + require => [Pacemaker::Resource::Service[$::aodh::params::api_service_name],
1695 + Pacemaker::Resource::Service[$::keystone::params::service_name]],
1697 pacemaker::constraint::base { 'redis-then-ceilometer-central-constraint':
1698 constraint_type => 'order',
1699 @@ -1328,6 +1516,16 @@ if hiera('step') >= 4 {
1700 require => [Pacemaker::Resource::Ocf['redis'],
1701 Pacemaker::Resource::Service[$::ceilometer::params::agent_central_service_name]],
1703 + pacemaker::constraint::base { 'redis-then-aodh-evaluator-constraint':
1704 + constraint_type => 'order',
1705 + first_resource => 'redis-master',
1706 + second_resource => "${::aodh::params::evaluator_service_name}-clone",
1707 + first_action => 'promote',
1708 + second_action => 'start',
1709 + constraint_params => $redis_aodh_constraint_params,
1710 + require => [Pacemaker::Resource::Ocf['redis'],
1711 + Pacemaker::Resource::Service[$::aodh::params::evaluator_service_name]],
1713 pacemaker::constraint::base { 'keystone-then-ceilometer-central-constraint':
1714 constraint_type => 'order',
1715 first_resource => "${::keystone::params::service_name}-clone",
1716 @@ -1378,53 +1576,37 @@ if hiera('step') >= 4 {
1717 require => [Pacemaker::Resource::Service[$::ceilometer::params::api_service_name],
1718 Pacemaker::Resource::Ocf['delay']],
1720 - pacemaker::constraint::base { 'ceilometer-delay-then-ceilometer-alarm-evaluator-constraint':
1721 + pacemaker::constraint::base { 'aodh-delay-then-aodh-evaluator-constraint':
1722 constraint_type => 'order',
1723 first_resource => 'delay-clone',
1724 - second_resource => "${::ceilometer::params::alarm_evaluator_service_name}-clone",
1725 + second_resource => "${::aodh::params::evaluator_service_name}-clone",
1726 first_action => 'start',
1727 second_action => 'start',
1728 - require => [Pacemaker::Resource::Service[$::ceilometer::params::alarm_evaluator_service_name],
1729 + require => [Pacemaker::Resource::Service[$::aodh::params::evaluator_service_name],
1730 Pacemaker::Resource::Ocf['delay']],
1732 - pacemaker::constraint::colocation { 'ceilometer-alarm-evaluator-with-ceilometer-delay-colocation':
1733 - source => "${::ceilometer::params::alarm_evaluator_service_name}-clone",
1734 + pacemaker::constraint::colocation { 'aodh-evaluator-with-aodh-delay-colocation':
1735 + source => "${::aodh::params::evaluator_service_name}-clone",
1736 target => 'delay-clone',
1737 score => 'INFINITY',
1738 - require => [Pacemaker::Resource::Service[$::ceilometer::params::api_service_name],
1739 + require => [Pacemaker::Resource::Service[$::horizon::params::http_service],
1740 Pacemaker::Resource::Ocf['delay']],
1742 - pacemaker::constraint::base { 'ceilometer-alarm-evaluator-then-ceilometer-alarm-notifier-constraint':
1743 - constraint_type => 'order',
1744 - first_resource => "${::ceilometer::params::alarm_evaluator_service_name}-clone",
1745 - second_resource => "${::ceilometer::params::alarm_notifier_service_name}-clone",
1746 - first_action => 'start',
1747 - second_action => 'start',
1748 - require => [Pacemaker::Resource::Service[$::ceilometer::params::alarm_evaluator_service_name],
1749 - Pacemaker::Resource::Service[$::ceilometer::params::alarm_notifier_service_name]],
1751 - pacemaker::constraint::colocation { 'ceilometer-alarm-notifier-with-ceilometer-alarm-evaluator-colocation':
1752 - source => "${::ceilometer::params::alarm_notifier_service_name}-clone",
1753 - target => "${::ceilometer::params::alarm_evaluator_service_name}-clone",
1754 - score => 'INFINITY',
1755 - require => [Pacemaker::Resource::Service[$::ceilometer::params::alarm_evaluator_service_name],
1756 - Pacemaker::Resource::Service[$::ceilometer::params::alarm_notifier_service_name]],
1758 - pacemaker::constraint::base { 'ceilometer-alarm-notifier-then-ceilometer-notification-constraint':
1759 + pacemaker::constraint::base { 'aodh-evaluator-then-aodh-notifier-constraint':
1760 constraint_type => 'order',
1761 - first_resource => "${::ceilometer::params::alarm_notifier_service_name}-clone",
1762 - second_resource => "${::ceilometer::params::agent_notification_service_name}-clone",
1763 + first_resource => "${::aodh::params::evaluator_service_name}-clone",
1764 + second_resource => "${::aodh::params::notifier_service_name}-clone",
1765 first_action => 'start',
1766 second_action => 'start',
1767 - require => [Pacemaker::Resource::Service[$::ceilometer::params::agent_notification_service_name],
1768 - Pacemaker::Resource::Service[$::ceilometer::params::alarm_notifier_service_name]],
1769 + require => [Pacemaker::Resource::Service[$::aodh::params::evaluator_service_name],
1770 + Pacemaker::Resource::Service[$::aodh::params::notifier_service_name]],
1772 - pacemaker::constraint::colocation { 'ceilometer-notification-with-ceilometer-alarm-notifier-colocation':
1773 - source => "${::ceilometer::params::agent_notification_service_name}-clone",
1774 - target => "${::ceilometer::params::alarm_notifier_service_name}-clone",
1775 + pacemaker::constraint::colocation { 'aodh-notifier-with-aodh-evaluator-colocation':
1776 + source => "${::aodh::params::notifier_service_name}-clone",
1777 + target => "${::aodh::params::evaluator_service_name}-clone",
1778 score => 'INFINITY',
1779 - require => [Pacemaker::Resource::Service[$::ceilometer::params::agent_notification_service_name],
1780 - Pacemaker::Resource::Service[$::ceilometer::params::alarm_notifier_service_name]],
1781 + require => [Pacemaker::Resource::Service[$::aodh::params::evaluator_service_name],
1782 + Pacemaker::Resource::Service[$::aodh::params::notifier_service_name]],
1784 if downcase(hiera('ceilometer_backend')) == 'mongodb' {
1785 pacemaker::constraint::base { 'mongodb-then-ceilometer-central-constraint':
1786 diff --git a/puppet/manifests/overcloud_opendaylight.pp b/puppet/manifests/overcloud_opendaylight.pp
1787 new file mode 100644
1788 index 0000000..aeb31be
1790 +++ b/puppet/manifests/overcloud_opendaylight.pp
1792 +# Copyright 2015 Red Hat, Inc.
1793 +# All Rights Reserved.
1795 +# Licensed under the Apache License, Version 2.0 (the "License"); you may
1796 +# not use this file except in compliance with the License. You may obtain
1797 +# a copy of the License at
1799 +# http://www.apache.org/licenses/LICENSE-2.0
1801 +# Unless required by applicable law or agreed to in writing, software
1802 +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
1803 +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1804 +# License for the specific language governing permissions and limitations
1805 +# under the License.
1807 +include ::tripleo::packages
1809 +if count(hiera('ntp::servers')) > 0 {
1813 +class {"opendaylight":
1814 + extra_features => any2array(hiera('opendaylight_features', 'odl-ovsdb-openstack')),
1815 + odl_rest_port => hiera('opendaylight_port'),
1816 + enable_l3 => hiera('opendaylight_enable_l3', 'no'),
1819 diff --git a/puppet/opendaylight-puppet.yaml b/puppet/opendaylight-puppet.yaml
1820 new file mode 100644
1821 index 0000000..6488e0e
1823 +++ b/puppet/opendaylight-puppet.yaml
1825 +heat_template_version: 2015-04-30
1828 + OpenDaylight node configured by Puppet.
1831 + OpenDaylightFlavor:
1832 + default: baremetal
1833 + description: The flavor to use for the OpenDaylight node
1835 + OpenDaylightImage:
1836 + default: overcloud-full
1837 + description: The image to use for the OpenDaylight node
1839 + OpenDaylightHostname:
1840 + default: opendaylight-server
1841 + description: The hostname to use for the OpenDaylight node
1843 + OpenDaylightUsername:
1845 + description: The admin user for the OpenDaylight node
1847 + OpenDaylightPassword:
1849 + description: The admin password for the OpenDaylight node
1852 + OpenDaylightEnableL3:
1853 + description: Knob to enable/disable ODL L3
1856 + OpenDaylightFeatures:
1857 + description: List of features to install with ODL
1858 + type: comma_delimited_list
1859 + default: "odl-ovsdb-openstack"
1862 + description: Set OpenDaylight service port
1865 + description: The keypair to use for SSH access to the node (via heat-admin user)
1869 + - custom_constraint: nova.keypair
1870 + ImageUpdatePolicy:
1871 + default: 'REBUILD_PRESERVE_EPHEMERAL'
1872 + description: What policy to use when reconstructing instances. REBUILD for rebuilds, REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
1878 + Setting to a previously unused value during stack-update will trigger
1879 + package update on all nodes
1885 + description: What interface to bridge onto br-ex for network nodes.
1890 + type: OS::Nova::Server
1892 + image: {get_param: OpenDaylightImage}
1893 + image_update_policy: {get_param: ImageUpdatePolicy}
1894 + flavor: {get_param: OpenDaylightFlavor}
1895 + key_name: {get_param: KeyName}
1897 + - network: ctlplane
1898 + user_data_format: SOFTWARE_CONFIG
1899 + user_data: {get_resource: NodeUserData}
1900 + name: {get_param: OpenDaylightHostname}
1903 + type: OS::TripleO::NodeUserData
1906 + type: OS::TripleO::Controller::Ports::ExternalPort
1908 + ControlPlaneIP: {get_attr: [OpenDaylightNode, networks, ctlplane, 0]}
1911 + type: OS::TripleO::Controller::Ports::InternalApiPort
1913 + ControlPlaneIP: {get_attr: [OpenDaylightNode, networks, ctlplane, 0]}
1916 + type: OS::TripleO::Network::Ports::NetIpMap
1918 + ControlPlaneIp: {get_attr: [OpenDaylightNode, networks, ctlplane, 0]}
1919 + ExternalIp: {get_attr: [ExternalPort, ip_address]}
1920 + InternalApiIp: {get_attr: [InternalApiPort, ip_address]}
1923 + type: OS::TripleO::Network::Ports::NetIpSubnetMap
1925 + ControlPlaneIp: {get_attr: [OpenDaylightNode, networks, ctlplane, 0]}
1926 + ExternalIpSubnet: {get_attr: [ExternalPort, ip_subnet]}
1927 + InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
1930 + type: OS::TripleO::Controller::Net::SoftwareConfig
1932 + ControlPlaneIp: {get_attr: [OpenDaylightNode, networks, ctlplane, 0]}
1933 + ExternalIpSubnet: {get_attr: [ExternalPort, ip_subnet]}
1934 + InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
1936 + NetworkDeployment:
1937 + type: OS::TripleO::SoftwareDeployment
1939 + config: {get_resource: NetworkConfig}
1940 + server: {get_resource: OpenDaylightNode}
1942 + bridge_name: br-ex
1943 + interface_name: {get_param: PublicInterface}
1945 + OpenDaylightDeployment:
1946 + type: OS::TripleO::SoftwareDeployment
1947 + depends_on: NetworkDeployment
1949 + config: {get_resource: OpenDaylightConfig}
1950 + server: {get_resource: OpenDaylightNode}
1954 + template: '["server"]'
1956 + server: {get_param: NtpServer}
1957 + opendaylight_port: {get_param: OpenDaylightPort}
1958 + opendaylight_enable_l3: {get_param: OpenDaylightEnableL3}
1959 + opendaylight_username: {get_param: OpenDaylightUsername}
1960 + opendaylight_password: {get_param: OpenDaylightPassword}
1961 + opendaylight_features: {get_param: OpenDaylightFeatures}
1963 + OpenDaylightConfig:
1964 + type: OS::Heat::StructuredConfig
1966 + group: os-apply-config
1971 + - heat_config_%{::deploy_config_name}
1973 + - bootstrap_node # provided by BootstrapNodeConfig
1974 + - all_nodes # provided by allNodesConfig
1975 + - vip_data # provided by vip-config
1976 + - RedHat # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1236143
1980 + raw_data: {get_file: hieradata/common.yaml}
1982 + ntp::servers: {get_input: ntp_servers}
1983 + opendaylight::admin_username: {get_param: OpenDaylightUsername}
1984 + opendaylight::admin_password: {get_param: OpenDaylightPassword}
1985 + opendaylight_port: {get_input: opendaylight_port}
1986 + opendaylight_enable_l3: {get_input: opendaylight_enable_l3}
1987 + opendaylight_features: {get_input: opendaylight_features}
1989 + raw_data: {get_file: hieradata/ceph.yaml}
1992 + type: OS::TripleO::Tasks::PackageUpdate
1995 + type: OS::Heat::SoftwareDeployment
1997 + config: {get_resource: UpdateConfig}
1998 + server: {get_resource: OpenDaylightNode}
2000 + update_identifier:
2001 + get_param: UpdateIdentifier
2003 + OpenDaylightHostsConfig:
2004 + type: OS::Heat::SoftwareConfig
2008 + #!/usr/bin/env bash
2009 + echo -e "$(facter ipaddress)\t\t$(hostname -f)\t$(hostname -s)" >> /etc/hosts
2011 + OpenDaylightHostsDeployment:
2012 + type: OS::Heat::StructuredDeployment
2013 + depends_on: OpenDaylightDeployment
2015 + server: {get_resource: OpenDaylightNode}
2016 + config: {get_resource: OpenDaylightHostsConfig}
2018 + OpenDaylightPuppetConfig:
2019 + type: OS::Heat::SoftwareConfig
2023 + get_file: manifests/overcloud_opendaylight.pp
2025 + OpenDaylightPuppetDeployment:
2026 + depends_on: OpenDaylightHostsDeployment
2027 + type: OS::Heat::StructuredDeployment
2029 + server: {get_resource: OpenDaylightNode}
2030 + config: {get_resource: OpenDaylightPuppetConfig}
2032 + update_identifier: {get_param: UpdateIdentifier}
2036 + description: IP address of the server in the ctlplane network
2037 + value: {get_attr: [OpenDaylightNode, networks, ctlplane, 0]}
2038 + opendaylight_controller_ip:
2039 + description: IP address of the server on the internal network
2040 + value: {get_attr: [InternalApiPort, ip_address]}
2041 + config_identifier:
2042 + description: identifier which changes if the node configuration may need re-applying
2046 + - - {get_attr: [OpenDaylightDeployment, deploy_stdout]}
2047 + - {get_param: UpdateIdentifier}
2048 diff --git a/puppet/vip-config.yaml b/puppet/vip-config.yaml
2049 index 1dec489..727bb79 100644
2050 --- a/puppet/vip-config.yaml
2051 +++ b/puppet/vip-config.yaml
2052 @@ -27,6 +27,7 @@ resources:
2053 horizon_vip: {get_input: horizon_vip}
2054 redis_vip: {get_input: redis_vip}
2055 mysql_vip: {get_input: mysql_vip}
2056 + opendaylight_api_vip: {get_input: opendaylight_api_vip}
2057 tripleo::loadbalancer::public_virtual_ip: {get_input: public_virtual_ip}
2058 tripleo::loadbalancer::controller_virtual_ip: {get_input: control_virtual_ip}
2059 tripleo::loadbalancer::internal_api_virtual_ip: {get_input: internal_api_virtual_ip}