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