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

12 years agoMerge "Remove v1 code from quantum-server"
Jenkins [Sat, 11 Aug 2012 02:56:02 +0000 (02:56 +0000)]
Merge "Remove v1 code from quantum-server"

12 years agofixes typo in ensure_namespace
Mark McClain [Fri, 10 Aug 2012 18:24:17 +0000 (14:24 -0400)]
fixes typo in ensure_namespace

bug 1035425

There was an uncheck branch in ensure_namespace that used the wrong
class name.  This fixes that bug and adds better tests.

Change-Id: I0c22e70938305e180084de4bf9a700aebf512645

12 years agoRemove v1 code from quantum-server
Dan Wendlandt [Fri, 10 Aug 2012 17:37:26 +0000 (10:37 -0700)]
Remove v1 code from quantum-server

bp remove-v1-related-code

Removes API, DB, and test code that is used only for Quantum v1 API,
which is no longer supported.

Includes removal of v1 code for sample, ovs, linuxbridge and ryu plugin.

Nicira and Cisco plugins will be handled outside of this patchset.

Change-Id: Id34dc7229bb7b399b5cfd4602dbc8d5ee4e8de61

12 years agoMerge "Add netns to support overlapping address ranges"
Jenkins [Fri, 10 Aug 2012 16:39:05 +0000 (16:39 +0000)]
Merge "Add netns to support overlapping address ranges"

12 years agoMerge "RPC support for Linux Bridge Plugin and Agent"
Jenkins [Fri, 10 Aug 2012 16:25:23 +0000 (16:25 +0000)]
Merge "RPC support for Linux Bridge Plugin and Agent"

12 years agoAdd netns to support overlapping address ranges
Mark McClain [Fri, 20 Jul 2012 01:37:24 +0000 (21:37 -0400)]
Add netns to support overlapping address ranges

blueprint: dhcp-overlapping-ips

This change uses linux network namespaces to isolate dhcp interfaces so
that tenant network IP address ranges can properly overlap.

Change-Id: Iaa07e7c38d0813d07c3405884e513276e43e2afd

12 years agoMerge "dhcp-agent: Ryu plugin support for dhcp agent"
Jenkins [Fri, 10 Aug 2012 15:53:10 +0000 (15:53 +0000)]
Merge "dhcp-agent: Ryu plugin support for dhcp agent"

12 years agodhcp-agent: Ryu plugin support for dhcp agent
Isaku Yamahata [Fri, 27 Jul 2012 15:27:30 +0000 (00:27 +0900)]
dhcp-agent: Ryu plugin support for dhcp agent

This patch adds Ryu support to dhcp-agent.
fixes bug 1030830
Ryu devstack support is available at https://review.openstack.org/#/c/10117/

Change-Id: I3f5fbe8600b4b674834e317e158bac1856b0349c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
12 years agofix missing deallocation of gateway ip
Dan Wendlandt [Wed, 8 Aug 2012 22:30:48 +0000 (15:30 -0700)]
fix missing deallocation of gateway ip

bug 1032506

when deleting a port that uses the gateway IP, we were not removing
the IPAllocation entry, which resulted in a depedency issue when we
deleted the port that the IPAllocation entry referenced.

Change-Id: I272a6572c389ef8c12585f4b62204f5877cda078

12 years agoRPC support for Linux Bridge Plugin and Agent
Gary Kotton [Tue, 10 Jul 2012 15:28:08 +0000 (11:28 -0400)]
RPC support for Linux Bridge Plugin and Agent

blueprint scalable-agent-comms

This is the first stage of the blueprint. This adds support to the linux bridge
plugin.

The development followed the design described in:
https://docs.google.com/document/d/1MbcBA2Os4b98ybdgAw2qe_68R1NG6KMh8zdZKgOlpvg/edit?pli=1

Change-Id: I4004c05a63ce49f020c2016c8763e73238b465a7

12 years agoImplementation of bp per-net-dhcp-enable
xchenum [Thu, 26 Jul 2012 00:58:52 +0000 (20:58 -0400)]
Implementation of bp per-net-dhcp-enable

Change-Id: I81c2e6adb02921e8b80f8181a730b1cba9ffa649

12 years agoEnhance Base MAC validation
Gary Kotton [Mon, 6 Aug 2012 13:45:20 +0000 (09:45 -0400)]
Enhance Base MAC validation

Fixes bug 1033520

The base mac will now be validated when the configuration file is read.
In addition to this the following has been done:
1. checks validaity of the base mac - for example it cannot be a multicast MAC
2. adds a framework for attributes tests

Change-Id: Ibffab039ca7ee9e87eb79a7288e86401170bf129

12 years agoUse function registration for policy checks
Kevin L. Mitchell [Thu, 2 Aug 2012 19:09:23 +0000 (14:09 -0500)]
Use function registration for policy checks

The original policy framework allowed new policy checks to be created
through inheritance.  This is somewhat clunky and unnecessary in
Python.  This change refactors policy.py to allow new policy checks
to be registered using an @register() decorator.  One consequence is
that HttpBrain is deprecated.

