Guest User

Untitled

a guest
Nov 4th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.89 KB | None | 0 0
  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. #
  32. # DB: Configuration attributes for the database backend
  33. # backend : can be sqlite or mysql (default is sqlite)
  34. # server : (mysql) host name or an IP address for the MySQL server
  35. # port : (mysql) port for the connection to the server.
  36. # If set to 0, the default port is used.
  37. # user : (mysql) user's MySQL login ID
  38. # passwd : (mysql) the password for user
  39. # db_name : (mysql) the database name
  40. #
  41. # VNC_BASE_PORT: VNC ports for VMs can be automatically set to VNC_BASE_PORT +
  42. # VMID
  43. #
  44. # LOG: Configuration for the logging system
  45. # system: defines the logging system:
  46. # file to log in the oned.log file
  47. # syslog to use the syslog facilities
  48. # debug_level: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
  49. #
  50. # VM_SUBMIT_ON_HOLD: Forces VMs to be created on hold state instead of pending.
  51. # Values: YES or NO.
  52. #*******************************************************************************
  53.  
  54. LOG = [
  55. system = "file",
  56. debug_level = 3
  57. ]
  58.  
  59. #MANAGER_TIMER = 30
  60.  
  61. MONITORING_INTERVAL = 60
  62. MONITORING_THREADS = 50
  63.  
  64. #HOST_PER_INTERVAL = 15
  65. #HOST_MONITORING_EXPIRATION_TIME = 43200
  66.  
  67. #VM_INDIVIDUAL_MONITORING = "no"
  68. #VM_PER_INTERVAL = 5
  69. #VM_MONITORING_EXPIRATION_TIME = 14400
  70.  
  71. SCRIPTS_REMOTE_DIR=/var/tmp/one
  72.  
  73. PORT = 2633
  74.  
  75. DB = [ backend = "sqlite" ]
  76.  
  77. # Sample configuration for MySQL
  78. # DB = [ backend = "mysql",
  79. # server = "localhost",
  80. # port = 0,
  81. # user = "oneadmin",
  82. # passwd = "oneadmin",
  83. # db_name = "opennebula" ]
  84.  
  85. VNC_BASE_PORT = 5900
  86.  
  87. #VM_SUBMIT_ON_HOLD = "NO"
  88.  
  89. #*******************************************************************************
  90. # Federation configuration attributes
  91. #-------------------------------------------------------------------------------
  92. # Control the federation capabilities of oned. Operation in a federated setup
  93. # requires a special DB configuration.
  94. #
  95. # FEDERATION: Federation attributes
  96. # MODE: Operation mode of this oned.
  97. # STANDALONE no federated.This is the default operational mode
  98. # MASTER this oned is the master zone of the federation
  99. # SLAVE this oned is a slave zone
  100. # ZONE_ID: The zone ID as returned by onezone command
  101. # MASTER_ONED: The xml-rpc endpoint of the master oned, e.g.
  102. # http://master.one.org:2633/RPC2
  103. #*******************************************************************************
  104.  
  105. FEDERATION = [
  106. MODE = "STANDALONE",
  107. ZONE_ID = 0,
  108. MASTER_ONED = ""
  109. ]
  110.  
  111. #*******************************************************************************
  112. # Default showback cost
  113. #-------------------------------------------------------------------------------
  114. # The following attributes define the default cost for Virtual Machines that
  115. # don't have a CPU or MEMORY cost. This is used by the oneshowback calculate
  116. # method.
  117. #*******************************************************************************
  118.  
  119. DEFAULT_COST = [
  120. CPU_COST = 0,
  121. MEMORY_COST = 0
  122. ]
  123.  
  124. #*******************************************************************************
  125. # XML-RPC server configuration
  126. #-------------------------------------------------------------------------------
  127. # These are configuration parameters for oned's xmlrpc-c server
  128. #
  129. # MAX_CONN: Maximum number of simultaneous TCP connections the server
  130. # will maintain
  131. #
  132. # MAX_CONN_BACKLOG: Maximum number of TCP connections the operating system
  133. # will accept on the server's behalf without the server accepting them from
  134. # the operating system
  135. #
  136. # KEEPALIVE_TIMEOUT: Maximum time in seconds that the server allows a
  137. # connection to be open between RPCs
  138. #
  139. # KEEPALIVE_MAX_CONN: Maximum number of RPCs that the server will execute on
  140. # a single connection
  141. #
  142. # TIMEOUT: Maximum time in seconds the server will wait for the client to
  143. # do anything while processing an RPC
  144. #
  145. # RPC_LOG: Create a separated log file for xml-rpc requests, in
  146. # "/var/log/one/one_xmlrpc.log".
  147. #
  148. # MESSAGE_SIZE: Buffer size in bytes for XML-RPC responses.
  149. #
  150. # LOG_CALL_FORMAT: Format string to log XML-RPC calls. Interpreted strings:
  151. # %i -- request id
  152. # %m -- method name
  153. # %u -- user id
  154. # %U -- user name
  155. # %l -- param list
  156. # %p -- user password
  157. # %g -- group id
  158. # %G -- group name
  159. # %a -- auth token
  160. # %% -- %
  161. #*******************************************************************************
  162.  
  163. #MAX_CONN = 15
  164. #MAX_CONN_BACKLOG = 15
  165. #KEEPALIVE_TIMEOUT = 15
  166. #KEEPALIVE_MAX_CONN = 30
  167. #TIMEOUT = 15
  168. #RPC_LOG = NO
  169. #MESSAGE_SIZE = 1073741824
  170. #LOG_CALL_FORMAT = "Req:%i UID:%u %m invoked %l"
  171.  
  172. #*******************************************************************************
  173. # Physical Networks configuration
  174. #*******************************************************************************
  175. # NETWORK_SIZE: Here you can define the default size for the virtual networks
  176. #
  177. # MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
  178. # addresses is defined here (this can be overrided by the Virtual Network
  179. # template)
  180. #*******************************************************************************
  181.  
  182. NETWORK_SIZE = 254
  183.  
  184. MAC_PREFIX = "02:00"
  185.  
  186. #*******************************************************************************
  187. # DataStore Configuration
  188. #*******************************************************************************
  189. # DATASTORE_LOCATION: *Default* Path for Datastores in the hosts. It IS the
  190. # same for all the hosts in the cluster. DATASTORE_LOCATION IS ONLY FOR THE
  191. # HOSTS AND *NOT* THE FRONT-END. It defaults to /var/lib/one/datastores (or
  192. # $ONE_LOCATION/var/datastores in self-contained mode)
  193. #
  194. # You can define a different DATASTORE_LOCATION in each cluster by updating
  195. # its properties with onecluster update.
  196. #
  197. # DATASTORE_BASE_PATH: This is the base path for the SOURCE attribute of
  198. # the images registered in a Datastore. This is a default value, that can be
  199. # changed when the datastore is created.
  200. #
  201. # DATASTORE_CAPACITY_CHECK: Checks that there is enough capacity before
  202. # creating a new imag. Defaults to Yes
  203. #
  204. # DEFAULT_IMAGE_TYPE: This can take values
  205. # OS Image file holding an operating system
  206. # CDROM Image file holding a CDROM
  207. # DATABLOCK Image file holding a datablock,
  208. # always created as an empty block
  209. #
  210. # DEFAULT_DEVICE_PREFIX: This can be set to
  211. # hd IDE prefix
  212. # sd SCSI
  213. # xvd XEN Virtual Disk
  214. # vd KVM virtual disk
  215. #
  216. # DEFAULT_CDROM_DEVICE_PREFIX: Same as above but for CDROM devices.
  217. #*******************************************************************************
  218.  
  219. #DATASTORE_LOCATION = /var/lib/one/datastores
  220.  
  221. #DATASTORE_BASE_PATH = /var/lib/one/datastores
  222.  
  223. DATASTORE_CAPACITY_CHECK = "yes"
  224.  
  225. DEFAULT_IMAGE_TYPE = "OS"
  226. DEFAULT_DEVICE_PREFIX = "hd"
  227.  
  228. DEFAULT_CDROM_DEVICE_PREFIX = "hd"
  229.  
  230. #*******************************************************************************
  231. # Information Driver Configuration
  232. #*******************************************************************************
  233. # You can add more information managers with different configurations but make
  234. # sure it has different names.
  235. #
  236. # name : name for this information manager
  237. #
  238. # executable: path of the information driver executable, can be an
  239. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  240. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  241. #
  242. # arguments : for the driver executable, usually a probe configuration file,
  243. # can be an absolute path or relative to $ONE_LOCATION/etc (or
  244. # /etc/one/ if OpenNebula was installed in /)
  245. #*******************************************************************************
  246. #
  247. #----------------------------------------------------------------------
  248. # LXC Information Driver Manager Configuration
  249. # -r number of retries when monitoring a host
  250. # -t number of threads, i.e. number of hosts monitored at the same time
  251. #----------------------------------------------------------------------
  252. IM_MAD = [
  253. name = "lxc",
  254. executable = "one_im_ssh",
  255. arguments = "-c -t 1 -r 0 lxc"]
  256. #-------------------------------------------------------------------------------
  257.  
  258. #-------------------------------------------------------------------------------
  259. # Information Collector for KVM and Xen IM's.
  260. #-------------------------------------------------------------------------------
  261. # This driver CANNOT BE ASSIGNED TO A HOST, and needs to be used with KVM or
  262. # Xen drivers
  263. # -h prints this help.
  264. # -a Address to bind the collectd sockect (defults 0.0.0.0)
  265. # -p UDP port to listen for monitor information (default 4124)
  266. # -f Interval in seconds to flush collected information (default 5)
  267. # -t Number of threads for the server (defult 50)
  268. # -i Time in seconds of the monitorization push cycle. This parameter must
  269. # be smaller than MONITORING_INTERVAL, otherwise push monitorization will
  270. # not be effective.
  271. #-------------------------------------------------------------------------------
  272. IM_MAD = [
  273. name = "collectd",
  274. executable = "collectd",
  275. arguments = "-p 4124 -f 5 -t 50 -i 20" ]
  276. #-------------------------------------------------------------------------------
  277.  
  278. #-------------------------------------------------------------------------------
  279. # KVM UDP-push Information Driver Manager Configuration
  280. # -r number of retries when monitoring a host
  281. # -t number of threads, i.e. number of hosts monitored at the same time
  282. #-------------------------------------------------------------------------------
  283. IM_MAD = [
  284. name = "kvm",
  285. executable = "one_im_ssh",
  286. arguments = "-r 3 -t 15 kvm" ]
  287. #-------------------------------------------------------------------------------
  288.  
  289. #-------------------------------------------------------------------------------
  290. # KVM SSH-pull Information Driver Manager Configuration
  291. # -r number of retries when monitoring a host
  292. # -t number of threads, i.e. number of hosts monitored at the same time
  293. #-------------------------------------------------------------------------------
  294. # IM_MAD = [
  295. # name = "kvm",
  296. # executable = "one_im_ssh",
  297. # arguments = "-r 3 -t 15 kvm-probes" ]
  298. #-------------------------------------------------------------------------------
  299.  
  300. #-------------------------------------------------------------------------------
  301. # XEN UDP-push Information Driver Manager Configuration
  302. # -r number of retries when monitoring a host
  303. # -t number of threads, i.e. number of hosts monitored at the same time
  304. #-------------------------------------------------------------------------------
  305.  
  306. # Driver for Xen 3.x
  307. #IM_MAD = [
  308. # name = "xen",
  309. # executable = "one_im_ssh",
  310. # arguments = "-r 3 -t 15 xen3" ]
  311.  
  312. # Driver for Xen 4.x
  313. IM_MAD = [
  314. name = "xen",
  315. executable = "one_im_ssh",
  316. arguments = "-r 3 -t 15 xen4" ]
  317.  
  318. #-------------------------------------------------------------------------------
  319. # XEN SSH-pull Information Driver Manager Configuration
  320. # -r number of retries when monitoring a host
  321. # -t number of threads, i.e. number of hosts monitored at the same time
  322. #-------------------------------------------------------------------------------
  323.  
  324. # Driver for Xen 3.x
  325. #IM_MAD = [
  326. # name = "xen",
  327. # executable = "one_im_ssh",
  328. # arguments = "-r 0 -t 15 xen3-probes" ]
  329.  
  330. # Driver for Xen 4.x
  331. #IM_MAD = [
  332. # name = "xen",
  333. # executable = "one_im_ssh",
  334. # arguments = "-r 0 -t 15 xen4-probes" ]
  335.  
  336. #-------------------------------------------------------------------------------
  337.  
  338. #-------------------------------------------------------------------------------
  339. # VMware Information Driver Manager Configuration
  340. # -r number of retries when monitoring a host
  341. # -t number of threads, i.e. number of hosts monitored at the same time
  342. #-------------------------------------------------------------------------------
  343. #IM_MAD = [
  344. # name = "vmware",
  345. # executable = "one_im_sh",
  346. # arguments = "-c -t 15 -r 0 vmware" ]
  347. #-------------------------------------------------------------------------------
  348.  
  349. #-------------------------------------------------------------------------------
  350. # vCenter Information Driver Manager Configuration
  351. # -r number of retries when monitoring a host
  352. # -t number of threads, i.e. number of hosts monitored at the same time
  353. #-------------------------------------------------------------------------------
  354. #IM_MAD = [
  355. # name = "vcenter",
  356. # executable = "one_im_sh",
  357. # arguments = "-c -t 15 -r 0 vcenter" ]
  358. #-------------------------------------------------------------------------------
  359.  
  360. #-------------------------------------------------------------------------------
  361. # EC2 Information Driver Manager Configuration
  362. # -r number of retries when monitoring a host
  363. # -t number of threads, i.e. number of hosts monitored at the same time
  364. #-------------------------------------------------------------------------------
  365. #IM_MAD = [
  366. # name = "ec2",
  367. # executable = "one_im_sh",
  368. # arguments = "-c -t 1 -r 0 ec2" ]
  369. #-------------------------------------------------------------------------------
  370.  
  371. #-------------------------------------------------------------------------------
  372. # SoftLayer Information Driver Manager Configuration
  373. # -r number of retries when monitoring a host
  374. # -t number of threads, i.e. number of hosts monitored at the same time
  375. #-------------------------------------------------------------------------------
  376. #IM_MAD = [
  377. # name = "sl",
  378. # executable = "one_im_sh",
  379. # arguments = "-c -t 1 -r 0 sl" ]
  380. #-------------------------------------------------------------------------------
  381.  
  382. #-------------------------------------------------------------------------------
  383. # Azure Information Driver Manager Configuration
  384. # -r number of retries when monitoring a host
  385. # -t number of threads, i.e. number of hosts monitored at the same time
  386. #-------------------------------------------------------------------------------
  387. #IM_MAD = [
  388. # name = "az",
  389. # executable = "one_im_sh",
  390. # arguments = "-c -t 1 -r 0 az" ]
  391. #-------------------------------------------------------------------------------
  392.  
  393. #-------------------------------------------------------------------------------
  394. # Dummy Information Driver Manager Configuration
  395. #-------------------------------------------------------------------------------
  396. #IM_MAD = [ name="dummy", executable="one_im_dummy"]
  397. #-------------------------------------------------------------------------------
  398.  
  399. #*******************************************************************************
  400. # Virtualization Driver Configuration
  401. #*******************************************************************************
  402. # You can add more virtualization managers with different configurations but
  403. # make sure it has different names.
  404. #
  405. # name : name of the virtual machine manager driver
  406. #
  407. # executable: path of the virtualization driver executable, can be an
  408. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  409. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  410. #
  411. # arguments : for the driver executable
  412. #
  413. # default : default values and configuration parameters for the driver, can
  414. # be an absolute path or relative to $ONE_LOCATION/etc (or
  415. # /etc/one/ if OpenNebula was installed in /)
  416. #
  417. # type : driver type, supported drivers: xen, kvm, xml
  418. #*******************************************************************************
  419.  
  420. #-------------------------------------------------------------------------------
  421. # KVM Virtualization Driver Manager Configuration
  422. # -r number of retries when monitoring a host
  423. # -t number of threads, i.e. number of hosts monitored at the same time
  424. # -l <actions[=command_name]> actions executed locally, command can be
  425. # overridden for each action.
  426. # Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
  427. # An example: "-l migrate=migrate_local,save"
  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 kvm",
  436. default = "vmm_exec/vmm_exec_kvm.conf",
  437. type = "kvm" ]
  438. #-------------------------------------------------------------------------------
  439. VM_MAD = [
  440. name = "qemu",
  441. executable = "one_vmm_exec",
  442. arguments = "-t 15 -r 0 kvm",
  443. default = "vmm_exec/vmm_exec_kvm.conf",
  444. type = "qemu" ]
  445. #-------------------------------------------------------------------------------
  446. # LXC Virtualization Driver Manager Configuration
  447. # -r number of retries when monitoring a host
  448. # -t number of threads, i.e. number of ations performed at the same time
  449. #--------------------------------------------------------------
  450. VM_MAD = [
  451. name = "lxc",
  452. executable = "one_vmm_exec",
  453. arguments = "-t 15 -r 0 lxc",
  454. type = "xml" ]
  455. #--------------------------------------------------------------
  456.  
  457. #-------------------------------------------------------------------------------
  458. # XEN Virtualization Driver Manager Configuration
  459. # -r number of retries when monitoring a host
  460. # -t number of threads, i.e. number of hosts monitored at the same time
  461. # -l <actions[=command_name]> actions executed locally, command can be
  462. # overridden for each action.
  463. # Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
  464. # An example: "-l migrate,save"
  465. #-------------------------------------------------------------------------------
  466.  
  467. # Driver for Xen 3.x
  468. #VM_MAD = [
  469. # name = "xen",
  470. # executable = "one_vmm_exec",
  471. # arguments = "-t 15 -r 0 xen3",
  472. # default = "vmm_exec/vmm_exec_xen3.conf",
  473. # type = "xen" ]
  474.  
  475. # Driver for Xen 4.x
  476. VM_MAD = [
  477. name = "xen",
  478. executable = "one_vmm_exec",
  479. arguments = "-t 15 -r 0 xen4",
  480. default = "vmm_exec/vmm_exec_xen4.conf",
  481. type = "xen" ]
  482.  
  483. #-------------------------------------------------------------------------------
  484.  
  485. #-------------------------------------------------------------------------------
  486. # VMware Virtualization Driver Manager Configuration
  487. # -r number of retries when monitoring a host
  488. # -t number of threads, i.e. number of hosts monitored at the same time
  489. #-------------------------------------------------------------------------------
  490. #VM_MAD = [
  491. # name = "vmware",
  492. # executable = "one_vmm_sh",
  493. # arguments = "-t 15 -r 0 vmware -s sh",
  494. # default = "vmm_exec/vmm_exec_vmware.conf",
  495. # type = "vmware" ]
  496. #-------------------------------------------------------------------------------
  497.  
  498.  
  499. #-------------------------------------------------------------------------------
  500. # vCenter Virtualization Driver Manager Configuration
  501. # -r number of retries when monitoring a host
  502. # -t number of threads, i.e. number of hosts monitored at the same time
  503. #-------------------------------------------------------------------------------
  504. #VM_MAD = [
  505. # name = "vcenter",
  506. # executable = "one_vmm_sh",
  507. # arguments = "-p -t 15 -r 0 vcenter -s sh",
  508. # default = "vmm_exec/vmm_exec_vcenter.conf",
  509. # type = "xml" ]
  510. #-------------------------------------------------------------------------------
  511.  
  512. #-------------------------------------------------------------------------------
  513. # EC2 Virtualization Driver Manager Configuration
  514. # -r number of retries when monitoring a host
  515. # -t number of threads, i.e. number of actions performed at the same time
  516. #-------------------------------------------------------------------------------
  517. #VM_MAD = [
  518. # name = "ec2",
  519. # executable = "one_vmm_sh",
  520. # arguments = "-t 15 -r 0 ec2",
  521. # type = "xml" ]
  522. #-------------------------------------------------------------------------------
  523.  
  524. #-------------------------------------------------------------------------------
  525. # SoftLayer Virtualization Driver Manager Configuration
  526. # -r number of retries when monitoring a host
  527. # -t number of threads, i.e. number of actions performed at the same time
  528. #-------------------------------------------------------------------------------
  529. #VM_MAD = [
  530. # name = "sl",
  531. # executable = "one_vmm_sh",
  532. # arguments = "-t 15 -r 0 sl",
  533. # type = "xml" ]
  534. #-------------------------------------------------------------------------------
  535.  
  536. # Azure Virtualization Driver Manager Configuration
  537. # -r number of retries when monitoring a host
  538. # -t number of threads, i.e. number of actions performed at the same time
  539. #-------------------------------------------------------------------------------
  540. #VM_MAD = [
  541. # name = "az",
  542. # executable = "one_vmm_sh",
  543. # arguments = "-t 15 -r 0 az",
  544. # type = "xml" ]
  545. #-------------------------------------------------------------------------------
  546.  
  547. #-------------------------------------------------------------------------------
  548. # Dummy Virtualization Driver Configuration
  549. #-------------------------------------------------------------------------------
  550. #VM_MAD = [ name="dummy", executable="one_vmm_dummy", type="xml" ]
  551. #-------------------------------------------------------------------------------
  552.  
  553. #*******************************************************************************
  554. # Transfer Manager Driver Configuration
  555. #*******************************************************************************
  556. # You can add more transfer managers with different configurations but make
  557. # sure it has different names.
  558. # name : name for this transfer driver
  559. #
  560. # executable: path of the transfer driver executable, can be an
  561. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  562. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  563. # arguments :
  564. # -t: number of threads, i.e. number of transfers made at the same time
  565. # -d: list of transfer drivers separated by commas, if not defined all the
  566. # drivers available will be enabled
  567. #*******************************************************************************
  568.  
  569. TM_MAD = [
  570. executable = "one_tm",
  571. arguments = "-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,vmfs,ceph,dev"
  572. ]
  573.  
  574. #*******************************************************************************
  575. # Datastore Driver Configuration
  576. #*******************************************************************************
  577. # Drivers to manage the datastores, specialized for the storage backend
  578. # executable: path of the transfer driver executable, can be an
  579. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  580. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  581. #
  582. # arguments : for the driver executable
  583. # -t number of threads, i.e. number of repo operations at the same time
  584. # -d datastore mads separated by commas
  585. #*******************************************************************************
  586.  
  587. DATASTORE_MAD = [
  588. executable = "one_datastore",
  589. arguments = "-t 15 -d dummy,fs,vmfs,lvm,ceph,dev"
  590. ]
  591.  
  592. #*******************************************************************************
  593. # Hook Manager Configuration
  594. #*******************************************************************************
  595. # The Driver (HM_MAD)
  596. # -----------------------------------------------
  597. #
  598. # Used to execute the Hooks:
  599. # executable: path of the hook driver executable, can be an
  600. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  601. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  602. #
  603. # arguments : for the driver executable, can be an absolute path or relative
  604. # to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
  605. # in /)
  606. #
  607. # Virtual Machine Hooks (VM_HOOK)
  608. # -------------------------------
  609. #
  610. # Defined by:
  611. # name : for the hook, useful to track the hook (OPTIONAL)
  612. # on : when the hook should be executed,
  613. # - CREATE, when the VM is created (onevm create)
  614. # - PROLOG, when the VM is in the prolog state
  615. # - RUNNING, after the VM is successfully booted
  616. # - UNKNOWN, when the VM is in the unknown state
  617. # - SHUTDOWN, after the VM is shutdown
  618. # - STOP, after the VM is stopped (including VM image transfers)
  619. # - DONE, after the VM is deleted or shutdown
  620. # - FAILED, when the VM enters the failed state
  621. # - CUSTOM, user defined specific STATE and LCM_STATE combination
  622. # of states to trigger the hook.
  623. # command : path is relative to $ONE_LOCATION/var/remotes/hook
  624. # (self-contained) or to /var/lib/one/remotes/hook (system-wide).
  625. # That directory will be copied on the hosts under
  626. # SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
  627. # on the target host
  628. # arguments : for the hook. You can access to VM information with $
  629. # - $ID, the ID of the virtual machine
  630. # - $TEMPLATE, the VM template in xml and base64 encoded
  631. # - $PREV_STATE, the previous STATE of the Virtual Machine
  632. # - $PREV_LCM_STATE, the previous LCM STATE of the Virtual Machine
  633. # remote : values,
  634. # - YES, The hook is executed in the host where the VM was
  635. # allocated
  636. # - NO, The hook is executed in the OpenNebula server (default)
  637. #
  638. # Example Virtual Machine Hook
  639. # ----------------------------
  640. #
  641. # VM_HOOK = [
  642. # name = "advanced_hook",
  643. # on = "CUSTOM",
  644. # state = "ACTIVE",
  645. # lcm_state = "BOOT_UNKNOWN",
  646. # command = "log.rb",
  647. # arguments = "$ID $PREV_STATE $PREV_LCM_STATE" ]
  648. #
  649. # Host Hooks (HOST_HOOK)
  650. # -------------------------------
  651. #
  652. # Defined by:
  653. # name : for the hook, useful to track the hook (OPTIONAL)
  654. # on : when the hook should be executed,
  655. # - CREATE, when the Host is created (onehost create)
  656. # - ERROR, when the Host enters the error state
  657. # - DISABLE, when the Host is disabled
  658. # command : path is relative to $ONE_LOCATION/var/remotes/hook
  659. # (self-contained) or to /var/lib/one/remotes/hook (system-wide).
  660. # That directory will be copied on the hosts under
  661. # SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
  662. # on the target host.
  663. # arguments : for the hook. You can use the following Host information:
  664. # - $ID, the ID of the host
  665. # - $TEMPLATE, the Host template in xml and base64 encoded
  666. # remote : values,
  667. # - YES, The hook is executed in the host
  668. # - NO, The hook is executed in the OpenNebula server (default)
  669. #
  670. # Virtual Network (VNET_HOOK)
  671. # User (USER_HOOK)
  672. # Group (GROUP_HOOK)
  673. # Image (IMAGE_HOOK)
  674. # -------------------------------
  675. #
  676. # These hooks are executed when one of the referring entities are created or
  677. # removed. Each hook is defined by:
  678. # name : for the hook, useful to track the hook (OPTIONAL)
  679. # on : when the hook should be executed,
  680. # - CREATE, when the vnet is created
  681. # - REMOVE, when the vnet is removed
  682. # command : path is relative to $ONE_LOCATION/var/remotes/hook
  683. # (self-contained) or to /var/lib/one/remotes/hook (system-wide).
  684. # That directory will be copied on the hosts under
  685. # SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
  686. # on the target host.
  687. # arguments : for the hook. You can use the following Host information:
  688. # - $ID, the ID of the host
  689. # - $TEMPLATE, the vnet template in xml and base64 encoded
  690. #
  691. # Please note: In a Federation, User and Group hooks can only be defined in
  692. # the master OpenNebula.
  693. #-------------------------------------------------------------------------------
  694. HM_MAD = [
  695. executable = "one_hm" ]
  696.  
  697. #*******************************************************************************
  698. # Fault Tolerance Hooks
  699. #*******************************************************************************
  700. # This hook is used to perform recovery actions when a host fails.
  701. # Script to implement host failure tolerance
  702. # It can be set to
  703. # -m migrate VMs to another host. Only for images in shared storage
  704. # -r recreate VMs running in the host. State will be lost.
  705. # -d delete VMs running in the host
  706. # Additional flags
  707. # -f force resubmission of suspended VMs
  708. # -p <n> avoid resubmission if host comes
  709. # back after n monitoring cycles
  710. #*******************************************************************************
  711. #
  712. #HOST_HOOK = [
  713. # name = "error",
  714. # on = "ERROR",
  715. # command = "ft/host_error.rb",
  716. # arguments = "$ID -m -p 5",
  717. # remote = "no" ]
  718. #-------------------------------------------------------------------------------
  719. # These two hooks can be used to automatically delete or resubmit VMs that reach
  720. # the "failed" state. This way, the administrator doesn't have to interact
  721. # manually to release its resources or retry the deployment.
  722. #
  723. #
  724. # Only one of them should be uncommented.
  725. #-------------------------------------------------------------------------------
  726. #
  727. #VM_HOOK = [
  728. # name = "on_failure_delete",
  729. # on = "FAILED",
  730. # command = "/usr/bin/env onevm delete",
  731. # arguments = "$ID" ]
  732. #
  733. #VM_HOOK = [
  734. # name = "on_failure_recreate",
  735. # on = "FAILED",
  736. # command = "/usr/bin/env onevm delete --recreate",
  737. # arguments = "$ID" ]
  738. #-------------------------------------------------------------------------------
  739.  
  740. #*******************************************************************************
  741. # Auth Manager Configuration
  742. #*******************************************************************************
  743. # AUTH_MAD: The Driver that will be used to authenticate (authn) and
  744. # authorize (authz) OpenNebula requests. If defined OpenNebula will use the
  745. # built-in auth policies.
  746. #
  747. # executable: path of the auth driver executable, can be an
  748. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  749. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  750. #
  751. # authn : list of authentication modules separated by commas, if not
  752. # defined all the modules available will be enabled
  753. # authz : list of authentication modules separated by commas
  754. #
  755. # SESSION_EXPIRATION_TIME: Time in seconds to keep an authenticated token as
  756. # valid. During this time, the driver is not used. Use 0 to disable session
  757. # caching
  758. #
  759. # ENABLE_OTHER_PERMISSIONS: Whether or not users can set the permissions for
  760. # 'other', so publishing or sharing resources with others. Users in the oneadmin
  761. # group will still be able to change these permissions. Values: YES or NO.
  762. #
  763. # DEFAULT_UMASK: Similar to Unix umask, sets the default resources permissions.
  764. # Its format must be 3 octal digits. For example a umask of 137 will set
  765. # the new object's permissions to 640 "um- u-- ---"
  766. #*******************************************************************************
  767.  
  768. AUTH_MAD = [
  769. executable = "one_auth_mad",
  770. authn = "ssh,x509,ldap,server_cipher,server_x509"
  771. ]
  772.  
  773. SESSION_EXPIRATION_TIME = 900
  774.  
  775. #ENABLE_OTHER_PERMISSIONS = "YES"
  776.  
  777. DEFAULT_UMASK = 177
  778.  
  779. #*******************************************************************************
  780. # OneGate
  781. # ONEGATE_ENDPOINT: The URL for the onegate server (the Gate to OpenNebula for
  782. # VMs). The onegate server is started using a separate command. The endpoint
  783. # MUST be consistent with the values in onegate-server.conf
  784. #*******************************************************************************
  785.  
  786. #ONEGATE_ENDPOINT = "http://frontend:5030"
  787.  
  788. #*******************************************************************************
  789. # Restricted Attributes Configuration
  790. #*******************************************************************************
  791. # The following attributes are restricted to users outside the oneadmin group
  792. #*******************************************************************************
  793.  
  794. VM_RESTRICTED_ATTR = "CONTEXT/FILES"
  795. VM_RESTRICTED_ATTR = "NIC/MAC"
  796. VM_RESTRICTED_ATTR = "NIC/VLAN_ID"
  797. VM_RESTRICTED_ATTR = "NIC/BRIDGE"
  798. VM_RESTRICTED_ATTR = "NIC_DEFAULT/MAC"
  799. VM_RESTRICTED_ATTR = "NIC_DEFAULT/VLAN_ID"
  800. VM_RESTRICTED_ATTR = "NIC_DEFAULT/BRIDGE"
  801. VM_RESTRICTED_ATTR = "DISK/TOTAL_BYTES_SEC"
  802. VM_RESTRICTED_ATTR = "DISK/READ_BYTES_SEC"
  803. VM_RESTRICTED_ATTR = "DISK/WRITE_BYTES_SEC"
  804. VM_RESTRICTED_ATTR = "DISK/TOTAL_IOPS_SEC"
  805. VM_RESTRICTED_ATTR = "DISK/READ_IOPS_SEC"
  806. VM_RESTRICTED_ATTR = "DISK/WRITE_IOPS_SEC"
  807. VM_RESTRICTED_ATTR = "CPU_COST"
  808. VM_RESTRICTED_ATTR = "MEMORY_COST"
  809.  
  810. #VM_RESTRICTED_ATTR = "RANK"
  811. #VM_RESTRICTED_ATTR = "SCHED_RANK"
  812. #VM_RESTRICTED_ATTR = "REQUIREMENTS"
  813. #VM_RESTRICTED_ATTR = "SCHED_REQUIREMENTS"
  814.  
  815. IMAGE_RESTRICTED_ATTR = "SOURCE"
  816.  
  817. #*******************************************************************************
  818. # The following restricted attributes only apply to VNets that are a reservation.
  819. # Normal VNets do not have restricted attributes.
  820. #*******************************************************************************
  821.  
  822. VNET_RESTRICTED_ATTR = "PHYDEV"
  823. VNET_RESTRICTED_ATTR = "VLAN_ID"
  824. VNET_RESTRICTED_ATTR = "VLAN"
  825. VNET_RESTRICTED_ATTR = "BRIDGE"
  826.  
  827. VNET_RESTRICTED_ATTR = "AR/PHYDEV"
  828. VNET_RESTRICTED_ATTR = "AR/VLAN_ID"
  829. VNET_RESTRICTED_ATTR = "AR/VLAN"
  830. VNET_RESTRICTED_ATTR = "AR/BRIDGE"
  831.  
  832. #*******************************************************************************
  833. # Inherited Attributes Configuration
  834. #*******************************************************************************
  835. # The following attributes will be copied from the resource template to the
  836. # instantiated VMs. More than one attribute can be defined.
  837. #
  838. # INHERIT_IMAGE_ATTR: Attribute to be copied from the Image template
  839. # to each VM/DISK.
  840. #
  841. # INHERIT_DATASTORE_ATTR: Attribute to be copied from the Datastore template
  842. # to each VM/DISK.
  843. #
  844. # INHERIT_VNET_ATTR: Attribute to be copied from the Network template
  845. # to each VM/NIC.
  846. #*******************************************************************************
  847.  
  848. #INHERIT_IMAGE_ATTR = "EXAMPLE"
  849. #INHERIT_IMAGE_ATTR = "SECOND_EXAMPLE"
  850. #INHERIT_DATASTORE_ATTR = "COLOR"
  851. #INHERIT_VNET_ATTR = "BANDWIDTH_THROTTLING"
  852.  
  853. INHERIT_DATASTORE_ATTR = "CEPH_HOST"
  854. INHERIT_DATASTORE_ATTR = "CEPH_SECRET"
  855. INHERIT_DATASTORE_ATTR = "CEPH_USER"
  856.  
  857. INHERIT_DATASTORE_ATTR = "GLUSTER_HOST"
  858. INHERIT_DATASTORE_ATTR = "GLUSTER_VOLUME"
  859.  
  860. INHERIT_VNET_ATTR = "VLAN_TAGGED_ID"
  861. INHERIT_VNET_ATTR = "BRIDGE_OVS"
  862. INHERIT_VNET_ATTR = "FILTER_IP_SPOOFING"
  863. INHERIT_VNET_ATTR = "FILTER_MAC_SPOOFING"
  864.  
  865. #*******************************************************************************
  866. # Transfer Manager Driver Behavior Configuration
  867. #*******************************************************************************
  868. # The configuration for each driver is defined in TM_MAD_CONF. These
  869. # values are used when creating a new datastore and should not be modified
  870. # since they define the datastore behavior.
  871. # name : name of the transfer driver, listed in the -d option of the
  872. # TM_MAD section
  873. # ln_target : determines how the persistent images will be cloned when
  874. # a new VM is instantiated.
  875. # NONE: The image will be linked and no more storage capacity will be used
  876. # SELF: The image will be cloned in the Images datastore
  877. # SYSTEM: The image will be cloned in the System datastore
  878. # clone_target : determines how the non persistent images will be
  879. # cloned when a new VM is instantiated.
  880. # NONE: The image will be linked and no more storage capacity will be used
  881. # SELF: The image will be cloned in the Images datastore
  882. # SYSTEM: The image will be cloned in the System datastore
  883. # shared : determines if the storage holding the system datastore is shared
  884. # among the different hosts or not. Valid values: "yes" or "no"
  885. #*******************************************************************************
  886.  
  887. TM_MAD_CONF = [
  888. name = "dummy", ln_target = "NONE", clone_target = "SYSTEM", shared = "yes"
  889. ]
  890.  
  891. TM_MAD_CONF = [
  892. name = "lvm", ln_target = "NONE", clone_target = "SELF", shared = "yes"
  893. ]
  894.  
  895. TM_MAD_CONF = [
  896. name = "shared", ln_target = "NONE", clone_target = "SYSTEM", shared = "yes"
  897. ]
  898.  
  899. TM_MAD_CONF = [
  900. name = "fs_lvm", ln_target = "SYSTEM", clone_target = "SYSTEM", shared="yes"
  901. ]
  902.  
  903. TM_MAD_CONF = [
  904. name = "qcow2", ln_target = "NONE", clone_target = "SYSTEM", shared = "yes"
  905. ]
  906.  
  907. TM_MAD_CONF = [
  908. name = "ssh", ln_target = "SYSTEM", clone_target = "SYSTEM", shared = "no"
  909. ]
  910.  
  911. TM_MAD_CONF = [
  912. name = "vmfs", ln_target = "NONE", clone_target= "SYSTEM", shared = "yes"
  913. ]
  914.  
  915. TM_MAD_CONF = [
  916. name = "ceph", ln_target = "NONE", clone_target = "SELF", shared = "yes"
  917. ]
  918.  
  919. TM_MAD_CONF = [
  920. name = "dev", ln_target = "NONE", clone_target = "NONE", shared = "yes"
  921. ]
Add Comment
Please, Sign In to add comment