]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
12 years agoModified code Pyflakes warning.
siyingchun [Sat, 8 Sep 2012 13:35:26 +0000 (21:35 +0800)]
Modified code Pyflakes warning.

File l3_agent.py:
W402 'linux_utils' imported but unused

Change-Id: I774cb00c2d55ffdd1184694810bb7a7f6e3de724

12 years agoModified code Pyflakes warning.
siyingchun [Sat, 8 Sep 2012 13:24:51 +0000 (21:24 +0800)]
Modified code Pyflakes warning.

File ovs_lib.py:
W402 'shlex' imported but unused
W402 'signal' imported but unused
W402 'subprocess' imported but unused

Change-Id: I10132c42390f1ea4b1a6171146d7bee0e1b0d8fa

12 years agoModified code Pyflakes warning.
siyingchun [Sat, 8 Sep 2012 11:45:17 +0000 (19:45 +0800)]
Modified code Pyflakes warning.

File iptables_manager.py:
W402 'ConfigParse' imported but unused
W402 'subprocess' imported but unused

Change-Id: Ib364835518c0517dbe9e95d1ac6445bfbd704860

12 years agoModified code Pyflakes warning.
siyingchun [Sat, 8 Sep 2012 11:37:03 +0000 (19:37 +0800)]
Modified code Pyflakes warning.

File config.py:
W402 'os' imported but unused

Change-Id: Ie6e728183638312ccfa09e62626e05a49289009b

12 years agoMerge "Fix dhcp agent rpc exception handling"
Jenkins [Sat, 8 Sep 2012 14:35:29 +0000 (14:35 +0000)]
Merge "Fix dhcp agent rpc exception handling"

12 years agoMerge "check subnet overlapping when adding interface to router"
Jenkins [Sat, 8 Sep 2012 07:49:08 +0000 (07:49 +0000)]
Merge "check subnet overlapping when adding interface to router"

12 years agocheck subnet overlapping when adding interface to router
Hisaharu Ishii [Fri, 7 Sep 2012 00:32:56 +0000 (17:32 -0700)]
check subnet overlapping when adding interface to router

Fixes bug 1046061

Add logic in _check_for_dup_router_subnet to check subnets are not overlapped.
Add testcase test_router_add_interface_overlapped_cidr.

Change-Id: I71b6cce07273686cc5e4636ce640b7201ce00b32

12 years agoFix data passed to policy engine on update
Salvatore Orlando [Fri, 7 Sep 2012 23:45:48 +0000 (16:45 -0700)]
Fix data passed to policy engine on update

fix bug 1044218

The original resource status fetched to the db was not being
properly updated with the request body before feeding it to the
policy engine

Change-Id: I9f71e40edf44136a40fad1ef272696d6b3ea352d

12 years agoFix dhcp agent rpc exception handling
Mark McClain [Fri, 7 Sep 2012 16:39:39 +0000 (12:39 -0400)]
Fix dhcp agent rpc exception handling

fixes bug 1046904

This patch adds exception handling to log rpc exceptions.  Previously,
the agent would terminate due to uncaught errors during initialization.

Change-Id: I4835c1616e2ccfc9c42c591e8c7446db50721d01

12 years agoMerge "Add missing include for logging when log_config is used"
Jenkins [Fri, 7 Sep 2012 12:14:25 +0000 (12:14 +0000)]
Merge "Add missing include for logging when log_config is used"

12 years agoMerge "Modified code Pyflakes warning."
Jenkins [Fri, 7 Sep 2012 10:39:24 +0000 (10:39 +0000)]
Merge "Modified code Pyflakes warning."

12 years agoAdd missing include for logging when log_config is used
Gary Kotton [Fri, 7 Sep 2012 10:37:06 +0000 (06:37 -0400)]
Add missing include for logging when log_config is used

Fixes bug 1047273

Change-Id: I7fb8a504acf8fa910100d9798e2a35274aa5a103

12 years agoMerge "Improve error message when flat network already exists"
Jenkins [Fri, 7 Sep 2012 10:23:38 +0000 (10:23 +0000)]
Merge "Improve error message when flat network already exists"

12 years agoModified code Pyflakes warning.
siyingchun [Fri, 7 Sep 2012 09:46:32 +0000 (17:46 +0800)]
Modified code Pyflakes warning.

File dhcp.py:
W402 'textwrap' imported but unused
W402 'importutils' imported but unused

Change-Id: I5b3cee932ad224486ba3fbf4bbd44005b1200bfb

12 years agoModified code pyflakes warning.
siyingchun [Fri, 7 Sep 2012 09:30:31 +0000 (17:30 +0800)]
Modified code pyflakes warning.

W402 'version_string' imported but unused

Change-Id: I6dad8661c2dc0358821f76b911b13b21e788d738

12 years agoImprove error message when flat network already exists
Bob Kukura [Fri, 7 Sep 2012 01:42:54 +0000 (21:42 -0400)]
Improve error message when flat network already exists

Fixes bug 1045601.

