]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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

11 years agoFix log message for unreferenced variable
Gary Kotton [Tue, 18 Dec 2012 13:40:38 +0000 (13:40 +0000)]
Fix log message for unreferenced variable

Fixed bug 1091664

Change-Id: I83110fd8d05d8a5168cbc21ce78c3c44d01c7ae1

11 years agoThe patch introduces an API extension for LBaaS service
Oleg Bondarev [Tue, 11 Dec 2012 13:40:05 +0000 (17:40 +0400)]
The patch introduces an API extension for LBaaS service

- API extension
- abstract base class for plugin
- some new validators were added to quantum/api/v2/attributes.py

Implements: blueprint lbaas-restapi-tenant
Change-Id: Ic2fd4debc4969389b395ce7352ab208c6854018b

11 years agoFix pep8 issues
Gary Kotton [Wed, 19 Dec 2012 06:57:36 +0000 (06:57 +0000)]
Fix pep8 issues

Change-Id: I62674220028274619a9b180542eea716f2660917

11 years agoMerge "add parent/sub-resource support into Quantum API framework"
Jenkins [Tue, 18 Dec 2012 14:51:08 +0000 (14:51 +0000)]
Merge "add parent/sub-resource support into Quantum API framework"

11 years agoMerge "Correct i18n messages for bigswitch plugin"
Jenkins [Tue, 18 Dec 2012 07:38:02 +0000 (07:38 +0000)]
Merge "Correct i18n messages for bigswitch plugin"

11 years agoAdd tox artifacts to .gitignore
Maru Newby [Mon, 17 Dec 2012 18:10:05 +0000 (18:10 +0000)]
Add tox artifacts to .gitignore

 * A tox build creates quantum/versioninfo and setuptools-*.egg,
   and git formerly marked them as untracked rather than ignored.

Change-Id: I50556717a05b2488cff5d9693d46637df608da70

11 years agoCorrect i18n messages for bigswitch plugin
He Jie Xu [Mon, 17 Dec 2012 16:16:13 +0000 (00:16 +0800)]
Correct i18n messages for bigswitch plugin

Part of bp make-string-localizable

Change-Id: I6286aea5e85cf974e1d0fcdceb871411f0f10747

11 years agoMerge "dhcp_agent.ini, l3_agent.ini: update dhcp/l3_agent.ini"
Jenkins [Mon, 17 Dec 2012 10:47:16 +0000 (10:47 +0000)]
Merge "dhcp_agent.ini, l3_agent.ini: update dhcp/l3_agent.ini"

11 years agodhcp_agent.ini, l3_agent.ini: update dhcp/l3_agent.ini
Isaku Yamahata [Wed, 12 Dec 2012 03:41:06 +0000 (12:41 +0900)]
dhcp_agent.ini, l3_agent.ini: update dhcp/l3_agent.ini

Bug 1089223
RyuInterfaceDriver is eliminated, so update the example of
dhcp_agent.ini, l3_agent.ini for Ryu plugin and other OVS
based plugins.

Change-Id: Icc95c213ecd96946bd5a90d5d60df88c94cc1454

11 years agoMake patch-tun and patch-int configurable
gongysh [Thu, 13 Dec 2012 07:45:58 +0000 (15:45 +0800)]
Make patch-tun and patch-int configurable

Bug #1089777

Change-Id: Ib72d352374fb59029b6b0719a2d1254597f193ff

11 years agoMerge "Update test_router_list to validate the router returned."
Jenkins [Mon, 17 Dec 2012 07:27:42 +0000 (07:27 +0000)]
Merge "Update test_router_list to validate the router returned."

11 years agoMerge "Fixed the security group port binding should be automatically deleted when...
Jenkins [Mon, 17 Dec 2012 05:43:58 +0000 (05:43 +0000)]
Merge "Fixed the security group port binding should be automatically deleted when delete_port"

11 years agoUpdate test_router_list to validate the router returned.
Kyle Mestery [Fri, 14 Dec 2012 15:00:08 +0000 (15:00 +0000)]
Update test_router_list to validate the router returned.

For unit test test_l3_plugin.L3NatExtensionTestCase.test_router_list,
correctly validate the value returned from listing the routers.

Fixes bug 1078150

Change-Id: I5ae559c37f43c1b977065a3508b6efb4375a2c1a

11 years agoMerge "Correct i18n message for nicira plugin"
Jenkins [Sun, 16 Dec 2012 06:25:21 +0000 (06:25 +0000)]
Merge "Correct i18n message for nicira plugin"

11 years agoMerge "Update evenlet monkey patch flags."
Jenkins [Sat, 15 Dec 2012 08:30:58 +0000 (08:30 +0000)]
Merge "Update evenlet monkey patch flags."

