]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoMerge "Enable policy control over external_gateway_info sub-attributes"
Jenkins [Tue, 16 Jul 2013 18:12:12 +0000 (18:12 +0000)]
Merge "Enable policy control over external_gateway_info sub-attributes"

11 years agoMerge "Improve l3-agent performance and prevent races in it."
Jenkins [Tue, 16 Jul 2013 16:46:17 +0000 (16:46 +0000)]
Merge "Improve l3-agent performance and prevent races in it."

11 years agoEnable policy control over external_gateway_info sub-attributes
Salvatore Orlando [Mon, 13 May 2013 11:12:46 +0000 (13:12 +0200)]
Enable policy control over external_gateway_info sub-attributes

Part 2 of blueprint l3-ext-gw-modes

This patch extends the logic for building policy rule matches in order to
include sub-attributes as well. This logic will be leveraged by the
ext-gw-mode api extension.

Change-Id: I7f46a395597b71bb1c5110aa4e792a04a5010d4c

11 years agoImprove l3-agent performance and prevent races in it.
Nachi Ueno [Fri, 12 Jul 2013 19:21:46 +0000 (12:21 -0700)]
Improve l3-agent performance and prevent races in it.

Fixes bug 1194026
Fixes bug 1200749

Introduce a looping call for performing synchronization with
neutron server.
The sync will be performed only if router changes are notified
via rpc. Only affected routers will be synchronized.

Changes will be implemented by the l3 agent spawning a
distinct greenthread for each router - iptables will
be executed only once using iptables_manager.defer_apply_on.

This patch will prevent the occurence of the following issues:
- Out-of-order rpc message processing
- Long processing time for router changes due to serial execution
- Occasional and expected RPC blocks for long periods
- Unnecessary processing of multiple requests

Change-Id: I0978d1c38ac5c38c4548e5b1877857bb5cac3b81

11 years agoMerge "Use the correct tunnel_type to notify agents"
Jenkins [Tue, 16 Jul 2013 02:30:07 +0000 (02:30 +0000)]
Merge "Use the correct tunnel_type to notify agents"

11 years agoMerge "Ensure PortSecurityDBTestCase loads correct plugin"
Jenkins [Tue, 16 Jul 2013 02:20:59 +0000 (02:20 +0000)]
Merge "Ensure PortSecurityDBTestCase loads correct plugin"

11 years agoMerge "Re-assign quantum.api module as last operation"
Jenkins [Tue, 16 Jul 2013 02:20:33 +0000 (02:20 +0000)]
Merge "Re-assign quantum.api module as last operation"

11 years agoMerge "Preserve packet:byte counts in iptables_manager."
Jenkins [Tue, 16 Jul 2013 01:57:20 +0000 (01:57 +0000)]
Merge "Preserve packet:byte counts in iptables_manager."

11 years agoMerge "Fix random OverflowError exceptions in gate-neutron-python26 tests"
Jenkins [Mon, 15 Jul 2013 23:01:34 +0000 (23:01 +0000)]
Merge "Fix random OverflowError exceptions in gate-neutron-python26 tests"

11 years agoRe-assign quantum.api module as last operation
Salvatore Orlando [Wed, 10 Jul 2013 16:11:01 +0000 (18:11 +0200)]
Re-assign quantum.api module as last operation

Bug 1199443

This avoids reset of locals in quantum/api/__init__.py,
resulting in sys being None when assigning quantum.api.extensions
to neutron.api.extensions

Change-Id: I2da8b336679b643c92824399a05ca1b9980d1598

11 years agoEnsure PortSecurityDBTestCase loads correct plugin
Salvatore Orlando [Sun, 14 Jul 2013 22:23:46 +0000 (00:23 +0200)]
Ensure PortSecurityDBTestCase loads correct plugin

Bug 1201569

If a plugin is passed to the setUp method, that plugin
should be loaded instead od DB_PLUGIN_KLASS

Change-Id: I81df9f62e7399f5a76a07e504679ee8311e5855e

11 years agoFix random OverflowError exceptions in gate-neutron-python26 tests
armando-migliaccio [Mon, 15 Jul 2013 18:08:13 +0000 (11:08 -0700)]
Fix random OverflowError exceptions in gate-neutron-python26 tests

These errors seem to be linked to the NEC plugin and http connections
not being stubbed out correctly. This patch ensures do_request is
stubbed out prior to the tests execution; this should be enough
to prevent timeouts from occurring again. Stubbing out the call has
no effect on the coverage of the agent scheduler tests for the NEC
plugin.

Fixes bug #1201478

