]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 2 Jan 2014 16:44:50 +0000 (16:44 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fix empty network deletion in db_base_plugin for postgresql"
Jenkins [Thu, 2 Jan 2014 13:05:32 +0000 (13:05 +0000)]
Merge "Fix empty network deletion in db_base_plugin for postgresql"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 2 Jan 2014 06:34:00 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: Ie39eae9336254407ac8688135f932763d860cf7b

10 years agoMerge "Remove unused imports"
Jenkins [Thu, 2 Jan 2014 03:45:17 +0000 (03:45 +0000)]
Merge "Remove unused imports"

10 years agoMerge "Add missing quota flags in the config file sample"
Jenkins [Wed, 1 Jan 2014 23:04:58 +0000 (23:04 +0000)]
Merge "Add missing quota flags in the config file sample"

10 years agoMerge "Fix NoSuchOptError in lbaas agent test"
Jenkins [Wed, 1 Jan 2014 23:03:11 +0000 (23:03 +0000)]
Merge "Fix NoSuchOptError in lbaas agent test"

10 years agoFix empty network deletion in db_base_plugin for postgresql
Eugene Nikanorov [Sat, 21 Dec 2013 20:48:48 +0000 (00:48 +0400)]
Fix empty network deletion in db_base_plugin for postgresql

Need to disable joined loads for port query in delete_network
as in other methods.

No unit test is being added, because the problem is not reproducible with
sqlite.

Closes-Bug: #1261652

Change-Id: I7a015be6f2f9b8ae43bc29a767d16af30120f13f

10 years agoMerge "nicira: fix db integrity error during port deletion"
Jenkins [Wed, 1 Jan 2014 16:43:35 +0000 (16:43 +0000)]
Merge "nicira: fix db integrity error during port deletion"

10 years agoMerge "Rename check_nvp_config utility tool"
Jenkins [Wed, 1 Jan 2014 16:17:54 +0000 (16:17 +0000)]
Merge "Rename check_nvp_config utility tool"

10 years agoRemove unused imports
Wu Wenxiang [Wed, 1 Jan 2014 13:59:07 +0000 (21:59 +0800)]
Remove unused imports

Remove unused imports in tools/install_venv.py

Change-Id: Ia2fbb4ece5c8bcdee96503f0f853f826ae4f3dfa
Closes-Bug: #1265267

10 years agonicira: fix db integrity error during port deletion
armando-migliaccio [Tue, 31 Dec 2013 13:51:43 +0000 (05:51 -0800)]
nicira: fix db integrity error during port deletion

Due to the fact that plugin port operations are not
transactional (as they involve non synchronized DB
and Controller operations), concurrent (interleaved)
port requests may accidentally cause the insertion
of the mapping entry (neutron-port-id, nvp-port-id)
more than once. In case this occurs, it's safe to
expect the failure and continue the normal process
of the operation being requested.

Closes-bug: #1265081

Change-Id: Ifcf5b453fa08145df844c2de3cbb08bf2f4baa59

10 years agoRename check_nvp_config utility tool
armando-migliaccio [Tue, 31 Dec 2013 16:08:24 +0000 (08:08 -0800)]
Rename check_nvp_config utility tool

Add new entry point whilst preserving the old ones
for backward compatibility.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I3c5b5dcd316df3867f434bbc35483a2636b715d8

10 years agoRemove redundant codes
shihanzhang [Tue, 31 Dec 2013 07:22:40 +0000 (15:22 +0800)]
Remove redundant codes

the code is redundant, it should be removed

Change-Id: I050bfc0b4d72037510dc2f3d729a564869a374c2
Closes-Bug: #1265132

10 years agoMerge "Add post-mortem debug option for tests"
Jenkins [Mon, 30 Dec 2013 07:27:27 +0000 (07:27 +0000)]
Merge "Add post-mortem debug option for tests"

10 years agoFix NoSuchOptError in lbaas agent test
Yuanchao Sun [Thu, 26 Dec 2013 07:20:23 +0000 (15:20 +0800)]
Fix NoSuchOptError in lbaas agent test

Option 'periodic_interval' doesn't exist when using testtools
to test lbaas agent, fix this by adding a mock object.

Change-Id: I5ef02d6fa154ea7a18ca77d02a2704b7e3990c3b
Closes-Bug: #1264260

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 23 Dec 2013 23:40:18 +0000 (23:40 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Send DHCP notifications regardless of agent status"
Jenkins [Mon, 23 Dec 2013 23:40:00 +0000 (23:40 +0000)]
Merge "Send DHCP notifications regardless of agent status"

10 years agoMerge "BigSwitch: Fixes floating IP backend updates"
Jenkins [Mon, 23 Dec 2013 16:13:25 +0000 (16:13 +0000)]
Merge "BigSwitch: Fixes floating IP backend updates"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 23 Dec 2013 06:38:32 +0000 (06:38 +0000)]
Imported Translations from Transifex

Change-Id: I160bcb7cdc0acc2da2ced5980cae935c5850d700

10 years agoMerge "Fixes missing method in Hyper-V Utils (Metering)"
Jenkins [Sun, 22 Dec 2013 21:09:38 +0000 (21:09 +0000)]
Merge "Fixes missing method in Hyper-V Utils (Metering)"

10 years agoMerge "extra_dhcp_opt add checks for empty strings"
Jenkins [Sat, 21 Dec 2013 12:43:22 +0000 (12:43 +0000)]
Merge "extra_dhcp_opt add checks for empty strings"

10 years agoBigSwitch: Fixes floating IP backend updates
Kevin Benton [Thu, 19 Dec 2013 03:52:20 +0000 (03:52 +0000)]
BigSwitch: Fixes floating IP backend updates

Changes BigSwitch plugin to correctly use
admin context on floating IP updates to the
backend controller so they correctly contain
floating IPs for all tenants.

Closes-Bug: #1262488
Change-Id: I6f2666c242e6d9b0684943db073a2284d01fa1e0

10 years agoMerge "Do not trigger agent notification if bindings do not change"
Jenkins [Thu, 19 Dec 2013 23:18:16 +0000 (23:18 +0000)]
Merge "Do not trigger agent notification if bindings do not change"

10 years agoMerge "Remove start index 0 in range()"
Jenkins [Thu, 19 Dec 2013 22:46:27 +0000 (22:46 +0000)]
Merge "Remove start index 0 in range()"

10 years agoSend DHCP notifications regardless of agent status
Maru Newby [Tue, 10 Dec 2013 16:10:42 +0000 (16:10 +0000)]
Send DHCP notifications regardless of agent status

The Neutron service, when under load, may not be able to process
agent heartbeats in a timely fashion.  This can result in
agents being erroneously considered inactive.  Previously, DHCP
notifications for which active agents could not be found were
silently dropped.  This change ensures that notifications for
a given network are sent to agents even if those agents do not
appear to be active.

Additionally, if no enabled dhcp agents can be found for a given
network, an error will be logged.  Raising an exception might be
preferable, but has such a large testing impact that it will be
submitted as a separate patch if deemed necessary.

Partial-bug: #1192381
Change-Id: Id3e639d9cf3d16708fd66a4baebd3fbeeed3dde8

10 years agoMerge "Add support for NSX/NVP Metadata services"
Jenkins [Wed, 18 Dec 2013 21:53:48 +0000 (21:53 +0000)]
Merge "Add support for NSX/NVP Metadata services"

10 years agoMerge "ml2/type_gre: Adds missing clear_db to test_type_gre.py"
Jenkins [Wed, 18 Dec 2013 20:27:46 +0000 (20:27 +0000)]
Merge "ml2/type_gre: Adds missing clear_db to test_type_gre.py"

10 years agoMerge "Midonet plugin: Fix source NAT"
Jenkins [Wed, 18 Dec 2013 17:07:14 +0000 (17:07 +0000)]
Merge "Midonet plugin: Fix source NAT"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 18 Dec 2013 17:07:04 +0000 (17:07 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Change default eswitchd port to avoid conflict"
Jenkins [Wed, 18 Dec 2013 17:06:54 +0000 (17:06 +0000)]
Merge "Change default eswitchd port to avoid conflict"

10 years agoMerge "ml2: gre, vxlan type driver can leak segment_id"
Jenkins [Wed, 18 Dec 2013 17:04:29 +0000 (17:04 +0000)]
Merge "ml2: gre, vxlan type driver can leak segment_id"

10 years agoMerge "fix --excluded of meter-label-rule-create is not working"
Jenkins [Wed, 18 Dec 2013 13:53:55 +0000 (13:53 +0000)]
Merge "fix --excluded of meter-label-rule-create is not working"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 18 Dec 2013 06:37:05 +0000 (06:37 +0000)]
Imported Translations from Transifex

Change-Id: I97f049cc4458a01e7f8d84a289c46ea8c57505f1

10 years agoChange default eswitchd port to avoid conflict
Irena Berezovsky [Thu, 5 Dec 2013 11:03:57 +0000 (13:03 +0200)]
Change default eswitchd port to avoid conflict

Previous default for eswitch/daemon_endpoint would set a TCP port (5001)
which is in the range of the well known ports.
Change to unreserved port (60001) will avoid that conflict.

Change-Id: I711c4659f497e44a6041ec9958835c1f2f4174a7
Closes-Bug: #1245885

10 years agoMidonet plugin: Fix source NAT
Dave Cahill [Tue, 17 Dec 2013 05:52:48 +0000 (05:52 +0000)]
Midonet plugin: Fix source NAT

Source NAT rule was being applied on the incorrect port.
It was being applied to the Neutron gateway port, not to
the MidoNet tenant / provider router link port.

Change-Id: Ib818c09adfb6957b7cad4523e5ce1fdffde9590b
Closes-Bug: #1261665

10 years agoAdd support for NSX/NVP Metadata services
armando-migliaccio [Thu, 26 Sep 2013 16:06:36 +0000 (09:06 -0700)]
Add support for NSX/NVP Metadata services

This is a feature patch (2 of 3) that adds support for
Metadata services provided by the NSX (aka NVP) platform.

It also implements the handling of port events so that
dhcp and metadata configuration in NSX/NVP is updated
if port attributes such as fixed_ips and device_id are
updated.

Partial-implements blueprint nsx-integrated-services

Change-Id: Id2b9125b49c0e15e717605ec6ba3dea5d32ee755

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 17 Dec 2013 06:38:08 +0000 (06:38 +0000)]
Imported Translations from Transifex

