]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoLatest OSLO updates
Gary Kotton [Mon, 7 Jan 2013 13:52:21 +0000 (13:52 +0000)]
Latest OSLO updates

Change-Id: Ibf223203c8b34f614357fa4539d0dfa953765d6b

11 years agoMerge "Port to argparse based cfg"
Jenkins [Sat, 12 Jan 2013 00:40:04 +0000 (00:40 +0000)]
Merge "Port to argparse based cfg"

11 years agoNvpPluginException mixes err_msg and err_desc
Aaron Rosen [Thu, 10 Jan 2013 22:40:33 +0000 (14:40 -0800)]
NvpPluginException mixes err_msg and err_desc

In a few places err_msg was passed to NvpPluginException though that
expected err_desc. This patch makes NvpPluginException take err_msg
instead and updates err_desc to err_msg when calling NvpPluginException

Fixes bug 1098351
Change-Id: I10eca5f2b98ce8faa81ad7c7687902b6f08752c1

11 years agoMerge "Fixes i18n messages in nvp plugin"
Jenkins [Fri, 11 Jan 2013 09:51:11 +0000 (09:51 +0000)]
Merge "Fixes i18n messages in nvp plugin"

11 years agoMerge "Fix for loadbalancer vips list"
Jenkins [Fri, 11 Jan 2013 02:54:51 +0000 (02:54 +0000)]
Merge "Fix for loadbalancer vips list"

11 years agoFixes i18n messages in nvp plugin
Aaron Rosen [Fri, 4 Jan 2013 20:53:32 +0000 (12:53 -0800)]
Fixes i18n messages in nvp plugin

Fixes bug 1096205
Change-Id: Icb34b567a8630bb7247b2bb2d6efaf53269bf84b

11 years agoMerge "rename port attribute variable to SECURITYGROUPS from SECURITYGROUP"
Jenkins [Thu, 10 Jan 2013 16:25:37 +0000 (16:25 +0000)]
Merge "rename port attribute variable to SECURITYGROUPS from SECURITYGROUP"

11 years agoFix for loadbalancer vips list
Ilya Shakhat [Thu, 10 Jan 2013 15:51:40 +0000 (19:51 +0400)]
Fix for loadbalancer vips list

Fixes bug 1098165

Change-Id: I86106d39afc9d5d8c6d2d0bbdcd829baf2c1b66b

11 years agorename port attribute variable to SECURITYGROUPS from SECURITYGROUP
Aaron Rosen [Wed, 9 Jan 2013 22:24:47 +0000 (14:24 -0800)]
rename port attribute variable to SECURITYGROUPS from SECURITYGROUP

This patch renames the port attribute variable to the plural form since
multiple security groups can be associated with a port. This patch does
not change the security groups api and also does not change the
configuration section name to be SECURITYGROUPS.
Fixes bug 1095885

Change-Id: I1a4df337b48da0ef9c94d74b04c0b86333ce2f0c

11 years agoRemove relative imports from NVP plugin
Aaron Rosen [Fri, 4 Jan 2013 00:52:42 +0000 (16:52 -0800)]
Remove relative imports from NVP plugin

The majority of relative imports in the nvp plugin will be fixed in
blueprint nvp-api-client-loadbalance-request. This patch removes the
rest of them in and moves the vim tabstop line to the top of the
header file to be consistent with the rest of the files in quantum.
Fixes bug 1091596

Change-Id: I6c8299ca73ae5df75c87f302680908f863f81f02

11 years agoPort to argparse based cfg
Gary Kotton [Mon, 7 Jan 2013 13:25:26 +0000 (13:25 +0000)]
Port to argparse based cfg

Implements blueprint argparse-based-cfg

Sync the following changes from oslo-incubator:

479f19c Add deprecated --logdir common opt
27b2ff4 Add deprecated --logfile common opt.
9b81289 Allow nova and others to override some logging defaults
3557d84 Fix ListOpt to trim whitespace
01ab910 Fix set_default() with boolean CLI options
af18eaa Improve cfg's argparse sub-parsers support
f21e1d9 Fix regression with cfg CLI arguments
ceb4aa7 Fix broken --help with CommonConfigOpts
5e9503b Hide the GroupAttr conf and group attributes
b6d24bb updating sphinx documentation
403509e Don't reference argparse._StoreAction
e17deb8 Fix minor coding style issue
0c29e1d Remove ConfigCliParser class
5b9cb41 Add support for positional arguments
dbc72a6 Use stock argparse behaviour for optional args
768a147 Use stock argparse --usage behaviour
ac180b9 Use stock argparse --version behaviour
0787e38 Remove add_option() method
5afead0 Completely remove cfg's disable_interspersed_args()
5f564b2 argparse support for cfg
d7b6397 Add a missing comma in a docstring.
aca1805 cfg: fix required if option has a dash

