Statistics
| Branch: | Tag: | Revision:

one / share / etc / oned.conf @ 40086e5c

History | View | Annotate | Download (37.9 KB)

1
#*******************************************************************************
2
#                       OpenNebula Configuration file
3
#*******************************************************************************
4

    
5
#*******************************************************************************
6
# Daemon configuration attributes
7
#-------------------------------------------------------------------------------
8
#  MANAGER_TIMER: Time in seconds the core uses to evaluate periodical functions.
9
#  MONITORING_INTERVAL cannot have a smaller value than MANAGER_TIMER.
10
#
11
#  MONITORING_INTERVAL: Time in seconds between host and VM monitorization.
12
#
13
#  MONITORING_THREADS: Max. number of threads used to process monitor messages
14
#
15
#  HOST_PER_INTERVAL: Number of hosts monitored in each interval.
16
#  HOST_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring
17
#  information. Use 0 to disable HOST monitoring recording.
18
#
19
#  VM_INDIVIDUAL_MONITORING: VM monitoring information is obtained along with the
20
#  host information. For some custom monitor drivers you may need activate the
21
#  individual VM monitoring process.
22
#  VM_PER_INTERVAL: Number of VMs monitored in each interval, if the individual
23
#  VM monitoring is set to yes.
24
#  VM_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring
25
#  information. Use 0 to disable VM monitoring recording.
26
#
27
#  SCRIPTS_REMOTE_DIR: Remote path to store the monitoring and VM management
28
#  scripts.
29
#
30
#  PORT: Port where oned will listen for xmlrpc calls.
31
#  LISTEN_ADDRESS: Host IP to listen on for xmlrpc calls (default: all IPs).
32
#
33
#  DB: Configuration attributes for the database backend
34
#   backend : can be sqlite or mysql (default is sqlite)
35
#   server  : (mysql) host name or an IP address for the MySQL server
36
#   port    : (mysql) port for the connection to the server.
37
#                     If set to 0, the default port is used.
38
#   user    : (mysql) user's MySQL login ID
39
#   passwd  : (mysql) the password for user
40
#   db_name : (mysql) the database name
41
#
42
#  VNC_BASE_PORT: VNC ports for VMs can be automatically set to VNC_BASE_PORT +
43
#  VMID
44
#
45
#  LOG: Configuration for the logging system
46
#   system: defines the logging system:
47
#      file      to log in the oned.log file
48
#      syslog    to use the syslog facilities
49
#   debug_level: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
50
#
51
#  VM_SUBMIT_ON_HOLD: Forces VMs to be created on hold state instead of pending.
52
#  Values: YES or NO.
53
#*******************************************************************************
54

    
55
LOG = [
56
  system      = "file",
57
  debug_level = 3
58
]
59

    
60
#MANAGER_TIMER = 30
61

    
62
MONITORING_INTERVAL = 60
63
MONITORING_THREADS  = 50
64

    
65
#HOST_PER_INTERVAL               = 15
66
#HOST_MONITORING_EXPIRATION_TIME = 43200
67

    
68
#VM_INDIVIDUAL_MONITORING      = "no"
69
#VM_PER_INTERVAL               = 5
70
#VM_MONITORING_EXPIRATION_TIME = 14400
71

    
72
SCRIPTS_REMOTE_DIR=/var/tmp/one
73

    
74
PORT = 2633
75

    
76
LISTEN_ADDRESS = "0.0.0.0"
77

    
78
DB = [ backend = "sqlite" ]
79

    
80
# Sample configuration for MySQL
81
# DB = [ backend = "mysql",
82
#        server  = "localhost",
83
#        port    = 0,
84
#        user    = "oneadmin",
85
#        passwd  = "oneadmin",
86
#        db_name = "opennebula" ]
87

    
88
VNC_BASE_PORT = 5900
89

    
90
#VM_SUBMIT_ON_HOLD = "NO"
91

    
92
#*******************************************************************************
93
# Federation configuration attributes
94
#-------------------------------------------------------------------------------
95
# Control the federation capabilities of oned. Operation in a federated setup
96
# requires a special DB configuration.
97
#
98
#  FEDERATION: Federation attributes
99
#   MODE: Operation mode of this oned.
100
#       STANDALONE no federated.This is the default operational mode
101
#       MASTER     this oned is the master zone of the federation
102
#       SLAVE      this oned is a slave zone
103
#   ZONE_ID: The zone ID as returned by onezone command
104
#   MASTER_ONED: The xml-rpc endpoint of the master oned, e.g.
105
#   http://master.one.org:2633/RPC2
106
#*******************************************************************************
107

    
108
FEDERATION = [
109
    MODE = "STANDALONE",
110
    ZONE_ID = 0,
111
    MASTER_ONED = ""
112
]
113

    
114
#*******************************************************************************
115
# Default showback cost
116
#-------------------------------------------------------------------------------
117
# The following attributes define the default cost for Virtual Machines that
118
# don't have a CPU, MEMORY or DISK cost. This is used by the oneshowback
119
# calculate method.
120
#*******************************************************************************
121

    
122
DEFAULT_COST = [
123
    CPU_COST    = 0,
124
    MEMORY_COST = 0,
125
    DISK_COST   = 0
126
]
127

    
128
#*******************************************************************************
129
# XML-RPC server configuration
130
#-------------------------------------------------------------------------------
131
#  These are configuration parameters for oned's xmlrpc-c server
132
#
133
#  MAX_CONN: Maximum number of simultaneous TCP connections the server
134
#  will maintain
135
#
136
#  MAX_CONN_BACKLOG: Maximum number of TCP connections the operating system
137
#  will accept on the server's behalf without the server accepting them from
138
#  the operating system
139
#
140
#  KEEPALIVE_TIMEOUT: Maximum time in seconds that the server allows a
141
#  connection to be open between RPCs
142
#
143
#  KEEPALIVE_MAX_CONN: Maximum number of RPCs that the server will execute on
144
#  a single connection
145
#
146
#  TIMEOUT: Maximum time in seconds the server will wait for the client to
147
#  do anything while processing an RPC
148
#
149
#  RPC_LOG: Create a separated log file for xml-rpc requests, in
150
#  "/var/log/one/one_xmlrpc.log".
151
#
152
#  MESSAGE_SIZE: Buffer size in bytes for XML-RPC responses.
153
#
154
#  LOG_CALL_FORMAT: Format string to log XML-RPC calls. Interpreted strings:
155
#     %i -- request id
156
#     %m -- method name
157
#     %u -- user id
158
#     %U -- user name
159
#     %l -- param list
160
#     %p -- user password
161
#     %g -- group id
162
#     %G -- group name
163
#     %a -- auth token
164
#     %% -- %
165
#*******************************************************************************
166

    
167
#MAX_CONN           = 15
168
#MAX_CONN_BACKLOG   = 15
169
#KEEPALIVE_TIMEOUT  = 15
170
#KEEPALIVE_MAX_CONN = 30
171
#TIMEOUT            = 15
172
#RPC_LOG            = NO
173
#MESSAGE_SIZE       = 1073741824
174
#LOG_CALL_FORMAT    = "Req:%i UID:%u %m invoked %l"
175

    
176
#*******************************************************************************
177
# Physical Networks configuration
178
#*******************************************************************************
179
#  NETWORK_SIZE: Here you can define the default size for the virtual networks
180
#
181
#  MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
182
#  addresses is defined here (this can be overrided by the Virtual Network
183
#  template)
184
#*******************************************************************************
185

    
186
NETWORK_SIZE = 254
187

    
188
MAC_PREFIX   = "02:00"
189

    
190
#*******************************************************************************
191
# DataStore Configuration
192
#*******************************************************************************
193
#  DATASTORE_LOCATION: *Default* Path for Datastores in the hosts. It IS the
194
#  same for all the hosts in the cluster. DATASTORE_LOCATION IS ONLY FOR THE
195
#  HOSTS AND *NOT* THE FRONT-END. It defaults to /var/lib/one/datastores (or
196
#  $ONE_LOCATION/var/datastores in self-contained mode)
197
#
198
#  You can define a different DATASTORE_LOCATION in each cluster by updating
199
#  its properties with onecluster update.
200
#
201
#  DATASTORE_BASE_PATH: This is the base path for the SOURCE attribute of
202
#  the images registered in a Datastore. This is a default value, that can be
203
#  changed when the datastore is created.
204
#
205
#  DATASTORE_CAPACITY_CHECK: Checks that there is enough capacity before
206
#  creating a new imag. Defaults to Yes
207
#
208
#  DEFAULT_IMAGE_TYPE: This can take values
209
#       OS        Image file holding an operating system
210
#       CDROM     Image file holding a CDROM
211
#       DATABLOCK Image file holding a datablock,
212
#                 always created as an empty block
213
#
214
#  DEFAULT_DEVICE_PREFIX: This can be set to
215
#       hd        IDE prefix
216
#       sd        SCSI
217
#       xvd       XEN Virtual Disk
218
#       vd        KVM virtual disk
219
#
220
#  DEFAULT_CDROM_DEVICE_PREFIX: Same as above but for CDROM devices.
221
#*******************************************************************************
222

    
223
#DATASTORE_LOCATION  = /var/lib/one/datastores
224

    
225
#DATASTORE_BASE_PATH = /var/lib/one/datastores
226

    
227
DATASTORE_CAPACITY_CHECK = "yes"
228

    
229
DEFAULT_IMAGE_TYPE    = "OS"
230
DEFAULT_DEVICE_PREFIX = "hd"
231

    
232
DEFAULT_CDROM_DEVICE_PREFIX = "hd"
233

    
234
#*******************************************************************************
235
# Information Driver Configuration
236
#*******************************************************************************
237
# You can add more information managers with different configurations but make
238
# sure it has different names.
239
#
240
#   name      : name for this information manager
241
#
242
#   executable: path of the information driver executable, can be an
243
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
244
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
245
#
246
#   arguments : for the driver executable, usually a probe configuration file,
247
#               can be an absolute path or relative to $ONE_LOCATION/etc (or
248
#               /etc/one/ if OpenNebula was installed in /)
249
#*******************************************************************************
250

    
251
#-------------------------------------------------------------------------------
252
#  Information Collector for KVM and Xen IM's.
253
#-------------------------------------------------------------------------------
254
#  This driver CANNOT BE ASSIGNED TO A HOST, and needs to be used with KVM or
255
#  Xen drivers
256
#    -h  prints this help.
257
#    -a  Address to bind the collectd sockect (defults 0.0.0.0)
258
#    -p  UDP port to listen for monitor information (default 4124)
259
#    -f  Interval in seconds to flush collected information (default 5)
260
#    -t  Number of threads for the server (defult 50)
261
#    -i  Time in seconds of the monitorization push cycle. This parameter must
262
#        be smaller than MONITORING_INTERVAL, otherwise push monitorization will
263
#        not be effective.
264
#-------------------------------------------------------------------------------
265
IM_MAD = [
266
      name       = "collectd",
267
      executable = "collectd",
268
      arguments  = "-p 4124 -f 5 -t 50 -i 20" ]
