625a262bcae5ed81b4824dcb0e586b7b11e322eb
[joid.git] / ci / odl / juju-deployer / ovs-odl-ha.yaml
1 # vim: set ts=2 et:
2 openstack-phase1:
3   series: trusty
4   services:
5     nodes-api:
6       charm: "cs:trusty/ubuntu"
7       num_units: 3
8       constraints: tags=control
9     nodes-compute:
10       charm: "cs:trusty/ubuntu"
11       num_units: 2
12       constraints: tags=compute
13     "ntp": 
14       charm: "cs:trusty/ntp"
15   relations:
16     - - "ntp:juju-info"
17       - "nodes-api:juju-info"
18     - - "ntp:juju-info"
19       - "nodes-compute:juju-info"
20 openstack-phase2: 
21   inherits: openstack-phase1
22   services: 
23     "percona-cluster": 
24       branch: "lp:~openstack-charmers/charms/trusty/percona-cluster/next"
25       num_units: 3
26       options: 
27         "dataset-size": 2G
28         "lp1366997-workaround": true
29         "max-connections": 10000
30         "root-password": 293rhc395m
31         "sst-password": 127rc14t51
32         vip: 10.4.1.15
33       to:
34         - "lxc:nodes-api=0"
35         - "lxc:nodes-api=1"
36         - "lxc:nodes-api=2"
37     "hacluster-keystone":
38       charm: "cs:trusty/hacluster"
39       options:
40         corosync_key: |
41           'QisjNpoKHLkvyc3PEdDHP5VZjgD0kOk9t0ABPWmCELlu5AgWgnW6bJd34BVXO7VhW+3ZwNQM3W+bZ3pl28ftY4ki4N/S0KLFNia5egFgiA3AH2QXLnokS7OYXuu6GMJJ1S5mDe6P5zU+tfJe/Mebq24u7CgR0gAvohSPRdDTwdY='
42     "hacluster-horizon":
43       charm: "cs:trusty/hacluster"
44       options:
45         corosync_key: |
46           'aCVPHw6XYne+Hxv0WPiM3+yEfeIxs0Ly0EMKB494Rdzjf5rE52GcXqqxuvIa/nXJ4GCR+UdKk9FEwcASfYkeu3HDWUld9uTE6pOc+ibWYnybNH7VBfEHW8h9YmQKs3HD2T3wlTcS2irU4CUW7/IKNok4etYdM3iFn1K2ReSGXEI='
47     "hacluster-nova":
48       charm: "cs:trusty/hacluster"
49       options:
50         corosync_key: |
51           'gel86qmEze8dYKYbfqIgRpqapJpKtdYL2hxC1y5nWYBPq7EMf6V8mF01IjeUkSRs14CUDrsPpT4PWeom7EOY2fleuLx/aIuqQUfEDkhf/gvaz7BaU4hrmTCoDBK7/HvEwY+/wu4qkEeckzSRPsm9MYzqnLRshh8yjZJ70xU/mmk='
52     "hacluster-neutron": 
53       charm: "cs:trusty/hacluster"
54       options:
55         corosync_key: |
56           'KNhb4++3jlllbnscS5D3qdzOJDsQPEeZ7zOLZJHbkKrRjX9gRCijVVOiv2JCvq03HqQ7LIufQzWGl9Za8qh0f6QmQ3XhFh/Cb/3WaYFj+tEf0zArWv+8miswmM1z4eyTSrTWBq0dTgx1z96wjBxP5HV0+1LWW+3Ei4oZWyRGeR0='
57     "hacluster-glance":
58       charm: "cs:trusty/hacluster"
59       options:
60         corosync_key: |
61           'el1dd8107J5mwQDPS7tEJPZrr0XFfL95+Tku/QG90W5Q5f5SP4W8TRfKvddGmZWZl2lVd1neG5WqaHa1mq/aScJpoflzVAJCvshN7Gd2AjHhLNNugeI8S90j/7wrKUhqiCAlkKaeri2xs5bB5PZ7Z9AHuNZL7SW1al8lxrKhUFI='
62     "hacluster-ceilometer":
63       charm: "cs:trusty/hacluster"
64       options:
65         corosync_key: |
66           'cHkgKGJpdHMgPSA5NjApLgpQcmVzcyBrZXlzIG9uIHlvdXIga2V5Ym9hcmQgdG8gZ2VuZXJhdGUgZW50cm9weSAoYml0cyA9IDEwMDgpLgpXcml0aW5nIGNvcm9zeW5jIGtleSB0byAvZXRjL2Nvcm9zeW5jL2F1dGhrZXkuCg=='
67     "ceilometer":
68       branch: "lp:~openstack-charmers/charms/trusty/ceilometer/next"
69       num_units: 3
70       options:
71         vip: 10.4.1.14
72       to:
73         - "lxc:nodes-api=0"
74         - "lxc:nodes-api=1"
75         - "lxc:nodes-api=2"
76     "ceilometer-agent":
77       branch: "lp:~openstack-charmers/charms/trusty/ceilometer-agent/next"
78     "mongodb":
79       charm: "cs:trusty/mongodb"
80       num_units: 1
81       to:
82         - "lxc:nodes-api=0"
83     heat:
84       branch: "lp:~openstack-charmers/charms/trusty/heat/next"
85       to:
86         - "lxc:nodes-api=0"
87     ceph:
88       charm: cs:trusty/ceph
89       num_units: 2
90       options:
91         fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
92         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
93         osd-devices: /srv
94         monitor-count: 1        
95         osd-reformat: 'no'
96 #        ceph-cluster-network: 192.168.0.0/24
97 #        ceph-public-network: 192.168.0.0/24
98       to:
99         - "nodes-compute=0"
100         - "nodes-compute=1"
101     ceph-osd:
102       charm: cs:trusty/ceph-osd
103       num_units: 1
104       options:
105         osd-devices: /srv
106         osd-reformat: 'yes'
107       to:
108         - "nodes-api=0"
109     ceph-radosgw:
110       charm: cs:trusty/ceph-radosgw
111       num_units: 3
112       options:
113         use-embedded-webserver: true
114       to:
115         - "lxc:nodes-api=0"
116         - "lxc:nodes-api=1"
117         - "lxc:nodes-api=2"
118     cinder:
119       charm: cs:trusty/cinder
120       num_units: 3
121       options:
122         block-device: None
123         glance-api-version: 2
124 #        ha-mcastport: 5401
125       to:
126         - "lxc:nodes-api=0"
127         - "lxc:nodes-api=1"
128         - "lxc:nodes-api=2"
129     cinder-ceph:
130       charm: cs:trusty/cinder-ceph
131     "rabbitmq-server": 
132       branch: lp:charms/trusty/rabbitmq-server
133       num_units: 3
134       to:
135         - "lxc:nodes-api=0"
136         - "lxc:nodes-api=1"
137         - "lxc:nodes-api=2"
138     "keystone": 
139       branch: lp:charms/trusty/keystone
140       num_units: 3
141       options: 
142 #        ha-mcastport: 5402
143         "admin-password": openstack
144         "admin-token": admin
145         vip: 10.4.1.13
146       to:
147         - "lxc:nodes-api=0"
148         - "lxc:nodes-api=1"
149         - "lxc:nodes-api=2"
150     "openstack-dashboard": 
151       branch: lp:charms/trusty/openstack-dashboard
152       num_units: 3
153       options: 
154         secret: admin
155         vip: 10.4.1.11
156         webroot: /
157       to:
158         - "lxc:nodes-api=0"
159         - "lxc:nodes-api=1"
160         - "lxc:nodes-api=2"
161     "nova-compute": 
162       branch: lp:~openstack-charmers/charms/trusty/nova-compute/next
163       num_units: 2
164       options: 
165         "enable-live-migration": False
166         "manage-neutron-plugin-legacy-mode": False
167       to:
168         - "nodes-compute=0"
169         - "nodes-compute=1"
170 #        - "nodes-api=0"
171 #        - "nodes-api=1"
172 #        - "nodes-api=2"
173     "nova-cloud-controller": 
174       branch: lp:charms/trusty/nova-cloud-controller
175       num_units: 3
176       options: 
177         "console-access-protocol": novnc
178         "network-manager": Neutron
179         "quantum-security-groups": "yes"
180         "service-guard": true
181         vip: 10.4.1.16
182       to:
183         - "lxc:nodes-api=0"
184         - "lxc:nodes-api=1"
185         - "lxc:nodes-api=2"
186     "neutron-api": 
187       branch: lp:~openstack-charmers/charms/trusty/neutron-api/next
188       num_units: 3
189       options:
190         neutron-security-groups: True
191         manage-neutron-plugin-legacy-mode: False
192         vip: 10.4.1.17
193       to: 
194         - "lxc:nodes-api=0"
195         - "lxc:nodes-api=1"
196         - "lxc:nodes-api=2"
197     neutron-gateway:
198       branch: lp:charms/trusty/neutron-gateway
199       options:
200 #        "ext-port": "eth1"
201         plugin: ovs-odl
202         instance-mtu: 1400
203       to:  
204         - "nodes-api=0"
205     odl-controller:
206       branch: lp:~openstack-charmers/charms/trusty/odl-controller/next
207       options:
208         install-url: "https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.2.4-Helium-SR4/distribution-karaf-0.2.4-Helium-SR4.tar.gz"
209 #        install-url: "https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.3.2-Lithium-SR2/distribution-karaf-0.3.2-Lithium-SR2.tar.gz"
210         http-proxy: "http://squid.internal:3128"
211         https-proxy: "http://squid.internal:3128"
212
213       to: 
214         - "lxc:nodes-api=1"
215     "glance": 
216       branch: lp:charms/trusty/glance
217       num_units: 3
218       options: 
219         vip: 10.4.1.12
220 #        ha-mcastport: 5402
221       to:
222         - "lxc:nodes-api=0"
223         - "lxc:nodes-api=1"
224         - "lxc:nodes-api=2"
225     neutron-api-odl:
226       branch: lp:~openstack-charmers/charms/trusty/neutron-api-odl/vpp
227       options:
228         overlay-network-type: 'vxlan gre'
229         security-groups: True
230     openvswitch-odl:
231       branch: lp:~openstack-charmers/charms/trusty/openvswitch-odl/trunk
232   relations:
233     - - "glance:ha"
234       - "hacluster-glance:ha"
235     - - "keystone:ha"
236       - "hacluster-keystone:ha"
237     - - "neutron-api:ha"
238       - "hacluster-neutron:ha"
239     - - "nova-cloud-controller:ha"
240       - "hacluster-nova:ha"
241     - - "openstack-dashboard:ha"
242       - "hacluster-horizon:ha"
243     - - "ceilometer:ha"
244       - "hacluster-ceilometer:ha"
245     - - "neutron-api:neutron-plugin-api-subordinate"
246       - "neutron-api-odl:neutron-plugin-api-subordinate"
247     - - "nova-compute:neutron-plugin"
248       - "openvswitch-odl:neutron-plugin"
249     - - "neutron-gateway"
250       - "openvswitch-odl"
251     - - "openvswitch-odl:ovsdb-manager"
252       - "odl-controller:ovsdb-manager"
253     - - "neutron-api-odl:odl-controller"
254       - "odl-controller:controller-api"
255     - - "keystone:shared-db"
256       - "percona-cluster:shared-db"
257     - - "nova-cloud-controller:shared-db"
258       - "percona-cluster:shared-db"
259     - - "nova-cloud-controller:amqp"
260       - "rabbitmq-server:amqp"
261     - - "nova-cloud-controller:image-service"
262       - "glance:image-service"
263     - - "nova-cloud-controller:identity-service"
264       - "keystone:identity-service"
265     - - "nova-cloud-controller:cloud-compute"
266       - "nova-compute:cloud-compute"
267     - - "nova-compute:amqp"
268       - "rabbitmq-server:amqp"
269     - - "nova-compute:image-service"
270       - "glance:image-service"
271     - - "glance:shared-db"
272       - "percona-cluster:shared-db"
273     - - "glance:identity-service"
274       - "keystone:identity-service"
275     - - "glance:amqp"
276       - "rabbitmq-server:amqp"
277     - - "openstack-dashboard:identity-service"
278       - "keystone:identity-service"
279     - - "neutron-api:shared-db"
280       - "percona-cluster:shared-db"
281     - - "neutron-api:amqp"
282       - "rabbitmq-server:amqp"
283     - - "nova-cloud-controller:neutron-api"
284       - "neutron-api:neutron-api"
285     - - "neutron-api:identity-service"
286       - "keystone:identity-service"
287     - - "neutron-gateway:amqp"
288       - "rabbitmq-server:amqp"
289     - - "neutron-gateway:neutron-plugin-api"
290       - "neutron-api:neutron-plugin-api"
291     - - "nova-cloud-controller:quantum-network-service"
292       - "neutron-gateway:quantum-network-service"
293     - - "ceilometer:amqp"
294       - "rabbitmq-server:amqp"
295     - - "ceilometer-agent:ceilometer-service"
296       - "ceilometer:ceilometer-service"
297     - - "ceilometer:identity-service"
298       - "keystone:identity-service"
299     - - "ceilometer:identity-notifications"
300       - "keystone:identity-notifications"
301     - - "ceilometer-agent:nova-ceilometer"
302       - "nova-compute:nova-ceilometer"
303     - - "ceilometer:shared-db"
304       - "mongodb:database"
305     - - "heat:shared-db"
306       - "percona-cluster:shared-db"
307     - - "heat:identity-service"
308       - "keystone:identity-service"
309     - - "heat:amqp"
310       - "rabbitmq-server:amqp"
311     - - "cinder:image-service"
312       - "glance:image-service"
313     - - "cinder:amqp"
314       - "rabbitmq-server:amqp"
315     - - "cinder:identity-service"
316       - "keystone:identity-service"
317     - - "cinder:cinder-volume-service"
318       - "nova-cloud-controller:cinder-volume-service"
319     - - "cinder-ceph:storage-backend"
320       - "cinder:storage-backend"
321     - - "ceph:client"
322       - "nova-compute:ceph"
323     - - "cinder:shared-db"
324       - "percona-cluster:shared-db"
325     - - "ceph:client"
326       - "cinder-ceph:ceph"
327     - - "ceph:client"
328       - "glance:ceph"
329     - - "ceph-osd:mon"
330       - "ceph:osd"
331     - - "ceph-radosgw:mon"
332       - "ceph:radosgw"
333     - - "ceph-radosgw:identity-service"
334       - "keystone:identity-service"
335
336 trusty-liberty-nodes:
337   inherits: openstack-phase1
338   overrides:
339     series: trusty
340
341 trusty-liberty:
342   inherits: openstack-phase2
343   overrides:
344     cluster_count: 3
345     #os-data-network: 10.4.8.0/21
346     #prefer-ipv6: true
347     region: Canonical
348     source: "cloud:trusty-liberty"
349     "openstack-origin": "cloud:trusty-liberty"
350     series: trusty
351     ceph-osd-replication-count: 2
352     admin-role: admin
353
354 trusty-kilo-nodes:
355   inherits: openstack-phase1
356   overrides:
357     series: trusty
358
359 trusty-kilo:
360   inherits: openstack-phase2
361   overrides:
362     cluster_count: 3
363     #os-data-network: 10.4.8.0/21
364     #prefer-ipv6: true
365     region: Canonical
366     source: "cloud:trusty-kilo"
367     "openstack-origin": "cloud:trusty-kilo"
368     series: trusty
369     ceph-osd-replication-count: 2
370     admin-role: admin
371
372
373 trusty-juno-nodes:
374   inherits: openstack-phase1
375   overrides:
376     series: trusty
377
378 trusty-juno:
379   inherits: openstack-phase2
380   overrides:
381     cluster_count: 3
382     #os-data-network: 10.4.8.0/21
383     #prefer-ipv6: true
384     region: Canonical
385     source: "cloud:trusty-juno"
386     "openstack-origin": "cloud:trusty-juno"
387     series: trusty
388     ceph-osd-replication-count: 2
389     admin-role: admin
390
391