]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoclean notification options in quantum.conf.
gongysh [Wed, 26 Sep 2012 08:48:18 +0000 (16:48 +0800)]
clean notification options in quantum.conf.

Bug #1056637

Change-Id: I9d9002d3dfbbfa94224bc6ed9dc1a7f5207fb563

11 years agoWarn about use of overlapping ips in config file
Salvatore Orlando [Tue, 25 Sep 2012 17:51:59 +0000 (10:51 -0700)]
Warn about use of overlapping ips in config file

Fix bug 1055822

Add an explicity user in the configuration file regarding consequences of
enabling overlapping IPs when Quantum is used with nova security groups
and/or metadata.

Change-Id: Ifa67216fc7479a7858c0653422bf5baab58fb350

12 years agoDo global CIDR check if overlapping IPs disabled.
Salvatore Orlando [Mon, 24 Sep 2012 23:20:35 +0000 (16:20 -0700)]
Do global CIDR check if overlapping IPs disabled.

Fix bug 1055822

This patch adds a global configuration option for enabling or disabling
overlapping IPs for subnets in different networks.
If they are disabled, the validation of the CIDR against overlapping
ones should be performed globally and not just among subnets defined for
the current network.

Change-Id: If6a562324f0a5c3982591be8030c4628ec9007b6

12 years agoFix rootwrap filter for dnsmasq when no namespace is used
Gary Kotton [Mon, 24 Sep 2012 12:31:27 +0000 (12:31 +0000)]
Fix rootwrap filter for dnsmasq when no namespace is used

Fixes bug 1055384

Change-Id: I98381299f28da0e4c443efd4c22ba551022e0288

12 years agoAdd common popen support to the cisco plugin
Gary Kotton [Mon, 24 Sep 2012 05:11:20 +0000 (05:11 +0000)]
Add common popen support to the cisco plugin

Fixes bug 1055290

Change-Id: I5c90b3f23288101c34ac94470476676d5d9c141e

12 years agoMerge "Uses a common subprocess popen function"
Jenkins [Sun, 23 Sep 2012 22:16:51 +0000 (22:16 +0000)]
Merge "Uses a common subprocess popen function"

12 years agoUse sqlite db on file for unit tests
Salvatore Orlando [Sat, 22 Sep 2012 00:06:47 +0000 (17:06 -0700)]
Use sqlite db on file for unit tests

bug 1054387

So far unit tests were executed using an in-memory database.
Memory was not being freed thus causing oom frequently due to
the increased number of unit tests.
Since sqlite in memory db do not work very well anyway with nose,
we are moving to file-based databases; slower, but safer.

Also, this patch removes a bunch of unit tests which do not add
anything to code coverage or number or test cases exercised.

Change-Id: Ib853727a5268643fbe8a99f6ebd0fc10aca6a43a

12 years agoUses a common subprocess popen function
Gary Kotton [Sun, 23 Sep 2012 08:34:33 +0000 (08:34 +0000)]
Uses a common subprocess popen function

Fixes bug 1053381

Change-Id: I8a89ba8d4f03094fcc581981044582c95d1300bb

12 years agoMerge "Remove a function that is not used"
Jenkins [Sat, 22 Sep 2012 19:07:35 +0000 (19:07 +0000)]
Merge "Remove a function that is not used"

12 years agoremove default value of local_ip in OVS agent
Mark McClain [Mon, 17 Sep 2012 21:28:00 +0000 (17:28 -0400)]
remove default value of local_ip in OVS agent

fixes bug 1051744

Remove the default value for local_ip in the OVS agent config.

Change-Id: Ie23ba8510c0cf5c17443c805e0befce6eccb253c

12 years agoMerge "Fix OVS and LB plugins' VLAN allocation table synchronization"
Jenkins [Fri, 21 Sep 2012 14:13:50 +0000 (14:13 +0000)]
Merge "Fix OVS and LB plugins' VLAN allocation table synchronization"

12 years agoRemove a function that is not used
Gary Kotton [Thu, 20 Sep 2012 13:09:45 +0000 (13:09 +0000)]
Remove a function that is not used

Fixes bug 1053393

Change-Id: I7b7ae48d9e7bf34ce280a3aec53f1ec11fcd1158

12 years agoMerge "l3-agent: move check if ext-net bridge exists within daemon loop"
Jenkins [Fri, 21 Sep 2012 09:56:49 +0000 (09:56 +0000)]
Merge "l3-agent: move check if ext-net bridge exists within daemon loop"

12 years agoMerge "all rootwrap filter for 'route', used by l3-agent"
Jenkins [Fri, 21 Sep 2012 09:50:04 +0000 (09:50 +0000)]
Merge "all rootwrap filter for 'route', used by l3-agent"