11 years agoFixed the security group port binding should be automatically
Jason Zhang [Tue, 11 Dec 2012 20:34:05 +0000 (12:34 -0800)]
Fixed the security group port binding should be automatically
deleted when delete_port

Added the CASCADE setting for the security group port
binding database model.

Also removed unused variables and imports

Fixes: bug #1080887
Change-Id: Id1af121b6ee57b794cb515a0b0c26b9a6310fbc4

11 years agoMerge "Add script for checking i18n message"
Jenkins [Sat, 15 Dec 2012 00:24:39 +0000 (00:24 +0000)]
Merge "Add script for checking i18n message"

11 years agoAdd restproxy.ini to config_path in setup.py.
Dan Prince [Fri, 14 Dec 2012 16:11:34 +0000 (11:11 -0500)]
Add restproxy.ini to config_path in setup.py.

Fixes LP Bug #1090450

Change-Id: I4969cafba9f5650fa556d39885b58b2a52a85fe0

11 years agoMerge "Fixed the unit tests using SQLite do not check foreign keys."
Jenkins [Fri, 14 Dec 2012 04:12:03 +0000 (04:12 +0000)]
Merge "Fixed the unit tests using SQLite do not check foreign keys."

11 years agoMerge "Completes coverage of quantum.api.v2.resource"
Jenkins [Fri, 14 Dec 2012 04:09:28 +0000 (04:09 +0000)]
Merge "Completes coverage of quantum.api.v2.resource"

11 years agoReplaces assertEquals to assertEqual
Zhongyue Luo [Fri, 14 Dec 2012 01:32:24 +0000 (09:32 +0800)]
Replaces assertEquals to assertEqual

assertEquals() has been deprecated in 2.7
Replaced assertEquals to assertEqual in all test scripts

Change-Id: I04b4ac873e151837ade9127f8c1eba32f4707dd4

11 years agoCompletes coverage of quantum.api.v2.resource
Zhongyue Luo [Tue, 11 Dec 2012 07:22:26 +0000 (15:22 +0800)]
Completes coverage of quantum.api.v2.resource

Moved current resource testcases to new test script
Created test cases

Fixes bug #1085456

Change-Id: I9ff5ba6a44c32ba4cf04b6a75ea7fd30fc769d2c

11 years agoFixed the unit tests using SQLite do not check foreign keys.
Jason Zhang [Tue, 11 Dec 2012 02:04:18 +0000 (18:04 -0800)]
Fixed the unit tests using SQLite do not check foreign keys.

The foreign key constraints will be enabled for each SQLite
database connection.

By default the foreign key constraints are disabled in SQLite,
so some test cases failed after enabling the foreign key
constraints for unit tests. This fixings also fixed the failed
test cases because of the foreign key enforcement.

Fixes: bug #1021023
Change-Id: I89f0cbbd75bb685b50dfe6628116fa971c5e78cb

11 years agoMerge "dhcp.filters needs ovs_vsctl permission"
Jenkins [Thu, 13 Dec 2012 19:54:12 +0000 (19:54 +0000)]
Merge "dhcp.filters needs ovs_vsctl permission"

11 years agoMerge "Correct i18n message for metaplugin"
Jenkins [Thu, 13 Dec 2012 19:03:45 +0000 (19:03 +0000)]
Merge "Correct i18n message for metaplugin"

11 years agodhcp.filters needs ovs_vsctl permission
Aaron Rosen [Thu, 13 Dec 2012 18:53:07 +0000 (10:53 -0800)]
dhcp.filters needs ovs_vsctl permission

The dhcp agent calls ovs_vsctl so it will fail if using rootwrap
and these aren't specified. The reason why this was working using
rootwrap before is because there are other filters in
etc/quantum/rootwrap.d that specifiy ovs_vsctl which
allows the agent to make those calls. Fixes bug 1090072

Change-Id: I509c191c97e7187361a09788e841ebb5a9f934c7

11 years agoCorrect i18n message for nicira plugin
He Jie Xu [Thu, 13 Dec 2012 14:24:33 +0000 (22:24 +0800)]
Correct i18n message for nicira plugin

Part of bp make-string-localizable

Change-Id: I945151218580cecf467f7b37f91b0f97a6c3d336

11 years agoCorrect i18n message for metaplugin
He Jie Xu [Thu, 13 Dec 2012 14:00:02 +0000 (22:00 +0800)]
Correct i18n message for metaplugin

Part of bp make-string-localizable

Change-Id: Idf7158a7888a764efd5755be04f71595a0f55b7a

