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

11 years agoRefactor resources listing testcase for test_db_plugin.py
He Jie Xu [Mon, 19 Nov 2012 14:29:43 +0000 (22:29 +0800)]
Refactor resources listing testcase for test_db_plugin.py

Fixes bug 1083502
Add common function '_test_list_resources' for resource listing.

Change-Id: I5b144ff3924cbc623174172f3f74b2d33d24229b

11 years agol3 agent rpc
gongysh [Mon, 12 Nov 2012 12:28:16 +0000 (20:28 +0800)]
l3 agent rpc

On one hand, we sync router data (including routers,
their gw ports, interfaces and floatingips) from l3_agent
to quantum server periodically if needed.

On the other hand, we notify l3 agent from quantum server when
we delete or update a router's stuff, such as floating IP,
interface and gwport and router itself.

blueprint rpc-for-l3-agent
bug #1080286

Change-Id: I60f3081975fc7164b22f9e9fa941e702a3f4c663

11 years agoFix rootwrap cfg for src installed metadata proxy.
Maru Newby [Tue, 4 Dec 2012 00:27:53 +0000 (00:27 +0000)]
Fix rootwrap cfg for src installed metadata proxy.

 * The metadata proxy script will be installed to /usr/local/bin
   if installed from source, rather than the default /usr/bin.
   The filter config needs to be updated to reflect this or
   invacation of the proxy by the l3 agent will fail.

Change-Id: Iccb4133b1ac33a1b9b232c1d68979fe646e1b977

11 years agoMerge "add state_path sample back to l3_agent.ini file"
Jenkins [Mon, 3 Dec 2012 19:49:15 +0000 (19:49 +0000)]
Merge "add state_path sample back to l3_agent.ini file"

11 years agoAdd metadata_agent.ini to config_path in setup.py.
Dan Prince [Mon, 3 Dec 2012 15:36:08 +0000 (10:36 -0500)]
Add metadata_agent.ini to config_path in setup.py.

Change-Id: Ia2795a22165a30684c17e23bdf73f8c6e0c01825

11 years agoadd state_path sample back to l3_agent.ini file
Mark McClain [Mon, 3 Dec 2012 15:32:30 +0000 (10:32 -0500)]
add state_path sample back to l3_agent.ini file

fixes bug 1086012

A prior change incorrectly removed the sample state_path from the
l3_agent config file.  This change adds the correct sample value to the
file.

Change-Id: I10455706442c004e5d0337834b5baa3b794af5e7

11 years agoplugin/ryu: make live-migration work with Ryu plugin
Isaku Yamahata [Tue, 20 Nov 2012 05:41:04 +0000 (14:41 +0900)]
plugin/ryu: make live-migration work with Ryu plugin

Fixes bug 1085861

Live-migration with Ryu plugin doesn't work because the unique constraint of
PortBinding table is violated as follows.
Now Ryu can handle those informations itself, so remove the table itself and
simplify Ryu plugin.

> ERROR [quantum.api.v2.resource] update failed
> Traceback (most recent call last):
>   File "/quantum/api/v2/resource.py", line 95, in resource
>     result = method(request=request, **args)
>   File "/quantum/api/v2/base.py", line 397, in update
>     obj = obj_updater(request.context, id, **kwargs)
>   File "/quantum/plugins/ryu/ryu_quantum_plugin.py", line 226, in update_port
>     port_binding.dpid, port_binding.port_no))
> InvalidInput: Invalid input for operation: invalid (datapath_id, port_no) requested (00002eab88ec5140, 4), but (0000c2f19014c74a, 1).

Change-Id: I7d993fd01125a27f6bf8e1b3fcac79ddcb8cb361

11 years agoRemove __init__.py from bin/ and tools/.
Sascha Peilicke [Mon, 3 Dec 2012 10:00:59 +0000 (11:00 +0100)]
Remove __init__.py from bin/ and tools/.

To avoid installation into .../site-packages/quantum via
packages=setuptools.find_packages('.') in setup.py. Both directories
are not Python modules.

Change-Id: I794ad047a5ed52cb040490eb1be54c513c9d1e7c

11 years agoMerge "Removes unused code in quantum.common"
Jenkins [Mon, 3 Dec 2012 09:37:56 +0000 (09:37 +0000)]
Merge "Removes unused code in quantum.common"

11 years agoRemoves unused code in quantum.common
Zhongyue Luo [Mon, 3 Dec 2012 07:45:51 +0000 (15:45 +0800)]
Removes unused code in quantum.common