Note: various utilities/services with command line parameters needed to be
updated due to the changes mentioned above. The downside is that these are
not backward compatible. Unknown arguments are no ignored. Only bound
arguments will be treated.

Thanks to Mark McLoughlin for migration cli code changes.

Change-Id: Ia776e78cc55f4ed33ace5efa8d726b70e3fa4131

11 years agoMerge "Allow nvp_api to load balance requests"
Jenkins [Wed, 9 Jan 2013 16:22:00 +0000 (16:22 +0000)]
Merge "Allow nvp_api to load balance requests"

11 years agoMerge "Fix database configuration of ryu-agent"
Jenkins [Wed, 9 Jan 2013 15:47:12 +0000 (15:47 +0000)]
Merge "Fix database configuration of ryu-agent"

11 years agoMerge "Pass X-Forwarded-For header to Nova"
Jenkins [Wed, 9 Jan 2013 07:02:19 +0000 (07:02 +0000)]
Merge "Pass X-Forwarded-For header to Nova"

11 years agoMerge "add migration support for lb security groups"
Jenkins [Wed, 9 Jan 2013 07:02:13 +0000 (07:02 +0000)]
Merge "add migration support for lb security groups"

11 years agoFix database configuration of ryu-agent
Yoshihiro Kaneko [Tue, 8 Jan 2013 08:49:47 +0000 (17:49 +0900)]
Fix database configuration of ryu-agent

Fixes bug #1097156

The database configuration was moved to the DB module.
This patch makes ryu-agent follow it.

Change-Id: Ib843132eb1a01769725dd89b1e1799c9d10790d3

11 years agoPass X-Forwarded-For header to Nova
Mark McClain [Wed, 9 Jan 2013 00:18:58 +0000 (19:18 -0500)]
Pass X-Forwarded-For header to Nova

fixes bug 1097524

Add X-Forwarded-For header to the proxied Nova metadata request. Nova
needs this value to properly answer /latest/meta-data/local-ipv4
requests.

Change-Id: Icaec38b2ca7e06b50960deb7ab24ff1944a81f45

11 years agoMerge "The change implemented Lbaas CRUD Sqlalchemy operations."
Jenkins [Tue, 8 Jan 2013 22:27:29 +0000 (22:27 +0000)]
Merge "The change implemented Lbaas CRUD Sqlalchemy operations."

11 years agoThe change implemented Lbaas CRUD Sqlalchemy operations.
Leon Cui [Thu, 13 Dec 2012 00:04:24 +0000 (16:04 -0800)]
The change implemented Lbaas CRUD Sqlalchemy operations.

 - This change only contains the database access implementation
 of LBaaS API. There is no real configuration down to device
 side.
 - This change implements a loadbalancer plugin which doesn't
 do much thing but only db access. The object status needs to
 be updated when integrate with the lbaas agent.
 - This change follows the new LBaaS API 1.0 model. Please see
 the spec on wiki.

Implements: blueprint lbaas-plugin-api-crud
Change-Id: I1bccec8c29e3e9486506a5b52ce69af0480b2300

11 years agoIptables security group implementation for LinuxBridge
Nachi Ueno [Wed, 7 Nov 2012 19:00:53 +0000 (11:00 -0800)]
Iptables security group implementation for LinuxBridge

Implements bp quantum-security-groups-iptables-lb
- Added firewall driver
- Added iptables based firewall driver
- Implemented security groups for rpc support mixin classes

Change-Id: I974d2f1cae75ce4a55c2b5d820a0b42ff5661309

11 years agoMerge "Update the migration template's default kwargs"
Jenkins [Tue, 8 Jan 2013 17:54:01 +0000 (17:54 +0000)]
Merge "Update the migration template's default kwargs"