Change-Id: Iee3cb3cb3137cedcf97c707ea7fde9114b7264b6

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 15 Jul 2013 19:55:12 +0000 (19:55 +0000)]
Imported Translations from Transifex

Change-Id: I241d1c1217fcf32e2d02832db15a9c5ab5da4359

11 years agoMerge "Add support for the extra route extension in the NVP plugin."
Jenkins [Mon, 15 Jul 2013 17:54:08 +0000 (17:54 +0000)]
Merge "Add support for the extra route extension in the NVP plugin."

11 years agoUse the correct tunnel_type to notify agents
Yong Sheng Gong [Mon, 15 Jul 2013 06:04:21 +0000 (14:04 +0800)]
Use the correct tunnel_type to notify agents

Bug #1201274

Change-Id: I9de55d168ba03cb6a5273b4c2ce140cd190e38ee

11 years agoMerge "Prevent possible server list damage in BigSwitch plugin"
Jenkins [Mon, 15 Jul 2013 04:20:21 +0000 (04:20 +0000)]
Merge "Prevent possible server list damage in BigSwitch plugin"

11 years agoMerge "Modify the OVS agent to support multiple tunnel_types concurrently."
Jenkins [Mon, 15 Jul 2013 03:54:26 +0000 (03:54 +0000)]
Merge "Modify the OVS agent to support multiple tunnel_types concurrently."

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 14 Jul 2013 19:55:16 +0000 (19:55 +0000)]
Imported Translations from Transifex

Change-Id: I7b87dc99e2d271703e357495c303b7e95295e11b

11 years agoMerge "Import Oslo's common rootwrap to Neutron"
Jenkins [Sun, 14 Jul 2013 03:08:30 +0000 (03:08 +0000)]
Merge "Import Oslo's common rootwrap to Neutron"

11 years agoPrevent possible server list damage in BigSwitch plugin
Kevin Benton [Wed, 10 Jul 2013 23:28:12 +0000 (16:28 -0700)]
Prevent possible server list damage in BigSwitch plugin

The old failover logic for the BigSwitch plugin modified a
list of controllers as it tested them. If the code for one
thread unexpectedly raised an exception or died, the global
server list could lose a server permanently.
This patch addresses that by flagging servers as failed instead
so the global server list is never modified.

Fixes: bug #1200022
Change-Id: Id2dcb820ef9f62fd03e3215bff3345e56c78afe2

11 years agoMerge "Ensure a name of packet filter is stored in NEC plugin"
Jenkins [Sun, 14 Jul 2013 02:58:25 +0000 (02:58 +0000)]
Merge "Ensure a name of packet filter is stored in NEC plugin"

11 years agoMerge "Rename to Neutron in sample init.d script"
Jenkins [Sat, 13 Jul 2013 21:20:07 +0000 (21:20 +0000)]
Merge "Rename to Neutron in sample init.d script"

11 years agoRename to Neutron in sample init.d script
Dirk Mueller [Sat, 13 Jul 2013 09:08:29 +0000 (11:08 +0200)]
Rename to Neutron in sample init.d script

Related to LP Bug #1199794

Change-Id: I809a4d6c8e2ab047a1530f3fd6ef9aa60c0c638f

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 13 Jul 2013 19:55:16 +0000 (19:55 +0000)]
Imported Translations from Transifex

Change-Id: I32e4f200b66efe913a21000a3cb6b2abc1c568b2

11 years agoMerge "Fix TestDhcpAgentEventHandler test that fails in some Jenkins runs."
Jenkins [Sat, 13 Jul 2013 19:10:02 +0000 (19:10 +0000)]
Merge "Fix TestDhcpAgentEventHandler test that fails in some Jenkins runs."

11 years agoModify the OVS agent to support multiple tunnel_types concurrently.
Kyle Mestery [Fri, 14 Jun 2013 14:25:08 +0000 (14:25 +0000)]
Modify the OVS agent to support multiple tunnel_types concurrently.

This change modifies the "tunnel_type" configuration option to be a ListOpt
instead of a StrOpt. This is intended to allow the agent to work in an ML2
environment where multiple, disparate "tunnel_types" are supported at the
same time. For now, the agent will enforce a single "tunnel_type".

Fixes bug #1191089

Change-Id: Ic025e54a8a3e92fe1fe44ebf08d71c2210c7d82b

11 years agoMerge "Cisco plugin db code cleanup"
Jenkins [Sat, 13 Jul 2013 17:17:54 +0000 (17:17 +0000)]
Merge "Cisco plugin db code cleanup"

11 years agoMerge "Add option to ignore backend HTTP error in BigSwitch plugin"
Jenkins [Sat, 13 Jul 2013 17:17:45 +0000 (17:17 +0000)]
Merge "Add option to ignore backend HTTP error in BigSwitch plugin"