Change-Id: I769916f88b706074abc5ee0c8bc6806d26af09f0

10 years agoMerge "NVP: propagate net-gw update to backend"
Jenkins [Tue, 17 Dec 2013 03:58:47 +0000 (03:58 +0000)]
Merge "NVP: propagate net-gw update to backend"

10 years agoMerge "Include lswitch id in NSX plugin port mappings"
Jenkins [Tue, 17 Dec 2013 03:58:37 +0000 (03:58 +0000)]
Merge "Include lswitch id in NSX plugin port mappings"

10 years agoMerge "NVP plugin: Avoid timeouts if creating routers in parallel"
Jenkins [Tue, 17 Dec 2013 03:58:18 +0000 (03:58 +0000)]
Merge "NVP plugin: Avoid timeouts if creating routers in parallel"

10 years agoml2/type_gre: Adds missing clear_db to test_type_gre.py
Isaku Yamahata [Tue, 17 Dec 2013 03:00:22 +0000 (12:00 +0900)]
ml2/type_gre: Adds missing clear_db to test_type_gre.py

GreTypeTest.setUp() in test_type_gre.py should have
self.addCleanup(db.clear_db). This patch adds it.

Change-Id: I1f2ac5d2cae47812591fc5b50099053a4ad9ba85
Closes-Bug: #1261593

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 17 Dec 2013 01:34:04 +0000 (01:34 +0000)]
Merge "Imported Translations from Transifex"