Removed boolize() in quantum.common.utils

Fixes bug #877120

Change-Id: Icb30b4200baf8743bbee6b4dd035c8b316c38533

11 years agoFixes import order nits
Zhongyue Luo [Mon, 3 Dec 2012 02:06:23 +0000 (10:06 +0800)]
Fixes import order nits

Change-Id: I8bcfbcbc0d97a96a9c05d29510d3017b8a054cec

11 years agoMerge "update state_path default to be the same value"
Jenkins [Sun, 2 Dec 2012 01:45:24 +0000 (01:45 +0000)]
Merge "update state_path default to be the same value"

11 years agoMerge "Completes coverage of quantum.agent.linux.utils"
Jenkins [Sat, 1 Dec 2012 15:31:22 +0000 (15:31 +0000)]
Merge "Completes coverage of quantum.agent.linux.utils"

11 years agoMerge "prevent deletion of router interface if it is needed by a floating ip"
Jenkins [Sat, 1 Dec 2012 03:01:25 +0000 (03:01 +0000)]
Merge "prevent deletion of router interface if it is needed by a floating ip"

11 years agoupdate state_path default to be the same value
Mark McClain [Fri, 30 Nov 2012 23:03:52 +0000 (18:03 -0500)]
update state_path default to be the same value

fixes bug 1085249

This patch sets the default state_path to match a reasonable deployment
value instead of the devstack default.

Change-Id: Ib0c10621d91760588a68a62df8a60682d780e015

11 years agoUse /usr/bin/ for the metadata proxy in l3.filters
Dan Prince [Fri, 30 Nov 2012 21:13:51 +0000 (16:13 -0500)]
Use /usr/bin/ for the metadata proxy in l3.filters

Updates the l3.filters proxy to use /usr/bin/ instead
of /usr/local/bin.  This should be a more distro friendly
default and follows the pattern used by other OpenStack
services as well.

Change-Id: I8fbaa49f97f5367c112dc399db838d204af7b4c8

11 years agoMerge "Fixes Rpc related exception in NVP plugin"
Jenkins [Fri, 30 Nov 2012 18:35:23 +0000 (18:35 +0000)]
Merge "Fixes Rpc related exception in NVP plugin"

11 years agoprevent deletion of router interface if it is needed by a floating ip
Dan Wendlandt [Fri, 30 Nov 2012 17:01:15 +0000 (09:01 -0800)]
prevent deletion of router interface if it is needed by a floating ip

bug 1081325

Change-Id: I33495fd7ee812eded015b2d3783d1cf6a3bf14bc

11 years agoMerge "add metadata proxy support for Quantum Networks"
Jenkins [Fri, 30 Nov 2012 16:50:34 +0000 (16:50 +0000)]
Merge "add metadata proxy support for Quantum Networks"

11 years agoCompletes coverage of quantum.agent.linux.utils
Zhongyue Luo [Thu, 29 Nov 2012 07:50:12 +0000 (15:50 +0800)]
Completes coverage of quantum.agent.linux.utils

Renamed test_agent_utils to test_agent_linux_utils
Added test cases

Fixes bug #1084817

Change-Id: If0269a003bd8e1fc6f6ef3c622d7a015dadf50aa

11 years agoFixes Rpc related exception in NVP plugin
Aaron Rosen [Fri, 30 Nov 2012 00:24:55 +0000 (16:24 -0800)]
Fixes Rpc related exception in NVP plugin

The rpc changes from commit 05383d13 were not also made against
the nvp_plugin. Bug #1084803

Change-Id: Iac95065bda2f6b83e07c27045f374ab8690865ca

11 years agomake the DHCP agent use a unique queue name
Mark McClain [Thu, 29 Nov 2012 17:26:29 +0000 (12:26 -0500)]
make the DHCP agent use a unique queue name

fixes bug: 1084621

This generates a unique name, so that multiple agents can be active
within a deployment.

Change-Id: Ia2bdc27866e6aa4aebd0bd28d1dfd25c3167dd03

11 years agoMerge "Fixes Context exception in BigSwitch/FloodLight Plugin"
Jenkins [Thu, 29 Nov 2012 13:38:17 +0000 (13:38 +0000)]
Merge "Fixes Context exception in BigSwitch/FloodLight Plugin"

11 years agoMerge "Completes coverage of quantum.agent.rpc.py"
Jenkins [Thu, 29 Nov 2012 12:14:49 +0000 (12:14 +0000)]
Merge "Completes coverage of quantum.agent.rpc.py"