-
Notifications
You must be signed in to change notification settings - Fork 4
/
openstack-nova-lxd.yaml
303 lines (303 loc) · 7.96 KB
/
openstack-nova-lxd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
# OpenStack Nova LXD with Exclusive Machine Scheduling - ODS Barcelona 2016
# This OpenStack Juju Bundle deploys a model that is tailored to deploy
# to a specific set of machines via MAAS.
#
# This bundle is a PoC/demo, not highly available, and is specific to the
# particular set of hardware used in a demo. Further customization and
# important architectural decisions should be taken into consideration
# in each use case.
machines:
# Juju Bootstrap / Controller
"0":
constraints: "arch=amd64 tags=demo"
# OpenStack Neutron Gateway + OpenStack Control Plane
"1":
constraints: "arch=amd64 tags=demo"
# OpenStack Object Storage + OpenStack Control Plane
"2":
constraints: "arch=amd64 tags=demo"
# OpenStack Nova-LXD Compute [for Name Node]
"3":
constraints: "arch=amd64 tags=demo"
# OpenStack Nova-LXD Compute [for Resource Manager]
"4":
constraints: "arch=amd64 tags=demo"
# OpenStack Nova-LXD Compute [for Spark]
"5":
constraints: "arch=amd64 tags=demo"
# OpenStack Nova-LXD Compute [for Hadoop Slave]
"6":
constraints: "arch=amd64 tags=demo"
# OpenStack Nova-LXD Compute [for Hadoop Slave]
"7":
constraints: "arch=amd64 tags=demo"
# OpenStack Nova-LXD Compute [for Hadoop Slave]
"8":
constraints: "arch=amd64 tags=demo"
# OpenStack Nova-LXD Compute [for Hadoop Slave]
"9":
constraints: "arch=amd64 tags=demo"
# OpenStack Nova-LXD Compute [for Hadoop Slave]
"10":
constraints: "arch=amd64 tags=demo"
series: xenial
relations:
- - keystone
- percona-cluster
- - nova-cloud-controller
- percona-cluster
- - nova-cloud-controller
- rabbitmq-server
- - nova-cloud-controller
- glance
- - nova-cloud-controller
- keystone
- - glance
- percona-cluster
- - glance
- keystone
- - glance
- rabbitmq-server
- - neutron-gateway
- nova-cloud-controller
- - openstack-dashboard
- keystone
- - swift-proxy
- keystone
- - swift-proxy
- swift-storage
- - ceilometer
- keystone:identity-service
- - ceilometer
- rabbitmq-server
- - ceilometer
- mongodb
- - ceilometer-agent
- ceilometer
- - heat
- percona-cluster
- - heat
- keystone
- - heat
- rabbitmq-server
- - neutron-gateway:amqp
- rabbitmq-server
- - neutron-api
- percona-cluster
- - neutron-api
- rabbitmq-server
- - neutron-api
- nova-cloud-controller
- - neutron-api
- neutron-openvswitch
- - neutron-api
- keystone
- - neutron-api
- neutron-gateway
- - neutron-openvswitch
- rabbitmq-server
- - aodh:shared-db
- percona-cluster:shared-db
- - aodh:identity-service
- keystone:identity-service
- - aodh:amqp
- rabbitmq-server:amqp
- - glance-simplestreams-sync:identity-service
- keystone:identity-service
- - glance-simplestreams-sync:amqp
- rabbitmq-server:amqp
#
- - nova-compute-lxd-orange
- nova-cloud-controller
- - nova-compute-lxd-orange
- lxd
- - nova-compute-lxd-orange
- rabbitmq-server:amqp
- - neutron-openvswitch
- nova-compute-lxd-orange
- - nova-compute-lxd-orange
- glance
- - ceilometer-agent
- nova-compute-lxd-orange
#
- - nova-compute-lxd-grey
- nova-cloud-controller
- - nova-compute-lxd-grey
- lxd
- - nova-compute-lxd-grey
- rabbitmq-server:amqp
- - neutron-openvswitch
- nova-compute-lxd-grey
- - nova-compute-lxd-grey
- glance
- - ceilometer-agent
- nova-compute-lxd-grey
services:
# z-magpie:
# constraints: "arch=amd64 mem=49152M tags=demo"
# charm: "cs:~admcleod/xenial/magpie"
# num_units: 10
# to: [1,2,3,4,5,6,7,8,9,10]
nova-compute-lxd-orange:
constraints: "arch=amd64 mem=49152M tags=demo"
charm: cs:~openstack-charmers-next/xenial/nova-compute
num_units: 7
to: [4,5,6,7,8,9,10]
options:
enable-live-migration: true
enable-resize: true
migration-auth-type: ssh
reserved-host-memory: 0
virt-type: lxd
# openstack-origin: cloud:xenial-newton/proposed
nova-compute-lxd-grey:
constraints: "arch=amd64 mem=49152M tags=demo"
charm: cs:~openstack-charmers-next/xenial/nova-compute
num_units: 1
to: 3
options:
enable-live-migration: true
enable-resize: true
migration-auth-type: ssh
virt-type: lxd
# openstack-origin: cloud:xenial-newton/proposed
lxd:
charm: cs:~openstack-charmers-next/xenial/lxd
options:
block-devices: /dev/sdb
overwrite: "true"
storage-type: zfs
aodh:
charm: cs:~openstack-charmers-next/xenial/aodh
num_units: 1
to:
- lxc:2
ceilometer:
charm: cs:~openstack-charmers-next/xenial/ceilometer
options:
# openstack-origin: cloud:xenial-newton/proposed
num_units: 1
to:
- lxc:1
ceilometer-agent:
charm: cs:~openstack-charmers-next/xenial/ceilometer-agent
glance:
charm: cs:~openstack-charmers-next/xenial/glance
options:
# openstack-origin: cloud:xenial-newton/proposed
num_units: 1
to:
- lxc:1
glance-simplestreams-sync:
charm: cs:xenial/glance-simplestreams-sync
num_units: 1
options:
user_agent: "BigData-NovaLXD-Demo"
mirror_list: "[{url: 'http://cloud-images.ubuntu.com/daily/',
name_prefix: 'ubuntu:daily',
path: 'streams/v1/index.sjson', max: 1,
item_filters: ['release~(xenial)',
'arch~(amd64)', 'ftype~(root.tar.xz)']}]"
to:
- lxc:1
heat:
charm: cs:~openstack-charmers-next/xenial/heat
options:
# openstack-origin: cloud:xenial-newton/proposed
num_units: 1
to:
- lxc:2
keystone:
charm: cs:~openstack-charmers-next/xenial/keystone
options:
admin-password: openstack
admin-token: ubuntutesting
num_units: 1
to:
- lxc:1
mongodb:
charm: cs:trusty/mongodb
num_units: 1
to:
- lxc:1
juju-gui:
charm: cs:juju-gui
num_units: 1
to:
- lxc:1
percona-cluster:
charm: cs:~openstack-charmers-next/xenial/percona-cluster
options:
dataset-size: 15%
max-connections: 10000
root-password: ChangeMe123
sst-password: ChangeMe123
num_units: 1
to:
- lxc:2
neutron-api:
charm: cs:~openstack-charmers-next/xenial/neutron-api
options:
flat-network-providers: physnet1
neutron-security-groups: true
# openstack-origin: cloud:xenial-newton/proposed
num_units: 1
to:
- lxc:2
neutron-gateway:
constraints: "arch=amd64 mem=49152M tags=demo"
charm: cs:~openstack-charmers-next/xenial/neutron-gateway
options:
instance-mtu: 1300
data-port: br-ex:eth1
bridge-mappings: physnet1:br-ex
# openstack-origin: cloud:xenial-newton/proposed
num_units: 1
to:
- 1
neutron-openvswitch:
charm: cs:~openstack-charmers-next/xenial/neutron-openvswitch
nova-cloud-controller:
charm: cs:~openstack-charmers-next/xenial/nova-cloud-controller
options:
network-manager: Neutron
ram-allocation-ratio: 1.0
# openstack-origin: cloud:xenial-newton/proposed
scheduler-default-filters: AggregateInstanceExtraSpecsFilter,AggregateNumInstancesFilter,RetryFilter,AvailabilityZoneFilter,CoreFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter
num_units: 1
to:
- lxc:2
openstack-dashboard:
charm: cs:~openstack-charmers-next/xenial/openstack-dashboard
options:
# openstack-origin: cloud:xenial-newton/proposed
num_units: 1
to:
- lxc:1
rabbitmq-server:
charm: cs:~openstack-charmers-next/xenial/rabbitmq-server
options:
source: cloud:xenial-newton/proposed
num_units: 1
to:
- lxc:2
swift-proxy:
charm: cs:~openstack-charmers-next/xenial/swift-proxy
options:
# openstack-origin: cloud:xenial-newton/proposed
replicas: 1
swift-hash: 23fa5444-3cf4-4371-a2e4-9288a509ecff
zone-assignment: manual
num_units: 1
to:
- lxc:1
swift-storage:
constraints: "arch=amd64 mem=49152M tags=demo"
charm: cs:~openstack-charmers-next/xenial/swift-storage
options:
block-device: sdb
overwrite: "true"
zone: 1
num_units: 1
to:
- 2