11 years agoCisco plugin db code cleanup
HenryGessau [Fri, 12 Jul 2013 17:49:03 +0000 (13:49 -0400)]
Cisco plugin db code cleanup

Remove redundant model classes.
Follow code style guidelines for imports.

Fixes bug 1200723

Change-Id: I2949065bb1d053805032e0a429f77e93dfc61a55

11 years agoAdd support for the extra route extension in the NVP plugin.
armando-migliaccio [Wed, 19 Jun 2013 01:24:03 +0000 (18:24 -0700)]
Add support for the extra route extension in the NVP plugin.

The underlying feature is available in NVP 3.2, which introduces a
new type of router. Therefore, create_lrouter needs to be made
version 'aware'.

This led to a number of fixes in the nvplib, especially around how
version is retrieved and how version-dependent methods are called.

Implements blueprint nvp-extra-route-extension

Change-Id: Ie4e2d93f70e1948a62563c8523aea61bb2194c84

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 12 Jul 2013 19:55:57 +0000 (19:55 +0000)]
Imported Translations from Transifex

Change-Id: I0aa0c983eb0867b6d306844f16db86df7e6d94f9

11 years agoFix TestDhcpAgentEventHandler test that fails in some Jenkins runs.
Eugene Nikanorov [Fri, 12 Jul 2013 19:02:30 +0000 (23:02 +0400)]
Fix TestDhcpAgentEventHandler test that fails in some Jenkins runs.

Add mocking of check_version method that have ran dnsmasq process to retrieve version

fixes bug 1200698

Change-Id: I6476d62bc4394bdf9701a2aa26a435f8bcb00d0d

11 years agoMerge "Improve DHCP agent performance"
Jenkins [Fri, 12 Jul 2013 14:13:57 +0000 (14:13 +0000)]
Merge "Improve DHCP agent performance"

11 years agoRefactor unit tests for NEC Plugin
Ryota MIBU [Fri, 5 Jul 2013 07:03:59 +0000 (16:03 +0900)]
Refactor unit tests for NEC Plugin

blueprint nec-plugin-test-coverage

This commit refactors the base class of unit tests for NEC Plugin to
make writing new tests easier.

Add fake OFC Manager and change unit tests which use OFC Manager mock
to using this fake.  With this fake, we don't need to set return_value
and side_effect to the mock instance of OFC Manager in each test case.
This fake keeps all resources on OFC, and returns existence of
resources properly.  This fake is attached to OFC Manager mock instance
by setting all side_effects.  We can also set it to raise an exception.

Make NEC Plugin configurable in each test case.  Now we can configure
NEC Plugin by setting string in class value "_nec_ini" which will be
written into a temporal file and loaded by NEC plugin.

Move setup for callbacks into NecPluginV2TestCase() so that other unit
tests can use callbacks.

Change-Id: I3a52423bb5813547345677dc49abfea6563dd6cd

11 years agoMerge "Fix issue with pip installing oslo.config-1.2.0"
Jenkins [Fri, 12 Jul 2013 05:31:28 +0000 (05:31 +0000)]
Merge "Fix issue with pip installing oslo.config-1.2.0"

11 years agoMerge "Quiet down a large log file heavy hitter."
Jenkins [Fri, 12 Jul 2013 04:40:37 +0000 (04:40 +0000)]
Merge "Quiet down a large log file heavy hitter."

11 years agoMerge "Be compatible with oslo.config 1.2.0a3+"
Jenkins [Thu, 11 Jul 2013 23:30:50 +0000 (23:30 +0000)]
Merge "Be compatible with oslo.config 1.2.0a3+"

11 years agoAdd option to ignore backend HTTP error in BigSwitch plugin
Kevin Benton [Wed, 10 Jul 2013 23:49:31 +0000 (16:49 -0700)]
Add option to ignore backend HTTP error in BigSwitch plugin

This patch fixes the way the BigSwitch plugin ignores 404
errors from the backend controller by allowing HTTP codes
to be selectively ignored on REST calls. This prevents
unnecessary exception handling and failover logic in calls
where 404 codes are acceptable.

Change-Id: Ia1118c039af3b45d96fb3f8a5fb5d3febdf50f4f
Fixes: bug #1200023
11 years agoMerge "Validate dscp value less that 64"
Jenkins [Thu, 11 Jul 2013 21:08:09 +0000 (21:08 +0000)]
Merge "Validate dscp value less that 64"

11 years agoFix issue with pip installing oslo.config-1.2.0
Mark McLoughlin [Tue, 2 Jul 2013 11:25:58 +0000 (12:25 +0100)]
Fix issue with pip installing oslo.config-1.2.0

