]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
12 years agoAllow tox to run plugin specific unit tests
Salvatore Orlando [Fri, 24 Aug 2012 17:51:19 +0000 (10:51 -0700)]
Allow tox to run plugin specific unit tests

Fixes bug 1041316

This patch covers linuxbridge, nec, nicira, and ryu plugins.

Change-Id: I024a46bc9b49ffe60cdbe9fa275f30ac9d829a9a

12 years agofixes cisco nexus plugin delete network issue
Rohit Agarwalla [Fri, 24 Aug 2012 10:48:22 +0000 (03:48 -0700)]
fixes cisco nexus plugin delete network issue

Fixes bug 1039687

Removes the vlan from the nexus interface corresponding to the network that has been deleted.
unit tests added.

Change-Id: Ib58a01c7b5bbdd7aac8591b4fb4db123cbe8f55b

12 years agoPEP8 issues fixed
Ray Chen [Fri, 24 Aug 2012 11:21:55 +0000 (19:21 +0800)]
PEP8 issues fixed

Fix some pep8 problems in doc/source/conf.py and make the code
more pretty.

Change-Id: Iff1333441b67addb38533ba061aa89f59533fdb2

12 years agoMerge "Enable users to list subnets on shared networks"
Jenkins [Fri, 24 Aug 2012 06:33:38 +0000 (06:33 +0000)]
Merge "Enable users to list subnets on shared networks"

12 years agoMerge "Update TESTING file"
Jenkins [Thu, 23 Aug 2012 15:33:02 +0000 (15:33 +0000)]
Merge "Update TESTING file"

12 years agoMerge "Run core unit tests for each plugin"
Jenkins [Thu, 23 Aug 2012 15:30:21 +0000 (15:30 +0000)]
Merge "Run core unit tests for each plugin"

12 years agoremoved some unused global variable
justin ljj [Thu, 16 Aug 2012 07:13:27 +0000 (15:13 +0800)]
removed some unused global variable

Fixes bug 1037082.

Change-Id: Id8e5df04cc0183cd4b2a9ab23cd403a83a2db637

12 years agoUpdate TESTING file
Salvatore Orlando [Thu, 23 Aug 2012 05:17:54 +0000 (22:17 -0700)]
Update TESTING file

Fixes bug 1040566

Change-Id: Iff7a97532e1a6012d9d5cafb82ad7babfb9fd080

12 years agoTypo fix in quantum: existant => existent
RongzeZhu [Thu, 23 Aug 2012 03:50:25 +0000 (11:50 +0800)]
Typo fix in quantum: existant => existent

Impact:
* Test function names
* Variables in test function

Change-Id: Idb7ba131dabb8cc7e483cb06fa52feb9a9c7c676

12 years agoRun core unit tests for each plugin
Salvatore Orlando [Wed, 22 Aug 2012 23:29:24 +0000 (16:29 -0700)]
Run core unit tests for each plugin

Fixes bug 1040277

Execute the test cases in test_db_plugin.py for each plugin.
Each plugin now get its own test_<plugin_name>_plugin test module.
This commit excludes cisco and metaplugin plugins, which do not run
the "core" unit tests at all.

Change-Id: I137411f47d8cfcc753aa3a88359f5b1590ca8237

12 years agoOVS plugin tunnel bridges never learn
Aaron Rosen [Thu, 5 Jul 2012 23:31:51 +0000 (19:31 -0400)]
OVS plugin tunnel bridges never learn

This patch installs a flow_mod to handle each vm
with the normal action which allows OVS to do mac learning.
Fixes bug 1011467

Change-Id: Ib6500813d4111ae42675459fac64dfb2e9c40d91

12 years agoMerge "Linuxbridge support for L3 agent"
Jenkins [Wed, 22 Aug 2012 17:07:01 +0000 (17:07 +0000)]
Merge "Linuxbridge support for L3 agent"

12 years agoMerge "Ensure that LB agent does not terminate if interface already exists in bridge"
Jenkins [Wed, 22 Aug 2012 15:06:30 +0000 (15:06 +0000)]
Merge "Ensure that LB agent does not terminate if interface already exists in bridge"

12 years agoMerge "Treat exceptions when invoking ovs-vsctl"
Jenkins [Wed, 22 Aug 2012 14:59:59 +0000 (14:59 +0000)]
Merge "Treat exceptions when invoking ovs-vsctl"

