]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
12 years agoEnsure that port update set correct tag in OVS
Gary Kotton [Sat, 1 Sep 2012 05:53:59 +0000 (01:53 -0400)]
Ensure that port update set correct tag in OVS

Fixes bug 1044556.

This patch also ensures that the local vlan mapping is updated correctly.
This was problematic in the event that the OVS agent would start and a port
was in administrative state down.

Change-Id: I4e5145547e73a58fee3f08a129fda6bc0ec42b72

12 years agoMerge "Fix programming error of ryu-plugin"
Jenkins [Mon, 3 Sep 2012 19:59:12 +0000 (19:59 +0000)]
Merge "Fix programming error of ryu-plugin"

12 years agoFix error in rule for metadata server dnat
Salvatore Orlando [Mon, 3 Sep 2012 12:43:29 +0000 (05:43 -0700)]
Fix error in rule for metadata server dnat

Fixes bug 1045312

Change-Id: Ie0e2aa7e638a7cd50c87ae6d4fa807cb7733c3d1

12 years agoMerge "Ensure network delete is handled by OVS agent"
Jenkins [Mon, 3 Sep 2012 12:41:43 +0000 (12:41 +0000)]
Merge "Ensure network delete is handled by OVS agent"

12 years agoMerge "Implement L3 support in Metaplugin"
Jenkins [Mon, 3 Sep 2012 12:41:38 +0000 (12:41 +0000)]
Merge "Implement L3 support in Metaplugin"

12 years agoFix programming error of ryu-plugin
Yoshihiro Kaneko [Mon, 3 Sep 2012 11:07:25 +0000 (20:07 +0900)]
Fix programming error of ryu-plugin

Fixes bug 1045275

This patch fixes a programming error of the ryu-plugin.

Change-Id: I4226e3bdf9611ce25298b37b7ba9e6be8a9e3cba

12 years agoMerge "netns commands should always run in the root ns"
Jenkins [Mon, 3 Sep 2012 09:53:12 +0000 (09:53 +0000)]
Merge "netns commands should always run in the root ns"

12 years agoEnsure network delete is handled by OVS agent
Gary Kotton [Sat, 1 Sep 2012 07:27:14 +0000 (03:27 -0400)]
Ensure network delete is handled by OVS agent

Fixes bug 1044574

The class OVSRpcCallbacks was deleted and the treatment of the RPC
callbacks moved into OVSQuantumAgent.

Change-Id: I1c5f5185e3f7e0f27aba6d254f2bb3b6edf6a385

12 years agoImplement L3 support in Metaplugin
Nachi Ueno [Mon, 20 Aug 2012 05:00:14 +0000 (05:00 +0000)]
Implement L3 support in Metaplugin

Added flavor:route property for router
Rename flavor:id to flavor:network
Fixes bug 1038778

Change-Id: Ia358b4f03c1b96ade2d1b7323298b117b2cbe52a

12 years agoFixes agent problem with RPC
Gary Kotton [Sun, 2 Sep 2012 15:15:32 +0000 (11:15 -0400)]
Fixes agent problem with RPC

Fixed bug 1044135

When quantum-openvswitch-agent or quantum-linuxbridge-agent were
called the eventlet monkey patch was not invoked.

Change-Id: Iafb7fd02d37415c3466213d28280bcb4573de4a8

12 years agonetns commands should always run in the root ns
Mark McClain [Fri, 31 Aug 2012 19:48:27 +0000 (15:48 -0400)]
netns commands should always run in the root ns

fixes bug 1044542

Previously, some netns commands were executed in the context of the
namespace defined in the wrapper. These commands should be be executed in
the root namespace for the most reliable results.

Change-Id: I4915aa6f75af3f65ce2adb40360bcd841f549239

12 years agoMerge "Plugin aware extensions should also be reset at each test setup"
Jenkins [Sat, 1 Sep 2012 17:50:06 +0000 (17:50 +0000)]
Merge "Plugin aware extensions should also be reset at each test setup"

12 years agoMerge "misc L3 fixes."
Jenkins [Sat, 1 Sep 2012 14:19:20 +0000 (14:19 +0000)]
Merge "misc L3 fixes."