When attempting to create a flat network on a physical_network on
which a flat network is already allocated, the openvswitch and
linuxbridge plugins return a FlatNetworkInUse exception rather than a
VlanIdInUse exception referencing VLAN -1.

Change-Id: Id79e917e1376ebbb199efc3f14d9f378c6a04050

12 years agoMerge "Lower webob dep from v1.2.0 to v1.0.8"
Jenkins [Thu, 6 Sep 2012 18:58:17 +0000 (18:58 +0000)]
Merge "Lower webob dep from v1.2.0 to v1.0.8"

12 years agoLower webob dep from v1.2.0 to v1.0.8
Brian Waldon [Thu, 6 Sep 2012 17:43:05 +0000 (10:43 -0700)]
Lower webob dep from v1.2.0 to v1.0.8

All other OpenStack projects expect webob v1.0.8 yet Quantum expects
v1.2.0. This discrepancy causes problems for certain projects that
can't actually support v1.2.0 yet. This patch aligns the required
version with that which the other OpenStack projects expect.

Change-Id: I21b4c6c79a0382f241131f22edbeba22388a688d

12 years agoMerge "Allocation pool creation should check if gateway is in subnet"
Jenkins [Thu, 6 Sep 2012 12:53:49 +0000 (12:53 +0000)]
Merge "Allocation pool creation should check if gateway is in subnet"

12 years agoAllocation pool creation should check if gateway is in subnet
Gary Kotton [Wed, 5 Sep 2012 08:19:40 +0000 (04:19 -0400)]
Allocation pool creation should check if gateway is in subnet

Fixes bug 1046192

If the configured gateway is not in the subnet then it should not be
used for the allocation pool creation.

Change-Id: Ifba766a13d860b58d21034db278c6b24d4c126e7

12 years agoMake sure floating IPs + gateways must be on external nets
Dan Wendlandt [Thu, 6 Sep 2012 05:43:22 +0000 (22:43 -0700)]
Make sure floating IPs  + gateways must be on external nets

bug #1042030

- adds admin-writable, world-readable router:external attribute to
the network object if L3 extension is loaded.
- prevents floating ips from being created unless network is external
- shortens L3 extensions alias from 'os-quantum-router' to 'router' to
make attribute extensions more readable.