12 years agoMerge "enable router deletion logic in l3-agent"
Jenkins [Wed, 22 Aug 2012 11:14:38 +0000 (11:14 +0000)]
Merge "enable router deletion logic in l3-agent"

12 years agoMerge "Add nosehtmloutput as a test dependency."
Jenkins [Wed, 22 Aug 2012 08:06:53 +0000 (08:06 +0000)]
Merge "Add nosehtmloutput as a test dependency."

12 years agoMerge "Fix IP allocation on shared networks ports."
Jenkins [Wed, 22 Aug 2012 05:48:41 +0000 (05:48 +0000)]
Merge "Fix IP allocation on shared networks ports."

12 years agoAdd nosehtmloutput as a test dependency.
Clark Boylan [Tue, 21 Aug 2012 21:41:29 +0000 (14:41 -0700)]
Add nosehtmloutput as a test dependency.

Adding nosehtmloutput as a test dependency allows nose to output its
results to an html file. This will be used by Jenkins to save logs on
a different server.

Change-Id: If88ca04bf7e45aa25aaea3cc01bb0f457224c117

12 years agofix typo in OVS plugin from recent bugfix
Dan Wendlandt [Tue, 21 Aug 2012 20:56:19 +0000 (13:56 -0700)]
fix typo in OVS plugin from recent bugfix

bug 1039393

this demonstrates why we need plugin unit tests merged into the main set
of unit tests.

Change-Id: I132c706a7c69c8c779727835be4319c5ed649385

12 years agoMerge "Remove v1.0 and v1.1 API from version info."
Jenkins [Tue, 21 Aug 2012 18:44:01 +0000 (18:44 +0000)]
Merge "Remove v1.0 and v1.1 API from version info."

12 years agoenable router deletion logic in l3-agent
Dan Wendlandt [Tue, 21 Aug 2012 17:26:18 +0000 (10:26 -0700)]
enable router deletion logic in l3-agent

bug 1039387

related to bp quantum-l3-fwd-nat

previous diff logic did not attempt to detect that a router was deleted.

Also, enabled actual deletion of namespace, since 066e48be08f155c29887f5846902fbf5e41b8c89 fixed the issue that was causing that to break.

Also, make router loop pay attention to admin_state_up on router ports.

Change-Id: Id76736dd3207472dfc282097e5b27740e05aaa3a

12 years agoMerge "Enable DHCP agent to work with plugin when L2 agents use DB polling"
Jenkins [Tue, 21 Aug 2012 17:26:13 +0000 (17:26 +0000)]
Merge "Enable DHCP agent to work with plugin when L2 agents use DB polling"

12 years agoEnable users to list subnets on shared networks
Salvatore Orlando [Tue, 21 Aug 2012 15:26:24 +0000 (08:26 -0700)]
Enable users to list subnets on shared networks

Fixes bug 1039591

This patch will enable regular users to list subnets on a shared
network by exposing the subnet's "shared" attribute to the policy
engine, and letting it applying different rules if the subnet is
shared or private.

Change-Id: If204f1e352c114e16251586c743f5b7fe2d1ad7d

12 years agoFix IP allocation on shared networks ports.
Salvatore Orlando [Tue, 21 Aug 2012 10:53:31 +0000 (03:53 -0700)]
Fix IP allocation on shared networks ports.

Fixes bug 1037589

Ensure non-owner ports on shared networks get an IP address for
each subnet configured on the shared network.

Change-Id: Ib687444b7ad75f3c773b0cb41c25ac3f700fbf0f

12 years agoEnable DHCP agent to work with plugin when L2 agents use DB polling
Gary Kotton [Tue, 21 Aug 2012 07:07:39 +0000 (03:07 -0400)]
Enable DHCP agent to work with plugin when L2 agents use DB polling

Fixes bug 1039393

By default the plugins will enable the RPC support. If and only if
the agent RPC is enabled will RPC notification messages be sent to the
agents

Change-Id: I4fb003a2b477e5e647c3ee408b449e71b3f5a883

12 years agofix associating a floating IP during floating IP creation.
Dan Wendlandt [Tue, 21 Aug 2012 05:42:23 +0000 (22:42 -0700)]
fix associating a floating IP during floating IP creation.

bug 1038962

also add check to make sure that floating IP's are only associated if
the upstream router has a external network gateway to the appropriate
external network.

Change-Id: Ie4cb632296ce4a1cb989242eb894d73a7488cdb3

12 years agoMerge "Get OVS port details from port ID"
Jenkins [Mon, 20 Aug 2012 20:21:32 +0000 (20:21 +0000)]
Merge "Get OVS port details from port ID"