12 years agoMerge "expose openvswitch GRE tunnel_id via provider API"
Jenkins [Sat, 1 Sep 2012 14:08:27 +0000 (14:08 +0000)]
Merge "expose openvswitch GRE tunnel_id via provider API"

12 years agoAdd lease expiration management to ip recycling
Mark McClain [Wed, 29 Aug 2012 17:56:50 +0000 (13:56 -0400)]
Add lease expiration management to ip recycling

Fixes bug 1022804

This is the 3rd and final patch for this bug.  This patch alters ip allocation
recycling to honor lease expiration. Allocations that are in the
expiration wait state have null port_ids.

Change-Id: Ib7960b142eb15733c6418b01973d02a827634cb6

12 years agomisc L3 fixes.
Dan Wendlandt [Fri, 31 Aug 2012 18:23:13 +0000 (11:23 -0700)]
misc L3 fixes.

- fix iptables rules for handling inter-subnet traffic so that this
traffic is not SNATed when a gateway exists.

- handle remapping of floating ip from one internal ip to another

- enable ip forwarding on a per-network namespace basis.

- make metadata_ip optional. specifying it when no gateway is configured
results in a very log timeout.

Change-Id: I738094aeafe42cbf2c64eda3bb038ef1e58a6550

12 years agoexpose openvswitch GRE tunnel_id via provider API
Bob Kukura [Fri, 31 Aug 2012 04:12:41 +0000 (00:12 -0400)]
expose openvswitch GRE tunnel_id via provider API

The provider:vlan_id extended attribute is renamed to
provider:segmentation_id, and the openvswitch plugin returns the
tunnel_id of GRE networks as this attribute.

Fixes bug 1044375. Final patch in series that fixes bug 1037341 and
bug 1035492.

Detailed changes:

- Rename provider:vlan_id to provider:segmentation_id.
- Use consts for providernet extension's attribute names
- Remove validation clause from provider:segmentation_id resource attribute map data.
- Validate provider:segmentation_id in linuxbridge and openvswitch plugins.
- Rename physical_id to segmentation_id in the openvswitch schema, plugin, and agent.

Change-Id: Ic023b30b6e3275955bcb8a09c7936035dacf3f87

12 years agoDo not transfer ips if there isn't any
Salvatore Orlando [Fri, 31 Aug 2012 14:30:54 +0000 (07:30 -0700)]
Do not transfer ips if there isn't any

Fixes bug 1044403

Check if the interface being attached to the bridge has ips
before iterating over them

Change-Id: I54315831f240c6810707e7247e7a76c1bfa8742e

12 years agoprevent invalid deletion of ports using by L3 devices
Dan Wendlandt [Fri, 31 Aug 2012 11:29:12 +0000 (04:29 -0700)]
prevent invalid deletion of ports using by L3 devices

bug 1039947

The bug noticed that an admin user could delete a port that stored
the underlying IP allocation for a floating IP.  This patch prevents
the direction deletion of ports via the API for ports that are used as
router interfaces, router gateways, of for floating IPs.

Add a unit test to check such an invalid delete, and also updates
unit tests to avoid them tripping over the new checks.

Change-Id: Ief28e3181583428d55259275a7c21151a4a4fa9b

12 years agoMerge "Modified code PEP8 warning."
Jenkins [Fri, 31 Aug 2012 05:25:13 +0000 (05:25 +0000)]
Merge "Modified code PEP8 warning."

12 years agoModified code PEP8 warning.
siyingchun [Wed, 29 Aug 2012 01:22:26 +0000 (09:22 +0800)]
Modified code PEP8 warning.

*Find more than one space after keywords, then eat one.
*Make sure every continuation line is aligned with the first character after
the top parenthesis in the top line.

Change-Id: Id3eb1ec728bc3329a859d0817d61b639019ffe8b

12 years agoImplementation of 2nd phase of provider extension for openswitch
Bob Kukura [Wed, 15 Aug 2012 06:43:17 +0000 (02:43 -0400)]
Implementation of 2nd phase of provider extension for openswitch

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

See http://wiki.openstack.org/ConfigureOpenvswitch for
configuration and usage details.

A devstack patch to support the updated openvswitch configuration
variables is at https://review.openstack.org/#/c/11418/.