269
#-------------------------------------------------------------------------------
270

    
271
#-------------------------------------------------------------------------------
272
#  KVM UDP-push Information Driver Manager Configuration
273
#    -r number of retries when monitoring a host
274
#    -t number of threads, i.e. number of hosts monitored at the same time
275
#-------------------------------------------------------------------------------
276
IM_MAD = [
277
      name       = "kvm",
278
      executable = "one_im_ssh",
279
      arguments  = "-r 3 -t 15 kvm" ]
280
#-------------------------------------------------------------------------------
281

    
282
#-------------------------------------------------------------------------------
283
#  KVM SSH-pull Information Driver Manager Configuration
284
#    -r number of retries when monitoring a host
285
#    -t number of threads, i.e. number of hosts monitored at the same time
286
#-------------------------------------------------------------------------------
287
# IM_MAD = [
288
#       name       = "kvm",
289
#       executable = "one_im_ssh",
290
#       arguments  = "-r 3 -t 15 kvm-probes" ]
291
#-------------------------------------------------------------------------------
292

    
293
#-------------------------------------------------------------------------------
294
#  XEN UDP-push Information Driver Manager Configuration
295
#    -r number of retries when monitoring a host
296
#    -t number of threads, i.e. number of hosts monitored at the same time
297
#-------------------------------------------------------------------------------
298

    
299
# Driver for Xen 3.x
300
#IM_MAD = [
301
#    name       = "xen",
302
#    executable = "one_im_ssh",
303
#    arguments  = "-r 3 -t 15 xen3" ]
304

    
305
# Driver for Xen 4.x
306
#IM_MAD = [
307
#    name       = "xen",
308
#    executable = "one_im_ssh",
309
#    arguments  = "-r 3 -t 15 xen4" ]
310

    
311
#-------------------------------------------------------------------------------
312
#  XEN SSH-pull Information Driver Manager Configuration
313
#    -r number of retries when monitoring a host
314
#    -t number of threads, i.e. number of hosts monitored at the same time
315
#-------------------------------------------------------------------------------
316

    
317
# Driver for Xen 3.x
318
#IM_MAD = [
319
#    name       = "xen",
320
#    executable = "one_im_ssh",
321
#    arguments  = "-r 0 -t 15 xen3-probes" ]
322

    
323
# Driver for Xen 4.x
324
#IM_MAD = [
325
#    name       = "xen",
326
#    executable = "one_im_ssh",
327
#    arguments  = "-r 0 -t 15 xen4-probes" ]
328

    
329
#-------------------------------------------------------------------------------
330

    
331
#-------------------------------------------------------------------------------
332
#  VMware Information Driver Manager Configuration
333
#    -r number of retries when monitoring a host
334
#    -t number of threads, i.e. number of hosts monitored at the same time
335
#-------------------------------------------------------------------------------
336
#IM_MAD = [
337
#      name       = "vmware",
338
#      executable = "one_im_sh",
339
#      arguments  = "-c -t 15 -r 0 vmware" ]
340
#-------------------------------------------------------------------------------
341

    
342
#-------------------------------------------------------------------------------
343
#  vCenter Information Driver Manager Configuration
344
#    -r number of retries when monitoring a host
345
#    -t number of threads, i.e. number of hosts monitored at the same time
346
#-------------------------------------------------------------------------------
347
#IM_MAD = [
348
#      name       = "vcenter",
349
#      executable = "one_im_sh",
350
#      arguments  = "-c -t 15 -r 0 vcenter" ]
351
#-------------------------------------------------------------------------------
352

    
353
#-------------------------------------------------------------------------------
354
#  EC2 Information Driver Manager Configuration
355
#    -r number of retries when monitoring a host
356
#    -t number of threads, i.e. number of hosts monitored at the same time
357
#-------------------------------------------------------------------------------
358
#IM_MAD = [
359
#      name       = "ec2",
360
#      executable = "one_im_sh",
361
#      arguments  = "-c -t 1 -r 0 ec2" ]
362
#-------------------------------------------------------------------------------
363

    
364
#-------------------------------------------------------------------------------
365
#  SoftLayer Information Driver Manager Configuration
366
#    -r number of retries when monitoring a host
367
#    -t number of threads, i.e. number of hosts monitored at the same time
368
#-------------------------------------------------------------------------------
369
#IM_MAD = [
370
#      name       = "sl",
371
#      executable = "one_im_sh",
372
#      arguments  = "-c -t 1 -r 0 sl" ]
373
#-------------------------------------------------------------------------------
374

    
375
#-------------------------------------------------------------------------------
376
#  Azure Information Driver Manager Configuration
377
#    -r number of retries when monitoring a host
378
#    -t number of threads, i.e. number of hosts monitored at the same time
379
#-------------------------------------------------------------------------------
380
#IM_MAD = [
381
#      name       = "az",
382
#      executable = "one_im_sh",
383
#      arguments  = "-c -t 1 -r 0 az" ]
384
#-------------------------------------------------------------------------------
385

    
386
#-------------------------------------------------------------------------------
387
#  Dummy Information Driver Manager Configuration
388
#-------------------------------------------------------------------------------
389
#IM_MAD = [ name="dummy", executable="one_im_dummy"]
390
#-------------------------------------------------------------------------------
391

    
392
#*******************************************************************************
393
# Virtualization Driver Configuration
394
#*******************************************************************************
395
# You can add more virtualization managers with different configurations but
396
# make sure it has different names.
397
#
398
#   name      : name of the virtual machine manager driver
399
#
400
#   executable: path of the virtualization driver executable, can be an
401
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
402
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
403
#
404
#   arguments : for the driver executable
405
#
406
#   default   : default values and configuration parameters for the driver, can
407
#               be an absolute path or relative to $ONE_LOCATION/etc (or
408
#               /etc/one/ if OpenNebula was installed in /)
409
#
410
#   type      : driver type, supported drivers: xen, kvm, xml
411
#*******************************************************************************
412

    
413
#-------------------------------------------------------------------------------
414
#  KVM Virtualization Driver Manager Configuration
415
#    -r number of retries when monitoring a host
416
#    -t number of threads, i.e. number of hosts monitored at the same time
417
#    -l <actions[=command_name]> actions executed locally, command can be
418
#        overridden for each action.
419
#        Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
420
#        An example: "-l migrate=migrate_local,save"
421
#    -p more than one action per host in parallel, needs support from hypervisor
422
#    -s <shell> to execute remote commands, bash by default
423
#    -d default snapshot strategy. It can be either 'detach' or 'suspend'. It
424
#       defaults to 'suspend'.
425
#    -i try to do live-snapshot if available. Currently supported only for kvm
426
#       with qcow2 as the datastore TM_MAD. If not available, it will fallback
427
#       on the default (-d)
428
#
429
#  Note: You can use type = "qemu" to use qemu emulated guests, e.g. if your
430
#  CPU does not have virtualization extensions or use nested Qemu-KVM hosts
431
#-------------------------------------------------------------------------------
432
VM_MAD = [
433
    name       = "kvm",
434
    executable = "one_vmm_exec",
435
    arguments  = "-t 15 -r 0 -d detach -i kvm",
436
    default    = "vmm_exec/vmm_exec_kvm.conf",
437
    type       = "kvm" ]