11 years agoUpdate the migration template's default kwargs
Mark McClain [Tue, 8 Jan 2013 16:16:17 +0000 (11:16 -0500)]
Update the migration template's default kwargs

fixes bug 1097327

The default template should accept options as a keyword instead of
specific quota parameter.

Change-Id: I65ceaccea9e764941a1d3f6ba243a2107379e42e

11 years agoadd migration support for lb security groups
Mark McClain [Tue, 8 Jan 2013 05:15:58 +0000 (00:15 -0500)]
add migration support for lb security groups

This is a companion change for the security group models.

Change-Id: If8a75004ddb4e20fb8491529ac7098828edb5c7d

11 years agoFix import for quantum-db-manage
Gary Kotton [Tue, 8 Jan 2013 11:15:17 +0000 (11:15 +0000)]
Fix import for quantum-db-manage

Fixes bug 1097235

Change-Id: I4d44edcfa8efe910f0237fb6248b2f14e734141b

11 years agoMerge "API extension and DB support for service types"
Jenkins [Tue, 8 Jan 2013 07:49:20 +0000 (07:49 +0000)]
Merge "API extension and DB support for service types"

11 years agoMerge "Remove some unused imports"
Jenkins [Tue, 8 Jan 2013 07:49:14 +0000 (07:49 +0000)]
Merge "Remove some unused imports"

11 years agoAllow nvp_api to load balance requests
Aaron Rosen [Wed, 31 Oct 2012 04:35:42 +0000 (21:35 -0700)]
Allow nvp_api to load balance requests

The current version of the nvp_api client does not load balance
requests across multiple controllers. Instead, it just sends all the requests
to one controller and if there is a controller failure it will failover
to use another controller. This blueprint implements the ablility to
utilize all controllers at once.

blueprint nvp-api-client-loadbalance-request

Change-Id: I331be2a23ae360a95786152d5f116359f690d9f3

11 years agoMerge "Add migration support to Quantum"
Jenkins [Tue, 8 Jan 2013 04:10:36 +0000 (04:10 +0000)]
Merge "Add migration support to Quantum"

11 years agoMerge "refactor QuotaV2 import to match to other exts"
Jenkins [Tue, 8 Jan 2013 03:47:00 +0000 (03:47 +0000)]
Merge "refactor QuotaV2 import to match to other exts"

11 years agoAPI extension and DB support for service types
Salvatore Orlando [Fri, 7 Dec 2012 14:33:48 +0000 (06:33 -0800)]
API extension and DB support for service types

Blueprint quantum-service-type

This patch allows for managing service types through the API.
The default service type is specified in the configuration file.
The patch also provides a 'dummy' API extension, which uses the
'dummy' service plugin, as a PoC for usage of service type.
The dummy API extension is used in unit tests only.

Change-Id: I97d400b941fa7925b0efa0fd0d35c07419ff6bfa

11 years agoAdd migration support to Quantum
Mark McClain [Tue, 18 Dec 2012 18:27:39 +0000 (13:27 -0500)]
Add migration support to Quantum

implements blueprint quantum-db-upgrades

This changeset provide database migration capabilities to Quantum by
wrapping the Alembic library.

Change-Id: I8ba3a07f5a65e0fda9c0e85ed9c07c5978c53bc7

11 years agoRemove some unused imports
Mark McLoughlin [Mon, 7 Jan 2013 21:23:41 +0000 (21:23 +0000)]
Remove some unused imports

optparse is unused since 0c0d8f0 and os is unused since f6bc5d0.

Change-Id: I32357293712d30774108041b039410b68a5eb7e0

11 years agoUndo change to require WebOb 1.2.3, instead, require only >=1.0.8
Dan Wendlandt [Mon, 7 Jan 2013 20:17:09 +0000 (12:17 -0800)]
Undo change to require WebOb 1.2.3, instead, require only >=1.0.8

This allows ceilometer to use 1.2.3, without breaking devstack for
quantum in the mean time.

See bug #1092227

Change-Id: I1d1b4c0b6dbb917ddf785bdf7ce90be9beb6540c

11 years agoMerge "Ensure that exception prints UUID and not pointer."
Jenkins [Mon, 7 Jan 2013 17:57:21 +0000 (17:57 +0000)]
Merge "Ensure that exception prints UUID and not pointer."

