]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "Refactor plugin setup helpers out of test.base"
Jenkins [Mon, 25 Aug 2014 19:09:42 +0000 (19:09 +0000)]
Merge "Refactor plugin setup helpers out of test.base"

10 years agoMerge "Use openstack.common.lockutils module for locks in tox functional tests."
Jenkins [Mon, 25 Aug 2014 19:06:45 +0000 (19:06 +0000)]
Merge "Use openstack.common.lockutils module for locks in tox functional tests."

10 years agoMerge "Raise proper exception in case duplicate ipv6 address is allocated"
Jenkins [Mon, 25 Aug 2014 18:26:11 +0000 (18:26 +0000)]
Merge "Raise proper exception in case duplicate ipv6 address is allocated"

10 years agoRefactor plugin setup helpers out of test.base
Maru Newby [Tue, 25 Mar 2014 10:54:04 +0000 (03:54 -0700)]
Refactor plugin setup helpers out of test.base

Helper methods for plugin and notification setup were previously
defined on neutron.tests.base.BaseTestCase.  The imports required to
support these helpers were preventing the api tests from consuming
tempest due to configuration conflicts that resulted between neutron
and tempest.  This change moves the helpers to a new module in
tests/unit so that BaseTestCase can be safely used across all types of
tests.

Partially-Implements: blueprint retargetable-functional-testing

Change-Id: I44251db399cd73390a9d1931a7f253662002ba10

10 years agoRaise proper exception in case duplicate ipv6 address is allocated
Eugene Nikanorov [Fri, 22 Aug 2014 12:29:49 +0000 (16:29 +0400)]
Raise proper exception in case duplicate ipv6 address is allocated

In case neutron tries to generate ipv6 address for slaac subnet,
it doesn't check that generated ip is unique and throws DB exception
that results in 500 HTTP error.

The fix throws proper IpAddressInUse exception.

Closes-Bug: #1358731
Change-Id: I66aed81b8d31d1eff6c87a77c4c4a813179ba458

10 years agoMerge "Refresh rpc_backend values in unit tests to those from oslo.messaging"
Jenkins [Mon, 25 Aug 2014 10:16:16 +0000 (10:16 +0000)]
Merge "Refresh rpc_backend values in unit tests to those from oslo.messaging"

10 years agoMerge "Fix migration set_length_of_description_field_metering"
Jenkins [Mon, 25 Aug 2014 10:13:01 +0000 (10:13 +0000)]
Merge "Fix migration set_length_of_description_field_metering"

10 years agoMerge "Set InnoDB engine for all existing tables"
Jenkins [Mon, 25 Aug 2014 10:12:46 +0000 (10:12 +0000)]
Merge "Set InnoDB engine for all existing tables"

10 years agoMerge "ML2 Type driver refactor part 1"
Jenkins [Mon, 25 Aug 2014 03:33:53 +0000 (03:33 +0000)]
Merge "ML2 Type driver refactor part 1"

10 years agoMerge "Reorder operations in create_vip"
Jenkins [Mon, 25 Aug 2014 03:33:40 +0000 (03:33 +0000)]
Merge "Reorder operations in create_vip"

10 years agoAdd hook scripts for the functional infra job
Maru Newby [Sat, 23 Aug 2014 06:21:07 +0000 (23:21 -0700)]
Add hook scripts for the functional infra job

Infra jobs support hooks to customize behavior.  This change adds
scripts that are intended to be called by the neutron-dsvm-functional
jobs as hooks.   Defining hook behavior in-tree instead of directly in
the job definition has the advantage of allowing changes in hook
behavior to be tested before merge.

The gate_hook.sh script added by this change installs a rootwrap
filter to allow functional tests to destroy python processes that
they have spawned.  The tests use the python executable provided by
their tox env, and the default rootwrap configuration does not
support killing processes launched by non-system python executables.

This change will have to merge to master and stable/icehouse before
the supporting infra config change can be merged:

https://review.openstack.org/#/c/116458/

Partial-bug: #1360658
Change-Id: Idcc6195f91fac833c14892f27fb793048ef964b9

10 years agoMerge "Support Stateful and Stateless DHCPv6 by dnsmasq"
Jenkins [Sat, 23 Aug 2014 17:24:24 +0000 (17:24 +0000)]
Merge "Support Stateful and Stateless DHCPv6 by dnsmasq"

10 years agoMerge "Implements securitygroup extension for nuage plugin"
Jenkins [Sat, 23 Aug 2014 07:37:30 +0000 (07:37 +0000)]
Merge "Implements securitygroup extension for nuage plugin"

10 years agoMerge "Send HTTP exceptions in the format expected by neutronclient"
Jenkins [Sat, 23 Aug 2014 01:43:08 +0000 (01:43 +0000)]
Merge "Send HTTP exceptions in the format expected by neutronclient"