438

    
439
#-------------------------------------------------------------------------------
440

    
441
#-------------------------------------------------------------------------------
442
#  XEN Virtualization Driver Manager Configuration
443
#    -r number of retries when monitoring a host
444
#    -t number of threads, i.e. number of hosts monitored at the same time
445
#    -l <actions[=command_name]> actions executed locally, command can be
446
#        overridden for each action.
447
#        Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
448
#        An example: "-l migrate,save"
449
#    -p more than one action per host in parallel, needs support from hypervisor
450
#    -s <shell> to execute commands, bash by default
451
#    -d default snapshot strategy. It can be either 'detach' or 'suspend'. It
452
#       defaults to 'suspend'.
453
#-------------------------------------------------------------------------------
454
#
455
# Driver for Xen 3.x
456
#VM_MAD = [
457
#    name       = "xen",
458
#    executable = "one_vmm_exec",
459
#    arguments  = "-t 15 -r 0 xen3",
460
#    default    = "vmm_exec/vmm_exec_xen3.conf",
461
#    type       = "xen" ]
462
#
463
# Driver for Xen 4.x
464
#VM_MAD = [
465
#    name       = "xen",
466
#    executable = "one_vmm_exec",
467
#    arguments  = "-t 15 -r 0 xen4",
468
#    default    = "vmm_exec/vmm_exec_xen4.conf",
469
#    type       = "xen" ]
470
#
471
#-------------------------------------------------------------------------------
472

    
473
#-------------------------------------------------------------------------------
474
#  VMware Virtualization Driver Manager Configuration
475
#    -r number of retries when monitoring a host
476
#    -t number of threads, i.e. number of hosts monitored at the same time
477
#    -p more than one action per host in parallel, needs support from hypervisor
478
#    -s <shell> to execute commands, bash by default
479
#    -d default snapshot strategy. It can be either 'detach' or 'suspend'. It
480
#       defaults to 'suspend'.
481
#-------------------------------------------------------------------------------
482
#VM_MAD = [
483
#    name       = "vmware",
484
#    executable = "one_vmm_sh",
485
#    arguments  = "-t 15 -r 0 vmware -s sh",
486
#    default    = "vmm_exec/vmm_exec_vmware.conf",
487
#    type       = "vmware" ]
488
#-------------------------------------------------------------------------------
489

    
490
#-------------------------------------------------------------------------------
491
#  vCenter Virtualization Driver Manager Configuration
492
#    -r number of retries when monitoring a host
493
#    -t number of threads, i.e. number of hosts monitored at the same time
494
#    -p more than one action per host in parallel, needs support from hypervisor
495
#    -s <shell> to execute commands, bash by default
496
#    -d default snapshot strategy. It can be either 'detach' or 'suspend'. It
497
#       defaults to 'suspend'.
498
#-------------------------------------------------------------------------------
499
#VM_MAD = [
500
#    name       = "vcenter",
501
#    executable = "one_vmm_sh",
502
#    arguments  = "-p -t 15 -r 0 vcenter -s sh",
503
#    default    = "vmm_exec/vmm_exec_vcenter.conf",
504
#    type       = "xml" ]
505
#-------------------------------------------------------------------------------
506

    
507
#-------------------------------------------------------------------------------
508
#  EC2 Virtualization Driver Manager Configuration
509
#    -r number of retries when monitoring a host
510
#    -t number of threads, i.e. number of actions performed at the same time
511
#-------------------------------------------------------------------------------
512
#VM_MAD = [
513
#    name       = "ec2",
514
#    executable = "one_vmm_sh",
515
#    arguments  = "-t 15 -r 0 ec2",
516
#    type       = "xml" ]
517
#-------------------------------------------------------------------------------
518

    
519
#-------------------------------------------------------------------------------
520
#  SoftLayer Virtualization Driver Manager Configuration
521
#    -r number of retries when monitoring a host
522
#    -t number of threads, i.e. number of actions performed at the same time
523
#-------------------------------------------------------------------------------
524
#VM_MAD = [
525
#    name       = "sl",
526
#    executable = "one_vmm_sh",
527
#    arguments  = "-t 15 -r 0 sl",
528
#    type       = "xml" ]
529
#-------------------------------------------------------------------------------
530

    
531
#  Azure Virtualization Driver Manager Configuration
532
#    -r number of retries when monitoring a host
533
#    -t number of threads, i.e. number of actions performed at the same time
534
#-------------------------------------------------------------------------------
535
#VM_MAD = [
536
#    name       = "az",
537
#    executable = "one_vmm_sh",
538
#    arguments  = "-t 15 -r 0 az",
539
#    type       = "xml" ]
540
#-------------------------------------------------------------------------------
541

    
542
#-------------------------------------------------------------------------------
543
#  Dummy Virtualization Driver Configuration
544
#-------------------------------------------------------------------------------
545
#VM_MAD = [ name="dummy", executable="one_vmm_dummy", type="xml" ]
546
#-------------------------------------------------------------------------------
547

    
548
#*******************************************************************************
549
# Transfer Manager Driver Configuration
550
#*******************************************************************************
551
# You can add more transfer managers with different configurations but make
552
# sure it has different names.
553
#   name      : name for this transfer driver
554
#
555
#   executable: path of the transfer driver executable, can be an
556
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
557
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
558
#   arguments :
559
#       -t: number of threads, i.e. number of transfers made at the same time
560
#       -d: list of transfer drivers separated by commas, if not defined all the
561
#           drivers available will be enabled
562
#*******************************************************************************
563

    
564
TM_MAD = [
565
    executable = "one_tm",
566
    arguments = "-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,vmfs,ceph,dev"
567
]
568

    
569
#*******************************************************************************
570
# Datastore Driver Configuration
571
#*******************************************************************************
572
# Drivers to manage the datastores, specialized for the storage backend
573
#   executable: path of the transfer driver executable, can be an
574
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
575
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
576
#
577
#   arguments : for the driver executable
578
#       -t number of threads, i.e. number of repo operations at the same time
579
#       -d datastore mads separated by commas
580
#*******************************************************************************
581

    
582
DATASTORE_MAD = [
583
    executable = "one_datastore",
584
    arguments  = "-t 15 -d dummy,fs,vmfs,lvm,ceph,dev"
585
]
586

    
587
#*******************************************************************************
588
# Hook Manager Configuration
589
#*******************************************************************************
590
# The Driver (HM_MAD)
591
# -----------------------------------------------
592
#
593
# Used to execute the Hooks:
594
#   executable: path of the hook driver executable, can be an
595
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
596
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
597
#
598
#   arguments : for the driver executable, can be an absolute path or relative
599
#               to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
600
#               in /)
601
#
602
# Virtual Machine Hooks (VM_HOOK)
603
# -------------------------------
604
#
605
# Defined by:
606
#   name      : for the hook, useful to track the hook (OPTIONAL)
607
#   on        : when the hook should be executed,
608
#               - CREATE, when the VM is created (onevm create)
609
#               - PROLOG, when the VM is in the prolog state
610
#               - RUNNING, after the VM is successfully booted
611
#               - UNKNOWN, when the VM is in the unknown state
612
#               - SHUTDOWN, after the VM is shutdown
613
#               - STOP, after the VM is stopped (including VM image transfers)
614
#               - DONE, after the VM is deleted or shutdown
615
#               - CUSTOM, user defined specific STATE and LCM_STATE combination
616
#                 of states to trigger the hook.
617
#   command   : path is relative to $ONE_LOCATION/var/remotes/hook
618
#               (self-contained) or to /var/lib/one/remotes/hook (system-wide).
619
#               That directory will be copied on the hosts under
620
#               SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
621
#               on the target host
622
#   arguments : for the hook. You can access to VM information with $
623
#               - $ID, the ID of the virtual machine
624
#               - $TEMPLATE, the VM template in xml and base64 encoded
625
#               - $PREV_STATE, the previous STATE of the Virtual Machine
626
#               - $PREV_LCM_STATE, the previous LCM STATE of the Virtual Machine
627
#   remote    : values,
628
#               - YES, The hook is executed in the host where the VM was
629
#                 allocated
630
#               - NO, The hook is executed in the OpenNebula server (default)
631
#
632
# Example Virtual Machine Hook
633
# ----------------------------
634
#
635
# VM_HOOK = [
636
#   name      = "advanced_hook",
637
#   on        = "CUSTOM",
638
#   state     = "ACTIVE",
639
#   lcm_state = "BOOT_UNKNOWN",
640
#   command   = "log.rb",
641
#   arguments = "$ID $PREV_STATE $PREV_LCM_STATE" ]
642
#
643
# Host Hooks (HOST_HOOK)
644
# -------------------------------
645
#
646
# Defined by:
647
#   name      : for the hook, useful to track the hook (OPTIONAL)
648
#   on        : when the hook should be executed,
649
#               - CREATE, when the Host is created (onehost create)
650
#               - ERROR, when the Host enters the error state
651
#               - DISABLE, when the Host is disabled
652
#   command   : path is relative to $ONE_LOCATION/var/remotes/hook
653
#               (self-contained) or to /var/lib/one/remotes/hook (system-wide).
654
#               That directory will be copied on the hosts under
655
#               SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
656
#               on the target host.
657
#   arguments : for the hook. You can use the following Host information:
658
#               - $ID, the ID of the host
659
#               - $TEMPLATE, the Host template in xml and base64 encoded
660
#   remote    : values,
661
#               - YES, The hook is executed in the host
662
#               - NO, The hook is executed in the OpenNebula server (default)
663
#
664
# Virtual Network (VNET_HOOK)
665
# User (USER_HOOK)
666
# Group (GROUP_HOOK)
667
# Image (IMAGE_HOOK)
668
# -------------------------------
669
#
670
# These hooks are executed when one of the referring entities are created or
671
# removed. Each hook is defined by:
672
#   name      : for the hook, useful to track the hook (OPTIONAL)
673
#   on        : when the hook should be executed,
674
#               - CREATE, when the vnet is created
675
#               - REMOVE, when the vnet is removed
676
#   command   : path is relative to $ONE_LOCATION/var/remotes/hook
677
#               (self-contained) or to /var/lib/one/remotes/hook (system-wide).
678
#               That directory will be copied on the hosts under
679
#               SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
680
#               on the target host.
681
#   arguments : for the hook. You can use the following Host information:
682
#               - $ID, the ID of the host
683
#               - $TEMPLATE, the vnet template in xml and base64 encoded
684
#
685
# Please note: In a Federation, User and Group hooks can only be defined in
686
# the master OpenNebula.
687
#-------------------------------------------------------------------------------
688
HM_MAD = [
689
    executable = "one_hm" ]
