summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
-rw-r--r--meta-openstack/recipes-devtools/python/python-quantum/quantum.conf287
-rw-r--r--meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb15
2 files changed, 10 insertions, 292 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-quantum/quantum.conf b/meta-openstack/recipes-devtools/python/python-quantum/quantum.conf
deleted file mode 100644
index bcf14fa..0000000
--- a/meta-openstack/recipes-devtools/python/python-quantum/quantum.conf
+++ /dev/null
@@ -1,287 +0,0 @@
1[DEFAULT]
2# Default log level is INFO
3# verbose and debug has the same result.
4# One of them will set DEBUG log level output
5# debug = False
6# verbose = False
7
8# Where to store Quantum state files. This directory must be writable by the
9# user executing the agent.
10# state_path = /var/lib/quantum
11
12# Where to store lock files
13lock_path = $state_path/lock
14
15# log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
16# log_date_format = %Y-%m-%d %H:%M:%S
17
18# use_syslog -> syslog
19# log_file and log_dir -> log_dir/log_file
20# (not log_file) and log_dir -> log_dir/{binary_name}.log
21# use_stderr -> stderr
22# (not user_stderr) and (not log_file) -> stdout
23# publish_errors -> notification system
24
25# use_syslog = False
26# syslog_log_facility = LOG_USER
27
28# use_stderr = True
29# log_file =
30# log_dir =
31
32# publish_errors = False
33
34# Address to bind the API server
35bind_host = 0.0.0.0
36
37# Port the bind the API server to
38bind_port = 9696
39
40# Path to the extensions. Note that this can be a colon-separated list of
41# paths. For example:
42# api_extensions_path = extensions:/path/to/more/extensions:/even/more/extensions
43# The __path__ of quantum.extensions is appended to this, so if your
44# extensions are in there you don't need to specify them here
45# api_extensions_path =
46
47# Quantum plugin provider module
48core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2
49
50# Advanced service modules
51# service_plugins =
52
53# Paste configuration file
54api_paste_config = api-paste.ini
55
56# The strategy to be used for auth.
57# Supported values are 'keystone'(default), 'noauth'.
58# auth_strategy = keystone
59
60# Base MAC address. The first 3 octets will remain unchanged. If the
61# 4h octet is not 00, it will also used. The others will be
62# randomly generated.
63# 3 octet
64# base_mac = fa:16:3e:00:00:00
65# 4 octet
66# base_mac = fa:16:3e:4f:00:00
67
68# Maximum amount of retries to generate a unique MAC address
69# mac_generation_retries = 16
70
71# DHCP Lease duration (in seconds)
72# dhcp_lease_duration = 120
73
74# Allow sending resource operation notification to DHCP agent
75# dhcp_agent_notification = True
76
77# Enable or disable bulk create/update/delete operations
78# allow_bulk = True
79# Enable or disable pagination
80# allow_pagination = False
81# Enable or disable sorting
82# allow_sorting = False
83# Enable or disable overlapping IPs for subnets
84# Attention: the following parameter MUST be set to False if Quantum is
85# being used in conjunction with nova security groups and/or metadata service.
86# allow_overlapping_ips = False
87# Ensure that configured gateway is on subnet
88# force_gateway_on_subnet = False
89
90
91# RPC configuration options. Defined in rpc __init__
92# The messaging module to use, defaults to kombu.
93# rpc_backend = quantum.openstack.common.rpc.impl_kombu
94# Size of RPC thread pool
95# rpc_thread_pool_size = 64,
96# Size of RPC connection pool
97# rpc_conn_pool_size = 30
98# Seconds to wait for a response from call or multicall
99# rpc_response_timeout = 60
100# Seconds to wait before a cast expires (TTL). Only supported by impl_zmq.
101# rpc_cast_timeout = 30
102# Modules of exceptions that are permitted to be recreated
103# upon receiving exception data from an rpc call.
104# allowed_rpc_exception_modules = quantum.openstack.common.exception, nova.exception
105# AMQP exchange to connect to if using RabbitMQ or QPID
106control_exchange = quantum
107
108# If passed, use a fake RabbitMQ provider
109# fake_rabbit = False
110
111# Configuration options if sending notifications via kombu rpc (these are
112# the defaults)
113# SSL version to use (valid only if SSL enabled)
114# kombu_ssl_version =
115# SSL key file (valid only if SSL enabled)
116# kombu_ssl_keyfile =
117# SSL cert file (valid only if SSL enabled)
118# kombu_ssl_certfile =
119# SSL certification authority file (valid only if SSL enabled)'
120# kombu_ssl_ca_certs =
121# IP address of the RabbitMQ installation
122rabbit_host = localhost
123# Password of the RabbitMQ server
124# rabbit_password = guest
125# Port where RabbitMQ server is running/listening
126rabbit_port = 5672
127# RabbitMQ single or HA cluster (host:port pairs i.e: host1:5672, host2:5672)
128# rabbit_hosts is defaulted to '$rabbit_host:$rabbit_port'
129# rabbit_hosts = localhost:5672
130# User ID used for RabbitMQ connections
131# rabbit_userid = guest
132# Location of a virtual RabbitMQ installation.
133# rabbit_virtual_host = /
134# Maximum retries with trying to connect to RabbitMQ
135# (the default of 0 implies an infinite retry count)
136# rabbit_max_retries = 0
137# RabbitMQ connection retry interval
138# rabbit_retry_interval = 1
139# Use HA queues in RabbitMQ (x-ha-policy: all).You need to
140# wipe RabbitMQ database when changing this option. (boolean value)
141# rabbit_ha_queues = false
142
143# QPID
144# rpc_backend=quantum.openstack.common.rpc.impl_qpid
145# Qpid broker hostname
146# qpid_hostname = localhost
147# Qpid broker port
148# qpid_port = 5672
149# Qpid single or HA cluster (host:port pairs i.e: host1:5672, host2:5672)
150# qpid_hosts is defaulted to '$qpid_hostname:$qpid_port'
151# qpid_hosts = localhost:5672
152# Username for qpid connection
153# qpid_username = ''
154# Password for qpid connection
155# qpid_password = ''
156# Space separated list of SASL mechanisms to use for auth
157# qpid_sasl_mechanisms = ''
158# Seconds between connection keepalive heartbeats
159# qpid_heartbeat = 60
160# Transport to use, either 'tcp' or 'ssl'
161# qpid_protocol = tcp
162# Disable Nagle algorithm
163# qpid_tcp_nodelay = True
164
165# ZMQ
166# rpc_backend=quantum.openstack.common.rpc.impl_zmq
167# ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.
168# The "host" option should point or resolve to this address.
169# rpc_zmq_bind_address = *
170
171# ============ Notification System Options =====================
172
173# Notifications can be sent when network/subnet/port are create, updated or deleted.
174# There are three methods of sending notifications: logging (via the
175# log_file directive), rpc (via a message queue) and
176# noop (no notifications sent, the default)
177
178# Notification_driver can be defined multiple times
179# Do nothing driver
180# notification_driver = quantum.openstack.common.notifier.no_op_notifier
181# Logging driver
182# notification_driver = quantum.openstack.common.notifier.log_notifier
183# RPC driver. DHCP agents needs it.
184notification_driver = quantum.openstack.common.notifier.rpc_notifier
185
186# default_notification_level is used to form actual topic name(s) or to set logging level
187default_notification_level = INFO
188
189# default_publisher_id is a part of the notification payload
190# host = myhost.com
191# default_publisher_id = $host
192
193# Defined in rpc_notifier, can be comma separated values.
194# The actual topic names will be %s.%(default_notification_level)s
195notification_topics = notifications
196
197# Default maximum number of items returned in a single response,
198# value == infinite and value < 0 means no max limit, and value must
199# greater than 0. If the number of items requested is greater than
200# pagination_max_limit, server will just return pagination_max_limit
201# of number of items.
202# pagination_max_limit = -1
203
204# Maximum number of DNS nameservers per subnet
205# max_dns_nameservers = 5
206
207# Maximum number of host routes per subnet
208# max_subnet_host_routes = 20
209
210# Maximum number of fixed ips per port
211# max_fixed_ips_per_port = 5
212
213# =========== items for agent management extension =============
214# Seconds to regard the agent as down.
215# agent_down_time = 5
216# =========== end of items for agent management extension =====
217
218# =========== items for agent scheduler extension =============
219# Driver to use for scheduling network to DHCP agent
220# network_scheduler_driver = quantum.scheduler.dhcp_agent_scheduler.ChanceScheduler
221# Driver to use for scheduling router to a default L3 agent
222# router_scheduler_driver = quantum.scheduler.l3_agent_scheduler.ChanceScheduler
223
224# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted
225# networks to first DHCP agent which sends get_active_networks message to
226# quantum server
227# network_auto_schedule = True
228
229# Allow auto scheduling routers to L3 agent. It will schedule non-hosted
230# routers to first L3 agent which sends sync_routers message to quantum server
231# router_auto_schedule = True
232# =========== end of items for agent scheduler extension =====
233
234[QUOTAS]
235# resource name(s) that are supported in quota features
236# quota_items = network,subnet,port
237
238# default number of resource allowed per tenant, minus for unlimited
239# default_quota = -1
240
241# number of networks allowed per tenant, and minus means unlimited
242# quota_network = 10
243
244# number of subnets allowed per tenant, and minus means unlimited
245# quota_subnet = 10
246
247# number of ports allowed per tenant, and minus means unlimited
248# quota_port = 50
249
250# number of security groups allowed per tenant, and minus means unlimited
251# quota_security_group = 10
252
253# number of security group rules allowed per tenant, and minus means unlimited
254# quota_security_group_rule = 100
255
256# default driver to use for quota checks
257# quota_driver = quantum.quota.ConfDriver
258
259[DEFAULT_SERVICETYPE]
260# Description of the default service type (optional)
261# description = "default service type"
262# Enter a service definition line for each advanced service provided
263# by the default service type.
264# Each service definition should be in the following format:
265# <service>:<plugin>[:driver]
266
267[AGENT]
268# Use "sudo quantum-rootwrap /etc/quantum/rootwrap.conf" to use the real
269# root filter facility.
270# Change to "sudo" to skip the filtering and just run the comand directly
271# root_helper = sudo
272
273# =========== items for agent management extension =============
274# seconds between nodes reporting state to server, should be less than
275# agent_down_time
276# report_interval = 4
277
278# =========== end of items for agent management extension =====
279
280[keystone_authtoken]
281auth_host = 127.0.0.1
282auth_port = 35357
283auth_protocol = http
284admin_tenant_name = service
285admin_user = quantum
286admin_password = password
287signing_dir = /var/lib/quantum/keystone-signing
diff --git a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
index 568afc2..357cbae 100644
--- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
+++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
@@ -8,7 +8,6 @@ PR = "r0"
8SRCNAME = "quantum" 8SRCNAME = "quantum"
9 9
10SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ 10SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \
11 file://quantum.conf \
12 file://ovs_quantum_plugin.ini \ 11 file://ovs_quantum_plugin.ini \
13 file://linuxbridge_conf.ini \ 12 file://linuxbridge_conf.ini \
14 file://quantum-server.init \ 13 file://quantum-server.init \
@@ -21,12 +20,20 @@ SRC_URI[sha256sum] = "08752d58fc010332c527974ddff0475378f6104e77de40b0a690580f67
21 20
22S = "${WORKDIR}/${SRCNAME}-${PV}" 21S = "${WORKDIR}/${SRCNAME}-${PV}"
23 22
24inherit setuptools update-rc.d 23inherit setuptools update-rc.d identity
25 24
26do_install_append() { 25do_install_append() {
27 26 TEMPLATE_CONF_DIR=${S}${sysconfdir}/
28 QUANTUM_CONF_DIR=${D}${sysconfdir}/quantum 27 QUANTUM_CONF_DIR=${D}${sysconfdir}/quantum
29 28
29 sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \
30 ${TEMPLATE_CONF_DIR}/quantum.conf > ${WORKDIR}/quantum.conf
31 sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/quantum.conf
32 sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \
33 -i ${WORKDIR}/quantum.conf
34 sed -e "s:^# core_plugin.*:core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2:g" \
35 -i ${WORKDIR}/quantum.conf
36
30 install -d ${QUANTUM_CONF_DIR} 37 install -d ${QUANTUM_CONF_DIR}
31 install -d ${QUANTUM_CONF_DIR}/plugins/openvswitch 38 install -d ${QUANTUM_CONF_DIR}/plugins/openvswitch
32 install -d ${QUANTUM_CONF_DIR}/plugins/linuxbridge 39 install -d ${QUANTUM_CONF_DIR}/plugins/linuxbridge
@@ -38,7 +45,6 @@ do_install_append() {
38 install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/ 45 install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/
39 46
40 PLUGIN=openvswitch 47 PLUGIN=openvswitch
41
42 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 48 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
43 install -d ${D}${sysconfdir}/init.d 49 install -d ${D}${sysconfdir}/init.d
44 sed "s:@plugin@:/etc/quantum/plugins/$PLUGIN/ovs_quantum_plugin.ini:" \ 50 sed "s:@plugin@:/etc/quantum/plugins/$PLUGIN/ovs_quantum_plugin.ini:" \
@@ -63,7 +69,6 @@ pkg_postinst_${SRCNAME} () {
63 fi 69 fi
64 70
65 sudo -u postgres createdb quantum 71 sudo -u postgres createdb quantum
66
67} 72}
68 73
69PACKAGES += " \ 74PACKAGES += " \