WIP:
- Need to add policy logic so non-admin users can always see external
networks without requiring that these networks are shared (since VMs can
always create ports on shared networks, but provider may want to have
externals networks that VMs cannot directly plug into.

Random clean-up:
- prevent delete_network in plugins from implying it returns something
- modify extensions.py so that exceptions during calls to
get_extended_resources() will actually be logged if unexpected.
- unset executable bit on test_iptables_manager.py to make sure tox
actually runs it.

Change-Id: I5bbf063927b93458da7cb467d9ad5c92ebabbbf7

12 years agoMerge "add rootwrap filters to wrap ip netns exec"
Jenkins [Thu, 6 Sep 2012 01:41:38 +0000 (01:41 +0000)]
Merge "add rootwrap filters to wrap ip netns exec"

12 years agoMerge "restart dnsmasq when subnet cidr set changes"
Jenkins [Wed, 5 Sep 2012 22:45:37 +0000 (22:45 +0000)]
Merge "restart dnsmasq when subnet cidr set changes"

12 years agorestart dnsmasq when subnet cidr set changes
Mark McClain [Wed, 5 Sep 2012 04:52:21 +0000 (00:52 -0400)]
restart dnsmasq when subnet cidr set changes

fixes bug 1045828

The original bug occurred because the set of subnet cidrs changed
without a restart of dnsmasq.  As a result, dnsmasq would not respond
with offers for fixed_ips assigned in the unknown cidr ranges even when
the underlying host file had properly updated.

This patch addresses the bug by restarting dnsmasq when the set of
subnet cidrs changes.  When the set does not change, it will reload the
options and allocations.

Change-Id: I0e257208750703f4a32c51d1323786e76e676bb6

12 years agosupress dhcp router opt for subnets with null gw
Mark McClain [Wed, 5 Sep 2012 04:27:27 +0000 (00:27 -0400)]
supress dhcp router opt for subnets with null gw

fixes bug 1045617

This patch supresses the default gateway for subnets without gateway
defined.

Change-Id: I29d84863e51f613d8529153870eb7542d992be0e

12 years agoadd rootwrap filters to wrap ip netns exec
Mark McClain [Tue, 4 Sep 2012 23:50:00 +0000 (19:50 -0400)]
add rootwrap filters to wrap ip netns exec

fixes bug 1044083

This patch adds specific filters for the ip command. The first filter
matches ip with any subcomand except netns exec.  The second filter
matches "ip netns exec" and then relies on the caller (match_filter) to
verify the sub-command against the other filters. Matching the
subcommand separately allows for a single set of filter definitions that
work with and without namespaces.

Change-Id: Ifd0378dc3461f84867efb3cb60396d9cfa9e582d

12 years agoMerge "Create utility to clean-up netns."
Jenkins [Wed, 5 Sep 2012 00:27:24 +0000 (00:27 +0000)]
Merge "Create utility to clean-up netns."

12 years agoMerge "Fix lack of L3 support of Ryu plugin"
Jenkins [Tue, 4 Sep 2012 21:19:06 +0000 (21:19 +0000)]
Merge "Fix lack of L3 support of Ryu plugin"

12 years agoMerge "Implements agent for Quantum Networking testing"
Jenkins [Tue, 4 Sep 2012 17:55:13 +0000 (17:55 +0000)]
Merge "Implements agent for Quantum Networking testing"

12 years agoMerge "Quantum dhcp crashes if no networks exist"
Jenkins [Tue, 4 Sep 2012 17:52:40 +0000 (17:52 +0000)]
Merge "Quantum dhcp crashes if no networks exist"

12 years agoMerge "Update with latest code from openstack-common (stable/folsom)"
Jenkins [Tue, 4 Sep 2012 17:23:49 +0000 (17:23 +0000)]
Merge "Update with latest code from openstack-common (stable/folsom)"

12 years agoImplements agent for Quantum Networking testing
Nachi Ueno [Fri, 10 Aug 2012 22:15:32 +0000 (22:15 +0000)]
Implements agent for Quantum Networking testing

This agent client plugs itself into each network.
Then tries to ping each fixed_ips.
Implements blueprint test-agent

Change-Id: I3908e37401272e9e091ceae66e72cfcdd13b7898

12 years agoQuantum dhcp crashes if no networks exist
Aaron Rosen [Fri, 31 Aug 2012 22:34:49 +0000 (15:34 -0700)]
Quantum dhcp crashes if no networks exist

Fixes bug 1043583

Change-Id: Ibdfeb98c094b80ea63e79b23f14811e00525d96b

12 years agoUpdate with latest code from openstack-common (stable/folsom)
Gary Kotton [Tue, 4 Sep 2012 11:04:26 +0000 (07:04 -0400)]
Update with latest code from openstack-common (stable/folsom)

Fixes bug 1039777

Due to changes in quantum/openstack/common/cfg.py,
quantum/plugins/nicira/nicira_nvp_plugin/common/config.py
also needed to be updated.

Change-Id: Id240f8b5e2d80dde168b6d7c0eebeb9c5c398e42

12 years agoFixes undefined variable 'network_type' in OVS agent
Akihiro MOTOKI [Tue, 4 Sep 2012 11:13:18 +0000 (20:13 +0900)]
Fixes undefined variable 'network_type' in OVS agent

bug 1045749

Change-Id: Icd2e79722cfcb816bfdfa85bd8b8ab5198908474

12 years agoCreate utility to clean-up netns.
Mark McClain [Mon, 20 Aug 2012 14:18:01 +0000 (10:18 -0400)]
Create utility to clean-up netns.

Fixes bug 1035366

Adds namespace clean up utility called quantum-netns-cleanup which can be used
to remove old namespaces.

The --force option can be used to remove all Quantum namespaces and any
remaining devices.  The force option is should not be run on a live Quantum
systems.  It is intended for cleaning up devstack a after running
unstack.sh (ideally this will be added to unstack.sh in the future).

Example cmd line when cleaning up a devstack install:
quantum-netns-cleanup --config-file /etc/quantum/quantum.conf \
--config-file /etc/quantum/dhcp_agent.ini --force

Change-Id: I6cf153df21e83bff2cde816db12b22102d1ba698

12 years agoMerge "ovs_lib unable to parse return when port == -1"
Jenkins [Tue, 4 Sep 2012 05:34:01 +0000 (05:34 +0000)]
Merge "ovs_lib unable to parse return when port == -1"

12 years agoFix lack of L3 support of Ryu plugin
Yoshihiro Kaneko [Thu, 30 Aug 2012 14:50:06 +0000 (23:50 +0900)]
Fix lack of L3 support of Ryu plugin

VMs cannot access the external network without l3 support.

Fixes bug 1043746

Change-Id: I6bd2cb69ba80ce3c799f346ca67c17ff77244ba4

12 years agoMerge "L3: make use of namespaces by agent configurable"
Jenkins [Tue, 4 Sep 2012 00:07:27 +0000 (00:07 +0000)]
Merge "L3: make use of namespaces by agent configurable"

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 agoovs_lib unable to parse return when port == -1
Aaron Rosen [Mon, 3 Sep 2012 22:00:48 +0000 (15:00 -0700)]
ovs_lib unable to parse return when port == -1

Fixes bug 1045536

Change-Id: I463dd31d67dff74caae1a0230df5d78c21beaf04

12 years agoL3: make use of namespaces by agent configurable
Gary Kotton [Mon, 27 Aug 2012 11:30:22 +0000 (07:30 -0400)]
L3: make use of namespaces by agent configurable

Fixes bug 1042104

The fix follows the patch that was done on the DHCP agent to enable
the user to configure the usage of namespaces. In the event that
namspaces are disabled the agent is limited to running only one
router. The agent needs to define the router_id that is supported.
The process in this case is:
1. create router
2. start agent with router id

Change-Id: I2a71dc009c5aea285ff9f903b3faa99b0c9f820f

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