10 years agoml2: gre, vxlan type driver can leak segment_id
Isaku Yamahata [Thu, 12 Dec 2013 09:47:37 +0000 (18:47 +0900)]
ml2: gre, vxlan type driver can leak segment_id

When multiple region of segment_id is specified, segment_id can leak
(will be never reused) on deletion of network.

Change-Id: Ia27b7e2c0ff4ab58be304e54123a679a5e35ab00
Closes-Bug: #1260262

10 years agoMerge "Update common network type consts to same origin"
Jenkins [Mon, 16 Dec 2013 16:10:40 +0000 (16:10 +0000)]
Merge "Update common network type consts to same origin"

10 years agoNVP: propagate net-gw update to backend
Salvatore Orlando [Fri, 13 Dec 2013 22:49:00 +0000 (14:49 -0800)]
NVP: propagate net-gw update to backend

When a network gateway's name is updated, propagate the
update to the backend.

Closes-Bug: #1261334
Change-Id: Icaae84e7f5373946e8c82e0e519528409925dd9d

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 16 Dec 2013 06:34:54 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: I2b76e7d72593ce2ae6b1299257a917f01d8788ea

10 years agoMerge "Switch to using spawn to properly treat errors during sync_state"
Jenkins [Mon, 16 Dec 2013 01:10:55 +0000 (01:10 +0000)]
Merge "Switch to using spawn to properly treat errors during sync_state"