10 years agoMerge "Remove invalid or useless initialization in test_type_vxlan"
Jenkins [Fri, 22 Aug 2014 23:22:09 +0000 (23:22 +0000)]
Merge "Remove invalid or useless initialization in test_type_vxlan"

10 years agoML2 Type driver refactor part 1
Arvind Somya [Fri, 15 Aug 2014 21:22:05 +0000 (14:22 -0700)]
ML2 Type driver refactor part 1

This commit moves segment management from the ML2 plugin to
the type manager in preparation for dynamic segment support.

Partially implements: Blueprint ml2-type-driver-refactor

Change-Id: I068b82369250d115ef91680f19e733ed9aa4659b

10 years agoMerge "Join tables in query for down L3 agents"
Jenkins [Fri, 22 Aug 2014 15:16:13 +0000 (15:16 +0000)]
Merge "Join tables in query for down L3 agents"

10 years agoRefresh rpc_backend values in unit tests to those from oslo.messaging
Ihar Hrachyshka [Thu, 21 Aug 2014 13:49:24 +0000 (15:49 +0200)]
Refresh rpc_backend values in unit tests to those from oslo.messaging

Though old values are supported via compatibility transport aliases [1],
it's better to stick to those values that are officially supported by
oslo.messaging.

[1]: neutron/common/rpc.py:TRANSPORT_ALIASES

blueprint oslo-messaging

Change-Id: I7bc03e323151cfdda2cb2bc4cd6f5aea9b87a746

10 years agoMerge "NSX: Avoid floating IP status reset"
Jenkins [Fri, 22 Aug 2014 07:13:56 +0000 (07:13 +0000)]
Merge "NSX: Avoid floating IP status reset"

10 years agoMerge "Fixes Hyper-V issue due to ML2 RPC versioning"
Jenkins [Fri, 22 Aug 2014 02:46:40 +0000 (02:46 +0000)]
Merge "Fixes Hyper-V issue due to ML2 RPC versioning"

10 years agoMerge "A10 Networks LBaaS v1 Driver"
Jenkins [Thu, 21 Aug 2014 21:32:12 +0000 (21:32 +0000)]
Merge "A10 Networks LBaaS v1 Driver"

10 years agoMerge "Ensure ip6tables are used only if ipv6 is enabled in kernel"
Jenkins [Thu, 21 Aug 2014 21:28:00 +0000 (21:28 +0000)]
Merge "Ensure ip6tables are used only if ipv6 is enabled in kernel"

10 years agoJoin tables in query for down L3 agents
Kevin Benton [Tue, 19 Aug 2014 22:15:09 +0000 (15:15 -0700)]
Join tables in query for down L3 agents

Join the agent table together with the L3 agent scheduler
table. This fixes an issue where the query would return
all admin_state_up L3 agents with router bindings when
any agent in the database was dead (missed heartbeats)
instead of just returning the dead L3 agents with bindings.

Closes-Bug: #1359460
Change-Id: I29215f81be7e3513155faaad015e24dbf1a1ad5d

10 years agoRename range to avoid shadowing the builtin
Carl Baldwin [Tue, 19 Aug 2014 03:58:22 +0000 (03:58 +0000)]
Rename range to avoid shadowing the builtin

This refactor supports a patch I was reviewing [1].  I thought it
better to apply this consistently in this file as a separate refactor
so that that patch could be done cleaner.

[1] https://review.openstack.org/#/c/100963

Change-Id: Ida58758504e868dc731e97d7bce53d4849998723

10 years agoMerge "corrects the typos in l3_router_plugin's comments"
Jenkins [Thu, 21 Aug 2014 06:58:44 +0000 (06:58 +0000)]
Merge "corrects the typos in l3_router_plugin's comments"

10 years agoMerge "Expand arp_responder help text"
Jenkins [Thu, 21 Aug 2014 04:41:24 +0000 (04:41 +0000)]
Merge "Expand arp_responder help text"

10 years agoFixes Hyper-V issue due to ML2 RPC versioning
Alessandro Pilotti [Wed, 20 Aug 2014 22:48:34 +0000 (01:48 +0300)]
Fixes Hyper-V issue due to ML2 RPC versioning

The ML2 RPC version 1.1 breaks the hyper-v agent and
consequentially the RPC version in the Hyper-V agent needs
to be set to 1.1 to match the ML2 RPC base API version.

Change-Id: Idc4ae8d7dcff4331aca148a8f2a7a2b01679b3a8
Closes-Bug: #1353697

10 years agoA10 Networks LBaaS v1 Driver
Doug Wiegley [Tue, 12 Aug 2014 23:34:30 +0000 (17:34 -0600)]
A10 Networks LBaaS v1 Driver