12 years agoMerge "ZMQ fixes for Quantum from openstack-common"
Jenkins [Fri, 21 Sep 2012 09:49:57 +0000 (09:49 +0000)]
Merge "ZMQ fixes for Quantum from openstack-common"

12 years agoall rootwrap filter for 'route', used by l3-agent
Dan Wendlandt [Fri, 21 Sep 2012 08:49:04 +0000 (01:49 -0700)]
all rootwrap filter for 'route', used by l3-agent

bug 1053889

Change-Id: If35f1f48464cd0bb795af4e9e82f5d7a9867b0aa

12 years agoMerge "Add catch-call try/catch within rpc_loop in ovs plugin agent"
Jenkins [Fri, 21 Sep 2012 08:10:12 +0000 (08:10 +0000)]
Merge "Add catch-call try/catch within rpc_loop in ovs plugin agent"

12 years agol3-agent: move check if ext-net bridge exists within daemon loop
Dan Wendlandt [Fri, 21 Sep 2012 06:52:52 +0000 (23:52 -0700)]
l3-agent: move check if ext-net bridge exists within daemon loop

bug 1052522

the l3 agent checked if the external network bridge exists in its
constructor, raising an uncaught exception if it did not.  this does not
make much sense when running the l3-agent as a deamon, especially since
it can be the case that the l3-agent starts before open vswitch.

Change-Id: Ie1717b2c02c9f0bc0caf34a6fdb0dc3a930123c0

12 years agoMerge "Fix deadlock of Metaplugin"
Jenkins [Fri, 21 Sep 2012 05:29:38 +0000 (05:29 +0000)]
Merge "Fix deadlock of Metaplugin"

12 years agoAdd catch-call try/catch within rpc_loop in ovs plugin agent
Dan Wendlandt [Fri, 21 Sep 2012 04:49:51 +0000 (21:49 -0700)]
Add catch-call try/catch within rpc_loop in ovs plugin agent

related to bug 1050512

when running in db-mode, the ovs plugin agent will catch any unexpected
exceptions generated during processing.  However, in rpc-mode, this
does not happen, meaning a small error, even a transient one, causes the
agent to exit completely.  Thic change adds a try-catch block to the
rcp_loop(), causing the agent to log any unexpected exception, wait for
the polling period, then retry the loop after resetting all state.

Change-Id: I76eae1800831e59c5078c4be8fa5ca22298bfb0a

12 years agoFix OVS and LB plugins' VLAN allocation table synchronization
Bob Kukura [Thu, 20 Sep 2012 20:03:14 +0000 (16:03 -0400)]
Fix OVS and LB plugins' VLAN allocation table synchronization

In both the openvswitch and linuxbridge plugins, if previous entries
for a physical network have been completely removed from the
network_vlan_ranges configuration variable, allocation table records
for unallocated VLANs on that physical network are now removed from
the DB at startup. The test_ovs_db and test_lb_db unit tests have also
been extended to cover this case. Fixes bug 1052289.

Test assertions that were added to the test_ovs_db unit test in
https://review.openstack.org/#/c/11388 have been added to the
test_lb_db unit test. Fixes bug 1045596.

Change-Id: I04e924603eaf0df717414c2aaa83fd203b791308

12 years agoZMQ fixes for Quantum from openstack-common
Eric Windisch [Thu, 20 Sep 2012 22:50:32 +0000 (18:50 -0400)]
ZMQ fixes for Quantum from openstack-common

Change Ifdeff8ae: Support declare_topic_consumer in impl_zmq
Change Ifc132519: fanout subscriptions in impl_zmq

Change-Id: Ic51fd09c302e767316d72fb38892e3761ef36de9

12 years agoMerge "Fix for flat network creation in Cisco plugin"
Jenkins [Thu, 20 Sep 2012 16:57:26 +0000 (16:57 +0000)]
Merge "Fix for flat network creation in Cisco plugin"

12 years agoRestore SIGPIPE default action for subprocesses
Thierry Carrez [Thu, 20 Sep 2012 12:42:53 +0000 (14:42 +0200)]
Restore SIGPIPE default action for subprocesses

Python ignores SIGPIPE on startup, because it prefers to check every
write and raise an IOError exception rather than taking the signal. Most
Unix subprocesses don't expect to work this way. This patch (adapted
from Colin Watson's post at http://tinyurl.com/2a7mzh5) sets SIGPIPE
back to the default action for quantum.agent.linux.utils.execute,
quantum.common.utils.execute and quantum-rootwrap created subprocesses.

Fixes bug 1053364

Change-Id: Ib805f1f8846c245b75a5ea64278c840b823c1fb2

