2008-07-03 05:18:42 +04:00
#*******************************************************************************
# OpenNebula Configuration file
#*******************************************************************************
2008-06-17 20:27:32 +04:00
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
# Daemon configuration attributes
#-------------------------------------------------------------------------------
2010-11-11 17:17:46 +03:00
# MANAGER_TIMER: Time in seconds the core uses to evaluate periodical functions.
2013-02-14 18:24:32 +04:00
# MONITORING_INTERVAL cannot have a smaller value than MANAGER_TIMER.
#
# MONITORING_INTERVAL: Time in seconds between host and VM monitorization.
2010-11-11 17:17:46 +03:00
#
2013-11-18 21:17:16 +04:00
# MONITORING_THREADS: Max. number of threads used to process monitor messages
#
2011-08-16 20:12:45 +04:00
# HOST_PER_INTERVAL: Number of hosts monitored in each interval.
2012-05-17 02:56:03 +04:00
# HOST_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring
# information. Use 0 to disable HOST monitoring recording.
2008-12-02 20:43:12 +03:00
#
2014-04-25 19:14:39 +04:00
# VM_INDIVIDUAL_MONITORING: VM monitoring information is obtained along with the
2014-04-24 18:41:08 +04:00
# host information. For some custom monitor drivers you may need activate the
# individual VM monitoring process.
# VM_PER_INTERVAL: Number of VMs monitored in each interval, if the individual
# VM monitoring is set to yes.
2012-05-17 02:56:03 +04:00
# VM_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring
# information. Use 0 to disable VM monitoring recording.
2008-06-17 20:27:32 +04:00
#
2010-12-22 20:53:38 +03:00
# SCRIPTS_REMOTE_DIR: Remote path to store the monitoring and VM management
# scripts.
#
2008-07-03 05:18:42 +04:00
# PORT: Port where oned will listen for xmlrpc calls.
2015-07-07 00:34:47 +03:00
# LISTEN_ADDRESS: Host IP to listen on for xmlrpc calls (default: all IPs).
2008-06-17 20:27:32 +04:00
#
2010-05-05 02:21:28 +04:00
# DB: Configuration attributes for the database backend
# backend : can be sqlite or mysql (default is sqlite)
# server : (mysql) host name or an IP address for the MySQL server
2010-11-10 20:44:13 +03:00
# port : (mysql) port for the connection to the server.
# If set to 0, the default port is used.
2010-05-05 02:21:28 +04:00
# user : (mysql) user's MySQL login ID
# passwd : (mysql) the password for user
# db_name : (mysql) the database name
#
2016-05-11 11:33:35 +03:00
# VNC_PORTS: VNC port pool for automatic VNC port assignment, if possible the
2016-04-05 17:26:36 +03:00
# port will be set to ``START`` + ``VMID``
2016-05-11 11:33:35 +03:00
# start : first port to assign
2016-08-31 12:09:03 +03:00
# reserved: comma separated list of ports or ranges. Two numbers separated by
# a colon indicate a range.
2010-03-05 21:43:34 +03:00
#
2013-01-31 23:43:17 +04:00
# LOG: Configuration for the logging system
2013-02-01 21:49:03 +04:00
# system: defines the logging system:
# file to log in the oned.log file
# syslog to use the syslog facilities
2016-03-02 19:07:27 +03:00
# std to use the default log stream (stderr) to use with systemd
2013-02-01 21:49:03 +04:00
# debug_level: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
2012-12-20 21:57:20 +04:00
#
# VM_SUBMIT_ON_HOLD: Forces VMs to be created on hold state instead of pending.
# Values: YES or NO.
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-06-17 20:27:32 +04:00
2013-01-31 23:43:17 +04:00
LOG = [
2016-04-06 19:07:56 +03:00
SYSTEM = "file",
DEBUG_LEVEL = 3
2013-01-31 23:43:17 +04:00
]
2013-01-25 20:32:12 +04:00
2015-12-18 18:22:53 +03:00
#MANAGER_TIMER = 15
2010-11-11 17:17:46 +03:00
2013-11-18 21:17:16 +04:00
MONITORING_INTERVAL = 60
MONITORING_THREADS = 50
2013-02-14 18:24:32 +04:00
2012-05-17 02:56:03 +04:00
#HOST_PER_INTERVAL = 15
2013-11-08 18:28:19 +04:00
#HOST_MONITORING_EXPIRATION_TIME = 43200
2008-12-02 20:43:12 +03:00
2014-04-24 18:41:08 +04:00
#VM_INDIVIDUAL_MONITORING = "no"
2012-05-17 02:56:03 +04:00
#VM_PER_INTERVAL = 5
2013-11-08 18:28:19 +04:00
#VM_MONITORING_EXPIRATION_TIME = 14400
2008-06-17 20:27:32 +04:00
2010-10-20 19:23:28 +04:00
SCRIPTS_REMOTE_DIR=/var/tmp/one
2010-09-10 18:42:18 +04:00
2011-08-16 20:12:45 +04:00
PORT = 2633
2008-06-17 20:27:32 +04:00
2015-07-07 00:34:47 +03:00
LISTEN_ADDRESS = "0.0.0.0"
2016-04-06 19:07:56 +03:00
DB = [ BACKEND = "sqlite" ]
2010-05-05 02:21:28 +04:00
# Sample configuration for MySQL
2016-04-06 19:07:56 +03:00
# DB = [ BACKEND = "mysql",
# SERVER = "localhost",
# PORT = 0,
# USER = "oneadmin",
# PASSWD = "oneadmin",
# DB_NAME = "opennebula" ]
2010-05-05 02:21:28 +04:00
2016-04-05 13:47:21 +03:00
VNC_PORTS = [
2016-04-06 19:07:56 +03:00
START = 5900
2016-08-31 12:09:03 +03:00
# RESERVED = "6800, 6801, 6810:6820, 9869"
2016-04-05 13:47:21 +03:00
]
2010-03-05 21:43:34 +03:00
2012-12-20 21:57:20 +04:00
#VM_SUBMIT_ON_HOLD = "NO"
2014-01-22 15:55:30 +04:00
#*******************************************************************************
2017-05-02 18:57:55 +03:00
# Federation & HA configuration attributes
2014-01-22 15:55:30 +04:00
#-------------------------------------------------------------------------------
2014-01-24 02:42:56 +04:00
# Control the federation capabilities of oned. Operation in a federated setup
# requires a special DB configuration.
#
# FEDERATION: Federation attributes
# MODE: Operation mode of this oned.
# STANDALONE no federated.This is the default operational mode
# MASTER this oned is the master zone of the federation
# SLAVE this oned is a slave zone
# ZONE_ID: The zone ID as returned by onezone command
2017-04-30 00:25:53 +03:00
# SERVER_ID: ID identifying this server in the zone as returned by the
# onezone server-add command. This ID controls the HA configuration of
# OpenNebula:
# -1 (default) OpenNebula will operate in "solo" mode no HA
# <id> Operate in HA (leader election and state replication)
2014-01-24 02:56:22 +04:00
# MASTER_ONED: The xml-rpc endpoint of the master oned, e.g.
# http://master.one.org:2633/RPC2
2017-05-02 18:57:55 +03:00
#
#
# RAFT: Algorithm attributes
# LOG_RETENTION: Number of DB log records kept, it determines the
# synchronization window across servers and extra storage space needed.
# LOG_PURGE_TIMEOUT: How often applied records are purged according the log
# retention value. (in seconds)
# ELECTION_TIMEOUT_MS: Timeout to start a election process if no hearbeat or
# log is received from leader.
# BROADCAST_TIMEOUT_MS: How often heartbeats are sent to followers.
# XMLRPC_TIMEOUT_MS: To timeout raft related API calls
#
# NOTE: Timeout tunning depends on the latency of the servers (network and load)
# as well as the max downtime tolerated by the system. Timeouts needs to be
# greater than 10ms
#
2014-01-22 15:55:30 +04:00
#*******************************************************************************
FEDERATION = [
2017-04-30 00:25:53 +03:00
MODE = "STANDALONE",
ZONE_ID = 0,
SERVER_ID = -1,
MASTER_ONED = ""
2014-01-22 15:55:30 +04:00
]
2017-05-02 18:57:55 +03:00
RAFT = [
LOG_RETENTION = 500000,
LOG_PURGE_TIMEOUT = 600,
2017-05-03 00:43:18 +03:00
ELECTION_TIMEOUT_MS = 1500,
BROADCAST_TIMEOUT_MS = 500,
XMLRPC_TIMEOUT_MS = 100
2017-05-02 18:57:55 +03:00
]
2015-02-04 20:16:31 +03:00
#*******************************************************************************
# Default showback cost
#-------------------------------------------------------------------------------
# The following attributes define the default cost for Virtual Machines that
2015-07-09 15:07:01 +03:00
# don't have a CPU, MEMORY or DISK cost. This is used by the oneshowback
# calculate method.
2015-02-04 20:16:31 +03:00
#*******************************************************************************
DEFAULT_COST = [
CPU_COST = 0,
2015-06-20 03:29:47 +03:00
MEMORY_COST = 0,
DISK_COST = 0
2015-02-04 20:16:31 +03:00
]
2013-07-31 18:40:45 +04:00
#*******************************************************************************
# XML-RPC server configuration
#-------------------------------------------------------------------------------
# These are configuration parameters for oned's xmlrpc-c server
#
# MAX_CONN: Maximum number of simultaneous TCP connections the server
# will maintain
#
# MAX_CONN_BACKLOG: Maximum number of TCP connections the operating system
# will accept on the server's behalf without the server accepting them from
# the operating system
#
# KEEPALIVE_TIMEOUT: Maximum time in seconds that the server allows a
# connection to be open between RPCs
#
# KEEPALIVE_MAX_CONN: Maximum number of RPCs that the server will execute on
# a single connection
#
# TIMEOUT: Maximum time in seconds the server will wait for the client to
2016-03-24 04:07:04 +03:00
# do anything while processing an RPC. This timeout will be also used when
# proxy calls to the master in a federation.
2014-01-02 20:37:11 +04:00
#
# RPC_LOG: Create a separated log file for xml-rpc requests, in
# "/var/log/one/one_xmlrpc.log".
2014-01-24 02:56:22 +04:00
#
2015-02-20 17:28:36 +03:00
# MESSAGE_SIZE: Buffer size in bytes for XML-RPC responses.
2014-10-28 20:52:48 +03:00
#
# LOG_CALL_FORMAT: Format string to log XML-RPC calls. Interpreted strings:
# %i -- request id
# %m -- method name
# %u -- user id
# %U -- user name
# %l -- param list
# %p -- user password
# %g -- group id
# %G -- group name
# %a -- auth token
# %% -- %
2013-07-31 18:40:45 +04:00
#*******************************************************************************
2014-01-02 20:37:11 +04:00
#MAX_CONN = 15
#MAX_CONN_BACKLOG = 15
#KEEPALIVE_TIMEOUT = 15
#KEEPALIVE_MAX_CONN = 30
#TIMEOUT = 15
#RPC_LOG = NO
2014-01-24 02:56:22 +04:00
#MESSAGE_SIZE = 1073741824
2014-10-28 20:52:48 +03:00
#LOG_CALL_FORMAT = "Req:%i UID:%u %m invoked %l"
2013-07-31 18:40:45 +04:00
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-11-13 19:21:17 +03:00
# Physical Networks configuration
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-12-02 20:43:12 +03:00
# NETWORK_SIZE: Here you can define the default size for the virtual networks
2008-11-13 19:21:17 +03:00
#
2009-02-15 03:24:39 +03:00
# MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
2016-05-11 11:33:35 +03:00
# addresses is defined here (this can be overwritten by the Virtual Network
2008-12-02 20:43:12 +03:00
# template)
2016-04-06 19:07:56 +03:00
#
2016-05-11 11:33:35 +03:00
# VLAN_IDS: VLAN ID pool for the automatic VLAN_ID assignment. This pool
2016-04-06 19:07:56 +03:00
# is for 802.1Q networks (Open vSwitch and 802.1Q drivers). The driver
# will try first to allocate VLAN_IDS[START] + VNET_ID
# start: First VLAN_ID to use
2016-08-31 12:09:03 +03:00
# reserved: Comma separated list of VLAN_IDs or ranges. Two numbers
# separated by a colon indicate a range.
2016-04-06 19:07:56 +03:00
#
2016-05-11 11:33:35 +03:00
# VXLAN_IDS: Automatic VXLAN Network ID (VNI) assignment. This is used
2016-04-07 12:02:12 +03:00
# for vxlan networks.
2016-04-06 19:07:56 +03:00
# start: First VNI to use
# NOTE: reserved is not supported by this pool
2016-07-18 15:26:30 +03:00
#
# PCI_PASSTHROUGH_BUS: Default bus to attach passthrough devices in the guest,
2016-08-31 12:09:03 +03:00
# in hex notation. It may be overwritten in the PCI device using the BUS
2016-07-18 15:26:30 +03:00
# attribute.
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-11-13 19:21:17 +03:00
2008-12-02 20:43:12 +03:00
NETWORK_SIZE = 254
2008-11-13 19:21:17 +03:00
2010-06-28 23:45:17 +04:00
MAC_PREFIX = "02:00"
2008-11-13 19:21:17 +03:00
2016-04-06 19:07:56 +03:00
VLAN_IDS = [
2016-04-19 16:21:27 +03:00
START = "2",
RESERVED = "0, 1, 4095"
2016-04-06 19:07:56 +03:00
]
VXLAN_IDS = [
2016-04-19 16:21:27 +03:00
START = "2"
2016-04-06 19:07:56 +03:00
]
2016-07-18 15:26:30 +03:00
#PCI_PASSTHROUGH_BUS = "0x01"
2010-06-01 20:00:44 +04:00
#*******************************************************************************
2012-02-16 02:53:35 +04:00
# DataStore Configuration
2010-06-01 20:00:44 +04:00
#*******************************************************************************
2016-04-17 01:00:14 +03:00
# DATASTORE_LOCATION: Path for Datastores. It IS the same for all the hosts
# and front-end. It defaults to /var/lib/one/datastores (in self-contained mode
2016-05-11 11:33:35 +03:00
# defaults to $ONE_LOCATION/var/datastores). Each datastore has its own
2016-04-17 01:00:14 +03:00
# directory (called BASE_PATH) in the form: $DATASTORE_LOCATION/<datastore_id>
2016-05-11 11:33:35 +03:00
# You can symlink this directory to any other path if needed. BASE_PATH is
2016-04-17 01:00:14 +03:00
# generated from this attribute each time oned is started.
2013-10-04 15:26:03 +04:00
#
2013-07-10 19:48:39 +04:00
# DATASTORE_CAPACITY_CHECK: Checks that there is enough capacity before
2016-04-17 01:00:14 +03:00
# creating a new image. Defaults to Yes
2013-07-10 19:48:39 +04:00
#
2010-06-01 20:00:44 +04:00
# DEFAULT_IMAGE_TYPE: This can take values
# OS Image file holding an operating system
# CDROM Image file holding a CDROM
2016-04-17 01:00:14 +03:00
# DATABLOCK Image file holding a datablock, created as an empty block
2014-02-20 15:36:06 +04:00
#
2012-04-25 18:47:12 +04:00
# DEFAULT_DEVICE_PREFIX: This can be set to
# hd IDE prefix
# sd SCSI
# vd KVM virtual disk
2014-02-20 15:36:06 +04:00
#
# DEFAULT_CDROM_DEVICE_PREFIX: Same as above but for CDROM devices.
2017-03-14 19:34:53 +03:00
#
# DEFAULT_IMAGE_PERSISTENT: Control the default value for the PERSISTENT
# attribute on image creation (oneimage clone, onevm disk-saveas). If blank
# images will inherit the persistent attribute from the base image.
#
# DEFAULT_IMAGE_PERSISTENT_NEW: Control the default value for the PERSISTENT
# attribute on image creation (oneimage create). By default images are no
# persistent if not set.
2010-06-01 20:00:44 +04:00
#*******************************************************************************
2012-02-16 02:53:35 +04:00
2013-10-04 15:26:03 +04:00
#DATASTORE_LOCATION = /var/lib/one/datastores
2013-07-10 19:48:39 +04:00
DATASTORE_CAPACITY_CHECK = "yes"
2017-03-14 19:34:53 +03:00
DEFAULT_DEVICE_PREFIX = "hd"
2014-02-20 15:36:06 +04:00
DEFAULT_CDROM_DEVICE_PREFIX = "hd"
2013-07-10 19:48:39 +04:00
2017-03-14 19:34:53 +03:00
DEFAULT_IMAGE_TYPE = "OS"
#DEFAULT_IMAGE_PERSISTENT = ""
#DEFAULT_IMAGE_PERSISTENT_NEW = ""
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
# Information Driver Configuration
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2009-02-15 03:24:39 +03:00
# You can add more information managers with different configurations but make
2008-07-03 05:18:42 +04:00
# sure it has different names.
2009-01-02 17:58:51 +03:00
#
2008-07-03 05:18:42 +04:00
# name : name for this information manager
2009-01-02 17:58:51 +03:00
#
2009-02-15 03:24:39 +03:00
# executable: path of the information driver executable, can be an
2009-01-02 17:58:51 +03:00
# absolute path or relative to $ONE_LOCATION/lib/mads (or
2009-02-15 03:24:39 +03:00
# /usr/lib/one/mads/ if OpenNebula was installed in /)
2009-01-02 17:58:51 +03:00
#
# arguments : for the driver executable, usually a probe configuration file,
# can be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
2013-10-13 22:19:13 +04:00
#-------------------------------------------------------------------------------
2016-04-06 13:11:23 +03:00
# Information Collector for KVM IM's.
2013-10-13 22:19:13 +04:00
#-------------------------------------------------------------------------------
2016-04-06 13:11:23 +03:00
# This driver CANNOT BE ASSIGNED TO A HOST, and needs to be used with KVM
2013-10-13 22:19:13 +04:00
# -h prints this help.
2016-05-11 11:33:35 +03:00
# -a Address to bind the collectd socket (default 0.0.0.0)
2013-10-13 22:19:13 +04:00
# -p UDP port to listen for monitor information (default 4124)
# -f Interval in seconds to flush collected information (default 5)
2016-05-11 11:33:35 +03:00
# -t Number of threads for the server (default 50)
2013-11-05 21:29:06 +04:00
# -i Time in seconds of the monitorization push cycle. This parameter must
# be smaller than MONITORING_INTERVAL, otherwise push monitorization will
# not be effective.
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2013-10-13 22:19:13 +04:00
#-------------------------------------------------------------------------------
IM_MAD = [
2016-04-06 19:07:56 +03:00
NAME = "collectd",
EXECUTABLE = "collectd",
ARGUMENTS = "-p 4124 -f 5 -t 50 -i 20" ]
2013-10-13 22:19:13 +04:00
#-------------------------------------------------------------------------------
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2013-11-22 21:47:23 +04:00
# KVM UDP-push Information Driver Manager Configuration
2011-01-20 20:36:37 +03:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2009-07-16 21:14:01 +04:00
IM_MAD = [
2016-04-26 18:02:20 +03:00
NAME = "kvm",
SUNSTONE_NAME = "KVM",
EXECUTABLE = "one_im_ssh",
ARGUMENTS = "-r 3 -t 15 kvm" ]
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
2013-11-22 21:47:23 +04:00
# KVM SSH-pull Information Driver Manager Configuration
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2013-11-22 21:47:23 +04:00
#-------------------------------------------------------------------------------
# IM_MAD = [
2016-04-26 18:02:20 +03:00
# NAME = "kvm",
# SUNSTONE_NAME = "kvm-ssh",
# EXECUTABLE = "one_im_ssh",
# ARGUMENTS = "-r 3 -t 15 kvm-probes" ]
2013-11-22 21:47:23 +04:00
#-------------------------------------------------------------------------------
2014-09-19 15:14:57 +04:00
#-------------------------------------------------------------------------------
# vCenter Information Driver Manager Configuration
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2014-09-19 15:14:57 +04:00
#-------------------------------------------------------------------------------
#IM_MAD = [
2016-04-26 18:02:20 +03:00
# NAME = "vcenter",
# SUNSTONE_NAME = "VMWare vCenter",
# EXECUTABLE = "one_im_sh",
# ARGUMENTS = "-c -t 15 -r 0 vcenter" ]
2014-09-19 15:14:57 +04:00
#-------------------------------------------------------------------------------
2010-09-01 21:58:01 +04:00
#-------------------------------------------------------------------------------
# EC2 Information Driver Manager Configuration
2014-07-11 17:23:31 +04:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2009-03-07 03:50:05 +03:00
#IM_MAD = [
2016-04-26 18:02:20 +03:00
# NAME = "ec2",
# SUNSTONE_NAME = "Amazon EC2",
# EXECUTABLE = "one_im_sh",
2016-09-13 18:01:26 +03:00
# ARGUMENTS = "-c -t 1 -r 0 -w 600 ec2" ]
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2008-07-19 02:14:06 +04:00
2014-06-19 19:03:18 +04:00
#-------------------------------------------------------------------------------
# Azure Information Driver Manager Configuration
2014-07-11 17:23:31 +04:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2014-06-19 19:03:18 +04:00
#-------------------------------------------------------------------------------
#IM_MAD = [
2016-04-26 18:02:20 +03:00
# NAME = "az",
2016-05-05 18:49:35 +03:00
# SUNSTONE_NAME = "Microsoft Azure",
2016-04-26 18:02:20 +03:00
# EXECUTABLE = "one_im_sh",
# ARGUMENTS = "-c -t 1 -r 0 az" ]
2014-06-19 19:03:18 +04:00
#-------------------------------------------------------------------------------
2010-09-01 21:58:01 +04:00
#-------------------------------------------------------------------------------
# Dummy Information Driver Manager Configuration
#-------------------------------------------------------------------------------
2016-04-26 18:02:20 +03:00
#IM_MAD = [ NAME="dummy", SUNSTONE_NAME="Testing", EXECUTABLE="one_im_dummy"]
2010-09-01 21:58:01 +04:00
#-------------------------------------------------------------------------------
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
# Virtualization Driver Configuration
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2009-02-15 03:24:39 +03:00
# You can add more virtualization managers with different configurations but
2008-07-03 05:18:42 +04:00
# make sure it has different names.
2009-01-02 17:58:51 +03:00
#
2008-07-03 05:18:42 +04:00
# name : name of the virtual machine manager driver
2009-01-02 17:58:51 +03:00
#
2009-02-15 03:24:39 +03:00
# executable: path of the virtualization driver executable, can be an
2009-01-02 17:58:51 +03:00
# absolute path or relative to $ONE_LOCATION/lib/mads (or
2009-02-15 03:24:39 +03:00
# /usr/lib/one/mads/ if OpenNebula was installed in /)
2009-01-02 17:58:51 +03:00
#
2008-07-03 05:18:42 +04:00
# arguments : for the driver executable
2009-01-02 17:58:51 +03:00
#
2009-02-15 03:24:39 +03:00
# default : default values and configuration parameters for the driver, can
2009-01-02 17:58:51 +03:00
# be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
#
2009-02-15 03:24:39 +03:00
# type : driver type, supported drivers: xen, kvm, xml
2015-11-18 15:10:55 +03:00
#
2016-09-06 12:06:04 +03:00
# keep_snapshots: do not remove snapshots on power on/off cycles and live
2016-05-18 20:57:23 +03:00
# migrations if the hypervisor supports that.
#
2015-11-18 15:10:55 +03:00
# imported_vms_actions : comma-separated list of actions supported
# for imported vms. The available actions are:
# migrate
# live-migrate
2016-05-02 19:34:42 +03:00
# terminate
# terminate-hard
2015-11-18 15:10:55 +03:00
# undeploy
# undeploy-hard
# hold
# release
# stop
# suspend
# resume
# delete
# delete-recreate
# reboot
# reboot-hard
# resched
# unresched
# poweroff
# poweroff-hard
# disk-attach
# disk-detach
# nic-attach
# nic-detach
# snap-create
# snap-delete
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
2010-08-31 12:47:22 +04:00
#-------------------------------------------------------------------------------
2010-09-01 21:58:01 +04:00
# KVM Virtualization Driver Manager Configuration
2011-02-03 01:19:05 +03:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2012-03-23 23:26:53 +04:00
# -l <actions[=command_name]> actions executed locally, command can be
2011-09-01 19:19:49 +04:00
# overridden for each action.
2011-08-29 21:17:50 +04:00
# Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
2013-08-28 18:03:57 +04:00
# An example: "-l migrate=migrate_local,save"
2015-07-08 18:56:24 +03:00
# -p more than one action per host in parallel, needs support from hypervisor
# -s <shell> to execute remote commands, bash by default
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2013-05-18 22:22:47 +04:00
#
# Note: You can use type = "qemu" to use qemu emulated guests, e.g. if your
# CPU does not have virtualization extensions or use nested Qemu-KVM hosts
2010-08-31 12:47:22 +04:00
#-------------------------------------------------------------------------------
VM_MAD = [
2016-05-18 20:48:43 +03:00
NAME = "kvm",
SUNSTONE_NAME = "KVM",
EXECUTABLE = "one_vmm_exec",
ARGUMENTS = "-t 15 -r 0 kvm",
DEFAULT = "vmm_exec/vmm_exec_kvm.conf",
TYPE = "kvm",
KEEP_SNAPSHOTS = "no",
2016-05-02 19:34:42 +03:00
IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold, release, suspend,
2015-11-20 17:44:37 +03:00
resume, delete, reboot, reboot-hard, resched, unresched, disk-attach,
disk-detach, nic-attach, nic-detach, snap-create, snap-delete"
2015-11-18 15:10:55 +03:00
]
2015-08-12 13:31:58 +03:00
2010-09-01 21:58:01 +04:00
#-------------------------------------------------------------------------------
2010-08-24 18:44:42 +04:00
2014-09-19 15:14:57 +04:00
#-------------------------------------------------------------------------------
# vCenter Virtualization Driver Manager Configuration
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2015-07-08 18:56:24 +03:00
# -p more than one action per host in parallel, needs support from hypervisor
# -s <shell> to execute commands, bash by default
2015-08-12 13:31:58 +03:00
# -d default snapshot strategy. It can be either 'detach' or 'suspend'. It
# defaults to 'suspend'.
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2014-09-19 15:14:57 +04:00
#-------------------------------------------------------------------------------
#VM_MAD = [
2016-05-18 20:48:43 +03:00
# NAME = "vcenter",
# SUNSTONE_NAME = "VMWare vCenter",
# EXECUTABLE = "one_vmm_sh",
# ARGUMENTS = "-p -t 15 -r 0 vcenter -s sh",
# DEFAULT = "vmm_exec/vmm_exec_vcenter.conf",
# TYPE = "xml",
2016-05-19 16:49:26 +03:00
# KEEP_SNAPSHOTS = "yes",
2016-05-02 19:34:42 +03:00
# IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold, release, suspend,
2015-12-15 13:23:25 +03:00
# resume, delete, reboot, reboot-hard, resched, unresched, poweroff,
# poweroff-hard, disk-attach, disk-detach, nic-attach, nic-detach,
2015-11-20 17:44:37 +03:00
# snap-create, snap-delete"
2015-11-18 15:10:55 +03:00
#]
2014-09-19 15:14:57 +04:00
#-------------------------------------------------------------------------------
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2010-09-01 21:58:01 +04:00
# EC2 Virtualization Driver Manager Configuration
2013-09-03 20:52:33 +04:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of actions performed at the same time
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2016-09-13 18:01:26 +03:00
# -p more than one action per host in parallel, needs support from hypervisor
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2009-03-07 03:50:05 +03:00
#VM_MAD = [
2016-05-18 20:48:43 +03:00
# NAME = "ec2",
# SUNSTONE_NAME = "Amazon EC2",
# EXECUTABLE = "one_vmm_sh",
2016-09-13 18:01:26 +03:00
# ARGUMENTS = "-t 15 -r 0 -w 600 -p ec2",
2016-05-18 20:48:43 +03:00
# TYPE = "xml",
# KEEP_SNAPSHOTS = "no",
2016-05-02 19:34:42 +03:00
# IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold, release, suspend,
2015-11-20 17:44:37 +03:00
# resume, delete, reboot, reboot-hard, resched, unresched, poweroff,
# poweroff-hard, disk-attach, disk-detach, nic-attach, nic-detach,
# snap-create, snap-delete"
2015-11-18 15:10:55 +03:00
#]
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2008-07-04 20:55:49 +04:00
2015-11-18 15:10:55 +03:00
#-------------------------------------------------------------------------------
2014-06-19 19:03:18 +04:00
# Azure Virtualization Driver Manager Configuration
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of actions performed at the same time
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2014-06-19 19:03:18 +04:00
#-------------------------------------------------------------------------------
#VM_MAD = [
2016-05-18 20:48:43 +03:00
# NAME = "az",
# SUNSTONE_NAME = "Microsoft Azure",
# EXECUTABLE = "one_vmm_sh",
# ARGUMENTS = "-t 15 -r 0 az",
# TYPE = "xml",
# KEEP_SNAPSHOTS = "no",
2016-05-02 19:34:42 +03:00
# IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold, release, suspend,
2015-11-20 17:44:37 +03:00
# resume, delete, reboot, reboot-hard, resched, unresched, poweroff,
# poweroff-hard, disk-attach, disk-detach, nic-attach, nic-detach,
# snap-create, snap-delete"
2015-11-18 15:10:55 +03:00
#]
2014-06-19 19:03:18 +04:00
#-------------------------------------------------------------------------------
2010-09-01 21:58:01 +04:00
#-------------------------------------------------------------------------------
# Dummy Virtualization Driver Configuration
#-------------------------------------------------------------------------------
2016-04-26 18:02:20 +03:00
#VM_MAD = [ NAME="dummy", SUNSTONE_NAME="Testing", EXECUTABLE="one_vmm_dummy",
# TYPE="xml" ]
2010-09-01 21:58:01 +04:00
#-------------------------------------------------------------------------------
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-11-13 19:21:17 +03:00
# Transfer Manager Driver Configuration
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2009-02-15 03:24:39 +03:00
# You can add more transfer managers with different configurations but make
2008-11-13 19:21:17 +03:00
# sure it has different names.
2009-01-02 17:58:51 +03:00
# name : name for this transfer driver
#
2009-02-15 03:24:39 +03:00
# executable: path of the transfer driver executable, can be an
2009-01-02 17:58:51 +03:00
# absolute path or relative to $ONE_LOCATION/lib/mads (or
2009-02-15 03:24:39 +03:00
# /usr/lib/one/mads/ if OpenNebula was installed in /)
2012-02-29 02:51:36 +04:00
# arguments :
# -t: number of threads, i.e. number of transfers made at the same time
# -d: list of transfer drivers separated by commas, if not defined all the
# drivers available will be enabled
2016-09-09 18:02:49 +03:00
# -w: Timeout in seconds to execute external commands (default unlimited)
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-11-13 19:21:17 +03:00
2009-07-16 21:14:01 +04:00
TM_MAD = [
2016-04-06 19:07:56 +03:00
EXECUTABLE = "one_tm",
2016-05-09 13:09:07 +03:00
ARGUMENTS = "-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,ceph,dev,vcenter,iscsi_libvirt"
2013-09-16 18:40:52 +04:00
]
2011-11-29 19:37:01 +04:00
2011-03-22 20:21:09 +03:00
#*******************************************************************************
2012-02-19 05:08:03 +04:00
# Datastore Driver Configuration
2011-03-22 20:21:09 +03:00
#*******************************************************************************
2012-02-19 05:08:03 +04:00
# Drivers to manage the datastores, specialized for the storage backend
2011-03-22 20:21:09 +03:00
# executable: path of the transfer driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
# arguments : for the driver executable
2012-02-19 05:08:03 +04:00
# -t number of threads, i.e. number of repo operations at the same time
2012-03-06 18:13:55 +04:00
# -d datastore mads separated by commas
2015-11-04 19:31:56 +03:00
# -s system datastore tm drivers, used to monitor shared system ds.
2016-09-09 18:02:49 +03:00
# -w Timeout in seconds to execute external commands (default unlimited)
2011-03-22 20:21:09 +03:00
#*******************************************************************************
2012-02-19 05:08:03 +04:00
DATASTORE_MAD = [
2016-04-06 19:07:56 +03:00
EXECUTABLE = "one_datastore",
2016-06-07 13:09:19 +03:00
ARGUMENTS = "-t 15 -d dummy,fs,lvm,ceph,dev,iscsi_libvirt,vcenter -s shared,ssh,ceph,fs_lvm,qcow2"
2012-02-20 23:10:30 +04:00
]
2011-03-22 20:21:09 +03:00
2015-12-17 14:39:27 +03:00
#*******************************************************************************
# Marketplace Driver Configuration
#*******************************************************************************
# Drivers to manage different marketplaces, specialized for the storage backend
# executable: path of the transfer driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
# arguments : for the driver executable
# -t number of threads, i.e. number of repo operations at the same time
# -m marketplace mads separated by commas
2016-09-09 18:02:49 +03:00
# --proxy proxy address if required to access the internet
# -w Timeout in seconds to execute external commands (default unlimited)
2015-12-17 14:39:27 +03:00
#*******************************************************************************
MARKET_MAD = [
2016-04-06 19:07:56 +03:00
EXECUTABLE = "one_market",
ARGUMENTS = "-t 15 -m http,s3,one"
2015-12-17 14:39:27 +03:00
]
2016-08-21 20:54:31 +03:00
#*******************************************************************************
# IPAM Driver Configuration
#*******************************************************************************
# Drivers to manage different IPAMs
# executable: path of the IPAM driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
# arguments : for the driver executable
# -t number of threads, i.e. number of operations at the same time
# -i IPAM mads separated by commas
#*******************************************************************************
IPAM_MAD = [
EXECUTABLE = "one_ipam",
ARGUMENTS = "-t 1 -i dummy"
]
2009-04-05 03:10:02 +04:00
#*******************************************************************************
# Hook Manager Configuration
#*******************************************************************************
2012-10-09 18:23:48 +04:00
# The Driver (HM_MAD)
# -----------------------------------------------
#
# Used to execute the Hooks:
2009-04-04 03:34:33 +04:00
# executable: path of the hook driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
2009-04-10 03:31:41 +04:00
# arguments : for the driver executable, can be an absolute path or relative
# to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
2009-04-04 03:34:33 +04:00
# in /)
2009-04-05 03:10:02 +04:00
#
2012-10-09 18:23:48 +04:00
# Virtual Machine Hooks (VM_HOOK)
# -------------------------------
#
# Defined by:
2009-04-10 03:31:41 +04:00
# name : for the hook, useful to track the hook (OPTIONAL)
# on : when the hook should be executed,
2009-04-05 03:10:02 +04:00
# - CREATE, when the VM is created (onevm create)
2011-06-07 19:58:25 +04:00
# - PROLOG, when the VM is in the prolog state
2009-04-10 03:31:41 +04:00
# - RUNNING, after the VM is successfully booted
2012-10-08 01:25:54 +04:00
# - UNKNOWN, when the VM is in the unknown state
2009-04-10 03:31:41 +04:00
# - SHUTDOWN, after the VM is shutdown
# - STOP, after the VM is stopped (including VM image transfers)
2009-10-28 23:12:53 +03:00
# - DONE, after the VM is deleted or shutdown
2013-05-20 16:33:53 +04:00
# - CUSTOM, user defined specific STATE and LCM_STATE combination
# of states to trigger the hook.
2011-09-01 19:10:18 +04:00
# command : path is relative to $ONE_LOCATION/var/remotes/hook
# (self-contained) or to /var/lib/one/remotes/hook (system-wide).
# That directory will be copied on the hosts under
# SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
# on the target host
2011-05-13 18:05:51 +04:00
# arguments : for the hook. You can access to VM information with $
2012-10-08 14:33:32 +04:00
# - $ID, the ID of the virtual machine
2011-05-13 18:05:51 +04:00
# - $TEMPLATE, the VM template in xml and base64 encoded
2013-05-20 16:33:53 +04:00
# - $PREV_STATE, the previous STATE of the Virtual Machine
# - $PREV_LCM_STATE, the previous LCM STATE of the Virtual Machine
2009-04-10 03:31:41 +04:00
# remote : values,
# - YES, The hook is executed in the host where the VM was
# allocated
# - NO, The hook is executed in the OpenNebula server (default)
2010-12-26 20:58:41 +03:00
#
2013-05-20 16:33:53 +04:00
# Example Virtual Machine Hook
# ----------------------------
#
# VM_HOOK = [
# name = "advanced_hook",
# on = "CUSTOM",
# state = "ACTIVE",
# lcm_state = "BOOT_UNKNOWN",
# command = "log.rb",
# arguments = "$ID $PREV_STATE $PREV_LCM_STATE" ]
#
2012-10-09 18:23:48 +04:00
# Host Hooks (HOST_HOOK)
# -------------------------------
#
# Defined by:
2010-12-26 20:58:41 +03:00
# name : for the hook, useful to track the hook (OPTIONAL)
# on : when the hook should be executed,
# - CREATE, when the Host is created (onehost create)
# - ERROR, when the Host enters the error state
2011-01-18 20:43:35 +03:00
# - DISABLE, when the Host is disabled
2011-09-01 19:10:18 +04:00
# command : path is relative to $ONE_LOCATION/var/remotes/hook
# (self-contained) or to /var/lib/one/remotes/hook (system-wide).
# That directory will be copied on the hosts under
# SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
# on the target host.
2011-05-13 18:05:51 +04:00
# arguments : for the hook. You can use the following Host information:
2012-10-08 14:33:32 +04:00
# - $ID, the ID of the host
2011-05-13 18:05:51 +04:00
# - $TEMPLATE, the Host template in xml and base64 encoded
2010-12-26 20:58:41 +03:00
# remote : values,
# - YES, The hook is executed in the host
# - NO, The hook is executed in the OpenNebula server (default)
2012-10-08 14:33:32 +04:00
#
2012-10-09 18:23:48 +04:00
# Virtual Network (VNET_HOOK)
2016-01-08 13:38:29 +03:00
# Virtual Router (VROUTER_HOOK)
2012-10-09 18:23:48 +04:00
# User (USER_HOOK)
# Group (GROUP_HOOK)
# Image (IMAGE_HOOK)
# -------------------------------
#
# These hooks are executed when one of the referring entities are created or
# removed. Each hook is defined by:
2012-10-08 14:33:32 +04:00
# name : for the hook, useful to track the hook (OPTIONAL)
# on : when the hook should be executed,
# - CREATE, when the vnet is created
# - REMOVE, when the vnet is removed
# command : path is relative to $ONE_LOCATION/var/remotes/hook
# (self-contained) or to /var/lib/one/remotes/hook (system-wide).
# That directory will be copied on the hosts under
# SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
# on the target host.
# arguments : for the hook. You can use the following Host information:
# - $ID, the ID of the host
# - $TEMPLATE, the vnet template in xml and base64 encoded
2014-10-22 14:03:29 +04:00
#
# Please note: In a Federation, User and Group hooks can only be defined in
# the master OpenNebula.
2009-04-04 03:34:33 +04:00
#-------------------------------------------------------------------------------
HM_MAD = [
2016-04-06 19:07:56 +03:00
EXECUTABLE = "one_hm" ]
2009-04-04 03:34:33 +04:00
2011-09-01 18:57:02 +04:00
#*******************************************************************************
# Fault Tolerance Hooks
#*******************************************************************************
2012-10-19 20:32:19 +04:00
# This hook is used to perform recovery actions when a host fails.
# Script to implement host failure tolerance
2016-09-07 13:14:41 +03:00
# One of the following modes must be chosen
# -m resched VMs to another host. (Only for images in shared storage!)
2014-08-24 14:05:01 +04:00
# -r recreate VMs running in the host. State will be lost.
2012-10-19 20:32:19 +04:00
# -d delete VMs running in the host
2016-09-07 13:14:41 +03:00
#
2012-10-19 20:32:19 +04:00
# Additional flags
2016-09-07 13:14:41 +03:00
# -f resubmit suspended and powered off VMs (only for recreate)
# -p <n> avoid resubmission if host comes back after n monitoring
# cycles. 0 to disable it. Default is 2.
# -u disables fencing. Fencing is enabled by default. Don't disable it
# unless you are very sure about what you're doing
2012-10-22 14:04:35 +04:00
#*******************************************************************************
2011-01-27 20:36:28 +03:00
#
#HOST_HOOK = [
2016-04-06 19:07:56 +03:00
# NAME = "error",
# ON = "ERROR",
# COMMAND = "ft/host_error.rb",
# ARGUMENTS = "$ID -m -p 5",
# REMOTE = "no" ]
2010-12-26 20:58:41 +03:00
#-------------------------------------------------------------------------------
2010-07-08 21:28:10 +04:00
#*******************************************************************************
# Auth Manager Configuration
#*******************************************************************************
2011-10-20 14:53:36 +04:00
# AUTH_MAD: The Driver that will be used to authenticate (authn) and
2011-09-12 20:25:36 +04:00
# authorize (authz) OpenNebula requests. If defined OpenNebula will use the
# built-in auth policies.
#
2010-07-08 21:28:10 +04:00
# executable: path of the auth driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
2012-04-13 19:16:39 +04:00
# authn : list of authentication modules separated by commas, if not
# defined all the modules available will be enabled
# authz : list of authentication modules separated by commas
2011-10-20 14:53:36 +04:00
#
2015-05-26 16:52:24 +03:00
# DEFAULT_AUTH: The default authentication driver to use when OpenNebula does
# not know the user and needs to authenticate it externally. If you want to
# use "default" (not recommended, but supported for backwards compatibility
# reasons) make sure you create a symlink pointing to the actual authentication
# driver in /var/lib/one/remotes/auth, and add "default" to the 'auth'
# parameter in the 'AUTH_MAD' section.
2015-05-26 16:11:49 +03:00
#
2011-10-20 14:53:36 +04:00
# SESSION_EXPIRATION_TIME: Time in seconds to keep an authenticated token as
2012-03-23 23:26:53 +04:00
# valid. During this time, the driver is not used. Use 0 to disable session
2011-10-25 04:08:19 +04:00
# caching
2012-01-11 19:46:57 +04:00
#
2012-06-10 22:40:18 +04:00
# ENABLE_OTHER_PERMISSIONS: Whether or not users can set the permissions for
# 'other', so publishing or sharing resources with others. Users in the oneadmin
# group will still be able to change these permissions. Values: YES or NO.
2013-01-18 21:34:51 +04:00
#
# DEFAULT_UMASK: Similar to Unix umask, sets the default resources permissions.
# Its format must be 3 octal digits. For example a umask of 137 will set
# the new object's permissions to 640 "um- u-- ---"
2011-10-20 14:53:36 +04:00
#*******************************************************************************
2010-07-08 21:28:10 +04:00
2011-11-01 02:38:41 +04:00
AUTH_MAD = [
2016-04-06 19:07:56 +03:00
EXECUTABLE = "one_auth_mad",
AUTHN = "ssh,x509,ldap,server_cipher,server_x509"
2011-11-01 02:38:41 +04:00
]
2015-05-26 16:11:49 +03:00
#DEFAULT_AUTH = "default"
2011-11-01 02:38:41 +04:00
SESSION_EXPIRATION_TIME = 900
2011-09-12 20:25:36 +04:00
2012-01-23 20:18:12 +04:00
#ENABLE_OTHER_PERMISSIONS = "YES"
2013-01-18 21:34:51 +04:00
DEFAULT_UMASK = 177
2014-02-06 20:03:50 +04:00
#*******************************************************************************
# OneGate
2014-02-07 01:31:45 +04:00
# ONEGATE_ENDPOINT: The URL for the onegate server (the Gate to OpenNebula for
# VMs). The onegate server is started using a separate command. The endpoint
# MUST be consistent with the values in onegate-server.conf
2014-02-06 20:03:50 +04:00
#*******************************************************************************
#ONEGATE_ENDPOINT = "http://frontend:5030"
2017-01-30 01:46:59 +03:00
#*******************************************************************************
# VM Operations Permissions
#******************************************************************************
# The following parameters define the operations associated to the ADMIN,
# MANAGE and USE permissions. Note that some VM operations require additional
2017-01-30 20:39:52 +03:00
# permissions on other objects. Also some operations refers to a class of
# actions:
# - disk-snapshot, includes create, delete and revert actions
# - disk-attach, includes attach and detach actions
# - nic-attach, includes attach and detach actions
# - snapshot, includes create, delete and revert actions
# - resched, includes resched and unresched actions
2017-01-30 01:46:59 +03:00
#******************************************************************************
VM_ADMIN_OPERATIONS = "migrate, delete, recover, retry, deploy, resched"
VM_MANAGE_OPERATIONS = "undeploy, hold, release, stop, suspend, resume, reboot,
poweroff, disk-attach, nic-attach, disk-snapshot, terminate, disk-resize,
snapshot, updateconf, rename, resize, update, disk-saveas"
VM_USE_OPERATIONS = ""
2012-01-23 20:18:12 +04:00
#*******************************************************************************
# Restricted Attributes Configuration
#*******************************************************************************
# The following attributes are restricted to users outside the oneadmin group
#*******************************************************************************
VM_RESTRICTED_ATTR = "CONTEXT/FILES"
VM_RESTRICTED_ATTR = "NIC/MAC"
VM_RESTRICTED_ATTR = "NIC/VLAN_ID"
2013-11-14 18:28:04 +04:00
VM_RESTRICTED_ATTR = "NIC/BRIDGE"
2016-09-23 11:32:50 +03:00
VM_RESTRICTED_ATTR = "NIC/INBOUND_AVG_BW"
VM_RESTRICTED_ATTR = "NIC/INBOUND_PEAK_BW"
VM_RESTRICTED_ATTR = "NIC/INBOUND_PEAK_KB"
VM_RESTRICTED_ATTR = "NIC/OUTBOUND_AVG_BW"
VM_RESTRICTED_ATTR = "NIC/OUTBOUND_PEAK_BW"
VM_RESTRICTED_ATTR = "NIC/OUTBOUND_PEAK_KB"
2014-07-10 19:00:42 +04:00
VM_RESTRICTED_ATTR = "NIC_DEFAULT/MAC"
VM_RESTRICTED_ATTR = "NIC_DEFAULT/VLAN_ID"
VM_RESTRICTED_ATTR = "NIC_DEFAULT/BRIDGE"
2014-07-14 14:13:34 +04:00
VM_RESTRICTED_ATTR = "DISK/TOTAL_BYTES_SEC"
VM_RESTRICTED_ATTR = "DISK/READ_BYTES_SEC"
VM_RESTRICTED_ATTR = "DISK/WRITE_BYTES_SEC"
VM_RESTRICTED_ATTR = "DISK/TOTAL_IOPS_SEC"
VM_RESTRICTED_ATTR = "DISK/READ_IOPS_SEC"
VM_RESTRICTED_ATTR = "DISK/WRITE_IOPS_SEC"
2015-08-04 12:11:22 +03:00
#VM_RESTRICTED_ATTR = "DISK/SIZE"
VM_RESTRICTED_ATTR = "DISK/ORIGINAL_SIZE"
2016-12-12 12:26:55 +03:00
VM_RESTRICTED_ATTR = "DISK/SIZE_PREV"
2014-11-07 17:34:57 +03:00
VM_RESTRICTED_ATTR = "CPU_COST"
VM_RESTRICTED_ATTR = "MEMORY_COST"
2015-07-09 15:07:01 +03:00
VM_RESTRICTED_ATTR = "DISK_COST"
2015-09-01 22:42:14 +03:00
VM_RESTRICTED_ATTR = "PCI"
2016-09-13 16:22:38 +03:00
VM_RESTRICTED_ATTR = "EMULATOR"
2016-09-06 17:58:51 +03:00
VM_RESTRICTED_ATTR = "USER_INPUTS/CPU"
VM_RESTRICTED_ATTR = "USER_INPUTS/MEMORY"
VM_RESTRICTED_ATTR = "USER_INPUTS/VCPU"
2017-01-20 14:41:08 +03:00
VM_RESTRICTED_ATTR = "DEPLOY_FOLDER"
2013-02-06 19:34:46 +04:00
2013-02-08 23:14:41 +04:00
#VM_RESTRICTED_ATTR = "RANK"
#VM_RESTRICTED_ATTR = "SCHED_RANK"
#VM_RESTRICTED_ATTR = "REQUIREMENTS"
#VM_RESTRICTED_ATTR = "SCHED_REQUIREMENTS"
2012-01-23 20:18:12 +04:00
IMAGE_RESTRICTED_ATTR = "SOURCE"
2013-06-26 20:41:46 +04:00
2014-09-29 20:27:19 +04:00
#*******************************************************************************
# The following restricted attributes only apply to VNets that are a reservation.
# Normal VNets do not have restricted attributes.
#*******************************************************************************
2016-03-28 13:35:00 +03:00
VNET_RESTRICTED_ATTR = "VN_MAD"
2014-09-03 17:31:00 +04:00
VNET_RESTRICTED_ATTR = "PHYDEV"
VNET_RESTRICTED_ATTR = "VLAN_ID"
VNET_RESTRICTED_ATTR = "BRIDGE"
2016-03-28 13:35:00 +03:00
VNET_RESTRICTED_ATTR = "AR/VN_MAD"
2014-09-04 15:38:11 +04:00
VNET_RESTRICTED_ATTR = "AR/PHYDEV"
VNET_RESTRICTED_ATTR = "AR/VLAN_ID"
VNET_RESTRICTED_ATTR = "AR/BRIDGE"
2013-11-14 14:49:53 +04:00
#*******************************************************************************
# Inherited Attributes Configuration
#*******************************************************************************
# The following attributes will be copied from the resource template to the
# instantiated VMs. More than one attribute can be defined.
#
# INHERIT_IMAGE_ATTR: Attribute to be copied from the Image template
# to each VM/DISK.
#
# INHERIT_DATASTORE_ATTR: Attribute to be copied from the Datastore template
# to each VM/DISK.
#
# INHERIT_VNET_ATTR: Attribute to be copied from the Network template
# to each VM/NIC.
#*******************************************************************************
#INHERIT_IMAGE_ATTR = "EXAMPLE"
#INHERIT_IMAGE_ATTR = "SECOND_EXAMPLE"
#INHERIT_DATASTORE_ATTR = "COLOR"
#INHERIT_VNET_ATTR = "BANDWIDTH_THROTTLING"
2013-11-15 15:58:53 +04:00
INHERIT_DATASTORE_ATTR = "CEPH_HOST"
2013-11-15 16:33:12 +04:00
INHERIT_DATASTORE_ATTR = "CEPH_SECRET"
2013-11-23 02:53:44 +04:00
INHERIT_DATASTORE_ATTR = "CEPH_USER"
2015-10-15 18:41:11 +03:00
INHERIT_DATASTORE_ATTR = "CEPH_CONF"
2015-10-23 15:09:09 +03:00
INHERIT_DATASTORE_ATTR = "POOL_NAME"
2013-11-15 19:43:21 +04:00
2015-12-15 13:23:25 +03:00
INHERIT_DATASTORE_ATTR = "ISCSI_USER"
INHERIT_DATASTORE_ATTR = "ISCSI_USAGE"
INHERIT_DATASTORE_ATTR = "ISCSI_HOST"
INHERIT_IMAGE_ATTR = "ISCSI_USER"
INHERIT_IMAGE_ATTR = "ISCSI_USAGE"
INHERIT_IMAGE_ATTR = "ISCSI_HOST"
INHERIT_IMAGE_ATTR = "ISCSI_IQN"
2014-02-06 19:51:04 +04:00
INHERIT_DATASTORE_ATTR = "GLUSTER_HOST"
INHERIT_DATASTORE_ATTR = "GLUSTER_VOLUME"
2016-01-08 15:18:22 +03:00
INHERIT_DATASTORE_ATTR = "DISK_TYPE"
2016-01-19 19:38:07 +03:00
INHERIT_DATASTORE_ATTR = "ADAPTER_TYPE"
2016-01-08 15:18:22 +03:00
2016-01-11 13:21:24 +03:00
INHERIT_IMAGE_ATTR = "DISK_TYPE"
2016-01-19 19:38:07 +03:00
INHERIT_IMAGE_ATTR = "ADAPTER_TYPE"
2016-01-11 13:21:24 +03:00
2013-11-15 19:43:21 +04:00
INHERIT_VNET_ATTR = "VLAN_TAGGED_ID"
2014-12-10 13:02:23 +03:00
INHERIT_VNET_ATTR = "FILTER_IP_SPOOFING"
INHERIT_VNET_ATTR = "FILTER_MAC_SPOOFING"
2015-03-20 19:43:05 +03:00
INHERIT_VNET_ATTR = "MTU"
2016-09-22 13:16:40 +03:00
INHERIT_VNET_ATTR = "INBOUND_AVG_BW"
INHERIT_VNET_ATTR = "INBOUND_PEAK_BW"
INHERIT_VNET_ATTR = "INBOUND_PEAK_KB"
INHERIT_VNET_ATTR = "OUTBOUND_AVG_BW"
INHERIT_VNET_ATTR = "OUTBOUND_PEAK_BW"
INHERIT_VNET_ATTR = "OUTBOUND_PEAK_KB"
2014-02-06 20:03:50 +04:00
#*******************************************************************************
# Transfer Manager Driver Behavior Configuration
#*******************************************************************************
# The configuration for each driver is defined in TM_MAD_CONF. These
# values are used when creating a new datastore and should not be modified
# since they define the datastore behavior.
# name : name of the transfer driver, listed in the -d option of the
# TM_MAD section
# ln_target : determines how the persistent images will be cloned when
# a new VM is instantiated.
# NONE: The image will be linked and no more storage capacity will be used
# SELF: The image will be cloned in the Images datastore
# SYSTEM: The image will be cloned in the System datastore
# clone_target : determines how the non persistent images will be
# cloned when a new VM is instantiated.
# NONE: The image will be linked and no more storage capacity will be used
# SELF: The image will be cloned in the Images datastore
# SYSTEM: The image will be cloned in the System datastore
# shared : determines if the storage holding the system datastore is shared
# among the different hosts or not. Valid values: "yes" or "no"
2015-12-15 13:23:25 +03:00
# ds_migrate : The driver allows migrations across datastores. Valid values:
2015-10-29 02:57:43 +03:00
# "yes" or "no". Note: THIS ONLY APPLIES TO SYSTEM DS.
2014-02-06 20:03:50 +04:00
#*******************************************************************************
TM_MAD_CONF = [
2015-12-22 16:06:12 +03:00
NAME = "dummy", LN_TARGET = "NONE", CLONE_TARGET = "SYSTEM", SHARED = "YES",
DS_MIGRATE = "YES"
2014-02-06 20:03:50 +04:00
]
TM_MAD_CONF = [
2015-12-22 16:06:12 +03:00
NAME = "lvm", LN_TARGET = "NONE", CLONE_TARGET = "SELF", SHARED = "YES"
2014-02-06 20:03:50 +04:00
]
TM_MAD_CONF = [
2015-12-22 16:06:12 +03:00
NAME = "shared", LN_TARGET = "NONE", CLONE_TARGET = "SYSTEM", SHARED = "YES",
DS_MIGRATE = "YES"
2014-02-06 20:03:50 +04:00
]
TM_MAD_CONF = [
2015-12-22 16:06:12 +03:00
NAME = "fs_lvm", LN_TARGET = "SYSTEM", CLONE_TARGET = "SYSTEM", SHARED="YES"
2014-02-06 20:03:50 +04:00
]
TM_MAD_CONF = [
2015-12-22 16:06:12 +03:00
NAME = "qcow2", LN_TARGET = "NONE", CLONE_TARGET = "SYSTEM", SHARED = "YES"
2014-02-06 20:03:50 +04:00
]
TM_MAD_CONF = [
2015-12-22 16:06:12 +03:00
NAME = "ssh", LN_TARGET = "SYSTEM", CLONE_TARGET = "SYSTEM", SHARED = "NO",
DS_MIGRATE = "YES"
2014-02-06 20:03:50 +04:00
]
TM_MAD_CONF = [
2015-12-22 16:06:12 +03:00
NAME = "ceph", LN_TARGET = "NONE", CLONE_TARGET = "SELF", SHARED = "YES",
DS_MIGRATE = "NO"
2014-02-06 20:03:50 +04:00
]
2014-06-17 21:31:53 +04:00
TM_MAD_CONF = [
2016-05-09 13:09:07 +03:00
NAME = "iscsi_libvirt", LN_TARGET = "NONE", CLONE_TARGET = "SELF", SHARED = "YES",
2015-12-22 16:06:12 +03:00
DS_MIGRATE = "NO"
]
TM_MAD_CONF = [
NAME = "dev", LN_TARGET = "NONE", CLONE_TARGET = "NONE", SHARED = "YES"
2014-06-17 21:31:53 +04:00
]
2016-03-28 17:26:30 +03:00
TM_MAD_CONF = [
NAME = "vcenter", LN_TARGET = "NONE", CLONE_TARGET = "NONE", SHARED = "YES"
]
2015-12-21 21:27:26 +03:00
#*******************************************************************************
# Datastore Manager Driver Behavior Configuration
#*******************************************************************************
# The configuration for each driver is defined in DS_MAD_CONF. These
# values are used when creating a new datastore and should not be modified
# since they define the datastore behavior.
# name : name of the transfer driver, listed in the -d option of the
# DS_MAD section
# required_attrs : comma separated list of required attributes in the DS
# template
2015-12-22 16:06:12 +03:00
# persistent_only: specifies whether the datastore can only manage persistent
# images
2015-12-21 21:27:26 +03:00
#*******************************************************************************
DS_MAD_CONF = [
2015-12-22 16:06:12 +03:00
NAME = "ceph",
2016-06-08 11:08:51 +03:00
REQUIRED_ATTRS = "DISK_TYPE,BRIDGE_LIST",
2016-04-06 16:28:05 +03:00
PERSISTENT_ONLY = "NO",
MARKETPLACE_ACTIONS = "export"
2014-06-17 21:31:53 +04:00
]
2015-12-22 16:06:12 +03:00
DS_MAD_CONF = [
NAME = "dev", REQUIRED_ATTRS = "DISK_TYPE", PERSISTENT_ONLY = "YES"
2015-12-21 21:27:26 +03:00
]
DS_MAD_CONF = [
2016-05-09 13:09:07 +03:00
NAME = "iscsi_libvirt", REQUIRED_ATTRS = "DISK_TYPE,ISCSI_HOST",
2015-12-22 16:06:12 +03:00
PERSISTENT_ONLY = "YES"
2015-12-21 21:27:26 +03:00
]
DS_MAD_CONF = [
2015-12-22 16:06:12 +03:00
NAME = "dummy", REQUIRED_ATTRS = "", PERSISTENT_ONLY = "NO"
2015-12-21 21:27:26 +03:00
]
DS_MAD_CONF = [
2016-04-06 16:28:05 +03:00
NAME = "fs", REQUIRED_ATTRS = "", PERSISTENT_ONLY = "NO",
MARKETPLACE_ACTIONS = "export"
2015-12-21 21:27:26 +03:00
]
DS_MAD_CONF = [
2016-01-05 20:30:31 +03:00
NAME = "lvm", REQUIRED_ATTRS = "DISK_TYPE,BRIDGE_LIST",
PERSISTENT_ONLY = "NO"
2015-12-21 21:27:26 +03:00
]
2016-01-08 17:46:48 +03:00
DS_MAD_CONF = [
2016-04-06 16:28:05 +03:00
NAME = "vcenter", REQUIRED_ATTRS = "VCENTER_CLUSTER", PERSISTENT_ONLY = "YES",
MARKETPLACE_ACTIONS = "export"
2016-01-08 17:46:48 +03:00
]
2016-02-10 14:25:28 +03:00
2016-02-03 18:03:22 +03:00
#*******************************************************************************
# MarketPlace Driver Behavior Configuration
#*******************************************************************************
# The configuration for each driver is defined in MARKET_MAD_CONF. These
# values are used when creating a new marketplaces and should not be modified
# since they define the marketplace behavior.
# name : name of the market driver
# required_attrs : comma separated list of required attributes in the Market
# template
2016-02-09 18:33:13 +03:00
# app_actions: List of actions allowed for a MarketPlaceApp
# - monitor The apps of the marketplace will be monitored
2016-02-10 20:16:59 +03:00
# - create, the app in the marketplace
2016-02-09 18:33:13 +03:00
# - delete, the app from the marketplace
2016-02-29 20:19:52 +03:00
# public: set to yes for external marketplaces. A public marketplace can be
# removed even if it has registered apps.
2016-02-03 18:03:22 +03:00
#*******************************************************************************
2016-02-03 23:50:20 +03:00
MARKET_MAD_CONF = [
NAME = "one",
2016-05-31 16:57:15 +03:00
SUNSTONE_NAME = "OpenNebula.org Marketplace",
2016-02-09 18:33:13 +03:00
REQUIRED_ATTRS = "",
2016-04-13 00:21:38 +03:00
APP_ACTIONS = "monitor",
2016-02-29 20:19:52 +03:00
PUBLIC = "yes"
2016-02-03 23:50:20 +03:00
]
2016-02-03 18:03:22 +03:00
MARKET_MAD_CONF = [
NAME = "http",
2016-05-31 16:57:15 +03:00
SUNSTONE_NAME = "HTTP server",
2016-02-10 11:58:01 +03:00
REQUIRED_ATTRS = "BASE_URL,PUBLIC_DIR",
2016-02-10 20:16:59 +03:00
APP_ACTIONS = "create, delete, monitor"
2016-02-03 18:03:22 +03:00
]
MARKET_MAD_CONF = [
NAME = "s3",
2016-05-31 16:57:15 +03:00
SUNSTONE_NAME = "Amazon S3",
2016-02-09 18:33:13 +03:00
REQUIRED_ATTRS = "ACCESS_KEY_ID,SECRET_ACCESS_KEY,REGION,BUCKET",
2016-02-10 20:16:59 +03:00
APP_ACTIONS = "create, delete, monitor"
2016-02-03 18:03:22 +03:00
]
2016-06-29 18:17:18 +03:00
#*******************************************************************************
# Authentication Driver Behavior Definition
#*******************************************************************************
2016-07-06 11:16:47 +03:00
# The configuration for each driver is defined in AUTH_MAD_CONF. These
2016-06-29 18:17:18 +03:00
# values must not be modified since they define the driver behavior.
# name : name of the auth driver
# password_change : allow the end users to change their own password. Oneadmin
# can still change other user's passwords
2016-08-24 11:49:22 +03:00
# driver_managed_groups : allow the driver to set the user's group even after
# user creation. In this case addgroup, delgroup and chgrp
# will be disabled, with the exception of chgrp to one of
# the groups in the list of secondary groups
# max_token_time : limit the maximum token validity, in seconds. Use -1 for
# unlimited maximum, 0 to disable login tokens
2016-06-29 18:17:18 +03:00
#*******************************************************************************
2016-07-06 11:16:47 +03:00
AUTH_MAD_CONF = [
2016-06-29 18:17:18 +03:00
NAME = "core",
2016-08-23 15:48:45 +03:00
PASSWORD_CHANGE = "YES",
2016-08-24 11:49:22 +03:00
DRIVER_MANAGED_GROUPS = "NO",
MAX_TOKEN_TIME = "-1"
2016-06-29 18:17:18 +03:00
]
2016-07-06 11:16:47 +03:00
AUTH_MAD_CONF = [
2016-06-29 18:17:18 +03:00
NAME = "public",
2016-08-23 15:48:45 +03:00
PASSWORD_CHANGE = "NO",
2016-08-24 11:49:22 +03:00
DRIVER_MANAGED_GROUPS = "NO",
MAX_TOKEN_TIME = "-1"
2016-06-29 18:17:18 +03:00
]
2016-07-06 11:16:47 +03:00
AUTH_MAD_CONF = [
2016-06-29 18:17:18 +03:00
NAME = "ssh",
2016-08-23 15:48:45 +03:00
PASSWORD_CHANGE = "YES",
2016-08-24 11:49:22 +03:00
DRIVER_MANAGED_GROUPS = "NO",
MAX_TOKEN_TIME = "-1"
2016-06-29 18:17:18 +03:00
]
2016-07-06 11:16:47 +03:00
AUTH_MAD_CONF = [
2016-06-29 18:17:18 +03:00
NAME = "x509",
2016-08-23 15:48:45 +03:00
PASSWORD_CHANGE = "NO",
2016-08-24 11:49:22 +03:00
DRIVER_MANAGED_GROUPS = "NO",
MAX_TOKEN_TIME = "-1"
2016-06-29 18:17:18 +03:00
]
2016-07-06 11:16:47 +03:00
AUTH_MAD_CONF = [
2016-06-29 18:17:18 +03:00
NAME = "ldap",
2016-08-23 15:48:45 +03:00
PASSWORD_CHANGE = "YES",
2016-08-24 11:49:22 +03:00
DRIVER_MANAGED_GROUPS = "YES",
MAX_TOKEN_TIME = "86400"
2016-06-29 18:17:18 +03:00
]
2016-07-06 11:16:47 +03:00
AUTH_MAD_CONF = [
2016-06-29 18:17:18 +03:00
NAME = "server_cipher",
2016-08-23 15:48:45 +03:00
PASSWORD_CHANGE = "NO",
2016-08-24 11:49:22 +03:00
DRIVER_MANAGED_GROUPS = "NO",
MAX_TOKEN_TIME = "-1"
2016-06-29 18:17:18 +03:00
]
2016-07-06 11:16:47 +03:00
AUTH_MAD_CONF = [
2016-06-29 18:17:18 +03:00
NAME = "server_x509",
2016-08-23 15:48:45 +03:00
PASSWORD_CHANGE = "NO",
2016-08-24 11:49:22 +03:00
DRIVER_MANAGED_GROUPS = "NO",
MAX_TOKEN_TIME = "-1"
2016-06-29 18:17:18 +03:00
]