11 years agoAdd common support for database configuration
Gary Kotton [Sun, 6 Jan 2013 07:22:45 +0000 (07:22 +0000)]
Add common support for database configuration

Fixes bug 1096537

Change-Id: I9b7dbc08ae709af81ca968857f7028c150d2c7e5

11 years agoMerge "Cleans up bulk_body generation in quantum.api.v2.base.prepare_request_body()"
Jenkins [Mon, 7 Jan 2013 13:11:50 +0000 (13:11 +0000)]
Merge "Cleans up bulk_body generation in quantum.api.v2.base.prepare_request_body()"

11 years agoFixup import syntax error in unit test
Kiall Mac Innes [Mon, 7 Jan 2013 11:22:31 +0000 (11:22 +0000)]
Fixup import syntax error in unit test

Change-Id: I12f4d94474a31d25819fe24b70676f81c52bd022

11 years agoEnable the user to enforce validity of the gateway IP
Gary Kotton [Sun, 6 Jan 2013 06:49:57 +0000 (06:49 +0000)]
Enable the user to enforce validity of the gateway IP

Fixes bug 1096532

A new configuration variable is added to enable the user to indicate
if the gateway should be validated on the subnet. For backward
compatibility this is set as False by default.

Change-Id: Ieadd60a945d34703bfee7576aa3b2ff7da3143d4

11 years agoMerge "Fix the replacement placeholder in string"
Jenkins [Mon, 7 Jan 2013 06:55:53 +0000 (06:55 +0000)]
Merge "Fix the replacement placeholder in string"

11 years agoMerge "Add comment to indicate bridge names' length"
Jenkins [Mon, 7 Jan 2013 06:55:45 +0000 (06:55 +0000)]
Merge "Add comment to indicate bridge names' length"

11 years agoAdd comment to indicate bridge names' length
gongysh [Mon, 7 Jan 2013 02:48:46 +0000 (10:48 +0800)]
Add comment to indicate bridge names' length

Bug #1096652

Change-Id: Ic814b59da131fba488b728eb3b67864712cde141

11 years agorefactor QuotaV2 import to match to other exts
Mark McClain [Sun, 6 Jan 2013 00:28:35 +0000 (19:28 -0500)]
refactor QuotaV2 import to match to other exts

fixes bug 1096486

The previous code used a special extension loading mechanism to
selectively load the Quota model is the plugin matched and object path.
This was intended to load models required by plugins, but this loading
actually occurred after the db schema was created, so the model was not
always loaded.  This fix refactors the code to make the QuotaV2 ext
behave similarly to the other extensions ensuring the models are loaded
prior to database schema creation.

Change-Id: Id7d1f7ddee69bfc4419df375366319dedc3dc439

11 years agochange xxx_metadata_agent() into xxx_metadata_proxy()
gongysh [Mon, 7 Jan 2013 02:12:00 +0000 (10:12 +0800)]
change xxx_metadata_agent() into xxx_metadata_proxy()

Bug #1092047

Change-Id: Ic59da98105a7301697ecb5a6477f3c7fc3f8e86a

11 years agoFix the replacement placeholder in string
gongysh [Mon, 7 Jan 2013 01:52:29 +0000 (09:52 +0800)]
Fix the replacement placeholder in string

Bug #1096721

Change-Id: Ief6f410e4532772af3f9775b48ce92ac901f812d

11 years agoEnsure that exception prints UUID and not pointer.
Gary Kotton [Thu, 3 Jan 2013 13:51:42 +0000 (13:51 +0000)]
Ensure that exception prints UUID and not pointer.

Fixes bug 1095648

Change-Id: I3effbc2e93d143ba7a5c3b047c1618f165c1b0b6

11 years agoMerge "Fixes i18n message for nec plugin"
Jenkins [Sat, 5 Jan 2013 03:43:00 +0000 (03:43 +0000)]
Merge "Fixes i18n message for nec plugin"

11 years agoMerge "Fixes i18n message for ryu plugin"
Jenkins [Sat, 5 Jan 2013 02:28:04 +0000 (02:28 +0000)]
Merge "Fixes i18n message for ryu plugin"

11 years agoMerge ".gitignore cleanup"
Jenkins [Sat, 5 Jan 2013 02:17:09 +0000 (02:17 +0000)]
Merge ".gitignore cleanup"

