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

11 years agoFixes Context exception in BigSwitch/FloodLight Plugin
Sumit Naiksatam [Thu, 29 Nov 2012 10:17:59 +0000 (02:17 -0800)]
Fixes Context exception in BigSwitch/FloodLight Plugin

Bug #1083389

Aligning with the changes in the patch: https://review.openstack.org/#/c/15726
to only use Quantum API context.

Change-Id: I5644ad59c34430a9d558c39bbc07f594609ebfbc

11 years agoMerge "Completes coverage of quantum.agent.netns_cleanup.py"
Jenkins [Thu, 29 Nov 2012 08:25:58 +0000 (08:25 +0000)]
Merge "Completes coverage of quantum.agent.netns_cleanup.py"

11 years agofix remap of floating-ip within l3-agent polling interval
Dan Wendlandt [Thu, 29 Nov 2012 06:10:41 +0000 (22:10 -0800)]
fix remap of floating-ip within l3-agent polling interval

bug 1083990

Change-Id: I1bb365fe6accc24a223acd2b31d4eacdb6809410

11 years agoCompletes coverage of quantum.agent.rpc.py
Zhongyue Luo [Thu, 29 Nov 2012 03:29:07 +0000 (11:29 +0800)]
Completes coverage of quantum.agent.rpc.py

Added test cases

Fixes bug #1084381

Change-Id: I9179aac206befa6b0449814646639ed96a1eadbc

11 years agoCompletes coverage of quantum.agent.netns_cleanup.py
Zhongyue Luo [Thu, 29 Nov 2012 01:37:24 +0000 (09:37 +0800)]
Completes coverage of quantum.agent.netns_cleanup.py

Added test cases
Fixed typos

Fixes bug #1084332

Change-Id: I86c2321dfe5f3f1ac4b8b570a6c76dbb1928bfb0

11 years agoadd metadata proxy support for Quantum Networks
Mark McClain [Fri, 16 Nov 2012 04:08:52 +0000 (23:08 -0500)]
add metadata proxy support for Quantum Networks

blueprint metadata-overlapping-networks

Adds Metadata for guest VMs running on Qunatum networks.  This requires
a companion patchset for Nova to test.

Change-Id: I524c6fdcd6a44e46da08395fd84c1288052a69ea

11 years agoMerge "Use openstack.common.logging in NEC OpenFlow plugin"
Jenkins [Wed, 28 Nov 2012 22:44:38 +0000 (22:44 +0000)]
Merge "Use openstack.common.logging in NEC OpenFlow plugin"

11 years agoMerge "Correct i18n message for api and db module"
Jenkins [Wed, 28 Nov 2012 22:44:31 +0000 (22:44 +0000)]
Merge "Correct i18n message for api and db module"

11 years agoMake signing dir a subdir in /var/lib/quantum.
Dan Prince [Wed, 28 Nov 2012 19:01:36 +0000 (14:01 -0500)]
Make signing dir a subdir in /var/lib/quantum.

Moves the keystone_signing directory into a subdirectory
of /var/lib/quantum which is use for lots of other things
as well.

Change-Id: I451d2bca17dcdb5b7050bc412e709285f87cb788

11 years agoUse openstack.common.logging in NEC OpenFlow plugin
Akihiro MOTOKI [Wed, 28 Nov 2012 13:13:42 +0000 (22:13 +0900)]
Use openstack.common.logging in NEC OpenFlow plugin

Fixes bug 1084129

Also fixes non-i18n raise messages.

Change-Id: I077662329d17427fa3efa7269244248613a6ab85

11 years agoCorrect i18n message for api and db module
He Jie Xu [Wed, 28 Nov 2012 06:52:43 +0000 (14:52 +0800)]
Correct i18n message for api and db module

Part of bp make-string-localizable

Change-Id: I68af562af9438a6cff0628a98ace8aeb291dfeaa

11 years agoFixes update router gateway successful with existed floatingip association
He Jie Xu [Mon, 26 Nov 2012 07:23:15 +0000 (15:23 +0800)]
Fixes update router gateway successful with existed floatingip association

Fixes bug 1081877

Change-Id: I77e6034a39dc9db85de691a9ba596b2c8ca9d124

11 years agoFixes order of route entries.
Gary Kotton [Mon, 26 Nov 2012 17:07:12 +0000 (17:07 +0000)]
Fixes order of route entries.

Fixes bug 1083238

This patch makes sure that a route entry for dnsmasq is placed first
before any others (for example the l3-agent one). This makes DHCP work
when network namespaces are disabled.

Change-Id: I241a8e30127d614f7582e10d999521f6486e5255

