802f8073a5c8fea34e8b0cfcdc5022000a08addd
[joid.git] / ci / onos / juju-deployer / onos-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=1"
35         - "lxc:nodes-api=0"
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=2"
74         - "lxc:nodes-api=0"
75         - "lxc:nodes-api=1"
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         operator-roles: "Memeber,admin"
115       to:
116         - "lxc:nodes-api=1"
117         - "lxc:nodes-api=0"
118         - "lxc:nodes-api=2"
119
120     cinder:
121       charm: cs:trusty/cinder
122       num_units: 3
123       options:
124         block-device: None
125         glance-api-version: 2
126 #        ha-mcastport: 5401
127       to:
128         - "lxc:nodes-api=2"
129         - "lxc:nodes-api=0"
130         - "lxc:nodes-api=1"
131     cinder-ceph:
132       charm: cs:trusty/cinder-ceph
133     "rabbitmq-server": 
134       branch: lp:charms/trusty/rabbitmq-server
135       num_units: 3
136       to:
137         - "lxc:nodes-api=0"
138         - "lxc:nodes-api=1"
139         - "lxc:nodes-api=2"
140     "keystone": 
141       branch: lp:charms/trusty/keystone
142       num_units: 3
143       options: 
144 #        ha-mcastport: 5402
145         "admin-password": openstack
146         "admin-token": admin
147         vip: 10.4.1.13
148       to:
149         - "lxc:nodes-api=1"
150         - "lxc:nodes-api=0"
151         - "lxc:nodes-api=2"
152     "openstack-dashboard": 
153       branch: lp:charms/trusty/openstack-dashboard
154       num_units: 3
155       options: 
156         secret: admin
157         vip: 10.4.1.11
158         webroot: /
159       to:
160         - "lxc:nodes-api=2"
161         - "lxc:nodes-api=0"
162         - "lxc:nodes-api=1"
163     "nova-compute": 
164       branch: lp:~openstack-charmers/charms/trusty/nova-compute/next
165       num_units: 2
166       options: 
167         "enable-live-migration": False
168         "manage-neutron-plugin-legacy-mode": False
169       to:
170         - "nodes-compute=0"
171         - "nodes-compute=1"
172 #        - "nodes-api=0"
173 #        - "nodes-api=1"
174 #        - "nodes-api=2"
175     "nova-cloud-controller": 
176       branch: lp:charms/trusty/nova-cloud-controller
177       num_units: 3
178       options: 
179         "console-access-protocol": novnc
180         "network-manager": Neutron
181         "quantum-security-groups": "yes"
182         "service-guard": true
183         vip: 10.4.1.16
184       to:
185         - "lxc:nodes-api=1"
186         - "lxc:nodes-api=0"
187         - "lxc:nodes-api=2"
188     "neutron-api": 
189       branch: lp:~openstack-charmers/charms/trusty/neutron-api/next
190       num_units: 3
191       options:
192         neutron-security-groups: True
193         manage-neutron-plugin-legacy-mode: False
194         vip: 10.4.1.17
195       to: 
196         - "lxc:nodes-api=2"
197         - "lxc:nodes-api=0"
198         - "lxc:nodes-api=1"
199     neutron-gateway:
200       branch: "lp:~wuwenbin2/onosfw/neutron-gateway"
201       options:
202 #        "ext-port": "eth1"
203         plugin: onos
204         instance-mtu: 1400
205       to:  
206         - "nodes-api=0"
207     onos-controller:
208       branch: "lp:~wuwenbin2/onosfw/onos-controller"
209       to: 
210         - "lxc:nodes-api=1"
211     "glance": 
212       branch: lp:charms/trusty/glance
213       num_units: 3
214       options: 
215         vip: 10.4.1.12
216 #        ha-mcastport: 5402
217       to:
218         - "lxc:nodes-api=2"
219         - "lxc:nodes-api=0"
220         - "lxc:nodes-api=1"
221     neutron-api-onos:
222       branch: "lp:~wuwenbin2/onosfw/neutron-api-onos"
223       options:
224         overlay-network-type: 'vxlan'
225         security-groups: True
226     openvswitch-onos:
227       branch: "lp:~wuwenbin2/onosfw/openvswitch-onos"
228   relations:
229     - - "glance:ha"
230       - "hacluster-glance:ha"
231     - - "keystone:ha"
232       - "hacluster-keystone:ha"
233     - - "neutron-api:ha"
234       - "hacluster-neutron:ha"
235     - - "nova-cloud-controller:ha"
236       - "hacluster-nova:ha"
237     - - "openstack-dashboard:ha"
238       - "hacluster-horizon:ha"
239     - - "ceilometer:ha"
240       - "hacluster-ceilometer:ha"
241     - - "neutron-api:neutron-plugin-api-subordinate"
242       - "neutron-api-onos:neutron-plugin-api-subordinate"
243     - - "nova-compute:neutron-plugin"
244       - "openvswitch-onos:neutron-plugin"
245     - - "neutron-gateway"
246       - "openvswitch-onos"
247     - - "openvswitch-onos:ovsdb-manager"
248       - "onos-controller:ovsdb-manager"
249     - - "neutron-api-onos:onos-controller"
250       - "onos-controller:controller-api"
251     - - "keystone:shared-db"
252       - "percona-cluster:shared-db"
253     - - "nova-cloud-controller:shared-db"
254       - "percona-cluster:shared-db"
255     - - "nova-cloud-controller:amqp"
256       - "rabbitmq-server:amqp"
257     - - "nova-cloud-controller:image-service"
258       - "glance:image-service"
259     - - "nova-cloud-controller:identity-service"
260       - "keystone:identity-service"
261     - - "nova-cloud-controller:cloud-compute"
262       - "nova-compute:cloud-compute"
263     - - "nova-compute:amqp"
264       - "rabbitmq-server:amqp"
265     - - "nova-compute:image-service"
266       - "glance:image-service"
267     - - "glance:shared-db"
268       - "percona-cluster:shared-db"
269     - - "glance:identity-service"
270       - "keystone:identity-service"
271     - - "glance:amqp"
272       - "rabbitmq-server:amqp"
273     - - "openstack-dashboard:identity-service"
274       - "keystone:identity-service"
275     - - "neutron-api:shared-db"
276       - "percona-cluster:shared-db"
277     - - "neutron-api:amqp"
278       - "rabbitmq-server:amqp"
279     - - "nova-cloud-controller:neutron-api"
280       - "neutron-api:neutron-api"
281     - - "neutron-api:identity-service"
282       - "keystone:identity-service"
283     - - "neutron-gateway:amqp"
284       - "rabbitmq-server:amqp"
285     - - "neutron-gateway:neutron-plugin-api"
286       - "neutron-api:neutron-plugin-api"
287     - - "nova-cloud-controller:quantum-network-service"
288       - "neutron-gateway:quantum-network-service"
289     - - "ceilometer:amqp"
290       - "rabbitmq-server:amqp"
291     - - "ceilometer-agent:ceilometer-service"
292       - "ceilometer:ceilometer-service"
293     - - "ceilometer:identity-service"
294       - "keystone:identity-service"
295     - - "ceilometer:identity-notifications"
296       - "keystone:identity-notifications"
297     - - "ceilometer-agent:nova-ceilometer"
298       - "nova-compute:nova-ceilometer"
299     - - "ceilometer:shared-db"
300       - "mongodb:database"
301     - - "heat:shared-db"
302       - "percona-cluster:shared-db"
303     - - "heat:identity-service"
304       - "keystone:identity-service"
305     - - "heat:amqp"
306       - "rabbitmq-server:amqp"
307     - - "cinder:image-service"
308       - "glance:image-service"
309     - - "cinder:amqp"
310       - "rabbitmq-server:amqp"
311     - - "cinder:identity-service"
312       - "keystone:identity-service"
313     - - "cinder:cinder-volume-service"
314       - "nova-cloud-controller:cinder-volume-service"
315     - - "cinder-ceph:storage-backend"
316       - "cinder:storage-backend"
317     - - "ceph:client"
318       - "nova-compute:ceph"
319     - - "cinder:shared-db"
320       - "percona-cluster:shared-db"
321     - - "ceph:client"
322       - "cinder-ceph:ceph"
323     - - "ceph:client"
324       - "glance:ceph"
325     - - "ceph-osd:mon"
326       - "ceph:osd"
327     - - "ceph-radosgw:mon"
328       - "ceph:radosgw"
329     - - "ceph-radosgw:identity-service"
330       - "keystone:identity-service"
331
332 trusty-liberty-nodes:
333   inherits: openstack-phase1
334   overrides:
335     series: trusty
336
337 trusty-liberty:
338   inherits: openstack-phase2
339   overrides:
340     cluster_count: 3
341     #os-data-network: 10.4.8.0/21
342     #prefer-ipv6: true
343     region: Canonical
344     source: "cloud:trusty-liberty"
345     "openstack-origin": "cloud:trusty-liberty"
346     series: trusty
347     ceph-osd-replication-count: 2
348     admin-role: admin
349     keystone-admin-role: admin
350
351 trusty-kilo-nodes:
352   inherits: openstack-phase1
353   overrides:
354     series: trusty
355
356 trusty-kilo:
357   inherits: openstack-phase2
358   overrides:
359     cluster_count: 3
360     #os-data-network: 10.4.8.0/21
361     #prefer-ipv6: true
362     region: Canonical
363     source: "cloud:trusty-kilo"
364     "openstack-origin": "cloud:trusty-kilo"
365     series: trusty
366     ceph-osd-replication-count: 2
367     admin-role: admin
368     keystone-admin-role: admin
369
370 trusty-juno-nodes:
371   inherits: openstack-phase1
372   overrides:
373     series: trusty
374
375 trusty-juno:
376   inherits: openstack-phase2
377   overrides:
378     cluster_count: 3
379     #os-data-network: 10.4.8.0/21
380     #prefer-ipv6: true
381     region: Canonical
382     source: "cloud:trusty-juno"
383     "openstack-origin": "cloud:trusty-juno"
384     series: trusty
385     ceph-osd-replication-count: 2
386     admin-role: admin
387     keystone-admin-role: admin
388