11 years ago.gitignore cleanup
Zhongyue Luo [Fri, 4 Jan 2013 05:17:13 +0000 (13:17 +0800)]
.gitignore cleanup

Removed obsolete files/dirs
Added .coverage and covhtml
Ordered alphabetically

Change-Id: Iac10b075f318c264549ee017688eccd52deae07d

11 years agoMerge "sql_dbpool_enabled not passed to configured_db nvp_plugin"
Jenkins [Fri, 4 Jan 2013 10:05:48 +0000 (10:05 +0000)]
Merge "sql_dbpool_enabled not passed to configured_db nvp_plugin"

11 years agoFixes i18n message for nec plugin
He Jie Xu [Fri, 4 Jan 2013 09:07:12 +0000 (17:07 +0800)]
Fixes i18n message for nec plugin

Fixes bug 1095974

Change-Id: I48394d2f791589552e6f21c56268fed7654e4bbc

11 years agoFixes i18n message for ryu plugin
He Jie Xu [Fri, 4 Jan 2013 09:13:27 +0000 (17:13 +0800)]
Fixes i18n message for ryu plugin

Fixes bug 1095975

Change-Id: I72bbeeb80117f4d5fcf6af9910dc881fd1b1a82e

11 years agoRemove unused imports in debug package
Ivan Kolodyazhny [Wed, 2 Jan 2013 20:28:01 +0000 (22:28 +0200)]
Remove unused imports in debug package

Change-Id: I1fa599e38be86025d69649f8653f4ee28c6f3198

11 years agosql_dbpool_enabled not passed to configured_db nvp_plugin
Aaron Rosen [Thu, 3 Jan 2013 23:18:51 +0000 (15:18 -0800)]
sql_dbpool_enabled not passed to configured_db nvp_plugin

Introduced in 7b5f6fd6. Fixes bug 1095856

Change-Id: I34cca7cb489013b033a7426b37bbf9989f87e7ec

11 years agoMerge "Enable tenants to set non-owned ext network as router gateway"
Jenkins [Fri, 4 Jan 2013 01:07:29 +0000 (01:07 +0000)]
Merge "Enable tenants to set non-owned ext network as router gateway"

11 years agoMerge "Upgrade WebOb to 1.2.3"
Jenkins [Thu, 3 Jan 2013 23:53:13 +0000 (23:53 +0000)]
Merge "Upgrade WebOb to 1.2.3"

11 years agoEnable tenants to set non-owned ext network as router gateway
Salvatore Orlando [Wed, 2 Jan 2013 23:04:09 +0000 (15:04 -0800)]
Enable tenants to set non-owned ext network as router gateway

Bug 1087243

Avoid loading external networks subnets in tenant's context, as this
might lead to the subnet not being found because it's owned by a
different tenant

Change-Id: Ic4c429c9e667da939ede0aa07a12c0f5a17e212c

11 years agoMerge "Remove unused imports in db package"
Jenkins [Thu, 3 Jan 2013 16:52:56 +0000 (16:52 +0000)]
Merge "Remove unused imports in db package"

11 years agoUpgrade WebOb to 1.2.3
Zhongyue Luo [Thu, 3 Jan 2013 16:28:20 +0000 (00:28 +0800)]
Upgrade WebOb to 1.2.3

The version of WebOb being used in OpenStack was more than
1 year old. This change updates to the latest stable release.

Upgrading WebOb resolves a version conflict between OpenStack
and Pecan, the web framework used by the Ceilometer team for
version 2 of the ceilometer API.

Refer to http://docs.webob.org/en/latest/news.html
for the list of changes between 1.0.8 and 1.2.3.

Fixes Bug #1092227

Change-Id: I07707607ae2067a567e11c347cddda9c7e6bcef7

11 years agoLogging module cleanup
Zhongyue Luo [Thu, 3 Jan 2013 06:31:49 +0000 (14:31 +0800)]
Logging module cleanup

Replaced logging with openstack.common.log
Removed imports where logging is not used

Fixes bug #1095541

Change-Id: I5b03d9697dde3ef3520f67d1d8166f7af7689551

11 years agoMerge "Remove unused imports in rootwrap package"
Jenkins [Thu, 3 Jan 2013 03:54:11 +0000 (03:54 +0000)]
Merge "Remove unused imports in rootwrap package"