Care has been taken to ensure backwards compatibility; deprecation
warnings will be emitted for uses of HttpBrain or the inheritance-
based checks.

(Pull-up from openstack-common, with deprecation of HttpBrain.)

Change-Id: I0aa78d1128e55aa7d59558c62128105c01da8f1b

12 years agoExempt openstack-common from pep8 check
Kevin L. Mitchell [Mon, 6 Aug 2012 15:00:17 +0000 (10:00 -0500)]
Exempt openstack-common from pep8 check

The openstack-common project already does its own pep8 checks; we
don't need to duplicate the effort.  This also avoids issues with
pep8 version skew between projects.

Change-Id: I50d6e1b21c743d811e44b415017ca7e19687c9c2

12 years agoMerge "Make 4th octet of mac_range configurable."
Jenkins [Mon, 6 Aug 2012 05:15:22 +0000 (05:15 +0000)]
Merge "Make 4th octet of mac_range configurable."

12 years agoMerge "Replace openvswitch plugin's VlanMap with vlan_ids DB table."
Jenkins [Mon, 6 Aug 2012 01:02:43 +0000 (01:02 +0000)]
Merge "Replace openvswitch plugin's VlanMap with vlan_ids DB table."

12 years agoMake 4th octet of mac_range configurable.
Nachi Ueno [Fri, 3 Aug 2012 01:37:34 +0000 (01:37 +0000)]
Make 4th octet of mac_range configurable.

Fix bug 1022739.
To get OUI per cluster is not realistic. So This commit
make 4th octet of mac_range configurable. By this commit,
the cloud provider can allocate OUI (3 octets)  + 1 extra octet
range (4 octets) for each cluster.

Change-Id: Ibbd27e6e7f16d73dfd3045ed60f63a38b23ea1ed

12 years agoMerge "update DHCP agent to work with linuxbridge plug-in"
Jenkins [Sat, 4 Aug 2012 19:50:19 +0000 (19:50 +0000)]
Merge "update DHCP agent to work with linuxbridge plug-in"

12 years agoReplace openvswitch plugin's VlanMap with vlan_ids DB table.
Bob Kukura [Mon, 30 Jul 2012 18:52:06 +0000 (14:52 -0400)]
Replace openvswitch plugin's VlanMap with vlan_ids DB table.

Fixes bug 1023167.

The openswitch plugin's in-memory VlanMap is replaced with a vlan_ids
DB table similar to that used by the linuxbridge plugin. This will
prevent conflicting VLAN assignments if multiple server replicas are
run, and also sets the stage for phase 2 of the provider-networks BP
implementation that will add support for multiple physical
networks.

Unlike with the current linuxbridge plugin, the contents of the
openvswitch plugin's vlan_ids table are properly updated at startup in
case the vlan_min or vlan_max configuration variables have changed.

A new test_ovs_db test case has been added.

The primary key of the vlan_bindings table is changed from the vlan_id
to the network_id, which is now a foreign key, and network deletion is
now properly handled.

The net_id has been removed from the VlanIdInUse exception, requiring
a minor update to the linuxbridge plugin. The new NoNetworksAvailable
exception, with ResourceExhausted as its base class, is returned when
no more VLANs are available.

Change-Id: I65a2347dea5366cc0d15d98a88f40e42e1a45f4c

12 years agoMerge "Remove unused properties"
Jenkins [Fri, 3 Aug 2012 15:24:08 +0000 (15:24 +0000)]
Merge "Remove unused properties"

12 years agoRemove unused properties
Nachi Ueno [Fri, 3 Aug 2012 06:29:04 +0000 (06:29 +0000)]
Remove unused properties

Fixes bug 1032502.

Change-Id: I63d86788e004ac371e69c238caf38c64ee398955

12 years agoNotification for network/subnet/port create/delete/update.
Yong Sheng Gong [Wed, 25 Jul 2012 14:55:33 +0000 (22:55 +0800)]
Notification for network/subnet/port create/delete/update.
blueprint quantum-notifications

Add host configuration into conf, which is determined by socket.gethostname()
function by default. Host name is part of publiser id, which is in the format
of 'network'.$host.

We add create/update/delete start and end notification for each kind of resource.
By default, the notification do nothing since the notifier driver is no_op_notifier.
We can define it in quantum.conf.

Change-Id: Ibc5eacac7a324584e6ccff120f573444932a88ef

12 years agoMerge "ryu/plugin, agent: unbreak 610017c460b85e1b7d11327d050972bb03fcc0c3"
Jenkins [Wed, 1 Aug 2012 17:19:46 +0000 (17:19 +0000)]
Merge "ryu/plugin, agent: unbreak 610017c460b85e1b7d11327d050972bb03fcc0c3"

12 years agoMake the plugin for test_db_plugin configurable
Salvatore Orlando [Wed, 1 Aug 2012 11:05:17 +0000 (04:05 -0700)]
Make the plugin for test_db_plugin configurable