Fixes bug #1194807

Firstly, we update the oslo.config dep to 1.2.0a3 because of the issue
with namespace packages (bug #1194742).

But the main issue here is that if you currently do:

  $> pip install -r quantum/requirements.txt

then you end up with the oslo.config 1.1.1 code installed. This is
because oslo.config>=1.1.0 gets pulled in as a transitive dep and pip
gets confused. You can reproduce with e.g.

  $> pip install \
       http://.../oslo.config-1.2.0a3.tar.gz#egg=oslo.config-1.2.0a3 \
       python-keystoneclient
  $> pip freeze | grep oslo.config
  oslo.config-1.2.0a3
  $> python -c 'from oslo.config.cfg import DeprecatedOpt'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
  ImportError: cannot import name DeprecatedOpt

This is because of a bug with pip where it sees oslo.config-1.2.0a3 and
oslo.config as two unrelated things. It should strip the version part of
the egg= fragment before using it as a package name, but it doesn't.

However, we can simply use the -f/--find-links pip option in our
requirements.txt to add the tarball URL to the list of URLs considered
and also add the oslo.config>=1.2.0a3 dependency:

  $> pip install \
       -f http://.../oslo.config-1.2.0a3.tar.gz#egg=oslo.config-1.2.0a3 \
       'oslo.config>=1.2.0a3' \
       python-keystoneclient
  $> pip freeze | grep oslo.config
  oslo.config-1.2.0a3
  $> python -c 'from oslo.config.cfg import DeprecatedOpt'

This is actually exactly the semantics we want and we go to great
lengths in pbr to get these semantics while using a single tarball URL.
The only downside to this --find-links strategy is that we gain an extra
line in our requirements.txt ... but it does work around the pip bug.

Change-Id: I6f3eb5fd2c75615d9a1cae172aed859b36b27d4c

11 years agoQuiet down a large log file heavy hitter.
Carl Baldwin [Thu, 11 Jul 2013 18:17:40 +0000 (18:17 +0000)]
Quiet down a large log file heavy hitter.

This line of code serialized the python structure for the device and throws it
at the log file.  The string is about 90K characters, isn't very useful and we
found that it takes a very large amount of space in the log file causing them
to grow very quickly and fill our log disk.  This change extracts the device
name (e.g.  "tapcdc07af9-8a") and uses that in the log message.

Change-Id: I240eb811445752407583f0fb322ce061acb293b9
Fixes: Bug #1200321
11 years agoMerge "Initial Modular L2 Mechanism Driver implementation."
Jenkins [Thu, 11 Jul 2013 12:35:27 +0000 (12:35 +0000)]
Merge "Initial Modular L2 Mechanism Driver implementation."

11 years agoBe compatible with oslo.config 1.2.0a3+
Dirk Mueller [Mon, 24 Jun 2013 18:56:32 +0000 (20:56 +0200)]
Be compatible with oslo.config 1.2.0a3+

The private API of oslo.config changed, and the Cisco
options parsing code was using it.
Use an explicit MultiConfigParser instance for parsing
the config files.

Fixes LP Bug #1196084

Change-Id: I7ffcac3c295491fe9ba8abc7e98f33157a48c51b

11 years agoEnsure a name of packet filter is stored in NEC plugin
Ryota MIBU [Fri, 5 Jul 2013 14:39:19 +0000 (23:39 +0900)]
Ensure a name of packet filter is stored in NEC plugin

This patch fixes NEC Plugin to handle a name of packet filter and added
"name" column into PacketFilter table.

Fixes: bug #1198223
Change-Id: Ic191b2793653b41496922f2fa4be4f410d71dc64

11 years agoInitial Modular L2 Mechanism Driver implementation.
Andre Pech [Sun, 7 Jul 2013 20:00:54 +0000 (13:00 -0700)]
Initial Modular L2 Mechanism Driver implementation.

Define the Mechanism Driver interface for create/update/delete
operations on networks and ports. For each of these event, the
Mechanism Driver provides one method that is called within the
database transaction of the ml2 plugin method, and one that is called
after the transaction is completed.

Support for mechanism drivers is still a work-in-progress, and the
interface is subject to change in future versions before the release
of Havana. However this initial version should be sufficient to enable
others to start defining their own mechanism drivers.

Change-Id: Ife30215589792ee27df9897d3b2bc04392638266
Implements: blueprint ml2-mechanism-drivers
Fixes: bug #1199977
Fixes: bug #1199978
DocImpact

11 years agoValidate dscp value less that 64
Aaron Rosen [Wed, 10 Jul 2013 23:55:29 +0000 (16:55 -0700)]
Validate dscp value less that 64

Previously neutron would raise a 500 error if the dscp value was greater
than 63. This patch adds validation to neutron so that a clear error
message is returned if the value is greater than 63.

Fixes bug 1200026

Change-Id: I41a93661952669d112463608be907eede1901490

11 years agoMerge "Add cover/ to .gitignore"
Jenkins [Wed, 10 Jul 2013 15:15:40 +0000 (15:15 +0000)]
Merge "Add cover/ to .gitignore"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 10 Jul 2013 11:05:21 +0000 (11:05 +0000)]
Merge "Imported Translations from Transifex"