11 years agoMerge "Remove unused imports in api package"
Jenkins [Thu, 3 Jan 2013 03:53:47 +0000 (03:53 +0000)]
Merge "Remove unused imports in api package"

11 years agoMerge "Remove unused imports in common package"
Jenkins [Thu, 3 Jan 2013 03:53:25 +0000 (03:53 +0000)]
Merge "Remove unused imports in common package"

11 years agoMerge "Provider network implementation for NVP plugin."
Jenkins [Wed, 2 Jan 2013 23:16:33 +0000 (23:16 +0000)]
Merge "Provider network implementation for NVP plugin."

11 years agoRemove unused imports in common package
Ivan Kolodyazhny [Wed, 2 Jan 2013 20:51:27 +0000 (22:51 +0200)]
Remove unused imports in common package

Change-Id: I51b5ef2e7e9d1877fc2d6e439b76eae05b048436

11 years agoRemove unused imports in rootwrap package
Ivan Kolodyazhny [Wed, 2 Jan 2013 20:38:46 +0000 (22:38 +0200)]
Remove unused imports in rootwrap package

Change-Id: Ia52452f94236613f590bcd81bad51c9b007b3ff6

11 years agoRemove unused imports in db package
Ivan Kolodyazhny [Wed, 2 Jan 2013 20:24:27 +0000 (22:24 +0200)]
Remove unused imports in db package

Change-Id: I55b2d113ad667745652e00d11b0dabac4a42324f

11 years agoRemove unused imports in api package
e0ne [Wed, 2 Jan 2013 18:11:31 +0000 (20:11 +0200)]
Remove unused imports in api package

Change-Id: I7bb20d2b04a733f9ed5fa3792e6be7dbab325a59

11 years agoMerge "Remove unused imports in agent package"
Jenkins [Wed, 2 Jan 2013 20:16:55 +0000 (20:16 +0000)]
Merge "Remove unused imports in agent package"

11 years agoMerge "Set default core_plugin to None"
Jenkins [Wed, 2 Jan 2013 20:02:54 +0000 (20:02 +0000)]
Merge "Set default core_plugin to None"

11 years agoMerge "Ensure that exception prints correct text."
Jenkins [Wed, 2 Jan 2013 20:02:28 +0000 (20:02 +0000)]
Merge "Ensure that exception prints correct text."

11 years agoProvider network implementation for NVP plugin.
Salvatore Orlando [Tue, 18 Dec 2012 15:44:44 +0000 (07:44 -0800)]
Provider network implementation for NVP plugin.

blueprint nvp-provider-net

Implements the provider network extension support. The list of valid network
types has been updated to reflect the types supported by the nvp plugin.
This was necessary otherwise validation would have always failed.
Multiple logical switches might be associated with a quantum network; the
first logical switch will always have the same id as the quantum network.
Also now raises exception when port limit on overlay network is reached.

This patch also adds a check for the maximum number of ports on 'standard'
overlay networks, and performs some code refactoring for improving
maintanability. For instance the NVPCluster class has been moved into its own
module.

Change-Id: Ib26d327daf748cfcba9ca74e8dc2e8e89c676c2e

11 years agoRemove unused imports in agent package
e0ne [Sun, 30 Dec 2012 20:21:34 +0000 (22:21 +0200)]
Remove unused imports in agent package

Change-Id: Id0286e5e866512eb0c939515949e21a71089e542

11 years agoMerge "Implementing string representation for model classes"
Jenkins [Wed, 2 Jan 2013 17:46:34 +0000 (17:46 +0000)]
Merge "Implementing string representation for model classes"

11 years agoMerge "Ensures that the dnsmasq configuration file flag is always set"
Jenkins [Wed, 2 Jan 2013 17:46:25 +0000 (17:46 +0000)]
Merge "Ensures that the dnsmasq configuration file flag is always set"

11 years agoSet default core_plugin to None
Gary Kotton [Mon, 31 Dec 2012 16:03:21 +0000 (16:03 +0000)]
Set default core_plugin to None

Fixes bug 1093989

Change-Id: Ib0b77994b813e6b2ec0621949371c66d66472896

