]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 "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 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 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 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

11 years agoFix case with no host_id in BigSwitch plugin
Kevin Benton [Fri, 28 Jun 2013 21:40:11 +0000 (14:40 -0700)]
Fix case with no host_id in BigSwitch plugin

This correctly checks for the case where nova does not
provide the host_id in port creation/updates.

Fixes: bug #1195903
Change-Id: Ic0d714a3977810c6b1144c1e25488f75cc95d0f0

11 years agoMerge "faster quantum-openvswitch-agent periodic reports"
Jenkins [Sat, 29 Jun 2013 06:08:01 +0000 (06:08 +0000)]
Merge "faster quantum-openvswitch-agent periodic reports"

11 years agoMerge "dom0 rootwrap - case insensitive xenapi section"
Jenkins [Sat, 29 Jun 2013 06:06:52 +0000 (06:06 +0000)]
Merge "dom0 rootwrap - case insensitive xenapi section"

11 years agoMerge "Support a timeout argument when instantiating a bigswitch plugin"
Jenkins [Sat, 29 Jun 2013 06:06:44 +0000 (06:06 +0000)]
Merge "Support a timeout argument when instantiating a bigswitch plugin"

11 years agoRemove duplicate _check_provider_update from plugins
Aaron Rosen [Wed, 19 Jun 2013 20:46:06 +0000 (13:46 -0700)]
Remove duplicate _check_provider_update from plugins

This patch removes the duplicated method _check_provider_update
and adds a check for it in the NVP plugin that was missing so that an error
is raised if someone tries to update a provider network.

Fixes bug: 1192702

Change-Id: I84e6767f351122f9e5af0cd4ef24d8eaaeb4ccd5

11 years agoUpdate code to properly use dict returned from get_gateway.
Carl Baldwin [Fri, 28 Jun 2013 03:07:00 +0000 (03:07 +0000)]
Update code to properly use dict returned from get_gateway.

Calling get_gateway was a late addition to my code to add a default
route in the DHCP namespace.  The code did not properly handle the
dict returned from that method.  This changes it to properly extract
the 'gateway' attribute from the dict.

Change-Id: I9823a31feee7ab333c277fc6e78f366408393155
Fixes: Bug #1195543
11 years agoMerge "Deprecate enable_tunneling in the OVS agent"
Jenkins [Sat, 29 Jun 2013 02:29:09 +0000 (02:29 +0000)]
Merge "Deprecate enable_tunneling in the OVS agent"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 28 Jun 2013 23:36:38 +0000 (23:36 +0000)]
Merge "Imported Translations from Transifex"

11 years agoSupport a timeout argument when instantiating a bigswitch plugin
Kanzhe Jiang [Fri, 28 Jun 2013 21:23:46 +0000 (14:23 -0700)]
Support a timeout argument when instantiating a bigswitch plugin

The timeout argument overwrites the timeout value set in the config file.
The change permits any standalone script to interact with the bigswitch controller
through the quantum plugin with customized timeout value without changing the plugin
behavior.

Fixes: bug #1195923
Change-Id: I17954e70d661e7e7d5156c34c08b7c96bb3203ce

11 years agofaster quantum-openvswitch-agent periodic reports
Peter Feiner [Tue, 18 Jun 2013 20:48:30 +0000 (20:48 +0000)]
faster quantum-openvswitch-agent periodic reports

One of two patches that fixes bug #1194438.

Instead of spawning ovs-vsctl for every port on br-int, we just dump the
required columns from the Interfaces table and grab the rows that we need. This
is a big win because the time it takes for ovs-vsctl to connect to the
openvswitch controller is orders of magnitude greater than the time it takes to
parse the rows. In practice, instead of taking roughly 1s per interface, the
agent's periodic task only takes 1s in total.

Change-Id: Idbf32c38e0c4a9c9634c1e4f0e79bd556b720493

11 years agodom0 rootwrap - case insensitive xenapi section
Mate Lakat [Fri, 28 Jun 2013 15:22:04 +0000 (16:22 +0100)]
dom0 rootwrap - case insensitive xenapi section

As per change https://review.openstack.org/33429 the config sections
became lowercase. This patch makes the quantum-rootwrap-xen-dom0
rootwrap to be case insensitive for the xenapi section.