10 years agoNicira: Fix core_plugin path and update default values in README
Aaron Rosen [Fri, 13 Dec 2013 01:02:06 +0000 (17:02 -0800)]
Nicira: Fix core_plugin path and update default values in README

The following patch fixes the core_plugin path in the README file
which broke during the rename of quantum to neutron here ee3fe4e8.
This patch also updates a few of the default values and removes
the promise of adding support for multiple control clusters.

Issue reported by: Ben Lin <blin@nicira.com>

Change-Id: Ia46d80384efaa220685f98afa591177d00021362
Closes-bug: #1260550

10 years agoInclude lswitch id in NSX plugin port mappings
Salvatore Orlando [Sat, 26 Oct 2013 20:53:35 +0000 (13:53 -0700)]
Include lswitch id in NSX plugin port mappings

This patch adds the logical switch identifier in the model class
for describing mappings between neutron and nsx switch ports.
This will allow for a better handling of the chained logical switch
use case.

This patch also moves the routines for retrieving nsx identifiers
in a separate module in preparation for the introduction of async
operations and renames relevant model classes, attributes, and
functions from 'nvp' to 'nsx'.

Related to blueprint nvp-async-backend-communication
Related to blueprint nicira-plugin-renaming

Change-Id: I5fa1e8f0d863b7d1fc278ffdeac8acc076a843e8

10 years agoMerge "NVP plugin: Do backend router delete out from db transaction"
Jenkins [Sun, 15 Dec 2013 10:47:19 +0000 (10:47 +0000)]
Merge "NVP plugin: Do backend router delete out from db transaction"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 15 Dec 2013 06:35:20 +0000 (06:35 +0000)]
Imported Translations from Transifex

Change-Id: Ib37e90be421f09b9e9d3324f7b3152b87226ac99

10 years agoMerge "Revert "move rpc_setup to the last step of __init__""
Jenkins [Sat, 14 Dec 2013 11:52:18 +0000 (11:52 +0000)]
Merge "Revert "move rpc_setup to the last step of __init__""

10 years agoMerge "Updates tox.ini to use new features"
Jenkins [Sat, 14 Dec 2013 07:58:56 +0000 (07:58 +0000)]
Merge "Updates tox.ini to use new features"

10 years agoRevert "move rpc_setup to the last step of __init__"
Mark McClain [Fri, 13 Dec 2013 21:53:09 +0000 (16:53 -0500)]
Revert "move rpc_setup to the last step of __init__"

This reverts commit f691ebe03916a78cbf18017d628a28b17f147700.

Change-Id: Idc0bb0e4401e2561f2d8e3132f14df14b7537448
Partial-Bug: #1253896

10 years agoextra_dhcp_opt add checks for empty strings
dekehn [Tue, 3 Dec 2013 22:28:55 +0000 (15:28 -0700)]
extra_dhcp_opt add checks for empty strings

When passing extra-dhcp-opt into the port-create where an empty string
is provided as opt_value='   ', the create and update routine will load the
empty string into the DB. The result when written to the opts file is:
"tag:ece4c8aa-15c9-4f6b-8c42-7d4e285734bf,option:server-ip-address", which
when read by dnsmasq has been tested to cause dnsmasq to segment fault.

Change-Id: I31de4a3d27092bb219d20221c5ef5a6b22e050dc
Closes-Bug: #1257467

10 years agoNVP plugin: Do backend router delete out from db transaction
Salvatore Orlando [Wed, 11 Dec 2013 23:10:11 +0000 (15:10 -0800)]
NVP plugin: Do backend router delete out from db transaction

Performing the NVP API operation from within a DB transaction
increases the risk of a deadlock between sqlalchemy and eventlet.

With this patch, the operation is moved outside of the db transaction
and appropriate mechanism are put in place for:
i) ensuring neutron db consistency in case of NVP failures
ii) avoiding deleting from backend if neutron logic does not allow it

This patch also synchronizes the routine for removing a router
gateway port from NVP.