11 years agoadd parent/sub-resource support into Quantum API framework
Oleg Bondarev [Tue, 4 Dec 2012 15:15:09 +0000 (19:15 +0400)]
add parent/sub-resource support into Quantum API framework

- quantum.api.v2.base.Controller class now able to handle sub-resources
- quantum.api.v2.router.APIRouter now able to specify sub-resources

Fixes bug 1085968

Change-Id: I07f2c1f3d974f7f17d4947804bde064dd8004a84

11 years agoplugins/ryu: l3 agent rpc for Ryu plugin is broken
Isaku Yamahata [Wed, 12 Dec 2012 03:18:27 +0000 (12:18 +0900)]
plugins/ryu: l3 agent rpc for Ryu plugin is broken

Bug 1089221
This is the Ryu counter part of
https://review.openstack.org/#/c/15619/
Change id of I60f3081975fc7164b22f9e9fa941e702a3f4c663
Change set of 36e71eb1d2136795817ead27e1d9fa0ce65f6e

Change-Id: I43878517a79bf47d42d0e71e8af59d11a4278280

11 years agopluins/ryu: Fixes context exception in Ryu plugin
Isaku Yamahata [Wed, 12 Dec 2012 03:02:53 +0000 (12:02 +0900)]
pluins/ryu: Fixes context exception in Ryu plugin

Bug 1089220
This is the Ryu counter part of
https://review.openstack.org/#/c/15726
Change-ID of I913b48dcd84d275cd7de30ca990be00c243e63ea,
changeset of 05383d1340aecd7192609a9197c249886d844a46

Ryu plugin also needs to be taught the update.

Change-Id: I52fbf36df6e0769a032a7602637cabd93796fe1c

11 years agoMerge "Adds validity checks for ethertype and protocol"
Jenkins [Tue, 11 Dec 2012 15:37:43 +0000 (15:37 +0000)]
Merge "Adds validity checks for ethertype and protocol"

11 years agoMerge "DRY for network() and subnet() in test_db_plugin.py"
Jenkins [Tue, 11 Dec 2012 15:37:36 +0000 (15:37 +0000)]
Merge "DRY for network() and subnet() in test_db_plugin.py"

11 years agoMerge "Remove unnecessary port deletion"
Jenkins [Tue, 11 Dec 2012 07:43:15 +0000 (07:43 +0000)]
Merge "Remove unnecessary port deletion"

11 years agoMerge "Support to reset dnsname_servers and host_routes to empty"
Jenkins [Mon, 10 Dec 2012 20:55:30 +0000 (20:55 +0000)]
Merge "Support to reset dnsname_servers and host_routes to empty"

11 years agoDRY for network() and subnet() in test_db_plugin.py
Iryoung Jeong [Fri, 30 Nov 2012 08:21:44 +0000 (17:21 +0900)]
DRY for network() and subnet() in test_db_plugin.py

This update avoids the repetition of code for using contextmanager
by introducing dummy contextmanager function.

Change-Id: I84d785b4b50ea447cb7f6a8807d9caad75088f32

11 years agoAdds validity checks for ethertype and protocol
Gary Kotton [Mon, 10 Dec 2012 16:27:11 +0000 (16:27 +0000)]
Adds validity checks for ethertype and protocol

Fixes bug 1080461

Change-Id: Ifa014c985fcfa598b707c3c1e052aa8ae1baef0f

11 years agoAdd script for checking i18n message
He Jie Xu [Fri, 30 Nov 2012 08:03:41 +0000 (16:03 +0800)]
Add script for checking i18n message

Part of bp make-string-localizable

usage: tox -e i18n

tools/check_i18n.py: used check i18n message for one file.

tools/check_i18n_test_case.txt: test case of check_i18n.py.
run test case with cmd:
$ ./tools/check_i18n.py ./tools/check_i18n_test_case.txt -d

Change-Id: I2c383b7bb11ab3bdb8e3bb3b887342b1225840ac

11 years agoUpdate evenlet monkey patch flags.
Gary Kotton [Mon, 10 Dec 2012 08:10:20 +0000 (08:10 +0000)]
Update evenlet monkey patch flags.

Fixes bug 1088385

Change-Id: I1da88b1c225ac73f45aef08b3ddbf6cd98a50568

11 years agoRemove unnecessary port deletion
Gary Kotton [Mon, 10 Dec 2012 06:59:30 +0000 (06:59 +0000)]
Remove unnecessary port deletion

Fixes bug 1088368

Change-Id: I41b816a8d72d09740ea7d063172a75cedffb8d6d

11 years agoSupport to reset dnsname_servers and host_routes to empty
gongysh [Tue, 4 Dec 2012 06:46:25 +0000 (14:46 +0800)]
Support to reset dnsname_servers and host_routes to empty