Change-Id: Ic86b6f3b2e354c7d60bc2c330b334c23d349bc29

12 years agoMangle network namespace name used by dhcp_agent
Mark McClain [Thu, 30 Aug 2012 23:18:41 +0000 (19:18 -0400)]
Mangle network namespace name used by dhcp_agent

fixes bug 1044113

This fix managles the network namespace by prefixing the network id with
qdhcp.

Change-Id: I41f48f805efd83bd3e12049007067200cc384ffe

12 years agoUpdate rootwrap; track changes in nova/cinder
John Dunning [Tue, 14 Aug 2012 18:31:47 +0000 (14:31 -0400)]
Update rootwrap; track changes in nova/cinder

Fix bug 1037815

Summary: Copy/paste the essential parts of the rootwrap
  mechanism from nova/cinder into quantum.  This includes
  the core changes to filter.py and wrapper.py which deal
  with loading filters from files pointed to by
  rootwrap.conf
Detailed changes:
  Transliterate the old rootwrap/*-agent.py files to
  new format, and put the results in etc/quantum/rootwrap.d
  Delete the *-agent.py files.
  Add conf to point to etc/quantum/rootwrap.d
  Add a unit test cribbed from nova to exercise the filter
  mechanism
  Add a unit test to exercise the actual filtered execution
Note that as written, this patch does not set the default
  execute mechanism (in the agent .ini files) to rootwrap,
  leaves it as sudo.  That can be done in a followon
  change, or in distro specific packaging.
Note also that there is still work to do around finishing
  and testing the filter specs themselves.  We've decided
  that that is out of scope for this patch.

Change-Id: I9aba6adc5ba40b6145be5fa38c5ece3b666ae5ca

12 years agoMerge "remove policy check for host_routes in update_port"
Jenkins [Thu, 30 Aug 2012 11:49:48 +0000 (11:49 +0000)]
Merge "remove policy check for host_routes in update_port"

12 years agoMerge "Ensure network connectivity for linuxbridge flat network."
Jenkins [Thu, 30 Aug 2012 06:20:51 +0000 (06:20 +0000)]
Merge "Ensure network connectivity for linuxbridge flat network."

12 years agoremove policy check for host_routes in update_port
justin ljj [Thu, 30 Aug 2012 05:12:15 +0000 (13:12 +0800)]
remove policy check for host_routes in update_port

Fixes bug 1043630

Port has no 'host_routes' attribute according to the latest V2 API
specification. So, policy check for 'host_routes' is not need any
more, just remove it in this patch.

Change-Id: I925e83d9825f89265843c15e71ee5ed4c33bad5f

12 years agoMerge "Cisco nexus sub-plugin update_network fix"
Jenkins [Wed, 29 Aug 2012 20:37:21 +0000 (20:37 +0000)]
Merge "Cisco nexus sub-plugin update_network fix"

12 years agoMerge "Fix dhcp option distribution by dnsmasq"
Jenkins [Wed, 29 Aug 2012 18:56:08 +0000 (18:56 +0000)]
Merge "Fix dhcp option distribution by dnsmasq"

12 years agoEnsure proper validation for l3 API attributes
Salvatore Orlando [Wed, 29 Aug 2012 18:16:42 +0000 (11:16 -0700)]
Ensure proper validation for l3 API attributes

Fixes bug1042042

This patch introduces validation for uuid and ip fields in l3 api
data structures.

Change-Id: Ibc4913e0bcf5b33cb5e4bd42c89b82ec374f5437

12 years agoCisco nexus sub-plugin update_network fix
Rohit Agarwalla [Wed, 29 Aug 2012 08:20:06 +0000 (01:20 -0700)]
Cisco nexus sub-plugin update_network fix

Fixes bug 1043147

Currently, the cisco nexus sub-plugin doesn’t handle the network admin state parameter
when it’s updated. The fix would enable the sub-plugin to handle an update of the admin
state of the network. In update_network of the nexus sub-plugin, vlan corresponding to that network
is added/removed from the nexus interfaces based on the network state. Unit tests are added as well.

Change-Id: Ia3b5400c2896c1b0160968a2c75c21247ca0c3f4

12 years agoFix dhcp option distribution by dnsmasq
Nachi Ueno [Wed, 29 Aug 2012 00:02:49 +0000 (00:02 +0000)]
Fix dhcp option distribution by dnsmasq

Fixes bug 1022737 host route per subnet distribution
Fixes bug 1028647 --no-gateway support on dhcp agent
Fixes bug 1043022 dns distribution

Change-Id: I567f1f8d1f5d386a253be1965d29f2533f7e88c8

12 years agofix bug where network owned resources block delete
Mark McClain [Mon, 27 Aug 2012 16:04:21 +0000 (12:04 -0400)]
fix bug where network owned resources block delete

bug 1028174

This patch fixes a bug in delete_network and delete_subnet where the InUse
exception was being thrown for resources owned by the network and not
the tenant.  This patch force deletes network resources if they are the
only blocker to deleting the parent resource.

Change-Id: I822cc4a92cb05cdef88679bb628fad4e5063cddd

12 years agoPlugin aware extensions should also be reset at each test setup
Yusuke Muraoka [Tue, 28 Aug 2012 09:59:42 +0000 (09:59 +0000)]
Plugin aware extensions should also be reset at each test setup

PluginAwareExtensionManager caches extension according plugin.
At each db plugin test setup, testing plugin and router are newly
created.
However, the extension manager held the extensions for first time
loaded plugin. Because of their cache.

So if a plugin conditional extension exists, it could not be loaded by
testing order.

Fixes bug 1043381.

Change-Id: Ic994aab61c3d67aa9d422594484049f41ff8b321

12 years agoMerge "clear db._ENGINE for each plugin init in Metaplugin"
Jenkins [Tue, 28 Aug 2012 08:44:58 +0000 (08:44 +0000)]
Merge "clear db._ENGINE for each plugin init in Metaplugin"

12 years agoMerge "Fix Metainterface driver with namespace"
Jenkins [Mon, 27 Aug 2012 23:17:48 +0000 (23:17 +0000)]
Merge "Fix Metainterface driver with namespace"

12 years agoMerge "Add DHCP RPC API support to Ryu plugin"
Jenkins [Mon, 27 Aug 2012 23:13:17 +0000 (23:13 +0000)]
Merge "Add DHCP RPC API support to Ryu plugin"

12 years agoMerge "Add lease expiration script support for dnsmasq"
Jenkins [Mon, 27 Aug 2012 23:10:40 +0000 (23:10 +0000)]
Merge "Add lease expiration script support for dnsmasq"

12 years agoEnsure network connectivity for linuxbridge flat network.
Gary Kotton [Thu, 23 Aug 2012 08:57:26 +0000 (04:57 -0400)]
Ensure network connectivity for linuxbridge flat network.

Fixes bug 1040447

In the event that an IP address and gateway are defined on an interface that is
used in a flat network, then the interface details will be copied to the
bridge when it is created.
If the network is deleted then the IP addresses are returned to the interface.

Change-Id: Ic860d7635c137f49e5aaaa25dc9727ac60227f1a

12 years agoExecute unit tests for Cisco plugin with Quantum tests
Sumit Naiksatam [Sun, 26 Aug 2012 18:02:31 +0000 (11:02 -0700)]
Execute unit tests for Cisco plugin with Quantum tests

Bug #1041917

On account of the new requirement to run plugin-specific tests also
along with the Quantum tests, changes are being made to
incorporate the Cisco plugin unit tests into the Quantum unit test
suite. Earlier unit tests have been moved and modified.

Change-Id: I099bcaf0b2ca2f7ed7d25176dfaa75966b90dd71

12 years agoMerge "Allow tox to run plugin specific unit tests"
Jenkins [Mon, 27 Aug 2012 14:28:56 +0000 (14:28 +0000)]
Merge "Allow tox to run plugin specific unit tests"

12 years agoprevent OVS + LB plugins from clearing device_id and device_owner
Dan Wendlandt [Sat, 25 Aug 2012 21:59:33 +0000 (14:59 -0700)]
prevent OVS + LB plugins from clearing device_id and device_owner

bug 1041669

the fact that these plugins ever cleared this field is probably just a
misunderstanding of how the field is supposed to be used, as I don't think
it ever makes sense for the L2 plugin logic to change this field.

Change-Id: Ie9579e2f88d322cfdce51a2ca126f4dfab680022

12 years agoMerge "updated outdated comments in base v2 plugin class"
Jenkins [Sat, 25 Aug 2012 09:13:20 +0000 (09:13 +0000)]
Merge "updated outdated comments in base v2 plugin class"

12 years agoMerge "Enable tox to run OVS plugin unit tests"
Jenkins [Sat, 25 Aug 2012 05:19:30 +0000 (05:19 +0000)]
Merge "Enable tox to run OVS plugin unit tests"

12 years agoMerge "Remove 'verbose' API capability"
Jenkins [Sat, 25 Aug 2012 04:13:02 +0000 (04:13 +0000)]
Merge "Remove 'verbose' API capability"

12 years agoupdated outdated comments in base v2 plugin class
Dan Wendlandt [Sat, 25 Aug 2012 00:55:54 +0000 (17:55 -0700)]
updated outdated comments in base v2 plugin class

bug 1011841

Change-Id: Iddcb1cb365391b3c3e8b8f06cbf714baa3e64a02

12 years agoclear db._ENGINE for each plugin init in Metaplugin
Nachi Ueno [Wed, 15 Aug 2012 08:10:47 +0000 (08:10 +0000)]
clear db._ENGINE for each plugin init in Metaplugin

Fixes bug 1036996

Change-Id: I7f289b4ccda281a66666ec1dbf7fc01156b0512c

12 years agoMerge "Move metaplugin test for common test directory"
Jenkins [Fri, 24 Aug 2012 23:11:47 +0000 (23:11 +0000)]
Merge "Move metaplugin test for common test directory"

12 years agoEnable tox to run OVS plugin unit tests
Salvatore Orlando [Fri, 24 Aug 2012 13:38:06 +0000 (06:38 -0700)]
Enable tox to run OVS plugin unit tests

Fix bug 1029142

Unit tests have been moved into /quantum/tests/unit

Change-Id: I5d0fa84826f62a86e4ab04c3e1958869f24a1fcf

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 agoFix Metainterface driver with namespace
Nachi Ueno [Wed, 15 Aug 2012 18:50:39 +0000 (18:50 +0000)]
Fix Metainterface driver with namespace

Fixes bug 1037239

Change-Id: I4b812c850fd31333ebbafc28c4a621f15188eb1c

12 years agoAdd lease expiration script support for dnsmasq
Mark McClain [Thu, 16 Aug 2012 21:34:44 +0000 (17:34 -0400)]
Add lease expiration script support for dnsmasq

Fixes bug 1022804

This is phase 2 of the bug fix.  This changeset adds support for dnsmasq
 --dhcp-script to notify Quantum of lease renewals.  Communication between
dnsmasq and the Quantum DHCP agent occurs via UNIX domain socket since dnsmasq
may run in a network namespace.  The DHCP agent is responsible for
relaying the updated lease expiration back the Quantum server.

Change-Id: If42b76bbb9ec7543e681e26b9add8eb1d7054eeb

12 years agoRemove 'verbose' API capability
Salvatore Orlando [Fri, 24 Aug 2012 13:06:06 +0000 (06:06 -0700)]
Remove 'verbose' API capability

Fixes bug 1040568

Remove parsing of "verbose" query param from API layer
Remove "verbose" fetching from db in db_base_plugin
Remove "verbose" parameter from plugin methods

Change-Id: I5826fd64c7d8c48f4da605f32d21d96280c4c9f2

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 agoAdd DHCP RPC API support to Ryu plugin
Yoshihiro Kaneko [Wed, 22 Aug 2012 04:19:58 +0000 (04:19 +0000)]
Add DHCP RPC API support to Ryu plugin

It is necessary to add DHCP RPC API support to Ryu plugin to use
DHCP with Ryu plugin.

Fixes bug 1040398

Change-Id: I00caf6f36025a21d10b8a96c5f7272d12393c277
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
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 agoMove metaplugin test for common test directory
Nachi Ueno [Wed, 15 Aug 2012 21:27:54 +0000 (21:27 +0000)]
Move metaplugin test for common test directory

Fixes bug 1037284

Change-Id: Id26dfe5d01088790c046ce10b787c3d37100da8a

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"