Change-Id: I58d156e303e7a56ceb8c62766c192e154b0a3bb4
Closes-Bug: #1258150

10 years agoNVP plugin: Avoid timeouts if creating routers in parallel
Salvatore Orlando [Mon, 9 Dec 2013 15:53:24 +0000 (07:53 -0800)]
NVP plugin: Avoid timeouts if creating routers in parallel

There is a well-known issue of eventlet causing deadlocks with
mysql transactions; such condition might occur when
creating NVP routers in parallel.

To avoid this, this patch moves the long-running method
_update_router_gw_info outside of the mysql transaction, adding
the appropriate failure management code, and adds a lock to the
method _nvp_create_ext_gw_port, to ensure serial access to it.

Unit tests for verifying correct behaviour in case of failures
are added as well.

Closes Bug: #1251847

Change-Id: I2864e2f5bfd3982875ef9df97186f64a9fcaa0e0

10 years agoUpdates tox.ini to use new features
Sushil Kumar [Mon, 9 Dec 2013 14:02:49 +0000 (14:02 +0000)]
Updates tox.ini to use new features

tox 1.6 allows us to skip the sdist step, which is slow. This does that.
It also allows us to override the install line. In this case, it's
important as it allows us to stop getting pre-release software we
weren't asking for.

Original patch by Monty Taylor, talked about here:
http://lists.openstack.org/pipermail/openstack-dev/2013-September/015495.html

Change-Id: I87f172cfcc44c9afff9c5162791d6c6b31972702

