]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoAdded logic to configure the plugin type through debconf.
Thomas Goirand [Wed, 31 Jul 2013 15:51:31 +0000 (23:51 +0800)]
Added logic to configure the plugin type through debconf.

11 years agoFixes keystone_authtoken read in neutron-common config script
Thomas Goirand [Wed, 31 Jul 2013 15:09:29 +0000 (23:09 +0800)]
Fixes keystone_authtoken read in neutron-common config script

11 years agoKills all the plugin packages: that was insane!
Thomas Goirand [Wed, 31 Jul 2013 15:07:05 +0000 (23:07 +0800)]
Kills all the plugin packages: that was insane!

11 years agoMove plugins config files to neutron-common
Thomas Goirand [Wed, 31 Jul 2013 14:14:35 +0000 (22:14 +0800)]
Move plugins config files to neutron-common

11 years agoFix setup.cfg
Thomas Goirand [Wed, 31 Jul 2013 09:36:43 +0000 (17:36 +0800)]
Fix setup.cfg

11 years agoAdds the setup.cfg as it is from release tarballs.
Thomas Goirand [Tue, 30 Jul 2013 13:56:15 +0000 (21:56 +0800)]
Adds the setup.cfg as it is from release tarballs.

11 years agoRemoves setup.cfg patch.
Thomas Goirand [Tue, 30 Jul 2013 13:47:29 +0000 (21:47 +0800)]
Removes setup.cfg patch.

11 years agoNow installing everything as expected.
Thomas Goirand [Tue, 30 Jul 2013 10:55:54 +0000 (18:55 +0800)]
Now installing everything as expected.

11 years agoFixed python installation.
Thomas Goirand [Tue, 30 Jul 2013 08:10:02 +0000 (16:10 +0800)]
Fixed python installation.

11 years agoMore Quantum -> Neutron renames.
Thomas Goirand [Tue, 30 Jul 2013 06:49:55 +0000 (14:49 +0800)]
More Quantum -> Neutron renames.

11 years agoAdded subunit to build-depends.
Thomas Goirand [Sun, 28 Jul 2013 16:50:35 +0000 (00:50 +0800)]
Added subunit to build-depends.

11 years agopython-neutronclient doesn't have EPOC
Thomas Goirand [Sun, 28 Jul 2013 16:43:46 +0000 (00:43 +0800)]
python-neutronclient doesn't have EPOC

11 years agoAdded initial Debian folder.
Thomas Goirand [Sun, 28 Jul 2013 02:53:15 +0000 (10:53 +0800)]
Added initial Debian folder.

11 years agoMerge "modernize quantum config in proper place"
Jenkins [Wed, 17 Jul 2013 09:06:28 +0000 (09:06 +0000)]
Merge "modernize quantum config in proper place"

11 years agoMerge "Improve packet-filter test coverage in NEC Plugin"
Jenkins [Wed, 17 Jul 2013 09:06:19 +0000 (09:06 +0000)]
Merge "Improve packet-filter test coverage in NEC Plugin"

11 years agoMerge "Fixes argument mismatch in l3-agent"
Jenkins [Wed, 17 Jul 2013 09:06:11 +0000 (09:06 +0000)]
Merge "Fixes argument mismatch in l3-agent"

11 years agoFixes argument mismatch in l3-agent
Nachi Ueno [Wed, 17 Jul 2013 04:54:11 +0000 (21:54 -0700)]
Fixes argument mismatch in l3-agent

Fixes bug 1202055
Also fixes deletion problem in snat rule

Change-Id: I007a81003e343300836ad226c2dc64b95c5a3247

11 years agoMerge "Fix argument name mismatch in L3-RPC sync_routers"
Jenkins [Wed, 17 Jul 2013 05:50:02 +0000 (05:50 +0000)]
Merge "Fix argument name mismatch in L3-RPC sync_routers"

11 years agoMerge "Add VXLAN tunneling support for the ML2 plugin"
Jenkins [Wed, 17 Jul 2013 03:32:13 +0000 (03:32 +0000)]
Merge "Add VXLAN tunneling support for the ML2 plugin"

11 years agoMerge "Add gre tunneling support for the ML2 plugin"
Jenkins [Wed, 17 Jul 2013 03:31:59 +0000 (03:31 +0000)]
Merge "Add gre tunneling support for the ML2 plugin"

11 years agoFix argument name mismatch in L3-RPC sync_routers
Akihiro MOTOKI [Tue, 16 Jul 2013 08:05:19 +0000 (17:05 +0900)]
Fix argument name mismatch in L3-RPC sync_routers

In sync_routers L3-RPC method l3-agent sends router_ids but the
server side expected router_id. This commit fixes the server side
to accept router_ids, and drops "fullsync" arg from the agent side
(fullsync is not used anywhere and it does not affect RPC signature).
This change allows l3-agent to sync only the specified routers
instead of all routers.

Fixes bug #1201553

As a result of the above change, auto_schedule_routers() and
list_active_sync_routers_on_active_l3_agent() in L3 scheduler
needs to handle a list of router IDs. This commit changes L3 scheduler
to accept a list of router IDs in the above two methods.

Also fixes the argument order of fullsync and router_ids in get_routers
in L3PluginApi. L3-agent main code expects router_ids as the second arg.

Change-Id: I22e8d11b9676cbcfe9e72449031bb63071be8314