12 years agoMerge "Fixing unit test failures in Cisco plugin"
Jenkins [Mon, 20 Aug 2012 16:17:11 +0000 (16:17 +0000)]
Merge "Fixing unit test failures in Cisco plugin"

12 years agoMerge "fix netns delete so that it works when a ns is set"
Jenkins [Mon, 20 Aug 2012 11:37:02 +0000 (11:37 +0000)]
Merge "fix netns delete so that it works when a ns is set"

12 years agoEnsure that LB agent does not terminate if interface already exists in bridge
Gary Kotton [Mon, 20 Aug 2012 08:32:10 +0000 (04:32 -0400)]
Ensure that LB agent does not terminate if interface already exists in bridge

Fixes bug 1038783

Change-Id: Iaa4778562b4efc13919341832f5281b1516f8f8c

12 years agoTreat exceptions when invoking ovs-vsctl
Gary Kotton [Sun, 19 Aug 2012 08:11:06 +0000 (04:11 -0400)]
Treat exceptions when invoking ovs-vsctl

Fixes bug 1037902

Change-Id: I3f5bbac2f0c390fd7eaae4eb6338e5ac600c9aba

12 years agoRemove v1.0 and v1.1 API from version info.
Akihiro MOTOKI [Mon, 20 Aug 2012 07:56:19 +0000 (16:56 +0900)]
Remove v1.0 and v1.1 API from version info.

Fixes bug 1038905.

Change-Id: Ifbb991eef528808ecb3543c3db862f4ca3c29f32

12 years agoGet OVS port details from port ID
Gary Kotton [Thu, 16 Aug 2012 10:06:55 +0000 (06:06 -0400)]
Get OVS port details from port ID

Fixes bug 1037443

This address the issue when a Quantum interface does not start with the
prefix "tap" (for example interfaces created by the l3 agent)

Change-Id: Ie2c98940d921606906015914ce6b23d3095e91f2

12 years agoFix undefined variables.
Akihiro MOTOKI [Sun, 19 Aug 2012 08:00:50 +0000 (17:00 +0900)]
Fix undefined variables.

Fixes bug 1038585

Change-Id: Ie38d2fd9408a3efaf876ff100d1576a170ff9f8d

12 years agoFixing unit test failures in Cisco plugin
Sumit Naiksatam [Sun, 19 Aug 2012 03:50:38 +0000 (20:50 -0700)]
Fixing unit test failures in Cisco plugin

Bug #1038565

The tests for bulk resource creation failure were failing since the bulk
API calls were not getting relayed correctly to the virt_phy_sw.py, that
has been fixed
There tests for the network_multi_blade_v2.py were failing since DB
initialization order was incorrect.
The tests in test_api_v2.py were failing since the plugin instance was
not being reset for each test.

Change-Id: I449bd8a61c1f61f98a97acf489574624fe309caa

12 years agofix netns delete so that it works when a ns is set
Mark McClain [Sun, 19 Aug 2012 20:10:00 +0000 (16:10 -0400)]
fix netns delete so that it works when a ns is set

bug 1038759

This fixes the bug by ensuring that the netns deletion always runs in the root
namespace.  Tests were updated to reflect the change in execute
invocation.

Change-Id: I008e8ecbc4bae86129af7f4a7b5d33c6ae423e5c

12 years agoLinuxbridge support for L3 agent
Gary Kotton [Sun, 19 Aug 2012 14:20:49 +0000 (10:20 -0400)]
Linuxbridge support for L3 agent

Fixes bug 1037245

For the linux bridge this changes the generic interface name prefix
from "dhc" to "ns-".

Change-Id: I37078dadcbffa7e0b45d1523e7a03bb7c0d36919

12 years agoMerge "quantum l3 + floating IP support"
Jenkins [Sun, 19 Aug 2012 14:10:29 +0000 (14:10 +0000)]
Merge "quantum l3 + floating IP support"

12 years agoFix exception message for bulk create failure.
Salvatore Orlando [Fri, 17 Aug 2012 22:37:44 +0000 (15:37 -0700)]
Fix exception message for bulk create failure.

Bug 1038256

Change-Id: I52ae9a7540f07f62174d51382a77ac0997c8f388

12 years agoquantum l3 + floating IP support
Dan Wendlandt [Wed, 15 Aug 2012 19:56:52 +0000 (12:56 -0700)]
quantum l3 + floating IP support

bp quantum-l3-fw-nat