12 years agoFix for flat network creation in Cisco plugin
Sumit Naiksatam [Wed, 19 Sep 2012 20:20:12 +0000 (13:20 -0700)]
Fix for flat network creation in Cisco plugin

Bug #1053154

Checks for the validity of the VLAN ID needed to be performed. In cases where
segmentation ID is not greater than zero, the Nexus sub-plugin does not
need to be invoked for that network.

Change-Id: I813d569c0c3d26c08554bf3599633b700a98c739

12 years agoMerge "Removes test desription that is no longer valid"
Jenkins [Wed, 19 Sep 2012 18:01:47 +0000 (18:01 +0000)]
Merge "Removes test desription that is no longer valid"

12 years agoRemoves test desription that is no longer valid
Gary Kotton [Wed, 19 Sep 2012 13:32:04 +0000 (13:32 +0000)]
Removes test desription that is no longer valid

Fixes bug 1052727

Change-Id: I01b81febfcc3e38a198bed55e55451746f321ab1

12 years agoModified code Pyflakes warning.
siyingchun [Sat, 8 Sep 2012 14:56:17 +0000 (22:56 +0800)]
Modified code Pyflakes warning.

File model_base.py:
W402 'sa' imported but unused

Change-Id: I167fbb81f88ddf6d2c6405832d0fe1c445509402

12 years agoMerge "remove unittest section for nec plugin README file"
Jenkins [Wed, 19 Sep 2012 05:27:25 +0000 (05:27 +0000)]
Merge "remove unittest section for nec plugin README file"

12 years agoMerge "remove unittest section for ryu plugin README file"
Jenkins [Wed, 19 Sep 2012 05:27:07 +0000 (05:27 +0000)]
Merge "remove unittest section for ryu plugin README file"

12 years agoMerge "NVP plugin missing dhcp rpc callbacks"
Jenkins [Wed, 19 Sep 2012 05:22:55 +0000 (05:22 +0000)]
Merge "NVP plugin missing dhcp rpc callbacks"

12 years agoMerge "always push down metadata rules for router, not just if gateway exists"
Jenkins [Wed, 19 Sep 2012 05:04:00 +0000 (05:04 +0000)]
Merge "always push down metadata rules for router, not just if gateway exists"

12 years agoFix deadlock of Metaplugin
Nachi Ueno [Wed, 19 Sep 2012 03:26:07 +0000 (03:26 +0000)]
Fix deadlock of Metaplugin

Fixes bug 1049981
Fix deadlock on network creation
Fix attribute filtering function

Change-Id: I6b75ea9c22b7844f84de16416d9610ad8c628800

12 years agoremove unittest section for nec plugin README file
Jiajun Liu [Wed, 19 Sep 2012 02:47:39 +0000 (10:47 +0800)]
remove unittest section for nec plugin README file

Fixes bug 1052731.

Change-Id: Ie69ab4a8ae805dc2a12aac92e817420c675142a6

12 years agoremove unittest section for ryu plugin README file
Jiajun Liu [Wed, 19 Sep 2012 02:30:57 +0000 (10:30 +0800)]
remove unittest section for ryu plugin README file

Fixes bug 1052729.

Change-Id: I396512678ddb98e2a572a94633fbf8633fd6d930

12 years agoMerge "Fix for DB error in the Cisco plugin"
Jenkins [Tue, 18 Sep 2012 17:01:47 +0000 (17:01 +0000)]
Merge "Fix for DB error in the Cisco plugin"

12 years agoFix for DB error in the Cisco plugin
Sumit Naiksatam [Tue, 18 Sep 2012 06:16:15 +0000 (23:16 -0700)]
Fix for DB error in the Cisco plugin

Bug #1052295

When the Cisco plugin is configured to support the L3 extension, the L3
DB model is not getting loaded correctly. Adding this import fixes that
issue.

Change-Id: I736bd2e767595088de8ebee929258a88f5cbd238

12 years agomodify the wrong phy_brs into phys_brs.
gongysh [Tue, 18 Sep 2012 02:36:12 +0000 (10:36 +0800)]
modify the wrong phy_brs into phys_brs.

Bug #1052281

Change-Id: I569e60aa1f8ab8313e5427bd16798cc6b4079a09

12 years agoNVP plugin missing dhcp rpc callbacks
Aaron Rosen [Mon, 17 Sep 2012 21:44:11 +0000 (17:44 -0400)]
NVP plugin missing dhcp rpc callbacks

Fixes bug 1052202

Change-Id: I6a906bd77cce85c7488d901bb2461fb970d1d5d0

