]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
move database config items into quantum.conf
authorYong Sheng Gong <gongysh@unitedstack.com>
Wed, 26 Jun 2013 08:46:39 +0000 (16:46 +0800)
committerYong Sheng Gong <gongysh@unitedstack.com>
Fri, 28 Jun 2013 00:20:40 +0000 (08:20 +0800)
Bug #1194784

This patch syncs all the DB configuration items into
quantum.conf and removes the related items of plugins' config
file to avoid duplication.

sqlite related sqlite_db and sqlite_synchronous are defined
in 'default' section, which I think is a defect. And it seems
quantum does not use sqlite_db item.

Change-Id: Ia47102ced0e4169f45f10b85311f298d8c026d31

15 files changed:
etc/quantum.conf
etc/quantum/plugins/bigswitch/restproxy.ini
etc/quantum/plugins/brocade/brocade.ini
etc/quantum/plugins/cisco/cisco_plugins.ini
etc/quantum/plugins/hyperv/hyperv_quantum_plugin.ini
etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini
etc/quantum/plugins/metaplugin/metaplugin.ini
etc/quantum/plugins/midonet/midonet.ini
etc/quantum/plugins/ml2/ml2_conf.ini
etc/quantum/plugins/mlnx/mlnx_conf.ini
etc/quantum/plugins/nec/nec.ini
etc/quantum/plugins/nicira/nvp.ini
etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
etc/quantum/plugins/plumgrid/plumgrid.ini
etc/quantum/plugins/ryu/ryu.ini

index 5b95f8f3ec0a469289e2724cf978e166cc0723cc..f613bd94eca2bc82aa9633ba62eb3a1bb0e3f0ac 100644 (file)
@@ -323,3 +323,43 @@ signing_dir = /var/lib/quantum/keystone-signing
 # driver_fqn is the fully qualified name of the lbaas driver that will be loaded by the lbass plugin
 # ==================================================================================================
 #driver_fqn = quantum.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver
+
+[database]
+# This line MUST be changed to actually run the plugin.
+# Example:
+# connection = mysql://root:pass@127.0.0.1:3306/quantum
+# Replace 127.0.0.1 above with the IP address of the database used by the
+# main quantum server. (Leave it as is if the database runs on this host.)
+# connection = sqlite://
+
+# The SQLAlchemy connection string used to connect to the slave database
+# slave_connection =
+
+# Database reconnection retry times - in event connectivity is lost
+# set to -1 implies an infinite retry count
+# max_retries = 10
+
+# Database reconnection interval in seconds - if the initial connection to the
+# database fails
+# retry_interval = 10
+
+# Minimum number of SQL connections to keep open in a pool
+# min_pool_size = 1
+
+# Maximum number of SQL connections to keep open in a pool
+# max_pool_size = 10
+
+# Timeout in seconds before idle sql connections are reaped
+# idle_timeout = 3600
+
+# If set, use this value for max_overflow with sqlalchemy
+# max_overflow = 20,
+
+# Verbosity of SQL debugging information. 0=None, 100=Everything
+# connection_debug = 0
+
+# Add python stack traces to SQL as comment strings
+# connection_trace = False,
+
+# If set, use this value for pool_timeout with sqlalchemy
+# pool_timeout = 10
index 4c5e72130230cd4b294c833d9f7ce1873a7d8bc6..04168b17c05def425414c1d77e936111f48b128b 100644 (file)
@@ -1,25 +1,5 @@
 # Config file for quantum-proxy-plugin.
 
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://root:pass@127.0.0.1:3306/restproxy_quantum
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-connection = sqlite://
-# Database reconnection retry times - in event connectivity is lost
-# set to -1 implies an infinite retry count
-# max_retries = 10
-# Database reconnection interval in seconds - if the initial connection to the
-# database fails
-retry_interval = 2
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
-
 [restproxy]
 # All configuration for this plugin is in section '[restproxy]'
 #
index 513304823622e0c42a1ca4296be4f6ee4f1fa7ca..89dbe966e9b31c3dcfc460d7aac33646ac0d1773 100644 (file)
 # address  = 10.24.84.38
 # ostype   = NOS
 
-[database]
-# connection = sqlite://
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
-#
-# Example:
-# connection = mysql://root:pass@localhost/brcd_quantum?charset=utf8
-
 [physical_interface]
 # physical_interface = <physical network name>
 #
index 6c7384c6948ec7ce0d2d391bc5530b9ee1e595e2..10b4e9a30e4e84e3019835dc15cfb75ac3e686c7 100644 (file)
@@ -34,12 +34,3 @@ host=testhost
 # username=admin
 # password=mySecretPassword
 