Bug 1031716

Change-Id: I8dc492eb90d4160a23b3b4ba51feeedba6f852e2

12 years agoMerge "Add classmethod decorator to class methods of providervlan ext."
Jenkins [Mon, 30 Jul 2012 19:38:07 +0000 (19:38 +0000)]
Merge "Add classmethod decorator to class methods of providervlan ext."

12 years agoupdate DHCP agent to work with linuxbridge plug-in
Mark McClain [Thu, 26 Jul 2012 18:42:55 +0000 (14:42 -0400)]
update DHCP agent to work with linuxbridge plug-in

Fixes bug: 1027194

Update the interface driver to use veths instead of tap devices.  This
change is compatible with the netns work.

Change-Id: Ic236f5fdeb79eb36791434999df2b731856de092

12 years agoryu/plugin, agent: unbreak 610017c460b85e1b7d11327d050972bb03fcc0c3
Isaku Yamahata [Mon, 30 Jul 2012 02:51:27 +0000 (11:51 +0900)]
ryu/plugin, agent: unbreak 610017c460b85e1b7d11327d050972bb03fcc0c3

The changeset of 610017c460b85e1b7d11327d050972bb03fcc0c3,
Change-Id of I3bd7701526a950c360d7c2cf14b31045010b46ca
breaks Ryu plugin/agent. This patch unbreaks it.
fixes bug 1030832

"from quantum.common import config as logging_config" was missing for
ryu agent.
"from quantum.openstack.common import cfg" was missing for ryu plugin.
And unused imports is eliminated.

Change-Id: I2cb3b030dff3ea3fe3db0e5672781f031198eee6
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
12 years agoMerge "Make quantum pipeline configurable from quantum.conf."
Jenkins [Sun, 29 Jul 2012 20:53:25 +0000 (20:53 +0000)]
Merge "Make quantum pipeline configurable from quantum.conf."

12 years agoAdd classmethod decorator to class methods of providervlan ext.
Yong Sheng Gong [Sun, 29 Jul 2012 13:16:59 +0000 (21:16 +0800)]
Add classmethod decorator to class methods of providervlan ext.

Change-Id: If26d75b67c4816de0937f9edaa9f55a5bb2197a2

12 years agoOnly delete VLAN information after Quantum network is deleted
Gary Kotton [Sat, 28 Jul 2012 18:08:47 +0000 (14:08 -0400)]
Only delete VLAN information after Quantum network is deleted

Fixes bug 1030271

In the case where a network is deleted and there is a VLAN tag in a
separate table then the tag should only be deleted if the network
is deleted.

Change-Id: I99130f863928abf30a521e9a2b6d1233a274d9c6

12 years agoMake quantum pipeline configurable from quantum.conf.
Akihiro MOTOKI [Thu, 26 Jul 2012 08:48:48 +0000 (17:48 +0900)]
Make quantum pipeline configurable from quantum.conf.

Fixes bug 1029313.

The current api-paste.ini does not provide a way to choose a pipeline:
there is no way to switching a pipeline between keystone-enabled and
noauth pipelines without modifying the pipeline directly.

This commit introduces 'auth_strategy' flag to quantum.conf and
a pipeline used is determined depending on the flag. Supported values for
this flag are 'keystone' (default) and 'noauth' at the moment.

Change-Id: Ieafaf31eaaec2b02727ed5d3bd36c907e50aee5b

12 years agoovs_quantum_plugin should use reconnect_interval in common conf.
Nachi Ueno [Thu, 26 Jul 2012 22:54:18 +0000 (22:54 +0000)]
ovs_quantum_plugin should use reconnect_interval in common conf.

Fixes Bug : 1029680

Change-Id: I5dd2467bc5e287bbb5ff4a2527b9f701375fa376

12 years agoMerge "Fix linuxbridge agent tests"
Jenkins [Thu, 26 Jul 2012 16:26:37 +0000 (16:26 +0000)]
Merge "Fix linuxbridge agent tests"

12 years agoMerge "Enable agents and plugins to use the same configuration file."
Jenkins [Thu, 26 Jul 2012 16:25:20 +0000 (16:25 +0000)]
Merge "Enable agents and plugins to use the same configuration file."

12 years agoadd name into port and subnet.
Yong Sheng Gong [Wed, 25 Jul 2012 23:32:59 +0000 (07:32 +0800)]
add name into port and subnet.

f-3-cli-usability-improvments

The name is optional to create network/port/subnet and is up to user to
decide its uniqueness.

Change-Id: I40c834ed66e2da14a414232c86c9fd4f5c1d9154

12 years agoUpdate openvswitch tunnel unittest
aaronorosen [Wed, 25 Jul 2012 17:35:28 +0000 (13:35 -0400)]
Update openvswitch tunnel unittest

Bug #1029024

Change-Id: Ie37ef0c3355e86f504fa71417921bb828b40e347