12 years agomake README point to real v2 API spec
Dan Wendlandt [Mon, 17 Sep 2012 22:24:38 +0000 (15:24 -0700)]
make README point to real v2 API spec

bug 1052222

Change-Id: I0ecbcd71b25e6c7f514cc2f7e8cb071b75d53059

12 years agoREADME file changes for Cisco plugin
Sumit Naiksatam [Mon, 17 Sep 2012 17:53:01 +0000 (10:53 -0700)]
README file changes for Cisco plugin

Bug #1052109

Moving the contents to wiki.

Change-Id: I4aef2d710a7a4c1567d8701954ae04ba33095686

12 years agoMerge "fix for nested rootwrap checks with 'ip netns exec'"
Jenkins [Mon, 17 Sep 2012 18:24:53 +0000 (18:24 +0000)]
Merge "fix for nested rootwrap checks with 'ip netns exec'"

12 years agofix for nested rootwrap checks with 'ip netns exec'
Dan Wendlandt [Mon, 17 Sep 2012 17:35:51 +0000 (10:35 -0700)]
fix for nested rootwrap checks with 'ip netns exec'

bug 1051525

Change-Id: Ia52060afec1c573c8f11d658af88cea7e000d774

12 years agoalways push down metadata rules for router, not just if gateway exists
Dan Wendlandt [Mon, 17 Sep 2012 16:29:35 +0000 (09:29 -0700)]
always push down metadata rules for router, not just if gateway exists

bug 1051842

the l3-agent only pushes down some of the DNAT rules for metadata mapping
if there is a gateway set on a router. However, the nova-api server could
itself be running in the local router namespace (or on the same box as
the quantum-l3-agent in the case were namespaces are disabled. In fact,
with namespaces disabled, this is the likely setup for a simple
environment). Thus, we should simply always push down the metadata nat
rules for a router, router than waiting until a gateway is added.

This patch also refactors the actions taken by the l3-agent when a router
is added or removed into a separate function for improved readability,
as add/removing the nat rules made these code segments even longer.

Change-Id: I3c6eb35b51df3babf747dbcff7f943b850e69838

12 years agoRemoved eval of unchecked strings.
Maru Newby [Tue, 18 Sep 2012 01:46:38 +0000 (18:46 -0700)]
Removed eval of unchecked strings.

 * eval() was previously used to marshall unchecked strings as
   filter parameters for QuantumDbPluginV2.get_ports() via
   the --fixed_ips flag.
 * This change removes the use of eval and cleans up the filtering
   implementation for get_ports().
 * The new filtering implementation does not support arbitrary
   OR'ing or AND'ing.  Instead, multiple values for a given filter
   key are logically OR'ed, and filters across keys are AND'ed.
 * Example usage - filter for .2 or .3 in the given subnet:

     quantum port-list -- --fixed_ips ip_address=10.0.0.3 \
         ip_address=10.0.0.2 subnet_id=nOtaRealId

 * Addresses bug 1052179

Change-Id: I451f33ae53e623f86015b3fc2e6a7ca2f51ee836

12 years agoUpdate NVP plugin to Quantum v2.
Salvatore Orlando [Mon, 17 Sep 2012 09:25:01 +0000 (02:25 -0700)]
Update NVP plugin to Quantum v2.

Fix bug 1051870

Change-Id: Ie3885f0bf370f2423ed3dc891736d0bb21014605

12 years agoMerge "ovs-lib: make db_get_map return empty dict on error"
Jenkins [Mon, 17 Sep 2012 07:25:42 +0000 (07:25 +0000)]
Merge "ovs-lib: make db_get_map return empty dict on error"

12 years agoovs-lib: make db_get_map return empty dict on error
Dan Wendlandt [Mon, 17 Sep 2012 06:48:19 +0000 (23:48 -0700)]
ovs-lib: make db_get_map return empty dict on error

bug 1050504

this fixes a crash caused when we try to iterate over the return value
of db_get_map

Change-Id: I56640035c3e166ddcc3d23e76be9118604dbeadc

12 years agoUpdate l3-agent.ini with missing configuration flags
Gary Kotton [Sun, 16 Sep 2012 09:39:57 +0000 (09:39 +0000)]
Update l3-agent.ini with missing configuration flags

Fixes bug 1051349

Change-Id: I7f977c21dbe6bf6fbb8665648a50cd8954c737be

12 years agoMerge "Fix for failing network operations in Cisco plugin"
Jenkins [Sun, 16 Sep 2012 04:52:52 +0000 (04:52 +0000)]
Merge "Fix for failing network operations in Cisco plugin"

12 years agoMerge "Sync a change to rpc from openstack-common."
Jenkins [Sun, 16 Sep 2012 04:46:26 +0000 (04:46 +0000)]
Merge "Sync a change to rpc from openstack-common."

