A set of Neutron drivers for the VMware NSX.
Go to file
Paul Michali 8ec8987c31 Remove cfg option default value and check if missing
Currently, several plugins already check config options at __init__()
for validity and will exit, if the settings are incorrect. However,
most (all?) config option definitions have default values, so if the
option is missing, a valid, but maybe unexpected value will be used.
This is what occurred in the bug.

The proposed fix is to take a config option, sql_connection, which is
used by many plugins, and remove the default value. Then, at init
time, when the config option is used in configure_db(), a check is
made for the value. If the value is not set, a warning is logged and
the value is set to the default, for db/api.py. It is expected that
this will be the only module to consume this config option.

Added UT to check that log warning is issued. Also, changed the timing
so that the test takes 0.25 secs vs 12 secs. Removed UTs in two plugin
tests that checked the default value for sql_connection.

Other alternatives explored in previous patches, were to either
raise an exception, or mark this config option as "required". This
resulted in a large number of changes to tests, and required config
overrides in plugins that imported quantum.db.api, but did not use
sql_connection.

In order to keep this solution (of this log-hanging fruit) fix, the
proposed, simpler change is being made.

Some cleanup to the Cisco plugin test case was also made, so that
the mock was more in line with what production code does.

bug 1059923

Change-Id: I8c2a4e05231ac4e172d0dccece067e6fdb354341
2013-02-12 09:24:22 -05:00
bin Adds support for deploying Quantum on Windows 2013-01-14 14:47:38 +02:00
doc Updated openstack-common setup and version code. 2012-11-08 09:21:34 +08:00
etc Merge "Move auth_token configurations to quantum.conf" 2013-02-11 20:02:22 +00:00
quantum Remove cfg option default value and check if missing 2013-02-12 09:24:22 -05:00
tools Allow tools/install_venv_common.py to be run from within the source directory. 2013-02-05 18:08:45 -05:00
.bzrignore bp/api-filters 2012-01-25 08:51:51 +00:00
.coveragerc Update .coveragerc 2013-02-06 16:47:06 +02:00
.gitignore Use babel to generate translation file 2013-01-24 00:20:32 +08:00
.gitreview Add .gitreview config file for gerrit. 2011-10-24 15:06:42 -04:00
.mailmap Create .mailmap file 2012-09-11 10:34:14 +08:00
.pylintrc Bug #890028 2011-12-14 00:33:37 +00:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
HACKING.rst Logging module cleanup 2013-01-03 16:20:56 +08:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
MANIFEST.in Updated to latest oslo-version code. 2013-02-04 11:21:16 +11:00
openstack-common.conf Use install_venv_common.py from oslo. 2013-01-28 16:22:17 -05:00
README Document that code is on github now in README. 2013-01-18 16:27:46 +13:00
run_tests.py Change Resource.__call__() to not leak internal errors. 2012-05-09 15:28:27 -03:00
run_tests.sh Don't force run_tests.sh pep8 only to use -N. 2012-11-25 22:01:27 -05:00
setup.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
setup.py Updated to latest oslo-version code. 2013-02-04 11:21:16 +11:00
TESTING Update TESTING file 2012-08-23 01:22:47 -07:00
tox.ini Add script for checking i18n message 2012-12-10 17:29:54 +08:00

# -- Welcome!

  You have come across a cloud computing network fabric controller.  It has
  identified itself as "Quantum."  It aims to tame your (cloud) networking!

# -- External Resources:

 The homepage for Quantum is: http://launchpad.net/quantum .  Use this
 site for asking for help, and filing bugs. Code is available on github at
 <http://github.com/openstack/quantum>.

 The latest and most in-depth documentation on how to use Quantum is
 available at: <http://docs.openstack.org>.  This includes:

 Quantum Administrator Guide
 http://docs.openstack.org/trunk/openstack-network/admin/content/

 Quantum API Reference:
 http://docs.openstack.org/api/openstack-network/2.0/content/

 The start of some developer documentation is available at:
 http://wiki.openstack.org/QuantumDevelopment

 For help using or hacking on Quantum, you can send mail to
 <mailto:openstack-dev@lists.openstack.org>.