11 years agoAdd cover/ to .gitignore
Ryota MIBU [Wed, 10 Jul 2013 04:36:09 +0000 (13:36 +0900)]
Add cover/ to .gitignore

When we run "tox -e cover" to generate coverage report, testr will make
"cover" directory which contains the same html in "covhtml" made by
"./run_test.sh --coverage".  So, make git ignore this directory.

Change-Id: I829667a1ceb55418a5695545ad543a53f63821ba

11 years agoImprove DHCP agent performance
Aaron Rosen [Sun, 12 May 2013 21:53:18 +0000 (14:53 -0700)]
Improve DHCP agent performance

Previously when starting the dhcp agent the sync_state() process would
be extremely expensive as it would query quantum server for each network.
In order to improve performance a get_active_networks_info() was added
so this information could be retrieved in one query rather than doing a
query for each active network.

The second part of this patch optimizes the logic to avoid calling
get_dhcp_port(). Previously, this method was called once for each network
which makes a call to get_subnets() and get_ports() unnecessarily as
the dhcp agent can determine itself if it needs to update a port or create a
port for dhcp.

This patch also threads the inital sync process and maintains backwards
compatibility with the previous rpc api.

There was also a trivial change to the nvp_plugin where filters are assumed to
be a dict.

implements blueprint improve-dhcp-agent-performance

Change-Id: I3b631057f595250dad76516faa9b421789f60953

11 years agoAllow gateway address to be unset for an existing subnet
armando-migliaccio [Wed, 10 Jul 2013 02:08:49 +0000 (19:08 -0700)]
Allow gateway address to be unset for an existing subnet

Validation of the gateway IP address was taken place even
if the gateway IP was set to None; this was causing an
AddrFormatError exception to be raised by method
'_validate_gw_out_of_pools'. With this change we skip
the validation in case the gateway is set to None.

Fixes bug #1178273

Change-Id: Ib84378a4fd2cefdbbcacce695abbfaf82c647dd3

11 years agoMerge "Ensure that the neutron server is properly monkey patched"
Jenkins [Tue, 9 Jul 2013 21:03:07 +0000 (21:03 +0000)]
Merge "Ensure that the neutron server is properly monkey patched"

11 years agoMerge "git remove old non-working packaging files"
Jenkins [Tue, 9 Jul 2013 20:24:47 +0000 (20:24 +0000)]
Merge "git remove old non-working packaging files"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 9 Jul 2013 19:55:55 +0000 (19:55 +0000)]
Imported Translations from Transifex

Change-Id: I6f29f21c031370a64c8ae75652936762170406f9

11 years agoMerge "Allow router route update in XML."
Jenkins [Tue, 9 Jul 2013 19:30:43 +0000 (19:30 +0000)]
Merge "Allow router route update in XML."

11 years agoEnsure that the neutron server is properly monkey patched
Jason Dillaman [Tue, 9 Jul 2013 14:22:05 +0000 (10:22 -0400)]
Ensure that the neutron server is properly monkey patched

The legacy 'quantum-server' script will apply the eventlet
monkey patch whereas the new 'neutron-server' entry point
does not.  This prevents the server from properly handling
the REST interface.

Fixes bug #1199383

Change-Id: I498d2b02e6018425fc4538eff6803df8971f8e82

11 years agoFix for Cisco plugin sample config.
Arvind Somya [Mon, 8 Jul 2013 21:38:02 +0000 (17:38 -0400)]
Fix for Cisco plugin sample config.

This commit fixes the Cisco plugin's sample config included with Neutron to change all instances
of quantum within the config to neutron.