Change-Id: I32438c33ea28031c0d600e2a9266580e52dfbf54
Implements: blueprint a10networks-lbaas-driver

10 years agoMerge "Fix bigswitch setup.cfg lines"
Jenkins [Wed, 20 Aug 2014 17:39:02 +0000 (17:39 +0000)]
Merge "Fix bigswitch setup.cfg lines"

10 years agoRemove unused network parameter from _allocate_ips_for_port
Carl Baldwin [Tue, 19 Aug 2014 05:07:47 +0000 (05:07 +0000)]
Remove unused network parameter from _allocate_ips_for_port

I found this in the context of a patch that I was reviewing [1].  I
found that patch left a few loose ends and so I thought it would be
better to remove the parameter as a separate refactor so that it can
be carefully reviewed.  The other patch [1] should be rebased to this
one.

[1] https://review.openstack.org/#/c/100963

Change-Id: I75115fa46ea3340ef0f13feb28ad2cdb0387fed7

10 years agocorrects the typos in l3_router_plugin's comments
Prasoon Telang [Wed, 20 Aug 2014 09:01:29 +0000 (14:31 +0530)]
corrects the typos in l3_router_plugin's comments

there were some typos in the docstring of the function
create_floatingip(). This patch corrects them

Change-Id: I869567d5470a27ff037feeabfc1057b8e2da38b7
Closes-Bug: #1359113

10 years agoSupport Stateful and Stateless DHCPv6 by dnsmasq
Xu Han Peng [Fri, 11 Jul 2014 07:30:00 +0000 (15:30 +0800)]
Support Stateful and Stateless DHCPv6 by dnsmasq

* This patch adds support for subnets created with 'ipv6_address_mode'
  set to 'dhcpv6-stateful' or 'dhcpv6-stateless' by dnsmasq.
* If no dnsmasq process for subnet's network is launched, Neutron
  will launch new dnsmasq process on subnet's dhcp port in 'qdhcp-'
  namespace. If previous dnsmasq process is already launched,
  restart dnsmasq with new configuration.
* Neutron will update dnsmasq process and restart it when subnet
  gets updated.
* This patch enforces the version check of dnsmasq. dhcp-agent will
  fail to start if version of dnsmasq<2.63.

DocImpact
UpgradeImpact
Blueprint dnsmasq-ipv6-dhcpv6-stateful
Blueprint dnsmasq-ipv6-dhcpv6-stateless

Change-Id: I30e9950bbc5a89f01ccb9c561471f155a9fd1d11

10 years agoImplements securitygroup extension for nuage plugin
Divya ChanneGowda [Tue, 15 Jul 2014 21:33:30 +0000 (14:33 -0700)]
Implements securitygroup extension for nuage plugin

In Nuage VSP, the scope of vport-tag(Neutron securitygroup equivalent) is either
per router or per subnet whereas securitygroup scope in Neutron is per tenant.
Because of this, the mapping between neutron and VSP resource always happens at
the port create or update time, such that port's router/subnet is known and
thus sg attachment point in VSP is known.
On port-update --security-group sg1, if this is the first port getting attached
to that security-group, corresponding vport-tag(for sg) and rules( for sg rules)
are created on VSP. Subsequent port-update for the same sg1 will just update the
port to vport-tag binding. When security-group and security-group-rules are
deleted on neutron, corresponding vport-tag and rules are deleted on the VSP.

Implements: blueprint securitygroup-ext-for-nuage-plugin

Change-Id: If6f7f16ad727ae9394008fb81b56c785c2404c8f

10 years agoFix bigswitch setup.cfg lines
Kris Lindgren [Wed, 20 Aug 2014 01:33:22 +0000 (19:33 -0600)]
Fix bigswitch setup.cfg lines

Bigswitch was not correctly creating the bigswitch/ssl/ca_certs and
host_certs directories when running the setup.py install step.  This
makes it difficult to correctly package the plugin because it has
missing files/directories.

Fixes bug 1358982

Change-Id: I78c6e96887340ea90494ed9e109b3b7fda6653c9

10 years agoMerge "SecurityGroupRuleExists should point out rule id inseand of group id"
Jenkins [Tue, 19 Aug 2014 21:50:02 +0000 (21:50 +0000)]
Merge "SecurityGroupRuleExists should point out rule id inseand of group id"

10 years agoEnsure ip6tables are used only if ipv6 is enabled in kernel
Jakub Libosvar [Thu, 7 Aug 2014 08:35:07 +0000 (10:35 +0200)]
Ensure ip6tables are used only if ipv6 is enabled in kernel

On systems where ipv6 module is not loaded in kernel we need to avoid
usage of ip6tables. This patch reads
/proc/sys/net/ipv6/conf/default/disable_ipv6 file and if ipv6 is
disabled then ip6tables are not used in IptablesManager

Closes-Bug: #1352893