11 years agofix so cisco plugin db model to not override count methods
Dan Wendlandt [Tue, 27 Nov 2012 17:53:28 +0000 (09:53 -0800)]
fix so cisco plugin db model to not override count methods

bug 1083696

also fixes bug 1083180, which has L3 plugin base class implement
get_*_count methods and raise
NotImplemented, which is the "right" thing to do from a
code-as-documentation perspective.

Change-Id: I0367953bcea930b1ca70e416d3de22eeea1aa99d

11 years agoUse auth_token middleware in keystoneclient.
Yaguang Tang [Tue, 27 Nov 2012 08:55:32 +0000 (16:55 +0800)]
Use auth_token middleware in keystoneclient.

The auth_token middleware moved into keystoneclient so a full
keystone install is not required to use the middleware.Also
add missing signing_dir to api-paste.ini.

Change-Id: If6c339045b70b3d4d70f0297ec32ed3cfdf431de

11 years agoMerge "Make sure we can update when there is no gateway port linked to it"
Jenkins [Tue, 27 Nov 2012 10:22:33 +0000 (10:22 +0000)]
Merge "Make sure we can update when there is no gateway port linked to it"

11 years agoMerge "Fixes pep8 nit"
Jenkins [Tue, 27 Nov 2012 09:05:13 +0000 (09:05 +0000)]
Merge "Fixes pep8 nit"

11 years agoMerge "Fix syntax error in nvplib"
Jenkins [Tue, 27 Nov 2012 09:05:03 +0000 (09:05 +0000)]
Merge "Fix syntax error in nvplib"

11 years agoMerge "Removes quantum.tests.test_api_v2._uuid()"
Jenkins [Tue, 27 Nov 2012 07:55:16 +0000 (07:55 +0000)]
Merge "Removes quantum.tests.test_api_v2._uuid()"

11 years agoFixes pep8 nit
Zhongyue Luo [Tue, 27 Nov 2012 02:29:29 +0000 (10:29 +0800)]
Fixes pep8 nit

Removes a space

Change-Id: I8bd949cff4e18cb7707a4bccb3546f82a8354a68

11 years agoMake sure we can update when there is no gateway port linked to it
gongysh [Tue, 27 Nov 2012 01:59:40 +0000 (09:59 +0800)]
Make sure we can update when there is no gateway port linked to it

Bug #1083387

Change-Id: I7e56d072a6e430ddde816781fe480c6028577c5f

11 years agoMerge "Removes _validate_boolean()"
Jenkins [Tue, 27 Nov 2012 02:03:14 +0000 (02:03 +0000)]
Merge "Removes _validate_boolean()"

11 years agoMerge "Refactors quantum.api.v2.attributes.py"
Jenkins [Tue, 27 Nov 2012 01:58:14 +0000 (01:58 +0000)]
Merge "Refactors quantum.api.v2.attributes.py"

11 years agoFix syntax error in nvplib
Salvatore Orlando [Tue, 27 Nov 2012 00:53:30 +0000 (16:53 -0800)]
Fix syntax error in nvplib

Bug 1083379

Change-Id: I906be569b72506df5729e547407a204739c36305

11 years agoRemoves quantum.tests.test_api_v2._uuid()
Zhongyue Luo [Fri, 23 Nov 2012 04:56:01 +0000 (12:56 +0800)]
Removes quantum.tests.test_api_v2._uuid()

Removed _uuid function
Defined an _uuid alias of openstack.common.uuidutils.generate_uuid

Fixes bug #1082255

Change-Id: I7d10ce3ade27eb4cdd533b5a77b9c405ad1dc174

11 years agoMerge "Correct i18n message for ovs plugin"
Jenkins [Mon, 26 Nov 2012 22:27:25 +0000 (22:27 +0000)]
Merge "Correct i18n message for ovs plugin"

11 years agoMerge "Add filters for quantum-debug"
Jenkins [Mon, 26 Nov 2012 22:24:02 +0000 (22:24 +0000)]
Merge "Add filters for quantum-debug"

11 years agoAdd filters for quantum-debug
Nachi Ueno [Tue, 20 Nov 2012 22:54:53 +0000 (14:54 -0800)]
Add filters for quantum-debug

only allows ping command here.
Fixes bug 1071110

Change-Id: I38f24e40de048845f01dbc07c79bb02acf92da31

11 years agoMerge "Removing unnecessary setUp()/tearDown() in SecurityGroupsTestCase"
Jenkins [Mon, 26 Nov 2012 18:01:09 +0000 (18:01 +0000)]
Merge "Removing unnecessary setUp()/tearDown() in SecurityGroupsTestCase"