Change-Id: I80a8b69816ad964ee9761a214aaa5e81e596d501
Fixes: Bug #1199160
11 years agoMerge "validate and recommend the cidr"
Jenkins [Tue, 9 Jul 2013 13:01:38 +0000 (13:01 +0000)]
Merge "validate and recommend the cidr"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 9 Jul 2013 07:30:04 +0000 (07:30 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Divide dhcp and l3 agent scheduling into separate extensions"
Jenkins [Tue, 9 Jul 2013 07:26:52 +0000 (07:26 +0000)]
Merge "Divide dhcp and l3 agent scheduling into separate extensions"

11 years agoAllow router route update in XML.
Bob Melander [Fri, 5 Jul 2013 13:53:49 +0000 (15:53 +0200)]
Allow router route update in XML.

Fixes: bug 1198188
Router updates of routes in XML format fails.
This patch fixes that problem. It also executes
unit tests for XML-based requests to update
router routes.

Change-Id: Ie65e889a29a3ca9242593d51587de60c8d97e055

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 8 Jul 2013 19:56:06 +0000 (19:56 +0000)]
Imported Translations from Transifex

Change-Id: Ifee47c987534e0649b6c6b44f2f5f7228291fed3

11 years agoadd notification_driver to compatibilty clean-up
Mark McClain [Mon, 8 Jul 2013 17:01:57 +0000 (13:01 -0400)]
add notification_driver to compatibilty clean-up

fixes bug: 1198917

Change-Id: Iab9bce87aee4d70204702533b1ff23e80ccdb53e

11 years agoPreserve packet:byte counts in iptables_manager.
Brian Haley [Thu, 14 Mar 2013 14:35:49 +0000 (10:35 -0400)]
Preserve packet:byte counts in iptables_manager.

Ported the nova iptables manager code to neutron, so that we
use iptables-save/restore with the -c flag to save/restore
the chains and rules with their packet:byte counts.  All other
changes were ported as well to keep the code as similar as
possible between the two, although they will be different as
I had to fix other bugs found during testing.

Updated tests accordingly to account for new calls and
input/output changes in formatting.

Changed iptables_firewall code to add iptables rules in the same
order that iptables-save will print them: source/dest, protocol,
sport, dport, target; else iptables_manager won't be able
to find them to preserve their [packet:byte] counts.
Tweaked other rules accordingly as necessary.

Fixed a bug introduced in an earlier version of this patch where
_modify_rules() sometimes wouldn't match an existing rule correctly
if not top=true.

Fixes bug 1125393

Change-Id: I858c552d8a7ae24f52f8e8daa05ac37026705773

11 years agoImport Oslo's common rootwrap to Neutron
Thierry Carrez [Thu, 27 Jun 2013 13:19:05 +0000 (15:19 +0200)]
Import Oslo's common rootwrap to Neutron

Use the common oslo-incubator rootwrap rather than maintain a
specific fork within Neutron.

- Migrated DnsmasqFilter use in dhcp.filters to the new EnvFilter
- Changed environment passing in ip_lib's netns.execute so that
  it can be properly matched using IpNetNsExecFilter + EnvFilter.
  It now calls "ip netns exec ns env A=B C=D command" instead of
  "A=B C=D ip netns exec ns command". Adjusted tests accordingly.

All the other changes are coming directly from the Oslo "rootwrap"
module sync.

Notes:
- Neutron locates its rootwrap.conf in etc/ rather than in etc/neutron
- Neutron maintains a specific bin/quantum-rootwrap-xen-dom0 which
  requires additional config in rootwrap.conf

Both behaviors were preserved in this commit, but this may need to be
addressed in the future to simplify future oslo-rootwrap updates.

Implements bp: quantum-common-rootwrap

Change-Id: I02879942a9d1169a71aa4d684c1b9ec109a6de32

11 years agoMerge "fix some missing change from quantum to neutron"
Jenkins [Mon, 8 Jul 2013 12:54:16 +0000 (12:54 +0000)]
Merge "fix some missing change from quantum to neutron"

11 years agoDivide dhcp and l3 agent scheduling into separate extensions
Oleg Bondarev [Tue, 2 Jul 2013 08:08:52 +0000 (12:08 +0400)]
Divide dhcp and l3 agent scheduling into separate extensions

Rationale behind this is that some plugins may support only dhcp or l3 agent scheduling.
The patch is nothing more than refactoring. Functionality was not changed.

Fixes bug 1196806

Change-Id: Ie174059adfaed3028bbf65de7bde3497dd9bc664

11 years agofix some missing change from quantum to neutron
Yong Sheng Gong [Sun, 7 Jul 2013 12:12:17 +0000 (20:12 +0800)]
fix some missing change from quantum to neutron

Change-Id: Iadad11f364e8200f8e4a92b191e834bdf0220179
bp: remove-use-of-quantum

11 years agoclean-up missing rename
Mark McClain [Mon, 8 Jul 2013 02:23:15 +0000 (22:23 -0400)]
clean-up missing rename

implements blueprint: remove-use-of-quantum