Change-Id: I07e5851aa25eb98b7a97dff86b9850475df85f64

10 years agoRemove invalid or useless initialization in test_type_vxlan
Cedric Brandily [Fri, 1 Aug 2014 08:04:42 +0000 (10:04 +0200)]
Remove invalid or useless initialization in test_type_vxlan

In test_type_vxlan, vni_ranges option is overriden with an invalid and unused
value, vxlan_group is overrriden but never used.

Change-Id: Ie1ce1d7a8ef54692d122276e371ec5efc2e68d9c

10 years agoMerge "Remove INACTIVE status from FWaaS"
Jenkins [Tue, 19 Aug 2014 10:11:58 +0000 (10:11 +0000)]
Merge "Remove INACTIVE status from FWaaS"

10 years agoMerge "Skip FWaaS config mismatch check if RPC method is unsupported"
Jenkins [Tue, 19 Aug 2014 08:12:42 +0000 (08:12 +0000)]
Merge "Skip FWaaS config mismatch check if RPC method is unsupported"

10 years agoFix migration set_length_of_description_field_metering
Ann Kamyshnikova [Tue, 22 Jul 2014 15:04:00 +0000 (19:04 +0400)]
Fix migration set_length_of_description_field_metering

If PostgreSQL version is less than 9.1.13 migration
set_length_of_description_field_metering fails as there is no
special 'create if not exist' expression. This change add special
function for this case.

Closes-bug: #1348138

Change-Id: Ibe4f370fe400072abd281bd2313261790335eae2

10 years agoSet InnoDB engine for all existing tables
Ann Kamyshnikova [Thu, 24 Jul 2014 10:33:02 +0000 (14:33 +0400)]
Set InnoDB engine for all existing tables

Added the method in heal script that checks if mysql_engine
parameter is needed to be changed and if it is neseccary do this.
Also this change adds migation that set 'mysql_engine' to InnoDB
for all tables that were added into the database after healing.

Closes-bug: #1346966

Change-Id: Ia4d9038b99b2559d37272a17f5819a9dedd53f72

10 years agoReorder operations in create_vip
Eugene Nikanorov [Wed, 13 Aug 2014 11:10:45 +0000 (15:10 +0400)]
Reorder operations in create_vip

Previously VIP's port creation was moved outside the transaction
to avoid deadlocks related to rpc calls.
It led to small chance of VIP being fetched by rpc code with
port being still None.

This patch reorders VIP association with the pool so it's done
only after port has been created.

This patch also leaves small possibility of uncaught exception in
case of pool being concurrently deleted in the process of VIP creation

Change-Id: I584558aecc92db4d19fb72b1d006868b840a4d8c
Closes-Bug: #1356227

10 years agoMerge "Replace nullable from primary keys in tz_network_bindings with default"
Jenkins [Mon, 18 Aug 2014 15:05:44 +0000 (15:05 +0000)]
Merge "Replace nullable from primary keys in tz_network_bindings with default"

10 years agoSend HTTP exceptions in the format expected by neutronclient
Elena Ezhova [Tue, 12 Aug 2014 15:43:09 +0000 (19:43 +0400)]
Send HTTP exceptions in the format expected by neutronclient

Neutron client for the v2 API expects exceptions to have 'type',
'message' and 'detail' attributes. That is why they need to be
included in the body of HTTP Exceptions.

Change-Id: I70bd47977e42ad7bac760600329e9440452b74bc
Closes-Bug: 1355902

10 years agoMerge "Implement namespace cleanup for new DVR namespaces"
Jenkins [Mon, 18 Aug 2014 01:28:17 +0000 (01:28 +0000)]
Merge "Implement namespace cleanup for new DVR namespaces"

10 years agoMerge "Cisco N1kv plugin to send subtype on network profile creation"
Jenkins [Mon, 18 Aug 2014 01:28:04 +0000 (01:28 +0000)]
Merge "Cisco N1kv plugin to send subtype on network profile creation"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 18 Aug 2014 00:11:36 +0000 (00:11 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Do not assume order of new_peers list elements"
Jenkins [Sun, 17 Aug 2014 19:50:43 +0000 (19:50 +0000)]
Merge "Do not assume order of new_peers list elements"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 17 Aug 2014 06:06:09 +0000 (06:06 +0000)]
Imported Translations from Transifex

Change-Id: Idb90ce3c60dc6e668ee316cf36bde79268f95e63

10 years agoMerge "Option to remove routers from dead l3 agents"
Jenkins [Sun, 17 Aug 2014 05:17:11 +0000 (05:17 +0000)]
Merge "Option to remove routers from dead l3 agents"

10 years agoRemove auto-generation of db schema from models at startup
Salvatore Orlando [Mon, 5 Aug 2013 15:07:02 +0000 (08:07 -0700)]
Remove auto-generation of db schema from models at startup