router & floating IP API calls, plugin db, and agent implemented
and unit tested

Change-Id: I6ee61396d22e2fd7840aa2ff7d1f6f4a2c6e54d4

12 years agoMerge "Add missing conversion specifiers in exception messages."
Jenkins [Fri, 17 Aug 2012 14:43:59 +0000 (14:43 +0000)]
Merge "Add missing conversion specifiers in exception messages."

12 years agoAdd missing conversion specifiers in exception messages.
Akihiro MOTOKI [Fri, 17 Aug 2012 03:41:13 +0000 (12:41 +0900)]
Add missing conversion specifiers in exception messages.

Fixes bug 1037881

Change-Id: I05760707f28545d9593d30b5c5fe69a21636ba90

12 years agoUse a common constant for the port/network 'status' value
justin ljj [Wed, 15 Aug 2012 04:11:56 +0000 (12:11 +0800)]
Use a common constant for the port/network 'status' value

Fixes bug 1036054.

'status' have four values 'ACTIVE/DOWN/ERROR/BUILD' in v2 spec.
However, some plugins still using 'UP/DOWN' from v1. In order to
consistent the use of 'status' value. A common constant file was
created and modified all plugins to use the same constant value.

Change-Id: I865dffbe031d9a3e76e52e334db3050a3ef11ed0

12 years agoRemove unused variable
RongzeZhu [Thu, 16 Aug 2012 17:46:37 +0000 (01:46 +0800)]
Remove unused variable

'reqs_in' in openstack.common.setup.get_reqs_from_files is unused.

Change-Id: I789f380fdbd0fd001196bcebe1568197d4590b92

12 years agoLog message missing parameter causes exception
Gary Kotton [Thu, 16 Aug 2012 12:27:31 +0000 (08:27 -0400)]
Log message missing parameter causes exception

Fixes bug 1037545

Change-Id: Ica6109d676c23ff2e9469ca2ea5441550ff9afc2

12 years agoMerge "Fix flavor extension based on new attribute extension spec"
Jenkins [Wed, 15 Aug 2012 20:26:52 +0000 (20:26 +0000)]
Merge "Fix flavor extension based on new attribute extension spec"

12 years agoUpdate README for v2 API.
Gary Kotton [Wed, 15 Aug 2012 16:39:28 +0000 (12:39 -0400)]
Update README for v2 API.

Fixes bug 1032548

Change-Id: I0509df99d655b4e3a50899b992c7ef3b56339ce5

12 years agoFix flavor extension based on new attribute extension spec
Nachi Ueno [Wed, 15 Aug 2012 15:26:53 +0000 (15:26 +0000)]
Fix flavor extension based on new attribute extension spec

Fixes Bug 1037152

Change-Id: I6a92bb6c40d0d4f3ddb438c658d596993f5011f9

12 years agoMerge "Enhancements to Cisco v2 meta-plugin"
Jenkins [Wed, 15 Aug 2012 08:16:21 +0000 (08:16 +0000)]
Merge "Enhancements to Cisco v2 meta-plugin"

12 years agoMerge "Add model support for DHCP lease expiration"
Jenkins [Wed, 15 Aug 2012 07:55:22 +0000 (07:55 +0000)]
Merge "Add model support for DHCP lease expiration"

12 years agoMerge "Convert DHCP from polling to RPC"
Jenkins [Wed, 15 Aug 2012 07:52:31 +0000 (07:52 +0000)]
Merge "Convert DHCP from polling to RPC"

12 years agoUpdate the Nicira NVP plugin to support the v2 Quantum API
Aaron Rosen [Mon, 6 Aug 2012 23:04:55 +0000 (16:04 -0700)]
Update the Nicira NVP plugin to support the v2 Quantum API

blueprint: quantum-nvp-plugin-v2

Change-Id: I848ad7b7b99a24e19ea28e65b7d88261c21eac3a

12 years agoEnhancements to Cisco v2 meta-plugin
Rohit Agarwalla [Tue, 7 Aug 2012 10:28:12 +0000 (03:28 -0700)]
Enhancements to Cisco v2 meta-plugin

Implements blueprint cisco-v2-meta-plugin

This patch allows a stand alone plugin to be configured as a device sub-plugin.
(changes are contained within the cisco plugin only)

Change-Id: I4de53afc3a7e8c79ab8637fe04a90da1d1b05342