Change-Id: Ic21d8c8f6c68f9f31f76ed0bd50b86312ec6f6b4

11 years agogit remove old non-working packaging files
Mark McClain [Mon, 8 Jul 2013 02:15:30 +0000 (22:15 -0400)]
git remove old non-working packaging files

implements bug: 1198774

Change-Id: Iebd3eb22dd7e3b93131c298e01ac4bcf1fea004e

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 7 Jul 2013 19:55:55 +0000 (19:55 +0000)]
Imported Translations from Transifex

Change-Id: I2b07b67cc0afbc7aef69e26d64874775e0faf612

11 years agovalidate and recommend the cidr
Yong Sheng Gong [Sun, 7 Jul 2013 13:20:36 +0000 (21:20 +0800)]
validate and recommend the cidr

Bug #1195974

It is hard to validate the CIDR typed in by user,
the simple way is to recognize only one and recommend it
if user's input is not the one.

Change-Id: Ic8defe30a43a5ae69c3f737094f866b36bb68f59

11 years agoComplete rename to Neutron
Dirk Mueller [Sun, 7 Jul 2013 11:44:48 +0000 (13:44 +0200)]
Complete rename to Neutron

implements blueprint: remove-use-of-quantum

Change-Id: Ide08774b00ad74e4c2b88baa9e48ac65fbe19360

11 years agoMerge "Sync install_venv_common from oslo"
Jenkins [Sun, 7 Jul 2013 04:11:31 +0000 (04:11 +0000)]
Merge "Sync install_venv_common from oslo"

11 years agoRename Quantum to Neutron
Mark McClain [Wed, 3 Jul 2013 23:39:46 +0000 (19:39 -0400)]
Rename Quantum to Neutron

This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.

implements blueprint: remove-use-of-quantum

Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19

11 years agoRename quantum to neutron in .gitreview.
Monty Taylor [Sat, 6 Jul 2013 16:24:50 +0000 (12:24 -0400)]
Rename quantum to neutron in .gitreview.

Change-Id: Icd72d32898fe57f12eed19968cf19018f8fc89ad

11 years agoSync install_venv_common from oslo
Monty Taylor [Sat, 6 Jul 2013 02:18:02 +0000 (22:18 -0400)]
Sync install_venv_common from oslo

Change-Id: I4c14c9907d6195ab4f50ab9351ab14e4d93c4ec2

11 years agoMerge "Fix unit test for ryu-agent"
Jenkins [Thu, 4 Jul 2013 12:53:22 +0000 (12:53 +0000)]
Merge "Fix unit test for ryu-agent"

11 years agoMerge "Allow non-root ip in subnet CIDR"
Jenkins [Thu, 4 Jul 2013 12:29:41 +0000 (12:29 +0000)]
Merge "Allow non-root ip in subnet CIDR"

11 years agoFix unit test for ryu-agent
Yoshihiro Kaneko [Thu, 4 Jul 2013 07:47:38 +0000 (16:47 +0900)]
Fix unit test for ryu-agent

Fixes bug #1197670

This patch fixes programming error in the unit test for ryu-agent.
- Change the way of patch to cfg of ryu-agent
- Fix typo
 s/assert_calls/assert_has_calls/

Change-Id: I9a5a17f314eb9c786338463e077cadc32d846dba

11 years agoMerge "Remove unused database table from Cisco plugin"
Jenkins [Thu, 4 Jul 2013 07:53:50 +0000 (07:53 +0000)]
Merge "Remove unused database table from Cisco plugin"

11 years agoRemove unused database table from Cisco plugin
HenryGessau [Wed, 3 Jul 2013 21:05:35 +0000 (17:05 -0400)]
Remove unused database table from Cisco plugin

Fixes: bug #1197053
Change-Id: If0a9198046498cb559353dc9f1b3820b5e01cb7c

11 years agoMerge "Do not mask NotImplementedError exceptions"
Jenkins [Wed, 3 Jul 2013 14:56:53 +0000 (14:56 +0000)]
Merge "Do not mask NotImplementedError exceptions"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 3 Jul 2013 12:11:52 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: Ic473f0a8aae5786fa5fdf21eccc9653422d04177

11 years agoDo not mask NotImplementedError exceptions
armando-migliaccio [Wed, 3 Jul 2013 00:52:39 +0000 (17:52 -0700)]
Do not mask NotImplementedError exceptions

With this patch we  avoid masking NotImplementedError(s).
Previously, a catch-all clause returned 500, and it makes
sense to distinguish between genuine 500 errors (i.e. a bug),
versus 501 ones.

This opens up the issue of keeping the server behavior
consistent from one release to another, but one might argue
that this was bad design decision in the first place.