10 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Thu, 12 Dec 2013 04:14:22 +0000 (04:14 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Add X-Tenant-ID to metadata request"
Jenkins [Thu, 12 Dec 2013 00:33:03 +0000 (00:33 +0000)]
Merge "Add X-Tenant-ID to metadata request"

10 years agoMerge "move rpc_setup to the last step of __init__"
Jenkins [Thu, 12 Dec 2013 00:25:36 +0000 (00:25 +0000)]
Merge "move rpc_setup to the last step of __init__"

10 years agoMerge "Fix a race condition in agents status update code"
Jenkins [Wed, 11 Dec 2013 20:09:38 +0000 (20:09 +0000)]
Merge "Fix a race condition in agents status update code"

10 years agoAdd X-Tenant-ID to metadata request
Aaron Rosen [Mon, 7 Oct 2013 22:34:38 +0000 (15:34 -0700)]
Add X-Tenant-ID to metadata request

Previously, one could update a port's device_id to be that of
another tenant's instance_id and then be able to retrieve that
instance's metadata. In order to prevent this X-Tenant-ID is now
passed in the metadata request to nova and nova then checks that
X-Tenant-ID also matches the tenant_id for the instance against it's
database to ensure it's not being spoofed.

DocImpact - When upgrading OpenStack nova and neturon, neutron
            should be updated first (and neutron-metadata-agent
            restarted before nova is upgraded) in order to minimize
            downtime. This is because there is also a patch to nova
            which has checks X-Tenant-ID against it's database
            therefore neutron-metadata-agent needs to pass that
            before nova is upgraded for metadata to work.

Change-Id: I2b8fa2f561a7f2914608e68133abf15efa95015a
Closes-Bug: #1235450

10 years agoDo not trigger agent notification if bindings do not change
Salvatore Orlando [Wed, 27 Nov 2013 21:26:07 +0000 (13:26 -0800)]
Do not trigger agent notification if bindings do not change

The method _process_port_bindings for the ml2 plugin should not
return True when the host binding does not change, otherwise an
unnecessary notification will be sent to the agent

Closes-Bug: #1255680
Related-Bug: #1253896
Partially Implements: neutron-tempest-parallel

Change-Id: I8a40090af347ca430ff6c8e2211fa34bb2bd0f8c

10 years agofix --excluded of meter-label-rule-create is not working
Siming Yin [Wed, 11 Dec 2013 07:28:46 +0000 (15:28 +0800)]
fix --excluded of meter-label-rule-create is not working

rule['excluded'] is boolean type, should not be compared with 'true'

Closes-Bug: #1248002
Change-Id: Ie78c307ede1f7124c58354825a411474ff6c1234

10 years agomove rpc_setup to the last step of __init__
Yong Sheng Gong [Mon, 9 Dec 2013 13:01:17 +0000 (21:01 +0800)]
move rpc_setup to the last step of __init__

rpc setup should be the last stuff in agent initialization
so that the rcp message handler(the agent instance itself)
can have a fully initialized agent instance.

Change-Id: I58c966e2c8ee92c307b565932e867b5d1ec73b67
Closes-Bug: #1259088

10 years agoUpdated from global requirements
OpenStack Jenkins [Tue, 10 Dec 2013 00:17:38 +0000 (00:17 +0000)]
Updated from global requirements

Change-Id: Iec62e381c079d1a71bd5d49f09cf71f6f4f68f72

10 years agoSync global requirements to pin sphinx to sphinx>=1.1.2,<1.2
Morgan Fainberg [Tue, 10 Dec 2013 22:03:12 +0000 (14:03 -0800)]
Sync global requirements to pin sphinx to sphinx>=1.1.2,<1.2

Sync the global requirements to pin sphinx.  This addresses an issue
where Sphinx 1.2 is not building documents correctly and causing
check/gate to fail.

Change-Id: Iea62bf9f5a1a6b729ab2ddb6d0c6390a7dc9dca1

10 years agoUpdate common network type consts to same origin
Justin Hammond [Mon, 2 Sep 2013 16:58:10 +0000 (11:58 -0500)]
Update common network type consts to same origin

This patch removes new definitions of common network type constants (TYPE_FLAT,
TYPE_LOCAL, etc.) and modifies uses of aforementioned constants to a common
place where constants are defined (neutron.plugins.common.constants). This
patch does not change values that are equal in value but different in name:
NETWORK_TYPE_FLAT vs TYPE_FLAT. A second changeset will be made to handle that
case.

Unit tests were modified as well when they referred to the constant.

Finally, the ovs agent code refers to the OVS plugin constants directly and
these had to be changed as well. A TODO flag was put in that file due to use
of another plugin specific constant.

Network types that were only defined in a single plugin, such as mellanox's
infiniband (IB) network type was not carried over to the common constants file.

Fixes-bug: #1196170

Change-Id: Ib6bfc8275496a24bf247946d177c734b62ae44bb

10 years agoMerge "LBaaS: unify haproxy-on-host plugin driver and agent"
Jenkins [Tue, 10 Dec 2013 14:34:22 +0000 (14:34 +0000)]
Merge "LBaaS: unify haproxy-on-host plugin driver and agent"

10 years agoRemove start index 0 in range()
Wu Wenxiang [Tue, 10 Dec 2013 12:42:07 +0000 (20:42 +0800)]
Remove start index 0 in range()

Remove the useless arg ("start index" = 0) in files, since its default
value is 0, to make code cleaner.

Fixes bug #1259560

Change-Id: Id595630f97b21cc84aefc39b31e7f09f5fb8deb9

10 years agoMerge "Fix str2dict and dict2str's incorrect behavior"
Jenkins [Tue, 10 Dec 2013 12:06:06 +0000 (12:06 +0000)]
Merge "Fix str2dict and dict2str's incorrect behavior"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 10 Dec 2013 10:47:10 +0000 (10:47 +0000)]
Merge "Imported Translations from Transifex"

10 years agoLBaaS: unify haproxy-on-host plugin driver and agent
Oleg Bondarev [Tue, 6 Aug 2013 08:52:34 +0000 (12:52 +0400)]
LBaaS: unify haproxy-on-host plugin driver and agent

Unifies haproxy reference implementation to make common agent based plugin driver
which is suitable for all vendors who wants to use async mechanism.

 - Agent API as well as device driver API changed to handle
   loadbalancer objects individually;
 - Agent loads device drivers according to config;
 - LogicalDeviceCache class was removed from agent as it was used only
   as a list - to put and remove entries ant check whether entry is in or not.
   It was replaced with instance_mapping dict in agent to store known instances and
   corresponding device_drivers;
 - Agent reports which device drivers are supported (needs for scheduling on plugin side);
 - Agent-to-plugin API was extended to provide an ability for agent to update
   statuses of pools/vips/members/health_monitors;
 - Vendor should only implement device driver; plugin driver just needs
   to inherit AgentBasedPluginDriver and override device_driver member;
 - This patch doesn't move files to make review easier;
   all rename/replace will be done in a subsequent patch;

DocImpact