12 years agoMerge "Enables Cisco NXOS to configure multiple ports Implements blueprint cisco...
Jenkins [Tue, 14 Aug 2012 23:24:08 +0000 (23:24 +0000)]
Merge "Enables Cisco NXOS to configure multiple ports Implements blueprint cisco-nxos-enables-multiple-ports"

12 years agoMerge "Allow extra config files in unit tests"
Jenkins [Tue, 14 Aug 2012 21:38:22 +0000 (21:38 +0000)]
Merge "Allow extra config files in unit tests"

12 years agoMerge "NEC OpenFlow plugin support."
Jenkins [Tue, 14 Aug 2012 19:39:17 +0000 (19:39 +0000)]
Merge "NEC OpenFlow plugin support."

12 years agoMerge "Trivial openvswitch plugin cleanup."
Jenkins [Tue, 14 Aug 2012 18:33:42 +0000 (18:33 +0000)]
Merge "Trivial openvswitch plugin cleanup."

12 years agoMerge "Reset device owner when port on agent is down"
Jenkins [Tue, 14 Aug 2012 17:27:51 +0000 (17:27 +0000)]
Merge "Reset device owner when port on agent is down"

12 years agoAdd model support for DHCP lease expiration
Mark McClain [Tue, 14 Aug 2012 03:18:54 +0000 (23:18 -0400)]
Add model support for DHCP lease expiration

bug 1022804

This fix is phase 1 of a fix that to address re-allocation of a fixed_ip before
the DHCP lease expires.  The next phases will add RPC and recycling
support.

Change-Id: I3c907ade5cde562ff5a222bd97e56ffef367c722

12 years agoTrivial openvswitch plugin cleanup.
Bob Kukura [Tue, 14 Aug 2012 16:21:05 +0000 (12:21 -0400)]
Trivial openvswitch plugin cleanup.

Part of provider-networks phase 3 development, but merging separately
to avoid confusion later.

- eliminate target_v2_api config variable
- eliminate old V1 version of Port
- remove unused import

Change-Id: I913def752ec537a7e74a6173f2b6f82372a4dce8

12 years agoConvert DHCP from polling to RPC
Mark McClain [Tue, 7 Aug 2012 20:23:05 +0000 (16:23 -0400)]
Convert DHCP from polling to RPC

blueprint non-polling-dhcp-impl

This requires a change to devstack/stack.sh.
See https://review.openstack.org/#/c/11278/ for the required changes.

Change-Id: I1ea22c8e1b80e630bcb83f27a31aaeef482aff6c

12 years agoMerge "Fix visual indentation for PEP8 conformance."
Jenkins [Tue, 14 Aug 2012 16:04:17 +0000 (16:04 +0000)]
Merge "Fix visual indentation for PEP8 conformance."

12 years agoAdd quota per-tenant.
Yong Sheng Gong [Sun, 29 Jul 2012 12:59:55 +0000 (20:59 +0800)]
Add quota per-tenant.

blueprint quantum-api-quotas

We implement it as an extension for linux bridge and ovs plugins.
We also expose the /quotas/Xx url to client to operate the quota.
We need admin role to show other tenant's quota, and to update quota data.
Any user can show its own tenant's quota. An DB table is used to save the
quota for each tenant.

To use it, we have in quantum.conf:
quota_driver = quantum.extensions._quotav2_driver.DbQuotaDriver

The default quotas for each tenant are defined in quantum.conf too.

In addition, modify extension framework to allow exposing a new resource and
its controler. The extension can check the environment, such as configuration
in global cfg.CONF to decide if it can be enabled.

Also, we can define enabled extensions for each plugin in extensions.py
New resources can be put into quota framework via quota_items in nova.conf

Change-Id: I54d6107fdb2808cdae1a40b501ed8c7f379dedee

12 years agoReset device owner when port on agent is down
Gary Kotton [Tue, 14 Aug 2012 14:32:48 +0000 (10:32 -0400)]
Reset device owner when port on agent is down

Fixes bug 1036690

Change-Id: If96d2c129a8d5f258ebf8213d3720f2a9809cce2

12 years agoAllow extra config files in unit tests
Salvatore Orlando [Tue, 14 Aug 2012 10:01:29 +0000 (03:01 -0700)]
Allow extra config files in unit tests

Fixes bug 1036669

Change-Id: Ic091ab012fbf6c80d2355806b6cd03a63fbfe4ca

12 years agoFix visual indentation for PEP8 conformance.
Jeremy Stanley [Tue, 14 Aug 2012 05:20:08 +0000 (05:20 +0000)]
Fix visual indentation for PEP8 conformance.