Fixes bug 1197200

Change-Id: I2d81cba5ee9e5fbe8e865378381790b5b467d255

11 years agoMerge "Jointly load ExternalNetwork with Network"
Jenkins [Tue, 2 Jul 2013 16:05:47 +0000 (16:05 +0000)]
Merge "Jointly load ExternalNetwork with Network"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 2 Jul 2013 12:11:56 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: Ibc186825cb89a78fcfcb7124c203f1ec63fcf63c

11 years agoAllow non-root ip in subnet CIDR
Jay S. Bryant [Sun, 9 Jun 2013 13:43:55 +0000 (08:43 -0500)]
Allow non-root ip in subnet CIDR

If a subnet is created using an IP that isn't a root IP
(doesn't end with .0) the code that handles IP checking
for fixed IPs fails.  This fix changes the check for a
valid IP to use the net.network IP address to
avoid problems in subnets created with the non-root CIDR.

(fixes bug 1188845)

Change-Id: I89df64261d0f2741668576e45dc8f026857f20b0

11 years agoMerge "Move NVP DB extensions under dbexts module."
Jenkins [Mon, 1 Jul 2013 19:38:06 +0000 (19:38 +0000)]
Merge "Move NVP DB extensions under dbexts module."

11 years agoJointly load ExternalNetwork with Network
Salvatore Orlando [Tue, 7 May 2013 22:07:17 +0000 (00:07 +0200)]
Jointly load ExternalNetwork with Network

Bug 1177572

This patch leverages the same approach as bug 1174111 for avoiding
loading ExternalNetwork element from db for each network element.
make_network_dict, _extend_network_dict_l3 are refactored accordingly.

Also, this patch sligthly alters the logic of process_l3_network_create
and process_l3_network_update as these methods assumed
_extend_network_dict_l3 was always executed before retuerning.

Finally, calls to get_network and get_networks in plugins which only
extended the response with l3 attributes have been completely removed.

Change-Id: I3b4c28ec0c78f731a534c2b66150d529fd797e72

11 years agoMove NVP DB extensions under dbexts module.
armando-migliaccio [Wed, 12 Jun 2013 22:24:21 +0000 (15:24 -0700)]
Move NVP DB extensions under dbexts module.

Small clean-up to the plugin directory. This is also
more in line with how API extensions have their own
module.

Change-Id: Idae52e30128f4ed9f8f7f5164991952bc3189f53

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 1 Jul 2013 12:11:59 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: I2a21a217a7cd00067ca4aed2ae385b387e5a9731

11 years agoMerge "Add support for moving ip/addresss/default gateway"
Jenkins [Mon, 1 Jul 2013 11:31:26 +0000 (11:31 +0000)]
Merge "Add support for moving ip/addresss/default gateway"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 30 Jun 2013 12:11:55 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: Ia1a1fd6e7536281e7b238b419c02991a1e4dc523

11 years agoMerge "Improve Nicira plugin test coverage"
Jenkins [Sat, 29 Jun 2013 18:41:01 +0000 (18:41 +0000)]
Merge "Improve Nicira plugin test coverage"

11 years agoMerge "Fix logic for handling SNAT rules"
Jenkins [Sat, 29 Jun 2013 16:57:01 +0000 (16:57 +0000)]
Merge "Fix logic for handling SNAT rules"

11 years agoMerge "Remove duplicate _check_provider_update from plugins"
Jenkins [Sat, 29 Jun 2013 16:19:31 +0000 (16:19 +0000)]
Merge "Remove duplicate _check_provider_update from plugins"

11 years agoMerge "Update code to properly use dict returned from get_gateway."
Jenkins [Sat, 29 Jun 2013 16:18:35 +0000 (16:18 +0000)]
Merge "Update code to properly use dict returned from get_gateway."

11 years agoMerge "Nicira plugin: Do not expect a minimum number of SNAT rules"
Jenkins [Sat, 29 Jun 2013 16:16:50 +0000 (16:16 +0000)]
Merge "Nicira plugin: Do not expect a minimum number of SNAT rules"

11 years agoImprove Nicira plugin test coverage
Salvatore Orlando [Sat, 18 May 2013 18:19:50 +0000 (20:19 +0200)]
Improve Nicira plugin test coverage

Blueprint nvp-test-coverage

This patch improves the Nicira plugin test coverage by:
- adding a suite of test cases for nvplib
- removing unused exception handling code
- removing 'vestigial' code in nvp plugin modules

This patches also fixes a few minor glitches with the plugin
and the fake api client.

Change-Id: Ia319f556a815e5061b867a97d834123786218fec