NOTE: Since the change in the agent RPC API is backward-incompatible
(major RPC version change), LBaaS server-agent communications will be
completely broken until both sides are upgraded so users will be unable to
create new or update existing HAProxy loadbalancer instances during upgrade

Implements blueprint lbaas-common-agent-driver

Change-Id: I9fd90a1321611d202ef838681273081fa6c1686a

10 years agochange variable name from plugin into agent
Yong Sheng Gong [Tue, 10 Dec 2013 06:38:35 +0000 (14:38 +0800)]
change variable name from plugin into agent

Variable for agent instance should be named as 'agent'
instead of plugin.

Change-Id: I9bb2245049c6d6084284c2311a4c6aa2ad880bc1
Closes-Bug: #1259431

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 10 Dec 2013 06:33:52 +0000 (06:33 +0000)]
Imported Translations from Transifex

Change-Id: Ic0303173cb8a04bc9bb2e31b80e37baca538dc9b

10 years agoAdd post-mortem debug option for tests
Maru Newby [Sat, 26 Oct 2013 11:42:09 +0000 (11:42 +0000)]
Add post-mortem debug option for tests

Post-mortem debugging, the ability to drop into a debugger with the
execution state that triggered the exception, is very useful in
diagnosing failure conditions.  Our previous test runner, nose,
provided the ability to enable post-mortem debugging on test
failures (via --pdb-failure) and errors (via --pdb).  testr
lacks these options at present, so this change adds support
for enabling post-mortem debugging via an environment variable.
All test-triggered exceptions will result in a post-mortem debugger
being invoked if OS_POST_MORTEM_DEBUG is set to "1" or "True".

Implements: blueprint neutron-pm-debug-on-test-failure
Change-Id: Iddbe1335b059d062c0286df2ad27aef7728461b7

10 years agoMerge "Remove root_helper config from plugin ini"
Jenkins [Mon, 9 Dec 2013 23:28:32 +0000 (23:28 +0000)]
Merge "Remove root_helper config from plugin ini"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 9 Dec 2013 20:38:17 +0000 (20:38 +0000)]
Merge "Imported Translations from Transifex"

10 years agoRemove root_helper config from plugin ini
Akihiro Motoki [Mon, 9 Dec 2013 17:07:54 +0000 (02:07 +0900)]
Remove root_helper config from plugin ini

As root_helper is defined in neutron.conf, root_helper in plugin ini
is unnecessary and brings confusion when configuring the parameter.
This patch updates plugin ini of NEC plugin and Brocade plugin.

Change-Id: I5b1c36d8d6ffc20ae0b4191a73aaa51f2b3d9a1b
Closes-Bug: #1259242

10 years agoMerge "Add LeastRouters Scheduler to Neutron L3 Agent"
Jenkins [Mon, 9 Dec 2013 14:07:58 +0000 (14:07 +0000)]
Merge "Add LeastRouters Scheduler to Neutron L3 Agent"

10 years agoFix a race condition in agents status update code
Roman Podoliaka [Wed, 27 Nov 2013 16:57:56 +0000 (18:57 +0200)]
Fix a race condition in agents status update code

Code handling agents status updates coming via RPC checks,
if a corresponding entry for the given (agent_type, host)
pair already exists in DB and updates it. And if it doesn't
exist, a new entry is created.

Without a unique constraint this can cause a race condition
resulting in adding of two agent entries having the same value
of (agent_type, host) pair.

Note, that it's already not allowed to have multiple agents of
the same type having the same host value, but currently it's
enforced only at code level, not at DB schema level, which
effectively makes race conditions possible.

Closes-Bug: #1254246

Change-Id: I1ebaa111154b3d6b34074705b579097ab730594c

10 years agoMerge "l3_agent: make process_router more robust"
Jenkins [Mon, 9 Dec 2013 13:06:59 +0000 (13:06 +0000)]
Merge "l3_agent: make process_router more robust"

10 years agoMerge "Remove dead code _arp_spoofing_rule()"
Jenkins [Mon, 9 Dec 2013 12:54:27 +0000 (12:54 +0000)]
Merge "Remove dead code _arp_spoofing_rule()"

10 years agoAdd LeastRouters Scheduler to Neutron L3 Agent
Sylvain Afchain [Tue, 26 Nov 2013 21:24:33 +0000 (22:24 +0100)]
Add LeastRouters Scheduler to Neutron L3 Agent