11 years agoMerge "Nicira NVP plugin support for l3_ext_gw_mode extension"
Jenkins [Wed, 17 Jul 2013 01:50:55 +0000 (01:50 +0000)]
Merge "Nicira NVP plugin support for l3_ext_gw_mode extension"

11 years agoImprove packet-filter test coverage in NEC Plugin
Ryota MIBU [Tue, 9 Jul 2013 08:18:10 +0000 (17:18 +0900)]
Improve packet-filter test coverage in NEC Plugin

blueprint nec-plugin-test-coverage

This commit adds unit tests for packet-filter in NEC Plugin.

This commit refactors packet-filter in NEC Plugin.
- Put packet-filter classes and methods into nec/packet_filter.py (a) and
  nec/db/packetfilter.py (b), NEC Plugin specific codes are in (a)
- Change stateless methods to class methods in extenstions/packetfilter.py
- Add 'convert_to' option to the attribute map of packet-filter to convert
  some string parameter to int at the api layer

Also, this commit includes the following changes in packet-filter.
- Fix attribute map of packet-filter; set in_port to allow_put=False
- Add new methods to update attribute map properly
- Make packet-filters ignore status of associated resource (network)

Change-Id: I7c0b76afb603f1f078b28610181b16ce66225d37

11 years agoMerge "Limit min<=max port check to TCP/UDP in secgroup rule"
Jenkins [Tue, 16 Jul 2013 22:58:31 +0000 (22:58 +0000)]
Merge "Limit min<=max port check to TCP/UDP in secgroup rule"

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

Change-Id: I4fb77ed07b85b2f01ebb48b57adb10dfbadb3167

11 years agoMerge "Enable logging before using it"
Jenkins [Tue, 16 Jul 2013 19:03:51 +0000 (19:03 +0000)]
Merge "Enable logging before using it"

11 years agoMerge "xenapi - rename quantum to neutron"
Jenkins [Tue, 16 Jul 2013 18:40:35 +0000 (18:40 +0000)]
Merge "xenapi - rename quantum to neutron"

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 agomodernize quantum config in proper place
Yong Sheng Gong [Sat, 13 Jul 2013 08:11:08 +0000 (16:11 +0800)]
modernize quantum config in proper place

Bug #1200558

At the beginning, we have not registered some configuration
items. To modernize these items, we must do it after we register
them.

Change-Id: I90d2cdbe97daa2ec0a8c8b6c9686b6f76c4de9e4

11 years agoAdd gre tunneling support for the ML2 plugin
mathieu-rohon [Tue, 16 Jul 2013 11:24:25 +0000 (13:24 +0200)]
Add gre tunneling support for the ML2 plugin

This patch add the type_driver GRE to enable the creation of GRE
tunnels with the OVS agent.
No Endpoints ID are managed. Only Endpoint IP are stored in DB,
and this IP is proposed as an endpoint ID for the OVS agent.
It also fixes the bug 1201471.

Implements: blueprint ml2-gre
Change-Id: I1a33a4bd3ebc4c97eecf17a59ce16b8c2066ec66

11 years agoAdd VXLAN tunneling support for the ML2 plugin
Kyle Mestery [Wed, 26 Jun 2013 07:13:32 +0000 (07:13 +0000)]
Add VXLAN tunneling support for the ML2 plugin

Add an ML2 Type Driver for VXLAN networks to allow the creation
of VXLAN networks with the OVS agent.

Change-Id: I7fcc384cc44d5adc752510847d8ba5f46bbb79fb
Implements: blueprint ml2-vxlan

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 agoxenapi - rename quantum to neutron
Mate Lakat [Mon, 8 Jul 2013 10:11:16 +0000 (11:11 +0100)]
xenapi - rename quantum to neutron

Some changes were missing from the previous rename patch, so it broke
XenServer support. This patch contains the missing adjustments.

related to blueprint remove-use-of-quantum

Change-Id: I1ee5cc38d555bd5c26edf00a456ec71919604d79

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 agoNicira NVP plugin support for l3_ext_gw_mode extension
Salvatore [Thu, 4 Apr 2013 10:35:50 +0000 (12:35 +0200)]
Nicira NVP plugin support for l3_ext_gw_mode extension

Bug 1121129

This patch adds support the 'configurable external gateway' extension
in the NVP plugin.

Change-Id: I531ebe0053b1b9e21d6f0685776acebe3173b170

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 agoEnable logging before using it
Yong Sheng Gong [Fri, 12 Jul 2013 09:18:42 +0000 (17:18 +0800)]
Enable logging before using it

Bug #1200530

Change-Id: I086353c93fae0f6ec74d16a485c215c1b3815ee6

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 agoLimit min<=max port check to TCP/UDP in secgroup rule
Akihiro MOTOKI [Thu, 4 Jul 2013 16:27:18 +0000 (01:27 +0900)]
Limit min<=max port check to TCP/UDP in secgroup rule

icmp_type and icmp_code are mapped to port_min_range and port_max_range
respectively. For ICMP there is no constraint between type and code.
Thus port range min<=max check should be enforced only for TCP and UDP.

Also makes sure that ICMP type/code are 0 to 255 (both inclusive).
Previously a value with 0 to 65535 were accepted for ICMP type/code.

Fixes bug 1197760
Fixes bug 1197769

Change-Id: I70aaf6e02fee461fa97dc254db906d9efa173669

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"