12 years agoSync a change to rpc from openstack-common.
Russell Bryant [Fri, 14 Sep 2012 18:00:45 +0000 (14:00 -0400)]
Sync a change to rpc from openstack-common.

This commit pulls in the following change from openstack-common:

    ee44222 Change the qpid_heartbeat default to 60 seconds.

Fix bug 1050661.

Change-Id: I2cb63d091f3d8a9a35d0e35ef18b70409c1f09ae

12 years agoMerge "add missing files from setup.py"
Jenkins [Sat, 15 Sep 2012 02:29:00 +0000 (02:29 +0000)]
Merge "add missing files from setup.py"

12 years agoFix for failing network operations in Cisco plugin
Sumit Naiksatam [Sat, 15 Sep 2012 00:50:54 +0000 (17:50 -0700)]
Fix for failing network operations in Cisco plugin

Bug #1050545

This fixes the exceptions occurring in the virtual switch mode of the
Cisco plugin for create/delete/update network operations. The exceptions
were occurring on account of the recent changes in the OVS module to the
get_vlan and get_vlans methods, which were still being invoked here.
Test configuration has been changed to increase the code coverage to
catch such issues in the future. All changes are limited to the Cisco
plugin and related tests.

Change-Id: Id18473f7a9a2a22217a59b4f8b1541b4918e07e7

12 years agoadd missing files from setup.py
Jiajun Liu [Thu, 13 Sep 2012 03:43:54 +0000 (11:43 +0800)]
add missing files from setup.py

Fixes bug 1050045.

Currently, setup.py will not copy l3_agent.ini and rootwrap filters
into directory /etc/quantum. Add copy operation in setup.py for those
config files so that those files will be copied into proper directory.

Change-Id: I7052d6c07ffd4d03cafa93187d8072053ee0a832

12 years agoMerge "remove not need shebang line in quantum debug"
Jenkins [Thu, 13 Sep 2012 15:04:48 +0000 (15:04 +0000)]
Merge "remove not need shebang line in quantum debug"

12 years agoAdd quantum-nec-agent to bin directory.
Akihiro MOTOKI [Thu, 13 Sep 2012 04:36:09 +0000 (13:36 +0900)]
Add quantum-nec-agent to bin directory.

Fixes bug 1050047

Change-Id: I8b946b08b0dc58881a9f149d17623462e058debc

12 years agoremove not need shebang line in quantum debug
Jiajun Liu [Thu, 13 Sep 2012 04:17:49 +0000 (12:17 +0800)]
remove not need shebang line in quantum debug

Fixes bug 1050053.

Change-Id: Ia1d8e665d330698d246bddb57330cb376244a1f9

12 years agomake rootwrap filters path consistent with other openstack project
Jiajun Liu [Thu, 13 Sep 2012 02:09:30 +0000 (10:09 +0800)]
make rootwrap filters path consistent with other openstack project

Fixes bug 1050062.

Change-Id: I0c3fc84af8ed9bca2e0bd2f11cbc3b737b6a4001

12 years agoBump version to 2013.1, open Grizzly
Thierry Carrez [Wed, 12 Sep 2012 08:18:12 +0000 (10:18 +0200)]
Bump version to 2013.1, open Grizzly

Bump version number to 2013.1 to open Grizzly development on master
branch.

Change-Id: I653f52bdfdf09b86efab86f69bc4b9dde02827c4

12 years agoMerge "Add a new interface driver OVSVethInterfaceDriver."
Jenkins [Tue, 11 Sep 2012 22:27:26 +0000 (22:27 +0000)]
Merge "Add a new interface driver OVSVethInterfaceDriver."

12 years agoMerge "Create .mailmap file"
Jenkins [Tue, 11 Sep 2012 21:40:33 +0000 (21:40 +0000)]
Merge "Create .mailmap file"

12 years agoFix lack of L3 support of NEC OpenFlow plugin
Akihiro MOTOKI [Tue, 11 Sep 2012 13:24:57 +0000 (22:24 +0900)]
Fix lack of L3 support of NEC OpenFlow plugin

VMs cannot access the external network without l3 support.

Fixes bug 1042109

Change-Id: I19de7c348a62040bb07f431afe287751faf27c32

12 years agoAdd a new interface driver OVSVethInterfaceDriver.
Akihiro MOTOKI [Mon, 10 Sep 2012 13:21:35 +0000 (22:21 +0900)]
Add a new interface driver OVSVethInterfaceDriver.

Fixes bug 1048681