11 years agoEnsure that exception prints correct text.
Gary Kotton [Wed, 2 Jan 2013 15:31:25 +0000 (15:31 +0000)]
Ensure that exception prints correct text.

Fixes bug 1095333

Change-Id: I5077108de8dacaab4bcf0d7236123f960676d591

11 years agoMerge "Ensure allocation pools are deleted from database"
Jenkins [Wed, 2 Jan 2013 14:03:12 +0000 (14:03 +0000)]
Merge "Ensure allocation pools are deleted from database"

11 years agoMerge "Correct exception output for subnet deletion when port is used"
Jenkins [Wed, 2 Jan 2013 13:26:11 +0000 (13:26 +0000)]
Merge "Correct exception output for subnet deletion when port is used"

11 years agoMerge "Exceptions cleanup"
Jenkins [Wed, 2 Jan 2013 13:25:46 +0000 (13:25 +0000)]
Merge "Exceptions cleanup"

11 years agoCleans up bulk_body generation in quantum.api.v2.base.prepare_request_body()
Zhongyue Luo [Mon, 24 Dec 2012 07:16:04 +0000 (15:16 +0800)]
Cleans up bulk_body generation in quantum.api.v2.base.prepare_request_body()

Defined a lambda function for code readability

Change-Id: Ic538b16d4643e064b222b76af80478161fd3e318

11 years agoExceptions cleanup
Gary Kotton [Sun, 30 Dec 2012 13:50:10 +0000 (13:50 +0000)]
Exceptions cleanup

Ensure that the quantum exceptions in FAULT_MAP are grouped
together (this will save endless bug fixes when the server
will return 500 instead of 4xx)

Change-Id: I89581e1b6b4af3eb1803d6226686adf0b576d1e7

11 years agoReadjust try/catch block in quantum.api.v2.base.create()
Zhongyue Luo [Mon, 24 Dec 2012 06:15:21 +0000 (14:15 +0800)]
Readjust try/catch block in quantum.api.v2.base.create()

Removed the outer try/catch block to handle all exceptions in one block.
Moved irrelevant statements out of the block

Change-Id: I5c248403b8419f664ef6f17e70a016e7c0cd4ae6

11 years agoMerge "Raise InvalidInput directly instead of catch it"
Jenkins [Sun, 30 Dec 2012 13:26:08 +0000 (13:26 +0000)]
Merge "Raise InvalidInput directly instead of catch it"

11 years agoEnsures that the dnsmasq configuration file flag is always set
Gary Kotton [Sun, 30 Dec 2012 08:33:35 +0000 (08:33 +0000)]
Ensures that the dnsmasq configuration file flag is always set

Fixes bug 1094183

If the flag is not set then the default configuration file may
be used. This may be problematic in certain setups.

Change-Id: Ibd0be960779f391a198454510dd6edcbc69c149c

11 years agoEnsure allocation pools are deleted from database
Gary Kotton [Thu, 27 Dec 2012 14:16:46 +0000 (14:16 +0000)]
Ensure allocation pools are deleted from database

Fixes bug 1091946

Change-Id: I4330f7a81e4745d5885d58fe7c8a010d18a8e004

11 years agoRaise InvalidInput directly instead of catch it
He Jie Xu [Thu, 27 Dec 2012 13:31:34 +0000 (21:31 +0800)]
Raise InvalidInput directly instead of catch it

Fixes bug 1094023

Change-Id: I960b01996e33da0da5e9cd181479ebcf70d38997

11 years agoEnsure bulk creations have quota validations
Gary Kotton [Wed, 26 Dec 2012 07:24:37 +0000 (07:24 +0000)]
Ensure bulk creations have quota validations

Fixes bug 1093749

The patch set also returns a proper error instead of a internal server
error when the quotas are reached.

Change-Id: Ifc74ffa8b54faa70f5558bf5263830f5e71f58ae

11 years agoCorrect exception output for subnet deletion when port is used
Gary Kotton [Wed, 26 Dec 2012 08:36:02 +0000 (08:36 +0000)]
Correct exception output for subnet deletion when port is used

Fixes bug 1093754

Change-Id: I2deaced0cfc2524234ff79e39e6e7c2f757ff19f

11 years agoUpdate the configuration help for the OVS cleanup utility
Gary Kotton [Wed, 26 Dec 2012 13:01:58 +0000 (13:01 +0000)]
Update the configuration help for the OVS cleanup utility