This patch removes the Neutron capability of creating database tables
from sqlalchemy models for all those model classes for which
a table is not found in the database schema.
Migrations should be the official and only solution for creating and
managing the Neutron db schema.
This patch also adapts unit tests in order to ensure test schemas
are still correctly created.

DocImpact
Update deployment documentation accordingly.

Closes-Bug: #1207402

Change-Id: Ie4ee5507888ecad5f6dc32ce7a029c43014687a2
Co-Authored-By: Henry Gessau <gessau@cisco.com>
10 years agoCisco N1kv plugin to send subtype on network profile creation
Marga Millet [Fri, 15 Aug 2014 05:05:23 +0000 (22:05 -0700)]
Cisco N1kv plugin to send subtype on network profile creation

Make sure that the cisco n1kv neutron plugin sends the sub_type too
when a overlay network profile is created

Change-Id: I37e63131039077fa80a28fe725c09f0307acc2ea
Closes-Bug: 1357125

10 years agoMerge "correct getLoggers to use __name__ in code"
Jenkins [Fri, 15 Aug 2014 16:47:46 +0000 (16:47 +0000)]
Merge "correct getLoggers to use __name__ in code"

10 years agoImplement namespace cleanup for new DVR namespaces
Carl Baldwin [Thu, 10 Jul 2014 19:41:40 +0000 (19:41 +0000)]
Implement namespace cleanup for new DVR namespaces

DVR introduces a new namespace type called snat-<router_id>.  These
namespaces are not properly cleaned up when found stale after an agent
restart.  This patch fixes that.

Change-Id: I0d8b83e0b7838957742e72aa2f42b15e0ca67f04
Partially-implements: blueprint neutron-ovs-dvr

10 years agoMerge "Opencontrail plug-in implementation for core resources"
Jenkins [Fri, 15 Aug 2014 16:38:44 +0000 (16:38 +0000)]
Merge "Opencontrail plug-in implementation for core resources"

10 years agoMerge "Updated from global requirements"
Jenkins [Fri, 15 Aug 2014 16:25:38 +0000 (16:25 +0000)]
Merge "Updated from global requirements"

10 years agoNSX: Avoid floating IP status reset
Salvatore Orlando [Fri, 15 Aug 2014 11:20:26 +0000 (04:20 -0700)]
NSX: Avoid floating IP status reset

The method for setting the floating IP status in the NSX plugin
has a flaw that causes in some cases the status to be reset.
This patch removes this bug and also protects against regression
adding status check in the unit test covering floating ip
creation.

This patch also moves the above mentioned unit test in a more
suitable place in the test same module.

Change-Id: Ib08c421ade20ce23b5c08145203a2df6a8f3efa5
Closes-Bug: #1357514

10 years agoMerge "Fix duplicate function: test_getattr_unallowed_attr"
Jenkins [Fri, 15 Aug 2014 07:09:30 +0000 (07:09 +0000)]
Merge "Fix duplicate function: test_getattr_unallowed_attr"

10 years agocorrect getLoggers to use __name__ in code
Aaron Rosen [Fri, 15 Aug 2014 06:52:52 +0000 (23:52 -0700)]
correct getLoggers to use __name__ in code

Previousy the NSX plugin would log as NeutronPlugin. Now it contains
the whole class path like the rest of the log statements.

Change-Id: Ib27a2016a37c808c404489d11b56cc513c003ca1
Closes-bug: 1357214

10 years agoSkip FWaaS config mismatch check if RPC method is unsupported
Akihiro Motoki [Thu, 14 Aug 2014 06:53:47 +0000 (15:53 +0900)]
Skip FWaaS config mismatch check if RPC method is unsupported

In this commit FWaaS config check skip is skipped
if neutron server does not support this API.

Commit d6f014d introduced FWaaS config mismatch check between
server and agent. It added a new RPC method get_service_plugin_list
and bumped l3-agent RPC version to 1.3, but this version RPC is
only supported by L3 router service plugin and
it breaks existing plugins using L3 router mixin.

Bumping l3-agent RPC version requires detailed investigation on all
affected plugins and it can be done by plugin maintainer later.

Change-Id: I388a24b0c6a507203674ef108bb14cea0534f98c
Closes-Bug: #1353309

10 years agoMerge "Fix PortNotFound error during update_device_up for DVR"
Jenkins [Fri, 15 Aug 2014 05:36:03 +0000 (05:36 +0000)]
Merge "Fix PortNotFound error during update_device_up for DVR"

10 years agoMerge "Define some abstract methods in VpnDriver class"
Jenkins [Fri, 15 Aug 2014 05:07:20 +0000 (05:07 +0000)]
Merge "Define some abstract methods in VpnDriver class"