11 years agoRemoving unnecessary setUp()/tearDown() in SecurityGroupsTestCase
Iryoung Jeong [Mon, 26 Nov 2012 04:56:36 +0000 (13:56 +0900)]
Removing unnecessary setUp()/tearDown() in SecurityGroupsTestCase

This patch removes not required setUp()/tearDown() functions in
SecurityGroupsTestCase. The functions are almost identical in
test_db_plugin.QuantumDbPluginV2TestCase. Only difference is initializing
ext_mgr which is done by SecurityGroupDBTestCase.setUp().

And redundant inheritance of unittest2.TestCase for SecurityGroupsTestCase
is fixed.

Change-Id: I50d8efd047e23d02d76b8f38b75c730b75bb96ce

11 years agoFix exception when security group rule already exists
Gary Kotton [Sun, 25 Nov 2012 15:43:21 +0000 (15:43 +0000)]
Fix exception when security group rule already exists

Fixes bug 1082842

Change-Id: I5f51c3637903ff817fb47af82419c453094eb5be

11 years agoMerge "Replaces uuid.uuid4 with uuidutils.generate_uuid()"
Jenkins [Mon, 26 Nov 2012 04:52:41 +0000 (04:52 +0000)]
Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()"

11 years agoDon't force run_tests.sh pep8 only to use -N.
Dan Prince [Mon, 26 Nov 2012 03:01:27 +0000 (22:01 -0500)]
Don't force run_tests.sh pep8 only to use -N.

Previously running run_tests.sh -p would *always* run
outside of the virtual environment. This commit makes -p
work equally well with -N (no-virtual-env) and -V (virtual-env).

Change-Id: I214404e85af2122b2ea7330e6496848a1e0d7ddf

11 years agoCorrect i18n message for ovs plugin
He Jie Xu [Thu, 22 Nov 2012 14:23:28 +0000 (22:23 +0800)]
Correct i18n message for ovs plugin

Part of bp make-string-localizable

Change-Id: I891d0128fd9e24805cef2c1db99cf8e716c7b4a0

11 years agoReplaces uuid.uuid4 with uuidutils.generate_uuid()
Zhongyue Luo [Fri, 23 Nov 2012 03:54:37 +0000 (11:54 +0800)]
Replaces uuid.uuid4 with uuidutils.generate_uuid()

Fixes bug #1082248

Change-Id: I1be4ae129382585cecc4346e1e712ee0ab03bab5

11 years agoMerge "Correct i18n message"
Jenkins [Sun, 25 Nov 2012 21:26:05 +0000 (21:26 +0000)]
Merge "Correct i18n message"

11 years agoMerge "Removes quantum.common.utils.str_uuid()"
Jenkins [Sun, 25 Nov 2012 20:33:49 +0000 (20:33 +0000)]
Merge "Removes quantum.common.utils.str_uuid()"

11 years agoMerge "pass static to argv to quantum-debug config parser"
Jenkins [Sun, 25 Nov 2012 20:02:03 +0000 (20:02 +0000)]
Merge "pass static to argv to quantum-debug config parser"

11 years agoCorrect i18n message
He Jie Xu [Thu, 22 Nov 2012 14:05:28 +0000 (22:05 +0800)]
Correct i18n message

Part of bp make-string-localizable

Change-Id: I9020d7ef426602656fc198018c176eec813cd74b

11 years agoRemoves _validate_boolean()
Zhongyue Luo [Wed, 14 Nov 2012 01:00:03 +0000 (09:00 +0800)]
Removes _validate_boolean()

Removed _validate_boolean function
Removed all type:boolean verifications

Fixes bug #1082256

Change-Id: I68883ff4dd727fa034d57876b46519d637156af6

11 years agoRemoves quantum.common.utils.str_uuid()
Zhongyue Luo [Thu, 15 Nov 2012 01:02:20 +0000 (09:02 +0800)]
Removes quantum.common.utils.str_uuid()

Replaced str_uuid() with openstack.common.uuidutils.generate_uuid()

Fixes bug #1082236

Change-Id: Ib09b070bfa1de4435c831d1d3c0fb0b0d12011bd

11 years agoRefactors quantum.api.v2.attributes.py
Zhongyue Luo [Thu, 15 Nov 2012 13:47:49 +0000 (22:47 +0900)]
Refactors quantum.api.v2.attributes.py

Logic changes were done for consistency across methods,
removal of redundant code and lower memory consumption.

Fixes bug #1082224

Change-Id: Ie09773d35325bec69ea82b3b59f812af5fa1c4d6