690

    
691
#*******************************************************************************
692
# Fault Tolerance Hooks
693
#*******************************************************************************
694
# This hook is used to perform recovery actions when a host fails.
695
# Script to implement host failure tolerance
696
#   It can be set to
697
#           -m migrate VMs to another host. Only for images in shared storage
698
#           -r recreate VMs running in the host. State will be lost.
699
#           -d delete VMs running in the host
700
#   Additional flags
701
#           -f force resubmission of suspended VMs
702
#           -p <n> avoid resubmission if host comes
703
#                  back after n monitoring cycles
704
#*******************************************************************************
705
#
706
#HOST_HOOK = [
707
#    name      = "error",
708
#    on        = "ERROR",
709
#    command   = "ft/host_error.rb",
710
#    arguments = "$ID -m -p 5",
711
#    remote    = "no" ]
712
#-------------------------------------------------------------------------------
713

    
714
#*******************************************************************************
715
# Auth Manager Configuration
716
#*******************************************************************************
717
# AUTH_MAD: The Driver that will be used to authenticate (authn) and
718
# authorize (authz) OpenNebula requests. If defined OpenNebula will use the
719
# built-in auth policies.
720
#
721
#   executable: path of the auth driver executable, can be an
722
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
723
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
724
#
725
#   authn     : list of authentication modules separated by commas, if not
726
#               defined all the modules available will be enabled
727
#   authz     : list of authentication modules separated by commas
728
#
729
# DEFAULT_AUTH: The default authentication driver to use when OpenNebula does
730
# not know the user and needs to authenticate it externally.  If you want to
731
# use "default" (not recommended, but supported for backwards compatibility
732
# reasons) make sure you create a symlink pointing to the actual authentication
733
# driver in /var/lib/one/remotes/auth, and add "default" to the 'auth'
734
# parameter in the 'AUTH_MAD' section.
735
#
736
# SESSION_EXPIRATION_TIME: Time in seconds to keep an authenticated token as
737
# valid. During this time, the driver is not used. Use 0 to disable session
738
# caching
739
#
740
# ENABLE_OTHER_PERMISSIONS: Whether or not users can set the permissions for
741
# 'other', so publishing or sharing resources with others. Users in the oneadmin
742
# group will still be able to change these permissions. Values: YES or NO.
743
#
744
# DEFAULT_UMASK: Similar to Unix umask, sets the default resources permissions.
745
# Its format must be 3 octal digits. For example a umask of 137 will set
746
# the new object's permissions to 640 "um- u-- ---"
747
#*******************************************************************************
748

    
749
AUTH_MAD = [
750
    executable = "one_auth_mad",
751
    authn = "ssh,x509,ldap,server_cipher,server_x509"
752
]
753

    
754
#DEFAULT_AUTH = "default"
755

    
756
SESSION_EXPIRATION_TIME = 900
757

    
758
#ENABLE_OTHER_PERMISSIONS = "YES"
759

    
760
DEFAULT_UMASK = 177
761

    
762
#*******************************************************************************
763
# OneGate
764
#   ONEGATE_ENDPOINT: The URL for the onegate server (the Gate to OpenNebula for
765
#   VMs). The onegate server is started using a separate command. The endpoint
766
#   MUST be consistent with the values in onegate-server.conf
767
#*******************************************************************************
768

    
769
#ONEGATE_ENDPOINT = "http://frontend:5030"
770

    
771
#*******************************************************************************
772
# Restricted Attributes Configuration
773
#*******************************************************************************
774
# The following attributes are restricted to users outside the oneadmin group
775
#*******************************************************************************
776

    
777
VM_RESTRICTED_ATTR = "CONTEXT/FILES"
778
VM_RESTRICTED_ATTR = "NIC/MAC"
779
VM_RESTRICTED_ATTR = "NIC/VLAN_ID"
780
VM_RESTRICTED_ATTR = "NIC/BRIDGE"
781
VM_RESTRICTED_ATTR = "NIC_DEFAULT/MAC"
782
VM_RESTRICTED_ATTR = "NIC_DEFAULT/VLAN_ID"
783
VM_RESTRICTED_ATTR = "NIC_DEFAULT/BRIDGE"
784
VM_RESTRICTED_ATTR = "DISK/TOTAL_BYTES_SEC"
785
VM_RESTRICTED_ATTR = "DISK/READ_BYTES_SEC"
786
VM_RESTRICTED_ATTR = "DISK/WRITE_BYTES_SEC"
787
VM_RESTRICTED_ATTR = "DISK/TOTAL_IOPS_SEC"
788
VM_RESTRICTED_ATTR = "DISK/READ_IOPS_SEC"
789
VM_RESTRICTED_ATTR = "DISK/WRITE_IOPS_SEC"
790
VM_RESTRICTED_ATTR = "CPU_COST"
791
VM_RESTRICTED_ATTR = "MEMORY_COST"
792
VM_RESTRICTED_ATTR = "DISK_COST"
793

    
794
#VM_RESTRICTED_ATTR = "RANK"
795
#VM_RESTRICTED_ATTR = "SCHED_RANK"
796
#VM_RESTRICTED_ATTR = "REQUIREMENTS"
797
#VM_RESTRICTED_ATTR = "SCHED_REQUIREMENTS"
798

    
799
IMAGE_RESTRICTED_ATTR = "SOURCE"
800

    
801
#*******************************************************************************
802
# The following restricted attributes only apply to VNets that are a reservation.
803
# Normal VNets do not have restricted attributes.
804
#*******************************************************************************
805

    
806
VNET_RESTRICTED_ATTR = "PHYDEV"
807
VNET_RESTRICTED_ATTR = "VLAN_ID"
808
VNET_RESTRICTED_ATTR = "VLAN"
809
VNET_RESTRICTED_ATTR = "BRIDGE"
810

    
811
VNET_RESTRICTED_ATTR = "AR/PHYDEV"
812
VNET_RESTRICTED_ATTR = "AR/VLAN_ID"
813
VNET_RESTRICTED_ATTR = "AR/VLAN"
814
VNET_RESTRICTED_ATTR = "AR/BRIDGE"
815

    
816
#*******************************************************************************
817
# Inherited Attributes Configuration
818
#*******************************************************************************
819
# The following attributes will be copied from the resource template to the
820
# instantiated VMs. More than one attribute can be defined.
821
#
822
# INHERIT_IMAGE_ATTR: Attribute to be copied from the Image template
823
# to each VM/DISK.
824
#
825
# INHERIT_DATASTORE_ATTR: Attribute to be copied from the Datastore template
826
# to each VM/DISK.
827
#
828
# INHERIT_VNET_ATTR: Attribute to be copied from the Network template
829
# to each VM/NIC.
830
#*******************************************************************************
831

    
832
#INHERIT_IMAGE_ATTR     = "EXAMPLE"
833
#INHERIT_IMAGE_ATTR     = "SECOND_EXAMPLE"
834
#INHERIT_DATASTORE_ATTR = "COLOR"
835
#INHERIT_VNET_ATTR      = "BANDWIDTH_THROTTLING"
836

    
837
INHERIT_DATASTORE_ATTR  = "CEPH_HOST"
838
INHERIT_DATASTORE_ATTR  = "CEPH_SECRET"
839
INHERIT_DATASTORE_ATTR  = "CEPH_USER"
840

    
841
INHERIT_DATASTORE_ATTR  = "GLUSTER_HOST"
842
INHERIT_DATASTORE_ATTR  = "GLUSTER_VOLUME"
843

    
844
INHERIT_VNET_ATTR       = "VLAN_TAGGED_ID"
845
INHERIT_VNET_ATTR       = "BRIDGE_OVS"
846
INHERIT_VNET_ATTR       = "FILTER_IP_SPOOFING"
847
INHERIT_VNET_ATTR       = "FILTER_MAC_SPOOFING"
848
INHERIT_VNET_ATTR       = "MTU"
849

    
850
#*******************************************************************************
851
# Transfer Manager Driver Behavior Configuration
852
#*******************************************************************************
853
# The  configuration for each driver is defined in TM_MAD_CONF. These
854
# values are used when creating a new datastore and should not be modified
855
# since they define the datastore behavior.
856
#   name      : name of the transfer driver, listed in the -d option of the
857
#               TM_MAD section
858
#   ln_target : determines how the persistent images will be cloned when
859
#               a new VM is instantiated.
860
#       NONE: The image will be linked and no more storage capacity will be used
861
#       SELF: The image will be cloned in the Images datastore
862
#       SYSTEM: The image will be cloned in the System datastore
863
#   clone_target : determines how the non persistent images will be
864
#                  cloned when a new VM is instantiated.
865
#       NONE: The image will be linked and no more storage capacity will be used
866
#       SELF: The image will be cloned in the Images datastore
867
#       SYSTEM: The image will be cloned in the System datastore
868
#   shared : determines if the storage holding the system datastore is shared
869
#            among the different hosts or not. Valid values: "yes" or "no"
870
#*******************************************************************************
871

    
872
TM_MAD_CONF = [
873
    name = "dummy", ln_target = "NONE", clone_target = "SYSTEM", shared = "yes"
874
]
875

    
876
TM_MAD_CONF = [
877
    name = "lvm", ln_target = "NONE", clone_target = "SELF", shared = "yes"
878
]
879

    
880
TM_MAD_CONF = [
881
    name = "shared", ln_target = "NONE", clone_target = "SYSTEM", shared = "yes"
882
]
883

    
884
TM_MAD_CONF = [
885
    name = "fs_lvm", ln_target = "SYSTEM", clone_target = "SYSTEM", shared="yes"
886
]
887

    
888
TM_MAD_CONF = [
889
    name = "qcow2", ln_target = "NONE", clone_target = "SYSTEM", shared = "yes"
890
]
891

    
892
TM_MAD_CONF = [
893
    name = "ssh", ln_target = "SYSTEM", clone_target = "SYSTEM", shared = "no"
894
]
895

    
896
TM_MAD_CONF = [
897
    name = "vmfs", ln_target = "NONE", clone_target= "SYSTEM", shared = "yes"
898
]
899

    
900
TM_MAD_CONF = [
901
    name = "ceph", ln_target = "NONE", clone_target = "SELF", shared = "yes"
902
]
903

    
904
TM_MAD_CONF = [
905
    name = "dev", ln_target = "NONE", clone_target = "NONE", shared = "yes"
906
]
907