Fixes the details of the deletion parameter.

Change-Id: Ia732e6012bc3eaf293697325d507ae8dfc007683

11 years agoImplementing string representation for model classes
Avishay Balderman [Tue, 25 Dec 2012 09:18:21 +0000 (11:18 +0200)]
Implementing string representation for model classes

We want to have meaningfull representation. This is
useful when we debug and want to see the actual
attributes of the object. The current __repr__
of those classes is the default python implementation
 and does not provide
information about the object attributes.
Solve Bug #1084231

Change-Id: I1ea5d741d2fd2da13712e0d51d2c73dfba4991cf
Solve the conflict below:
Conflicts:
quantum/tests/unit/test_db_plugin.py

11 years agoProvide "atomic" database access for networks
Gary Kotton [Tue, 25 Dec 2012 15:11:35 +0000 (15:11 +0000)]
Provide "atomic" database access for networks

Fixes bug 1093637

In the OVS and LB plugins there are cases when accessing the network
has an additional database query. The patch enables this to occur
without accessing an invalid database entry.

Change-Id: I7d4944cf3240819f23dd7b4993d6ae3cefab9dc2

11 years agoMerge "Removes redundant code in quantum.api.v2.base.create()"
Jenkins [Tue, 25 Dec 2012 11:38:07 +0000 (11:38 +0000)]
Merge "Removes redundant code in quantum.api.v2.base.create()"

11 years agoMerge "Add eventlet db_pool use for mysql"
Jenkins [Mon, 24 Dec 2012 17:58:02 +0000 (17:58 +0000)]
Merge "Add eventlet db_pool use for mysql"

11 years agoAdd OVS cleanup utility
Gary Kotton [Tue, 18 Dec 2012 12:20:50 +0000 (12:20 +0000)]
Add OVS cleanup utility

Fixes bug 1091605

The utility should be called after rebooting an appliance. This
will purge the openvswicth of configured tap devices.

A configuration variable quantum_ports has been added. This is
by default True which indicates that only Quantum ports will be
deleted from the OVS. If this is set as False then all ports on the
bridge will be deleted.

Change-Id: I442f64cf82f95bfa99d7765eb09db1ce2ecf602e

11 years agoRemoves redundant code in quantum.api.v2.base.create()
Zhongyue Luo [Mon, 24 Dec 2012 03:49:46 +0000 (11:49 +0800)]
Removes redundant code in quantum.api.v2.base.create()

Handles collections and one item in one routine by creating a items list

Fixes bug #1093390

Change-Id: I24b892ebff52889f17ed9ea8d17e8964e3de25f6

11 years agoAdd eventlet db_pool use for mysql
Gary Kotton [Mon, 10 Dec 2012 12:39:22 +0000 (12:39 +0000)]
Add eventlet db_pool use for mysql

This adds the use of eventlet's db_pool module so that we can make mysql
calls without blocking the whole process.
New config options are introduced:

sql_dbpool_enable -- Enables the use of eventlet's db_pool
sql_min_pool_size -- Set the minimum number of SQL connections
sql_max_pool_size -- Set the maximum number of SQL connections
sql_idle_timeout  -- Timeout before idle sql connections are reaped

The default for sql_dbpool_enable is False for now, so there is
no forced behavior changes for those using mysql. sql_min_pool_size
is defaulted to 1 to match behavior if not using db_pool.

Fixes bug 1086173

Change-Id: Ied0aae33211585743fe955028a75c4e192a15d2f

11 years agoClean up executable modules
Zhongyue Luo [Thu, 13 Dec 2012 07:29:04 +0000 (15:29 +0800)]
Clean up executable modules

Added execution string and changed file bitmode to 755 of executable modules

Change-Id: I61b887fe6e1fa6159b7d53066b58b88d2c72644c

11 years agoMerge "Fix log message for unreferenced variable"
Jenkins [Fri, 21 Dec 2012 11:56:28 +0000 (11:56 +0000)]
Merge "Fix log message for unreferenced variable"

11 years agoFixes import order nits
Zhongyue Luo [Thu, 20 Dec 2012 04:06:48 +0000 (12:06 +0800)]
Fixes import order nits

Change-Id: Ie74297946761dffc08313f4a8d6065bd340bd9f8