11 years agoUpdates tearDown() to release instance objects
Iryoung Jeong [Thu, 22 Nov 2012 03:58:47 +0000 (12:58 +0900)]
Updates tearDown() to release instance objects

This change fixes the bug by releasing the objects of the instance
of class QuantumDbPluginV2TestCase. Removing unnecessary objects
explicitly reduces the memory required by unit tests.

Fixes bug 1065276

Change-Id: Ia003a7718e1aedc4e4c8fb02b723f4a511ebc319

11 years agopass static to argv to quantum-debug config parser
Mark McClain [Wed, 21 Nov 2012 18:16:37 +0000 (13:16 -0500)]
pass static to argv to quantum-debug config parser

fixes bug 1079609

The quantum-debug tests were using the test runners sys.argv instead of
creating a known value.  This fix passes a fake argv to parse.

Change-Id: Iaae7292057b839f64e172504a55034a0d9272918

11 years agoMerge "Improve openvswitch and linuxbridge agents' parsing of mappings"
Jenkins [Tue, 20 Nov 2012 16:05:41 +0000 (16:05 +0000)]
Merge "Improve openvswitch and linuxbridge agents' parsing of mappings"

11 years agoImprove openvswitch and linuxbridge agents' parsing of mappings
Bob Kukura [Tue, 13 Nov 2012 18:50:53 +0000 (13:50 -0500)]
Improve openvswitch and linuxbridge agents' parsing of mappings

Created generic quantum.utils.parse_mappings function that detects
duplicate key or value strings, and changed openvswitch and
linuxbridge agents to use this to parse their mappings from physical
networks to bridges or interfaces. Fixes bug 1067669.

Also fixed some typos in comments.

Change-Id: I342eaeeb6ff4c6e25d57d631f250faac082011b8

11 years agoMove extension.py into quantum/api.
Dan Prince [Mon, 5 Nov 2012 16:57:53 +0000 (11:57 -0500)]
Move extension.py into quantum/api.

This change moves extensions.py out of the extensions module
and into the api module. This resolves an issue where the
following log WARNING message would occur each time the Quantum
API starts:

Did not find expected name "Extensions" in
/usr/lib/python2.7/site-packages/quantum/extensions/extensions.py

Fixes LP Bug #1074895.

Change-Id: Ia5ed206870551f9b33b74dcdc9d0503e447f298d

11 years agoEnsure that the expiration time for leased IP is updated correctly
Gary Kotton [Sat, 17 Nov 2012 05:51:47 +0000 (05:51 +0000)]
Ensure that the expiration time for leased IP is updated correctly

Fixes bug 1081664

Change-Id: I77596ef65be817a874fad41b49e7ddbc0663c237

11 years agoMerge "bug 1057844: improve floating-ip association checks"
Jenkins [Wed, 21 Nov 2012 05:37:58 +0000 (05:37 +0000)]
Merge "bug 1057844: improve floating-ip association checks"

11 years agoFix context problem
gongysh [Fri, 9 Nov 2012 14:45:58 +0000 (22:45 +0800)]
Fix context problem

On plugin side, we use normal API context if any to call RPC methods.
We use our plugin dispatcher to convert RPC context into quantum admin
context. After that the callback's functions have the first argument context
as normal quantum context.

On agent side, we use admin context without session property as its
RPC calling context. Call back context is default RPCCommonContext in
Openstack common modules.

This patch also fixes the problem in the following bug:

Bug #1077012

Change-Id: I913b48dcd84d275cd7de30ca990be00c243e63ea

11 years agoMerge "fix broken logic of only using hasattr to check for get_x_counts"
Jenkins [Tue, 20 Nov 2012 22:54:08 +0000 (22:54 +0000)]
Merge "fix broken logic of only using hasattr to check for get_x_counts"

11 years agobug 1057844: improve floating-ip association checks
Dan Wendlandt [Tue, 20 Nov 2012 22:09:19 +0000 (14:09 -0800)]
bug 1057844: improve floating-ip association checks

allow multiple floating ips to be associated with the same internal port
as long as they map to different external nets (not yet supported in
Folsom) or different internal fixed IPs.  With Quantum, there is no
need to disallow either scenario.

Also improve check for a valid external network to router to internal
subnet path when a floating IP is bound.

Change-Id: Iced675e1f064172ee8a5bb6b9e37032e83af5711

11 years agofix broken logic of only using hasattr to check for get_x_counts
Dan Wendlandt [Tue, 20 Nov 2012 20:59:20 +0000 (12:59 -0800)]
fix broken logic of only using hasattr to check for get_x_counts

bug 1081259

Change-Id: I1dad596830685968ae47394e0e85afe1b72ab544