This commit fixes a bug that quantum agent using a namespace does not
work with NEC plugin. NEC plugin uses an Open vSwitch as an OpenFlow switch,
but an OVS port created by ovs-vsctl add-port becomes down when the port is
moved to some network namespace. Usual OpenFlow controllers respect the
OpenFlow port status. Since DHCP server (dnsmasq) is connected to the down
port, DHCP server disappears from the virtual network.

This behavior can be avoided if we use a similar approach used in
BridgeInterfaceDriver, i.e., we first create a veth pair, add one veth device
to OVS and move the other veth device to a network namespace. To accomplish it
this patch introduces a new interface driver OVSVethInterfaceDriver.

In addition, this patch adds a 'prefix' paramter to unplug(). When deleting
a veth pair, a veth device added to OVS bridge is not removed automatically.
Thus we need a mean to know the veth device name from a device_name to be
removed. It is the reason to add 'prefix' parameter to unplug().

Change-Id: I3f4eae371a27a3171a6a8c9e38ddc9354ed1b6b0

12 years agoMerge "Ensure that l3 agent does not crash on restart"
Jenkins [Tue, 11 Sep 2012 16:51:08 +0000 (16:51 +0000)]
Merge "Ensure that l3 agent does not crash on restart"

12 years agoMerge "Exclude openstack-common from pep8 test"
Jenkins [Tue, 11 Sep 2012 15:23:35 +0000 (15:23 +0000)]
Merge "Exclude openstack-common from pep8 test"

12 years agoEnsure that l3 agent does not crash on restart
Gary Kotton [Mon, 10 Sep 2012 08:19:09 +0000 (04:19 -0400)]
Ensure that l3 agent does not crash on restart

Fixes bug 1048108

The changeset also removed the namespace garbage collection from the port unplug. This
attempts to delete the namespace. This is problematic as there may be additional attributes
to the namespace that need to be dealt with.

Change-Id: I418a1ec4e9b65e5bea67ae84414019c3d6b54214

12 years agoMerge "make subnets attribute of a network read-only"
Jenkins [Tue, 11 Sep 2012 09:06:28 +0000 (09:06 +0000)]
Merge "make subnets attribute of a network read-only"

12 years agoMerge "Ensures that the Linux Bridge Plugin runs with L3 agent"
Jenkins [Tue, 11 Sep 2012 08:46:09 +0000 (08:46 +0000)]
Merge "Ensures that the Linux Bridge Plugin runs with L3 agent"

12 years agomake subnets attribute of a network read-only
Dan Wendlandt [Tue, 11 Sep 2012 08:26:57 +0000 (01:26 -0700)]
make subnets attribute of a network read-only

bug 1046173

writing to the subnets attribute is not supported, so rather than
making it looks like we accept it but ignoring it, we should explicitly
reject requests to specify it on network create/update.

Change-Id: I5b6f0f35794c9d5606befb97a89c6c6c97ee3dbf

12 years agoMerge "Update default policy for add/remove router interface to admin_or_owner"
Jenkins [Tue, 11 Sep 2012 08:09:46 +0000 (08:09 +0000)]
Merge "Update default policy for add/remove router interface to admin_or_owner"

12 years agoExclude openstack-common from pep8 test
Zhongyue Luo [Tue, 11 Sep 2012 06:50:13 +0000 (14:50 +0800)]
Exclude openstack-common from pep8 test

Fixes bug #1048962

Added "openstack" to PEP8_EXCLUDE in run_tests.sh

Change-Id: I5919c97681b1f037e231df7ddb449c2a16366128

12 years agoEnsures that the Linux Bridge Plugin runs with L3 agent
Gary Kotton [Tue, 11 Sep 2012 06:32:12 +0000 (06:32 +0000)]
Ensures that the Linux Bridge Plugin runs with L3 agent

Fixes bug 1048968

1. The external interface for the linux bridge will be created at run time.
The configuration parameter external_network_bridge should be set as empty.
That is, "external_network_bridge = ". The link between the network and
the physical interface should be done via the provider network parameters.
2. The plug operation for the linux bridge replaces the interface name
prefix with tap. We need to ensure that the prefix length is 3 characters.

Change-Id: Ib8e26bc1f603a1aff9560b4a40110a6824db5921

12 years agoMerge "Add enable_tunneling openvswitch configuration variable"
Jenkins [Tue, 11 Sep 2012 06:27:13 +0000 (06:27 +0000)]
Merge "Add enable_tunneling openvswitch configuration variable"

12 years agoMerge "Update metaplugin with l3 extension update"
Jenkins [Tue, 11 Sep 2012 05:48:29 +0000 (05:48 +0000)]
Merge "Update metaplugin with l3 extension update"