Corrects misindented continuations (PEP8 E127, E128).

The run_tests.sh script's PEP8 pass (with current 1.3.3) was
reporting under- or over-indented visual continuations in a handful
of files, all of which are fixed with this trivial patch.

Change-Id: I19388dc0011546abe65b37d31df02debb3676003

12 years agoMerge "Updates pip requirements"
Jenkins [Tue, 14 Aug 2012 12:19:25 +0000 (12:19 +0000)]
Merge "Updates pip requirements"

12 years agoMerge "Implementation of second phase of provider extension."
Jenkins [Tue, 14 Aug 2012 10:45:50 +0000 (10:45 +0000)]
Merge "Implementation of second phase of provider extension."

12 years agoUpdates pip requirements
Gary Kotton [Tue, 14 Aug 2012 07:36:39 +0000 (03:36 -0400)]
Updates pip requirements

Fixes bug 1036533

Change-Id: I8e1522ac0d1fbb08f7c9200323fbb1fef3fd0e9a

12 years agoNEC OpenFlow plugin support.
Ryota MIBU [Wed, 1 Aug 2012 16:42:20 +0000 (01:42 +0900)]
NEC OpenFlow plugin support.

blueprint quantum-nec-openflow-plugin

Change-Id: Ib6d6f658bbf6d653527fa7820685f9bed1412a18

12 years agoMerge "deal with parent_id not in target."
Jenkins [Tue, 14 Aug 2012 08:25:04 +0000 (08:25 +0000)]
Merge "deal with parent_id not in target."

12 years agoEnables Cisco NXOS to configure multiple ports
Edgar Magana [Tue, 7 Aug 2012 08:20:47 +0000 (01:20 -0700)]
Enables Cisco NXOS to configure multiple ports
Implements blueprint cisco-nxos-enables-multiple-ports

Change-Id: I4e8bccff19eb5b13895d7083623b7291b8c8bf7e

12 years agoImplementation of second phase of provider extension.
Bob Kukura [Mon, 6 Aug 2012 13:42:20 +0000 (09:42 -0400)]
Implementation of second phase of provider extension.

Enhances provider extension to support flat networks and VLANs on
multiple physical networks. Implements blueprint provider-networks.

To create a flat network using the CLI with admin rights:

net-create --tenant_id <tenant-id> <net-name> --provider:network_type flat --provider:physical_network <physical-network>

To create a VLAN network using the CLI with admin rights:

net-create --tenant_id <tenant-id> <net-name> --provider:network_type vlan --provider:physical_network <physical-network> --provider:vlan_id <vlan-id>

The provider extension is supported by the linuxbridge and openvswitch
plugins and their agents [openvswitch phase 2 implementation is
in-progress, and does not yet support flat networks or multiple
interfaces].

Ranges of VLANs available on named physical networks for normal
allocation are specified in the plugin's config file via the
ListOpt syntax:

network_vlan_ranges = <physical_network>:<vlan_min>:<vlan_max>

The mapping of each named physical network to its physical network
interface is specified (per-agent-host) in the agent's config file via
the ListOpt syntax:

physical_interface_mappings = <physical_network>:<physical_interface>

See quantum/plugins/linuxbridge/README for details and examples of
network_vlan_ranges and physical_interface_mappings usage.

Also, bulk operations are enabled for the linuxbridge plugin.

Change-Id: I93402bd5cc6316e9408ea71c3b3989d06898ee30

12 years agodeal with parent_id not in target.
Yong Sheng Gong [Mon, 13 Aug 2012 23:27:22 +0000 (07:27 +0800)]
deal with parent_id not in target.

bug 1036425

If we filter the fields of the requested resource, we have no parent_id in the target, which we must be tolerant with.

Change-Id: Ieb591d9208f16a0d3e05bda00bf45ae7aca846a5

12 years agoremove old gflags config code
Mark McClain [Tue, 14 Aug 2012 02:35:21 +0000 (22:35 -0400)]
remove old gflags config code

blueprint remove-gflags

This code removes the old gflag based configuration tools.  There was
no code out of the unit tests that were using it.

Change-Id: Id3f2e9bcfc5abcfd29ef683684f56c69c058bdc8

12 years agoMerge "improve test_db_plugin so it can be leveraged by extension tests"
Jenkins [Tue, 14 Aug 2012 00:22:49 +0000 (00:22 +0000)]
Merge "improve test_db_plugin so it can be leveraged by extension tests"