This patch also changes the default config file to use a lowercase
xenapi section.

Fixes bug 1195781

Change-Id: Ic24feb1a9ad6f8823745b1febd4a0edd54e73498

11 years agoMerge "Improve readability for nvplib error messages."
Jenkins [Fri, 28 Jun 2013 16:49:25 +0000 (16:49 +0000)]
Merge "Improve readability for nvplib error messages."

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 28 Jun 2013 12:11:54 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: Id0d866b54429c147e7b0aef9b3d43e1265086ac7

11 years agoMerge "Ensure that the report state is not a blocking call"
Jenkins [Fri, 28 Jun 2013 12:07:03 +0000 (12:07 +0000)]
Merge "Ensure that the report state is not a blocking call"

11 years agoMerge "Port location tracking for BigSwitch Plugin"
Jenkins [Fri, 28 Jun 2013 11:01:42 +0000 (11:01 +0000)]
Merge "Port location tracking for BigSwitch Plugin"

11 years agoDeprecate enable_tunneling in the OVS agent
Kyle Mestery [Thu, 27 Jun 2013 11:28:51 +0000 (11:28 +0000)]
Deprecate enable_tunneling in the OVS agent

This patch properly deprecates the 'enable_tunneling' option in the OVS agent.
It does this be ignoring it if 'tunnel_types' is set, and if 'enable_tunneling'
is set, it defaults 'tunnel_types' to only GRE.

Fixes bug 1195374

Change-Id: I27fe6b930541a514fc51d3a6669347e52db8cb46

11 years agomove database config items into quantum.conf
Yong Sheng Gong [Wed, 26 Jun 2013 08:46:39 +0000 (16:46 +0800)]
move database config items into quantum.conf

Bug #1194784

This patch syncs all the DB configuration items into
quantum.conf and removes the related items of plugins' config
file to avoid duplication.

sqlite related sqlite_db and sqlite_synchronous are defined
in 'default' section, which I think is a defect. And it seems
quantum does not use sqlite_db item.

Change-Id: Ia47102ced0e4169f45f10b85311f298d8c026d31

11 years agoRemove reference to quantum cli in provider network extension
Aaron Rosen [Thu, 27 Jun 2013 19:00:24 +0000 (12:00 -0700)]
Remove reference to quantum cli in provider network extension

We don't need this info in the doc string as it is already in the admin
guide. If the CLI changes then we'll also have to update the doc string.

Fixes bug 1195429

Change-Id: If27788477c886f6faedbc5fca7856b683a6953f1

11 years agoMerge "Use 0.0.0.0/0 host route as router option"
Jenkins [Thu, 27 Jun 2013 16:59:33 +0000 (16:59 +0000)]
Merge "Use 0.0.0.0/0 host route as router option"

11 years agoFix logic for handling SNAT rules
Salvatore Orlando [Tue, 25 Jun 2013 01:59:26 +0000 (03:59 +0200)]
Fix logic for handling SNAT rules

Bug 1192610

Fixes and simplifies the logic for managing SNAT rules, based
on the assumption that a chain contains SNAT rules for a single
router.
It also fixes another small glitch with SNAT rules not being
removed when a gateway port is destroyed (the glitch did not
affect operations)

Change-Id: Ia95e375459a1f32e93bbe912a268a8ed13859c69

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 27 Jun 2013 12:11:56 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: I5f7ebc55923e7d9f5132a93af9d4dfa18ccaa725

11 years agoEnsure that the report state is not a blocking call
Gary Kotton [Mon, 17 Jun 2013 11:37:11 +0000 (11:37 +0000)]
Ensure that the report state is not a blocking call

Fixes bug 1191768

For the dhcp and l3 agents the first state report will be done
via a call. If this succeeds then subsequent calls will be done via
the cast method.

Change-Id: I82a1d92fc84983b7bb46758db0aee3e3eca1d3be

11 years agoMerge "Require greenlet 0.3.2 (or later)"
Jenkins [Wed, 26 Jun 2013 19:46:09 +0000 (19:46 +0000)]
Merge "Require greenlet 0.3.2 (or later)"

11 years agoUse 0.0.0.0/0 host route as router option
Vishvananda Ishaya [Mon, 10 Jun 2013 21:37:26 +0000 (14:37 -0700)]
Use 0.0.0.0/0 host route as router option