Allow scheduling of a virtual router on an L3 Agent node with the least
number of routers currently scheduled. This scheduler can be used
instead of the default random scheduler.

Also refactor the l3_agent_scheduler to allow for adding new schedulers.

Implement blueprint lessrouter-scheduler
Change-Id: Ie539c08bdc8a6e1430a106f77d08f15abd0903e7

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 9 Dec 2013 06:32:38 +0000 (06:32 +0000)]
Imported Translations from Transifex

Change-Id: I8899e6ade1eb38e6d183cb35a509fcbecdc04b47

10 years agoMerge "Preserve floating ips when initializing l3 gateway interface"
Jenkins [Sat, 7 Dec 2013 23:05:30 +0000 (23:05 +0000)]
Merge "Preserve floating ips when initializing l3 gateway interface"

10 years agoMerge "Add fwaas_driver.ini to setup.cfg"
Jenkins [Sat, 7 Dec 2013 16:50:01 +0000 (16:50 +0000)]
Merge "Add fwaas_driver.ini to setup.cfg"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sat, 7 Dec 2013 15:47:24 +0000 (15:47 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Removed erronus config file comment"
Jenkins [Sat, 7 Dec 2013 10:22:40 +0000 (10:22 +0000)]
Merge "Removed erronus config file comment"

10 years agoMerge "Add request timeout handling for Mellanox Neutron Agent"
Jenkins [Sat, 7 Dec 2013 10:05:57 +0000 (10:05 +0000)]
Merge "Add request timeout handling for Mellanox Neutron Agent"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 7 Dec 2013 06:33:24 +0000 (06:33 +0000)]
Imported Translations from Transifex

Change-Id: I6f89af93f175d2de8eb2e00b08217a0b29e44385

10 years agoMerge "Improve unit test coverage for Cisco plugin common code"
Jenkins [Fri, 6 Dec 2013 19:28:08 +0000 (19:28 +0000)]
Merge "Improve unit test coverage for Cisco plugin common code"

10 years agoRemove dead code _arp_spoofing_rule()
Aaron Rosen [Fri, 6 Dec 2013 19:12:33 +0000 (11:12 -0800)]
Remove dead code _arp_spoofing_rule()

This code should have been removed when the allowed_address_pair
extension was added here (0efce6195fa7be80e110bd841dc9b3537a94c376).
The arp spoofing rules are handled in the method _setup_spoof_filter_chain().

Reported by: Amir Sadoughi that this was crud I left behind :)

Change-Id: Ib0e2e2a5c13fb8fa7af1f988510143f40ac335e2
Closes-bug: #1258629

10 years agoMerge "Fix unable to add allow all IPv4/6 security group rule"
Jenkins [Fri, 6 Dec 2013 19:14:07 +0000 (19:14 +0000)]
Merge "Fix unable to add allow all IPv4/6 security group rule"

10 years agoMerge "Do not concatenate localized strings"
Jenkins [Fri, 6 Dec 2013 19:13:57 +0000 (19:13 +0000)]
Merge "Do not concatenate localized strings"

10 years agoMerge "Sync rpc fix from oslo-incubator"
Jenkins [Fri, 6 Dec 2013 19:13:48 +0000 (19:13 +0000)]
Merge "Sync rpc fix from oslo-incubator"

10 years agoMerge "Fix a typo in log exception in the metering agent"
Jenkins [Fri, 6 Dec 2013 19:13:38 +0000 (19:13 +0000)]
Merge "Fix a typo in log exception in the metering agent"

10 years agoAdd fwaas_driver.ini to setup.cfg
Terry Wilson [Fri, 6 Dec 2013 17:13:09 +0000 (11:13 -0600)]
Add fwaas_driver.ini to setup.cfg

Change-Id: Ie8157c0df343fb1009e7bc5b3ed2f2d4b0d0afec
Closes-Bug: 1258585

10 years agoSwitch to using spawn to properly treat errors during sync_state
armando-migliaccio [Fri, 6 Dec 2013 15:31:53 +0000 (07:31 -0800)]
Switch to using spawn to properly treat errors during sync_state

Changes f1b9ac5a and 9f6ff7e3 were aimed at improving the robustness
of the sync_state method. However both missed switching from spawn_n
to spawn to properly deal with raised exceptions.

Change-Id: Ieda4a5ecca63de67d8a9757962e7e3383fd9c9ea
Related-bug: #1257514