12 years agoRemove an external port when an error occurs during FIP creation.
Akihiro MOTOKI [Tue, 11 Sep 2012 04:44:57 +0000 (13:44 +0900)]
Remove an external port when an error occurs during FIP creation.

Fixes bug 1048140

To remove an external port, we need to use the same context used
when it is created.

Change-Id: Ia89b086b420741e7e0e92625b62e46fcfe9dbbba

12 years agoMerge "Remove the exeception handler since it makes no sense."
Jenkins [Tue, 11 Sep 2012 04:49:15 +0000 (04:49 +0000)]
Merge "Remove the exeception handler since it makes no sense."

12 years agoMerge "Add periodic check resync check to DHCP agent"
Jenkins [Tue, 11 Sep 2012 03:41:23 +0000 (03:41 +0000)]
Merge "Add periodic check resync check to DHCP agent"

12 years agoRemove the exeception handler since it makes no sense.
gongysh [Tue, 11 Sep 2012 03:03:58 +0000 (11:03 +0800)]
Remove the exeception handler since it makes no sense.

Bug #1048906

Change-Id: Idd4d20bb066a73b790155a8886bceea94f19805c

12 years agoAdd enable_tunneling openvswitch configuration variable
Bob Kukura [Sun, 9 Sep 2012 15:49:25 +0000 (11:49 -0400)]
Add enable_tunneling openvswitch configuration variable

Not all systems that support Open vSwitch support its GRE tunneling
feature that is not in the Linux kernel source tree. Therefore, a new
configuration variable, enable_tunneling, applies to both the server
and agent. Its default value is False, so it must be set to True to
enable tunneling for tenant and/or provider networks. If
enable_tunneling is False, the server will not allow creation of GRE
networks, and the agent will not initialize the tunnel bridge and will
log an error if there is an attempt to provision a GRE network. If it
is True, the agent now logs an error and exits if it fails to
initialize the patch ports used for the tunnel bridge. Fixes bug
1045610.

When there is an attempt to provision a flat or VLAN network and the
agent has no bridge mapping configured for a the specified physical
network, the agent will now log an error rather than crash.

An undefined variable in a logging statement has been corrected.

Logging levels for openvswitch have been checked and updated where
necessary, and logging statements now avoid the % string substitution
syntax. Fixes bug 1045592.

The corresponding devstack update has already been merged.

Change-Id: I149db182dd132cc05802dcb20c6b552e293664a5

12 years agoCreate .mailmap file
Zhongyue Luo [Tue, 11 Sep 2012 02:34:14 +0000 (10:34 +0800)]
Create .mailmap file

Fixes bug #1048903

Use .mailmap file to coalesce commits
by the same person using multiple names and/or email addresses

Change-Id: Ib702114da944ec9d117ab969cde0b29a89999467

12 years agoUpdate default policy for add/remove router interface to admin_or_owner
Nachi Ueno [Tue, 11 Sep 2012 02:01:46 +0000 (02:01 +0000)]
Update default policy for add/remove router interface to admin_or_owner

Fixes bug 1048891
default policy for add/remove router interface
should be admin_or_owner

Change-Id: Idc797d8a2e7dc17b517fed4668b256344438a257

12 years agoAdd periodic check resync check to DHCP agent
Mark McClain [Mon, 10 Sep 2012 19:28:56 +0000 (15:28 -0400)]
Add periodic check resync check to DHCP agent

fixes bug 1047605

This patch adds a periodic resync check to the DHCP agent that will
resync state with the Quantum server if any notification or rpc errors
have occurred since the last check.

Change-Id: I879662ff44f2991cd2ff07062bb4e770a2981528

12 years agoMerge "Remove an external interface when router-gateway is removed."
Jenkins [Tue, 11 Sep 2012 01:12:11 +0000 (01:12 +0000)]
Merge "Remove an external interface when router-gateway is removed."

12 years agoUpdate metaplugin with l3 extension update
Nachi Ueno [Sat, 8 Sep 2012 01:34:44 +0000 (01:34 +0000)]
Update metaplugin with l3 extension update

Fixes bug 1047587
Added l3 handling for api call
Add l3 test for metaplugin

Change-Id: I4cc189f68630ee2b5428b1aae45840934786be81

12 years agoMerge "openvswitch plugin does not remove inbound unicast flow in br-tun"
Jenkins [Mon, 10 Sep 2012 15:58:54 +0000 (15:58 +0000)]
Merge "openvswitch plugin does not remove inbound unicast flow in br-tun"

12 years agoAdd DHCP RPC API support to NEC OpenFlow plugin
Akihiro MOTOKI [Mon, 10 Sep 2012 12:45:33 +0000 (21:45 +0900)]
Add DHCP RPC API support to NEC OpenFlow plugin