There is a currently a hacky way to get the dhcp-agent to hand out a
gateway route using a host route on the subnet. If you pass a route
that has 0.0.0.0/0 as its destination, dnsmasq will pass it as a static
route. Unfortunately it will also pass the router option if the subnet
has a gateway set. This is inconsistent and precludes users from options
that are available in nova-network like using an external gateway.

This patch fixes things by allowing a 0.0.0.0/0 host route to override
the router setting passed by dnsmasq. This prevents the situation
where dnsmasq hands out two default routes.

Change-Id: Ia70223070bfd437f1c2eb48fde94491d7ee61fcb

11 years agoAdd support for moving ip/addresss/default gateway
Tomasz Paszkowski [Wed, 26 Jun 2013 12:40:46 +0000 (08:40 -0400)]
Add support for moving ip/addresss/default gateway

Add support from moving ip/addresss/default gateway from physical interface
which is going to be attached to bridge to bridge device itself.

Fixes: bug #1192122
Change-Id: I8a8bf5edc17a87dcb747626dd1d6817ac48cb20d

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

Change-Id: I6e296370ed88d24ed249d34e43b475e42c1574fa

11 years agoMerge "Update to use OSLO db"
Jenkins [Wed, 26 Jun 2013 07:36:21 +0000 (07:36 +0000)]
Merge "Update to use OSLO db"

11 years agoPort location tracking for BigSwitch Plugin
Kevin Benton [Mon, 24 Jun 2013 21:44:10 +0000 (14:44 -0700)]
Port location tracking for BigSwitch Plugin

Adds a new table to the Big Switch plugin to keep track of
the nova compute node host IDs that ports reside on.
This table is then used to allow users to override
the VIF type for a compute node based on the host ID.
This allows quantum to control an environment with multiple
VIF types.

Change-Id: I63eb66d970650237aed2d5dc6676a6d097988f8d
Implements: blueprint hostid-vif-override

11 years agoMerge "Do not raise NEW exceptions"
Jenkins [Tue, 25 Jun 2013 15:54:13 +0000 (15:54 +0000)]
Merge "Do not raise NEW exceptions"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 25 Jun 2013 12:11:50 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: I336530a54ca7154d0de43eccb87bc5b1c2202097

11 years agoUpdate to use OSLO db
Gary Kotton [Sat, 20 Apr 2013 12:18:02 +0000 (12:18 +0000)]
Update to use OSLO db

This code implements the blueprint oslo-db-support

NOTES:
1. The new section is database (this is backward compatible
   with DATABASE)
2. The sql_* are deprecated. They are also backward compatible.
3. Eventlets DB pool is no longer supported

Change-Id: I6fa7c3817f6a5d8bef48382e0e754b88521f2289

11 years agoDo not raise NEW exceptions
Sergey Vilgelm [Mon, 24 Jun 2013 11:26:50 +0000 (15:26 +0400)]
Do not raise NEW exceptions

Raising NEW exception is bad practice, because we lose TraceBack.
So all places like:

except SomeException as e:
    raise e

should be replaced by

except SomeException:
    raise

If we are doing some other actions before reraising we should
store information about exception then do all actions and then
reraise it. This is caused by eventlet bug. It lost information
about exception if it switch threads.

fixes bug 1191730

Change-Id: Id4aaadde7e69f0bc087cf6d96bb041d53feb131d

11 years agoMerge "replace use of dhcp_lease_time with dhcp_lease_duration"
Jenkins [Tue, 25 Jun 2013 01:41:22 +0000 (01:41 +0000)]
Merge "replace use of dhcp_lease_time with dhcp_lease_duration"

11 years agoConverts 'router' section to lowercase in bigswitch config
Kevin Benton [Mon, 24 Jun 2013 22:06:35 +0000 (15:06 -0700)]
Converts 'router' section to lowercase in bigswitch config

The restproxy.ini file contained an uppercase section
which is converted to lowercase by this patch to match
existing naming conventions.

Change-Id: Ib8eb69406cae3898c4c9f3fd106f8c7ffef06f01
Fixes: bug #1194296
11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 24 Jun 2013 12:11:53 +0000 (12:11 +0000)]
Imported Translations from Transifex

Change-Id: I9b95e89cfaf76537d98ada38fb795fbaf439c996