10 years agoMerge "Fixing neutron-db-manage with some options other than upgrade/downgrade"
Jenkins [Fri, 15 Aug 2014 00:19:00 +0000 (00:19 +0000)]
Merge "Fixing neutron-db-manage with some options other than upgrade/downgrade"

10 years agoMerge "NSX: lift restriction on DVR update"
Jenkins [Fri, 15 Aug 2014 00:11:40 +0000 (00:11 +0000)]
Merge "NSX: lift restriction on DVR update"

10 years agoNSX: lift restriction on DVR update
Salvatore Orlando [Thu, 14 Aug 2014 19:46:09 +0000 (12:46 -0700)]
NSX: lift restriction on DVR update

The restriction in place in the code is not justified considered
the capabilities of the DVR extension and the NSX backend.

Transformations of centralized routers into distributed should be
allowed.

Change-Id: I099b90d39247bc9a7adfb87344d77ccd8acfad9e
Closes-Bug: #1357048

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 14 Aug 2014 20:25:02 +0000 (20:25 +0000)]
Updated from global requirements

Change-Id: I3b7f5b18ef5b2bd257eb11669ec35397653cbc8b

10 years agoMerge "Preserve link local IP allocations for DVR fip ns across restart"
Jenkins [Thu, 14 Aug 2014 20:12:03 +0000 (20:12 +0000)]
Merge "Preserve link local IP allocations for DVR fip ns across restart"

10 years agoMerge "l2pop: get_agent_ports: Don't yield (None, {})"
Jenkins [Thu, 14 Aug 2014 17:53:47 +0000 (17:53 +0000)]
Merge "l2pop: get_agent_ports: Don't yield (None, {})"

10 years agoMerge "ML2: Make get_device_details report mac address as well"
Jenkins [Thu, 14 Aug 2014 17:49:58 +0000 (17:49 +0000)]
Merge "ML2: Make get_device_details report mac address as well"

10 years agoMerge "Fix session's InvalidRequestError because of nested rollback"
Jenkins [Thu, 14 Aug 2014 17:10:15 +0000 (17:10 +0000)]
Merge "Fix session's InvalidRequestError because of nested rollback"

10 years agoMerge "Predictable field and filter ordering"
Jenkins [Thu, 14 Aug 2014 13:52:40 +0000 (13:52 +0000)]
Merge "Predictable field and filter ordering"

10 years agoMerge "Use jsonutils instead of stdlib json"
Jenkins [Thu, 14 Aug 2014 13:12:34 +0000 (13:12 +0000)]
Merge "Use jsonutils instead of stdlib json"

10 years agoUse jsonutils instead of stdlib json
Ihar Hrachyshka [Thu, 7 Aug 2014 22:04:44 +0000 (00:04 +0200)]
Use jsonutils instead of stdlib json

jsonutils provides multiple benefits in comparison to pure stdlib json
(like using simplejson on Python 2.6).

Similar patch was already merged before [1], but since it lacked hacking
rule to enforce jsonutils usage, new occurrences of stdlib json module
usage were introduced.

This patch switches all the code to using jsonutils and adds a hacking
rule to enforce the rule.

The hacking rule requires that jsonutils module does not mimic as 'json'
thru using import renames, so the code was updated not to rename the
module when doing import.

The hacking rule was shamelessly copied from the corresponding nova
review [2].

[1]: https://review.openstack.org/#/c/99760/
[2]: https://review.openstack.org/111296/

Change-Id: Ie7a5bb76445e15cde9fbf9ff3d2101a014637b37

10 years agoMerge "Remove SELECT FOR UPDATE use in ML2 tunnel driver add_endpoint"
Jenkins [Thu, 14 Aug 2014 10:28:43 +0000 (10:28 +0000)]
Merge "Remove SELECT FOR UPDATE use in ML2 tunnel driver add_endpoint"

10 years agoMerge "Fix interface add for dvr with gateway"
Jenkins [Thu, 14 Aug 2014 05:22:36 +0000 (05:22 +0000)]
Merge "Fix interface add for dvr with gateway"

10 years agoMerge "Delete DVR namespaces on node after removing last VM"
Jenkins [Thu, 14 Aug 2014 04:41:39 +0000 (04:41 +0000)]
Merge "Delete DVR namespaces on node after removing last VM"

10 years agoMerge "VPNaaS: Cisco fix validation for GW IP"
Jenkins [Thu, 14 Aug 2014 04:31:25 +0000 (04:31 +0000)]
Merge "VPNaaS: Cisco fix validation for GW IP"

10 years agoMerge "Remove ignored do_request timeout argument"
Jenkins [Thu, 14 Aug 2014 03:50:17 +0000 (03:50 +0000)]
Merge "Remove ignored do_request timeout argument"