It is necessary to use DHCP with NEC OpenFlow plugin.

Fixes bug 1048622

Change-Id: Ia33e1157644232504c1d4683bbc83d678fb58409

12 years agoRemove an external interface when router-gateway is removed.
Akihiro MOTOKI [Mon, 10 Sep 2012 12:35:29 +0000 (21:35 +0900)]
Remove an external interface when router-gateway is removed.

Fixes bug 1048617

Change-Id: Ib7e80fcd6b7e2ffd974067a8039dd74f25005856

12 years agoMerge "Added policy checks for add interface and remove interface"
Jenkins [Mon, 10 Sep 2012 00:21:07 +0000 (00:21 +0000)]
Merge "Added policy checks for add interface and remove interface"

12 years agoopenvswitch plugin does not remove inbound unicast flow in br-tun
Aaron Rosen [Thu, 6 Sep 2012 04:32:04 +0000 (00:32 -0400)]
openvswitch plugin does not remove inbound unicast flow in br-tun

Fixes bug 1044565 In addition to adding port_unbound call when using rpc

Change-Id: Ie924f94bcedebbe24f3aa0a52d1682bc944a0aec

12 years agoRemove default name for DHCP port.
Mark McClain [Sun, 9 Sep 2012 19:19:46 +0000 (15:19 -0400)]
Remove default name for DHCP port.

fixes bug 1048357

This patch removes the code that set the port name for the DHCP agent.

Change-Id: Icd769486c5f335d533349ac5e94ac9771c8ca450

12 years agoMerge "allow multiple l3-agents to run, each with one external gateway net"
Jenkins [Sun, 9 Sep 2012 17:16:05 +0000 (17:16 +0000)]
Merge "allow multiple l3-agents to run, each with one external gateway net"

12 years agoAdded policy checks for add interface and remove interface
Nachi Ueno [Wed, 5 Sep 2012 20:29:27 +0000 (20:29 +0000)]
Added policy checks for add interface and remove interface

Fixes bug 1042037
admin_only policy didn't works, so policy checks
for add interface and remove interface needed.
Also updated policy.json

Change-Id: Ifec281250ccbe1680a3e634f4efdb7ba7ef3ec94

12 years agoMerge "Prevent floating-ip and ex-gateway ports should prevent net deletion"
Jenkins [Sun, 9 Sep 2012 15:35:48 +0000 (15:35 +0000)]
Merge "Prevent floating-ip and ex-gateway ports should prevent net deletion"

12 years agoMerge "Fix broken L3 support of Ryu plugin"
Jenkins [Sun, 9 Sep 2012 15:04:36 +0000 (15:04 +0000)]
Merge "Fix broken L3 support of Ryu plugin"

12 years agoallow multiple l3-agents to run, each with one external gateway net
Dan Wendlandt [Sun, 9 Sep 2012 14:55:52 +0000 (07:55 -0700)]
allow multiple l3-agents to run, each with one external gateway net

bug #1042028

Allows user to invoke L3-agent in a way that limits the agent to
implementing only routers associated with a particular external network.
Thus, it is possible to have a deployment with multiple external networks,
since you can run one agent per external network.

Also makes l3-agent pay attention to router admin_state_up field.

Change-Id: Ia79d29301530718bc381c8e5a9d197de9452bce2

12 years agoPrevent floating-ip and ex-gateway ports should prevent net deletion
Dan Wendlandt [Sun, 9 Sep 2012 14:53:37 +0000 (07:53 -0700)]
Prevent floating-ip and ex-gateway ports should prevent net deletion

bug 1044331

Old behavior meant that any port with device owner starting with
"network:" would be auto-deleted when a network was deleted.  We don't
want that behavior for floating IPs or external network gateways.
This provides a model where we explicitly list the set of owners that
should be auto-deleted.

- Also clean up NetworkInUse message to no longer mention 'attachment',
since that is API v1 terminology.

Change-Id: Icb727ae86d490456ec1ebc55cec1bf98ae6490c9

12 years agoMerge "add local network type and use by default for tenant networks"
Jenkins [Sun, 9 Sep 2012 12:07:13 +0000 (12:07 +0000)]
Merge "add local network type and use by default for tenant networks"

12 years agoMerge "Change 422 error to 400 error"
Jenkins [Sun, 9 Sep 2012 09:52:22 +0000 (09:52 +0000)]
Merge "Change 422 error to 400 error"

12 years agoMerge "fix generation of exception for mismatched floating ip tenant-ids"
Jenkins [Sun, 9 Sep 2012 07:09:16 +0000 (07:09 +0000)]
Merge "fix generation of exception for mismatched floating ip tenant-ids"