Bug #1086232

Change-Id: Ia27170b206f755577c8607c5b27dc5cf57d19633

11 years agoPrevent unnecessary database read by l3 agent
Gary Kotton [Sun, 9 Dec 2012 06:33:13 +0000 (06:33 +0000)]
Prevent unnecessary database read by l3 agent

Fixes bug 1088129

Change-Id: I887facf321f3267c16c101a1448827f6c046bb2c

11 years agoCorrect i18n message for linuxbridge plugin
He Jie Xu [Fri, 7 Dec 2012 14:58:50 +0000 (22:58 +0800)]
Correct i18n message for linuxbridge plugin

part of bp make-string-localizable

Change-Id: Ie5c42e71084d376eca1edc750467b8498a4d8dc4

11 years agoMerge "Releasing resources of context manager functions if exceptions occur"
Jenkins [Thu, 6 Dec 2012 15:52:36 +0000 (15:52 +0000)]
Merge "Releasing resources of context manager functions if exceptions occur"

11 years agoMerge "Drop duplicated port_id check in remove_router_interface()"
Jenkins [Thu, 6 Dec 2012 14:22:37 +0000 (14:22 +0000)]
Merge "Drop duplicated port_id check in remove_router_interface()"

11 years agoAdd router testcases that missing in L3NatDBTestCase
He Jie Xu [Thu, 22 Nov 2012 07:57:57 +0000 (15:57 +0800)]
Add router testcases that missing in L3NatDBTestCase

Fixes bug 1083504
Add router testcases in L3NatDBTestCase
Correct router testcases name. Use the same naming rule as test_db_plugin

Change-Id: Icfbef5ec7861aee07df3d451c09f06265fbafe21

11 years agoReleasing resources of context manager functions if exceptions occur
Iryoung Jeong [Thu, 22 Nov 2012 03:58:47 +0000 (12:58 +0900)]
Releasing resources of context manager functions if exceptions occur

The functions using decorator @contextlib.contextmanager in files below
has potential resorce leaks when exceptions occur.
 - quantum/tests/unit/test_policy.py
 - quantum/tests/unit/test_db_plugin.py
 - quantum/tests/unit/test_l3_plugin.py
 - quantum/tests/unit/test_extension_security_group.py

This patch let them releasing resources correctly.

Fixes bug #1083045

Change-Id: I66266b7afa4977537caabafc82d8c294730188ba

11 years agoDrop duplicated port_id check in remove_router_interface()
Akihiro MOTOKI [Sun, 2 Dec 2012 21:17:20 +0000 (06:17 +0900)]
Drop duplicated port_id check in remove_router_interface()

Fixes bug 1075157

In addition exceptions used in remove_router_intreface are defined
and gettextized.

Change-Id: I30b1561f3d4be12e485c506e5c3828b41ab226ef

11 years agoReturns more appropriate error when address pool is exhausted
Gary Kotton [Tue, 4 Dec 2012 14:41:41 +0000 (14:41 +0000)]
Returns more appropriate error when address pool is exhausted

Fixes bug 1086226

Change-Id: I97a73151a1ed42877116238a6a741c68c75e199a

11 years agoAdd VIF binding extensions
Gary Kotton [Sat, 10 Nov 2012 05:56:07 +0000 (05:56 +0000)]
Add VIF binding extensions

The is part of the blueprint vif-plugging-improvements.

The patch adds an extension to Quantum that enables the plugin to
return VIF details.

At the moment it supports openvswitch and linuxbridge.

Change-Id: Ib9b4d34e668e2ddc61c152c2c4cd4a01f2d0de40

11 years agoSort router testcases as group for L3NatDBTestCase
He Jie Xu [Thu, 22 Nov 2012 07:43:13 +0000 (15:43 +0800)]
Sort router testcases as group for L3NatDBTestCase

Sort order of testcases as group for readability.

Change-Id: I5f74145b8a84cf837b97a03aa38583111ff80fab

11 years agoMerge "l3 agent rpc"
Jenkins [Tue, 4 Dec 2012 21:27:11 +0000 (21:27 +0000)]
Merge "l3 agent rpc"

11 years agoMerge "plugin/ryu: make live-migration work with Ryu plugin"
Jenkins [Tue, 4 Dec 2012 18:01:42 +0000 (18:01 +0000)]
Merge "plugin/ryu: make live-migration work with Ryu plugin"

11 years agoMerge "Remove __init__.py from bin/ and tools/."
Jenkins [Tue, 4 Dec 2012 16:19:29 +0000 (16:19 +0000)]
Merge "Remove __init__.py from bin/ and tools/."