10 years agoRemove INACTIVE status from FWaaS
Xuhan Peng [Thu, 14 Aug 2014 03:21:53 +0000 (11:21 +0800)]
Remove INACTIVE status from FWaaS

DOWN status is introduced to replace INACTIVE status. There is one
place in FWaaS code which still checks INACTIVE status.

This commit removes INACTIVE status from FWaaS.

Change-Id: I896c81a6229978a46f8a88a31936920a1036f142
Partial-Bug: #1286048

10 years agoMerge "Fix KeyError during sync_routers"
Jenkins [Thu, 14 Aug 2014 02:09:30 +0000 (02:09 +0000)]
Merge "Fix KeyError during sync_routers"

10 years agoMerge "Fix PortNotFound exception during sync_routers"
Jenkins [Thu, 14 Aug 2014 01:13:34 +0000 (01:13 +0000)]
Merge "Fix PortNotFound exception during sync_routers"

10 years agoFix interface add for dvr with gateway
rajeev [Tue, 12 Aug 2014 00:42:18 +0000 (20:42 -0400)]
Fix interface add for dvr with gateway

when an interface is added after router gateway set, external
connectivity using snat fails. Instead of just adding the snat port for
the new subnet, method internal_network_added(..) incorrectly re-adds
all the snat ports with wrong cidr.

Change-Id: I7bfe266288670fba0c90990bf350f43ef7829bad
Closes-bug: #1355087

10 years agol2pop: get_agent_ports: Don't yield (None, {})
YAMAMOTO Takashi [Sun, 10 Aug 2014 23:39:59 +0000 (08:39 +0900)]
l2pop: get_agent_ports: Don't yield (None, {})

There's no point to yield None lvm with empty entries.

Closes-Bug: #1355759
Related: blueprint ofagent-l2pop
Change-Id: I42aeb48a062d35038116978d70c8dac4139a5583

10 years agoML2: Make get_device_details report mac address as well
YAMAMOTO Takashi [Wed, 30 Apr 2014 05:39:10 +0000 (14:39 +0900)]
ML2: Make get_device_details report mac address as well

This will be used by ofagent to route packets to local VMs.