12 years agoMerge "implementation for bug 1008180"
Jenkins [Mon, 13 Aug 2012 23:58:14 +0000 (23:58 +0000)]
Merge "implementation for bug 1008180"

12 years agoconvert query string according to attr map.
Yong Sheng Gong [Sun, 12 Aug 2012 02:43:09 +0000 (10:43 +0800)]
convert query string according to attr map.

Bug #1035774

Change-Id: I162239ab2baa82636d270689ed3acd0cb6c336d4

12 years agoAdd device_owner attribute to port
Nachi Ueno [Mon, 13 Aug 2012 08:13:20 +0000 (08:13 +0000)]
Add device_owner attribute to port

in order for firewall logic to be able to poke a hole allowing traffic to/from a DHCP server,
we need to expose the IP being used for DHCP in a subnet to external entities.
This commit adds device_owner attribute, then dhcp-agent will update the device_owner value
of port to dhcp-agent.

Implement blueprint expose-dhcp-server-ip
Change-Id: I11283485bff8a3a3cf0b1a2716763ad32e43028a

12 years agoimplementation for bug 1008180
xchenum [Sun, 12 Aug 2012 05:11:05 +0000 (01:11 -0400)]
implementation for bug 1008180

implement the database models for the v2 db plugin base to store dns + additional routes
also handles the dns/route remote/update

Change-Id: I06c585b47668ee963324a5064e40a24471da28c4

12 years agoMerge "Make sure that there's a way of creating a subnet without a gateway"
Jenkins [Mon, 13 Aug 2012 19:27:33 +0000 (19:27 +0000)]
Merge "Make sure that there's a way of creating a subnet without a gateway"

12 years agoMerge "Initial implemention of MetaPlugin"
Jenkins [Mon, 13 Aug 2012 17:17:41 +0000 (17:17 +0000)]
Merge "Initial implemention of MetaPlugin"

12 years agoFix bulk create operations and make them atomic.
Salvatore Orlando [Mon, 13 Aug 2012 16:31:38 +0000 (09:31 -0700)]
Fix bulk create operations and make them atomic.

Bug 1024844
Bug 1020639

The API layer is now able to issue bulk create requests to the plugin,
assuming that the plugin supports them. Otherwise, the API layer will
emulate atomic behavior.
This patch also implements OVS plugin support for bulk requests.

Change-Id: I515148d870d0dff8371862fe577c477538364929

12 years agoMerge "Update latest openstack files"
Jenkins [Mon, 13 Aug 2012 16:22:28 +0000 (16:22 +0000)]
Merge "Update latest openstack files"

12 years agoMerge "RPC support for OVS Plugin and Agent"
Jenkins [Mon, 13 Aug 2012 15:56:13 +0000 (15:56 +0000)]
Merge "RPC support for OVS Plugin and Agent"

12 years agoMake sure that there's a way of creating a subnet without a gateway
Nachi Ueno [Thu, 2 Aug 2012 22:46:45 +0000 (22:46 +0000)]
Make sure that there's a way of creating a subnet without a gateway

Fixes bug 1028646
You can use null for gateway ip.

Change-Id: I969112ad46efa22203db40106d4e35dce1757165

12 years agoUpdate latest openstack files
Gary Kotton [Mon, 13 Aug 2012 12:33:37 +0000 (08:33 -0400)]
Update latest openstack files

Ensure that the common code is updated with the latest common
code.

Change-Id: I8a8a21fdcf77a2f444fd3c919cca9aa3912e21af

12 years agoimprove test_db_plugin so it can be leveraged by extension tests
Dan Wendlandt [Mon, 13 Aug 2012 12:20:11 +0000 (05:20 -0700)]
improve test_db_plugin so it can be leveraged by extension tests

prereq for bp quantum-l3-fwd-nat

- load extension middleware as well as core API
- support 'action' requests in addition to CRUD ops
- add helper methods that check API return code
- clean-up places where existing tests where hitting 409s on delete
but ignoring the errors (basically SubnetInUse errors).

Change-Id: I620f1ef7f2028879b3b86f90c2150c26aa0f23c1

12 years agoAdds the 'public network' concept to Quantum
Salvatore Orlando [Thu, 26 Jul 2012 08:10:02 +0000 (01:10 -0700)]
Adds the 'public network' concept to Quantum

Implements blueprint quantum-v2-public-networks