-[database]
-#
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://quantum:password@127.0.0.1:3306/cisco_quantum
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-#
-# connection=engine://user:pass@host/db_name
index f9970380d9a8712dd6dbef2295915aee8f0afcff..77302dadb72a07651598869050d6f02a52bc6de0 100644 (file)
@@ -1,23 +1,3 @@
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://quantum:password@127.0.0.1:3306/hyperv_quantum
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-connection = sqlite://
-# Database reconnection retry times - in event connectivity is lost
-# set to -1 implies an infinite retry count
-# max_retries = 10
-# Database reconnection interval in seconds - if the initial connection to the
-# database fails
-retry_interval = 2
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
-
 [hyperv]
 # (StrOpt) Type of network to allocate for tenant networks. The
 # default value 'local' is useful only for single-box testing and
index 6b74fb67b0e047b13cd9a53b45f0c5e61d2c0dec..fb1825842b2c98d3b2d3b808b39f9de55d7b1794 100644 (file)
 # network_vlan_ranges =
 # Example: network_vlan_ranges = physnet1:1000:2999
 
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://root:nova@127.0.0.1:3306/quantum_linux_bridge
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-connection = sqlite://
-# Database reconnection retry times - in event connectivity is lost
-# set to -1 implies an infinite retry count
-# max_retries = 10
-# Database reconnection interval in seconds - if the initial connection to the
-# database fails
-retry_interval = 2
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
-
 [linux_bridge]
 # (ListOpt) Comma-separated list of
 # <physical_network>:<physical_interface> tuples mapping physical
index 702b76f9b0565a438f9e1f58925dfb82f56a2684..62264af92af442ec69d5aaa52aa7cb8f7b79634b 100644 (file)
@@ -1,24 +1,3 @@
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-connection = mysql://root:password@localhost/quantum_metaplugin?charset=utf8
-
-# Database reconnection retry times - in event connectivity is lost
-# set to -1 implgies an infinite retry count
-# max_retries = 10
-# Database reconnection interval in seconds - if the initial connection to the
-# database fails
-retry_interval = 2
-
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
 
 [meta]
 ## This is list of flavor:quantum_plugins
index 2132474c2d5a7d21a95b1f01fa15682ed47867bb..ebe22824935ab67ac037a030c44e353739d0238d 100644 (file)
@@ -1,22 +1,3 @@
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://root:pass@127.0.0.1:3306/midonet_quantum
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-connection = sqlite://
-# Database reconnection retry times - in event connectivity is lost
-# set to -1 implies an infinite retry count
-# max_retries = 10
-# Database reconnection interval in seconds - if the initial connection to the
-# database fails
-retry_interval = 2
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
 
 [midonet]
 # MidoNet API server URI
index 882b1f53fa7e05b78308f0bf486a877232fa04ea..a7fc6478fea7e2f2c1b5b084633c92132a4a2779 100644 (file)
@@ -1,44 +1,3 @@
-[database]
-# (StrOpt) SQLAlchemy database connection string. This MUST be changed
-# to actually run the plugin with persistent storage.
-#
-# connection = sqlite://
-# Example: connection = mysql://root:password@localhost/quantum_ml2?charset=utf8
-
-# (IntOpt) Database reconnection retry limit after database
-# connectivity is lost. Value of -1 specifies infinite retry limit.
-#
-# max_retries = 10
-# Example: max_retries = -1
-
-# (IntOpt) Database reconnection interval in seconds after the initial
-# connection to the database fails.
-#
-# retry_interval = 2
-# Example: retry_interval = 10
-
-# (IntOpt) Minimum number of MySQL connections to keep open in a pool.
-#
-# min_pool_size = 1
-# Example: min_pool_size = 5
-
-# (IntOpt) Maximum number of MySQL connections to keep open in a pool.
-#
-# max_pool_size =
-# Example: sql_max_pool_size = 20
-
-# (IntOpt) Timeout in seconds before idle MySQL connections are
-# reaped.
-#
-# idle_timeout = 3600
-# Example: idle_timeout = 6000
-
-# Maximum number of SQL connections to keep open in a QueuePool in SQLAlchemy
-# Example sqlalchemy_pool_size = 5
-# Maximum number of overflow connections in a QueuePool in SQLAlchemy
-# Example sqlalchemy_max_overflow = 10
-# Timeout of the open connections QueuePool in SQLAlchemy
-# Example sqlalchemy_pool_timeout = 30
 
 [ml2]
 # (ListOpt) List of network type driver entrypoints to be loaded from