Partially-implements: blueprint ofagent-merge-bridges
Change-Id: Icaa26448a370dd75d09e95ed439df5b486a862cf

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 13 Aug 2014 23:16:20 +0000 (23:16 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fix 404 error fetching metadata when using DVR"
Jenkins [Wed, 13 Aug 2014 23:16:11 +0000 (23:16 +0000)]
Merge "Fix 404 error fetching metadata when using DVR"

10 years agoDelete DVR namespaces on node after removing last VM
Stephen Ma [Wed, 6 Aug 2014 22:33:32 +0000 (22:33 +0000)]
Delete DVR namespaces on node after removing last VM

After removing the last VM using a distributed router,
the router's namespaces are still present on the VM host
The problem is that the neutron API server sent the router
remove notification to the L3 agent using the name of the
host running the L3 agent instead of the agent's uuid. This
caused an error when sending the notification. So the L3
agent never had the chance to cleanup the namespace.
This problem is fixed here.

Afterwards, it was found that the notification was still not
sent. The reason is that the router/L3-agent binding has
already been deleted before the routine that sends the
router removed notification was called. The notifier routine
errored out when it tried to delete the same router/L3 agent
binding. This problem is fixed in this patch by removing the
binding removal step from the DVR scheduler.

Change-Id: I6323d7ff438bb6c31e4a794bd3da96bf132fdc85
Closes-Bug: 1353165

10 years agoFix PortNotFound error during update_device_up for DVR
armando-migliaccio [Wed, 13 Aug 2014 18:39:07 +0000 (11:39 -0700)]
Fix PortNotFound error during update_device_up for DVR

An agent's request to update the ARP entry for a VM port
may come after a deletion request has been processed,
resulting in a PortNotFound exception being raised.

This patch takes care of this condition. A test has
been added, which required a minor refactoring of the
test case class, in order to accommodate the use of
side effects for the objects being mocked.

Closes-bug: #1356120

Change-Id: I40d635bcf47c683663cb4dedf20323902dff2c7f

10 years agoMerge "add auth token to context"
Jenkins [Wed, 13 Aug 2014 17:33:49 +0000 (17:33 +0000)]
Merge "add auth token to context"

10 years agoOption to remove routers from dead l3 agents
Kevin Benton [Wed, 30 Jul 2014 22:49:59 +0000 (15:49 -0700)]
Option to remove routers from dead l3 agents

Add a configuration-enabled periodic check to examine the
status of all L3 agents with routers scheduled to them and
admin_state_up set to True. If the agent is dead, the router
will be rescheduled to an alive agent.

Neutron considers and agent 'dead' when the server doesn't
receive any heartbeat messages from the agent over the
RPC channel within a given number of seconds (agent_down_time).
There are various false positive scenarios where the agent may
fail to report even though the node is still forwarding traffic.

This is configuration driven because a dead L3 agent with active
namespaces forwarding traffic and responding to ARP requests may
cause issues. If the network backend does not block the dead
agent's node from using the router's IP addresses, there will be
a conflict between the old and new namespace.

This conflict should not break east-west traffic because both
namespaces will be attached to the appropriate networks and
either can forward the traffic without state. However, traffic
being overloaded onto the router's external network interface
IP in north-south traffic will be impacted because the matching
translation for port address translation will only be present
on one router. Additionally, floating IPs associated to ports
after the rescheduling will not work traversing the old
namespace because the mapping will not be present.

DocImpact

Partial-Bug: #1174591
Change-Id: Id7d487f54ca54fdd46b7616c0969319afc0bb589

10 years agoRemove SELECT FOR UPDATE use in ML2 tunnel driver add_endpoint
Cedric Brandily [Mon, 7 Jul 2014 22:05:21 +0000 (00:05 +0200)]
Remove SELECT FOR UPDATE use in ML2 tunnel driver add_endpoint

SELECT FOR UPDATE expression, which is triggered with the use of the
SQLAlchemy Query object's with_lockmode('update') method, is
detrimental to performance and scalability of the database
performance code in Neutron due to the lock contention it produces.

SELECT FOR UPDATE can be entirely avoided in add_endpoint methods
with the use of single-shot SELECT and INSERT expressions and the
correction of VxlanEndpoint primary key: indeed previously it was not
possible to create multiple endpoints with the same ip, now the model
primary key constraint ensures it.

Change-Id: Id69fbc15c8f51b4b275cd742312e6ff6802d8c0f
Partial-Bug: #1330562

10 years agoFix KeyError during sync_routers
armando-migliaccio [Tue, 12 Aug 2014 16:11:50 +0000 (09:11 -0700)]
Fix KeyError during sync_routers

Method sync_routers is used by the L3 agent to query
routers it knows about. Routers and GW ports lists
are populated in two different times, which means that
they can be interleaved by a delete request which
results in gateway ports being missing in one of the
two data structures.

This patch takes care of the race condition.

Closes-bug: #1355409

Change-Id: Id3a6fe145058f690e107bfe7023980ede61cff90

10 years agoFix PortNotFound exception during sync_routers
armando-migliaccio [Tue, 12 Aug 2014 05:43:31 +0000 (22:43 -0700)]
Fix PortNotFound exception during sync_routers

This trace is observed when an L3 agent invokes
sync_routers right about the same time a port
interface is removed from a router.

Related-bug: #1355409

Change-Id: I825b25080cbf054462318fc01248692b9e0e4ecb

10 years agoVPNaaS: Cisco fix validation for GW IP
Paul Michali [Wed, 13 Aug 2014 01:26:27 +0000 (21:26 -0400)]
VPNaaS: Cisco fix validation for GW IP

The validation to check that the router has a GW IP
for the Cisco service driver was trying to directly
get the gw_port information, which is not available, as
the validator only has a dict of the vpn_service info.

Modified validator to get the router object (not a
dict representation), using the vpn_service's router_id
and then check the attributes for the router directly.

Change-Id: I48286cda23d9737ddd90251dc0d1db1c310e7784
Closes-Bug: 1356127

10 years agoMerge "NSX: unify the two distributed routing extensions"
Jenkins [Wed, 13 Aug 2014 12:40:54 +0000 (12:40 +0000)]
Merge "NSX: unify the two distributed routing extensions"

10 years agoMerge "Remove unneeded device_owner field from l2pop tuple"
Jenkins [Wed, 13 Aug 2014 06:23:25 +0000 (06:23 +0000)]
Merge "Remove unneeded device_owner field from l2pop tuple"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 13 Aug 2014 06:05:49 +0000 (06:05 +0000)]
Imported Translations from Transifex

Change-Id: I71dc194a5ced63b8549f8bffb82d22774d3da74b

10 years agoFix duplicate function: test_getattr_unallowed_attr
Angus Lees [Wed, 13 Aug 2014 05:50:39 +0000 (15:50 +1000)]
Fix duplicate function: test_getattr_unallowed_attr

This meant only one of the two test cases was ever being run.  Renamed
one.

Change-Id: I37cfe2bb531a3f5015e729bed93d6a59d7d9c15d

10 years agoMerge "NSX: fix wording for configuration option"
Jenkins [Wed, 13 Aug 2014 01:36:53 +0000 (01:36 +0000)]
Merge "NSX: fix wording for configuration option"

10 years agoMerge "Raise exception for network delete with subnets presents"
Jenkins [Wed, 13 Aug 2014 01:36:44 +0000 (01:36 +0000)]
Merge "Raise exception for network delete with subnets presents"