This patch allows Quantum to handle public networks. It modifies the
API adding a new attribute to the network resource ('shared')
and enhances the policy engine in order to handle the behaviour of
the service wrt shared networks.
Policy.json specifies a default behaviour which can be changed by
the administrator, even at runtime.
Tests added to test_db_plugin validate 'obvious' behaviour - such as
that only the ports belonging to a given tenant should be returned
even when they are queried on a public network.
Tests added to test_policy instead validate the changes added to the
policy engine.

Change-Id: I0087d449a677ed29357cd3cb4d8580bece940fdf

12 years agoRPC support for OVS Plugin and Agent
Gary Kotton [Mon, 6 Aug 2012 11:45:34 +0000 (07:45 -0400)]
RPC support for OVS Plugin and Agent

blueprint scalable-agent-comms

This adds support for the OVS plugin.

Change-Id: I613de63f5c7f374be87520f32a2f7129d86ef109

12 years agoInitial implemention of MetaPlugin
Nachi Ueno [Thu, 19 Jul 2012 07:00:05 +0000 (07:00 +0000)]
Initial implemention of MetaPlugin

This plugin supports multiple plugins at same time. This plugin is for L3 connectivility
between networks which are realized by different plugins. This plugin add new attribute 'flavor:id'.
flavor:id correspond to specific plugin. flavor-plugin mapping could be configureable by plugin_list config.
This plugin also support extensions. We can map extension to plugin by using extension_map config.

Implements blueprint metaplugin

Change-Id: Ia94d2349fb3ce9f121bbd2505324ae6f0c34247a

12 years agoMerge "Make dhcp agent configurable for namespace"
Jenkins [Mon, 13 Aug 2012 05:29:31 +0000 (05:29 +0000)]
Merge "Make dhcp agent configurable for namespace"

12 years agoMerge "Linux Agent improvements for L3"
Jenkins [Mon, 13 Aug 2012 05:28:53 +0000 (05:28 +0000)]
Merge "Linux Agent improvements for L3"

12 years agoMerge "normalize the json output of show a given extension."
Jenkins [Mon, 13 Aug 2012 04:54:15 +0000 (04:54 +0000)]
Merge "normalize the json output of show a given extension."

12 years agoMake dhcp agent configurable for namespace
Aaron Rosen [Sun, 12 Aug 2012 00:17:30 +0000 (17:17 -0700)]
Make dhcp agent configurable for namespace

Bug #1035769

Change-Id: I9f0d48a73f059a4985d629c7f0209675f5b01bec

12 years agoLinux Agent improvements for L3
Dan Wendlandt [Sun, 12 Aug 2012 02:42:59 +0000 (19:42 -0700)]
Linux Agent improvements for L3

prereq for bp quantum-l3-fw-nat

- make init_l3 take cidrs, rather than assuming an augmented port object
- make namespace for agent operations optional and allow the namespace
name to be configured.
- allow plug() operation to take an optional bridge parameter indicating
which bridge to plug into
- add namespace support for iptables manager
- make OVS plug() set the IP address, etc. of a device even if it already
exists.

Change-Id: Id4fec9bf7cda30c45b94eccd25e9e54dc5af97b7

12 years agoIn some cases device check causes an exception
Gary Kotton [Sat, 11 Aug 2012 16:58:18 +0000 (12:58 -0400)]
In some cases device check causes an exception

Fixes bug 1035669

Check the stderr in addition to checking the return codes.

Change-Id: I05e469302bc502b540b0c4af5fbd9c712a9bd309

12 years agonormalize the json output of show a given extension.
Yong Sheng Gong [Sat, 11 Aug 2012 23:50:22 +0000 (07:50 +0800)]
normalize the json output of show a given extension.

we should use {'extension':{}} for a given extension query to comply with
our API design.

Change-Id: Id0b04b29bed4be92498c04178e268c31e9a1d635

12 years agomove the correct veth into the netns for the LB
Mark McClain [Sat, 11 Aug 2012 15:29:14 +0000 (11:29 -0400)]
move the correct veth into the netns for the LB

bug 1035649

This fix moves the correct device into the namespace and improves the test
to ensure the proper device was moved.  The previous generic check
failed to catch an error during refactoring.

Change-Id: Ifa2e2bb97dc923549d00b1750c61a22e139647d7

12 years agolinux bridge fixes following v1 code removal.
Dan Wendlandt [Sat, 11 Aug 2012 02:37:34 +0000 (19:37 -0700)]
linux bridge fixes following v1 code removal.

Change-Id: I4ad84421757db271904c8704a12b2e7abdfa8a0e