index 973cf0cc87afffc498275a644407df941847859c..65f3db9a8d155c303a31bfe7380a2d645d625083 100644 (file)
 # network_vlan_ranges =
 # Example: network_vlan_ranges = default:1:100
 
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://root:nova@127.0.0.1:3306/quantum_linux_bridge
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-connection = sqlite://
-# Database reconnection retry times - in event connectivity is lost
-# set to -1 implies an infinite retry count
-# max_retries = 10
-# Database reconnection interval in seconds - in event connectivity is lost
-retry_interval = 2
-
 [eswitch]
 # (ListOpt) Comma-separated list of
 # <physical_network>:<physical_interface> tuples mapping physical
index e2b59ce1dddb8c09f40d086578602affd96ff1cf..24ad9d4f503826c02e9399c0805e9f8cc0289ae4 100644 (file)
@@ -1,25 +1,5 @@
 # Sample Configurations
 
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-connection = sqlite://
-# Database reconnection retry times - in event connectivity is lost
-# set to -1 implies an infinite retry count
-# max_retries = 10
-# Database reconnection interval in seconds - if the initial connection to the
-# database fails
-retry_interval = 2
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
-
 [ovs]
 # Do not change this parameter unless you have a good reason to.
 # This is the name of the OVS integration bridge. There is one per hypervisor.
index 1cad7476048e27a8cbb997f607343475804a8277..6187b312312d20885a58429b441b09674924ad2f 100644 (file)
 # interface name was not specified
 # default_iface_name = breth0
 
-
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://root:quantum@127.0.0.1:3306/nvp_quantum
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-connection = sqlite://
-
-# Number of reconnection attempts to the DB; Set to -1 to try indefinitely
-# max_retries = 10
-
-# Period between reconnection attempts to the DB
-# retry_interval = 2
-
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
-
-# Maximum number of SQL connections to keep open in a QueuePool in SQLAlchemy
-# Example sqlalchemy_pool_size = 5
-
-# Maximum number of overflow connections in a QueuePool in SQLAlchemy
-# Example sqlalchemy_max_overflow = 10
-
-# Timeout of the open connections QueuePool in SQLAlchemy
-# Example sqlalchemy_pool_timeout = 30
-
 [quotas]
 # number of network gateways allowed per tenant, -1 means unlimited
 # quota_network_gateway = 5
index 7df9a4ae13b3ec876cb6bba3568a60fbba98765c..b18da65a094a26bc18e753d2ec308ff370ebe5ac 100644 (file)
@@ -1,23 +1,3 @@
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
-# Replace 127.0.0.1 above with the IP address of the database used by the
-# main quantum server. (Leave it as is if the database runs on this host.)
-connection = sqlite://
-# Database reconnection retry times - in event connectivity is lost
-# set to -1 implies an infinite retry count
-# max_retries = 10
-# Database reconnection interval in seconds - if the initial connection to the
-# database fails
-retry_interval = 2
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
-
 [ovs]
 # (StrOpt) Type of network to allocate for tenant networks. The
 # default value 'local' is useful only for single-box testing and
index a74693defd1c2ed0c321ff73134172e58a64c15c..1c30ef67abb021fe7ecd733399b6b7b9bbcfdc0f 100644 (file)
@@ -1,25 +1,5 @@
 # Config file for Quantum PLUMgrid plugin
 
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example:
-# connection = mysql://<user>:<pass>@<host>:3306/plumgrid_quantum
-# Replace <host> above with the IP address of the database used by the
-# main quantum server.
-# connection = sqlite://
-# Database reconnection retry times - in event connectivity is lost
-# set to -1 implies an infinite retry count
-# max_retries = 10
-# Database reconnection interval in seconds - if the initial connection to the
-# database fails
-# retry_interval = 2
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
-
 [plumgridnos]
 # This line should be pointing to the NOS server,
 # for the PLUMgrid platform. In other deployments,
index 573b9cebdcdd9677fd6470aac8c10e92a2b77094..2cd3978b157e480f6a2ba6fa52fad1079d36d88c 100644 (file)
@@ -1,14 +1,3 @@
-[database]
-# This line MUST be changed to actually run the plugin.
-# Example: connection = mysql://root:nova@127.0.0.1:3306/ryu_quantum
-# connection = mysql://<user>:<pass>@<IP>:<port>/<dbname>
-connection = sqlite://
-# Minimum number of SQL connections to keep open in a pool
-# min_pool_size = 1
-# Maximum number of SQL connections to keep open in a pool
-# max_pool_size = 5
-# Timeout in seconds before idle sql connections are reaped
-# idle_timeout = 3600
 
 [ovs]
 integration_bridge = br-int