]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Rename qexception->nexception"
Jenkins [Wed, 14 Jan 2015 18:59:32 +0000 (18:59 +0000)]
Merge "Rename qexception->nexception"

9 years agoMerge "Log iptables rules in a readable format"
Jenkins [Wed, 14 Jan 2015 18:54:33 +0000 (18:54 +0000)]
Merge "Log iptables rules in a readable format"

9 years agoLog iptables rules in a readable format
armando-migliaccio [Wed, 14 Jan 2015 00:45:16 +0000 (16:45 -0800)]
Log iptables rules in a readable format

When troubleshooting issues having to parse the \n mentally is kind of
difficult. Be nice to the user and have the newlines interpreted correctly.
It's fine if we waste some spaces in the logs, storage is cheap these days.

Related-bug: #1403291

Change-Id: Ia6c651ae0d17c0165e4fe833c523061a66f7d7d1

9 years agoFix topic for provider security group update
Kevin Benton [Tue, 13 Jan 2015 16:05:19 +0000 (08:05 -0800)]
Fix topic for provider security group update

Commit 8098b6bd20bb12520e438ef9125dc7b96664f712 accidentally changed
the topic for the provider security group update to a regular member
update. This resulted in the L2 agent not asking for the latest
security group rules after a DHCP port was created. If a regular
compute port was brought online and wired up by the L2 agent
before the DHCP port was created, the VM would never get its allow
rule to communicate with the DHCP server.

Co-bug-squasher: Armando

Closes-Bug: #1403291
Change-Id: I382f2e1390c9a3ff558e152eeb76f0f827266cb4

9 years agoMerge "Allow IptablesManager to manage mangle table"
Jenkins [Wed, 14 Jan 2015 00:38:28 +0000 (00:38 +0000)]
Merge "Allow IptablesManager to manage mangle table"

9 years agoMerge "Remove redundant tunnel ids from ovs agent"
Jenkins [Tue, 13 Jan 2015 21:10:03 +0000 (21:10 +0000)]
Merge "Remove redundant tunnel ids from ovs agent"

9 years agoMerge "VMWare NSXv DB model bugfix"
Jenkins [Tue, 13 Jan 2015 18:19:28 +0000 (18:19 +0000)]
Merge "VMWare NSXv DB model bugfix"

9 years agoMerge "hacking: enable H238 (old style class declaration, use new style)"
Jenkins [Tue, 13 Jan 2015 13:48:06 +0000 (13:48 +0000)]
Merge "hacking: enable H238 (old style class declaration, use new style)"

9 years agoMerge "hacking: enable W292 (no newline at end of file)"
Jenkins [Tue, 13 Jan 2015 13:47:52 +0000 (13:47 +0000)]
Merge "hacking: enable W292 (no newline at end of file)"

9 years agoMerge "Update hacking to 0.10"
Jenkins [Tue, 13 Jan 2015 13:08:06 +0000 (13:08 +0000)]
Merge "Update hacking to 0.10"

9 years agoMerge "Ensure config directory created before updating leases"
Jenkins [Tue, 13 Jan 2015 12:50:56 +0000 (12:50 +0000)]
Merge "Ensure config directory created before updating leases"

9 years agoMerge "Validate legacy router services before migration"
Jenkins [Tue, 13 Jan 2015 09:24:06 +0000 (09:24 +0000)]
Merge "Validate legacy router services before migration"

9 years agoMerge "Fix IPv6 Subnet Slaac Check"
Jenkins [Tue, 13 Jan 2015 09:13:04 +0000 (09:13 +0000)]
Merge "Fix IPv6 Subnet Slaac Check"

9 years agoMerge "Use "if dict.get(key):" instead "if key in dict and dict[key]:""
Jenkins [Tue, 13 Jan 2015 09:10:41 +0000 (09:10 +0000)]
Merge "Use "if dict.get(key):" instead "if key in dict and dict[key]:""

9 years agoVMWare NSXv DB model bugfix
Kobi Samoray [Sun, 11 Jan 2015 09:28:42 +0000 (11:28 +0200)]
VMWare NSXv DB model bugfix

DB Model and migration for VMWare NSXv had two issues:
In DB migration, nsxv_security_group_section_mappings table is not dropped on downgrade.
In nsxv_models.py, tz_network_bindings_binding_type enum name should be
nsxv_tz_network_bindings_binding_type to match migration code.

Change-Id: Ib5e8a2078d9c86da6375c7b6a39f48d5bba4e06e
Closes-bug: #1409411

9 years agoMerge "Make L3 HA VIPs ordering consistent in keepalived.conf"
Jenkins [Tue, 13 Jan 2015 06:29:14 +0000 (06:29 +0000)]
Merge "Make L3 HA VIPs ordering consistent in keepalived.conf"

9 years agohacking: enable H238 (old style class declaration, use new style)
Ihar Hrachyshka [Mon, 12 Jan 2015 16:27:14 +0000 (17:27 +0100)]
hacking: enable H238 (old style class declaration, use new style)

The rule was added in hacking 0.10 and is useful for migration to Python 3.

Change-Id: I8b45413cf34e5a9db8074f9029410e3b22a92640

9 years agohacking: enable W292 (no newline at end of file)
Ihar Hrachyshka [Mon, 12 Jan 2015 16:15:31 +0000 (17:15 +0100)]
hacking: enable W292 (no newline at end of file)

This check was added in hacking 0.10.

Change-Id: If063742bc1be595d1d91b60d9059a01e94d31696

9 years agoUpdate hacking to 0.10
Ihar Hrachyshka [Mon, 12 Jan 2015 16:04:14 +0000 (17:04 +0100)]
Update hacking to 0.10

Release notes:
http://git.openstack.org/cgit/openstack-dev/hacking/tag/?id=0.10.0

* Remove references in tox.ini to removed rules.
* Remove custom @author check since it's now implemented in hacking.
* Move N323 to N322 that is freed due to @author check removal.
* Temporarily skip W292 (no newline at the end of file).
* Temporarily skip H238 (old style classes).

Change-Id: I6d990a564df6a312bd09b2a152315bbdba732082

9 years agoUse "if dict.get(key):" instead "if key in dict and dict[key]:"
Wei Wang [Thu, 7 Aug 2014 08:16:37 +0000 (16:16 +0800)]
Use "if dict.get(key):" instead "if key in dict and dict[key]:"

Use "if dict.get(key):" instead of "if key in dict and dict[key]:"
which makes code more clear and intelligible. Note this patch doesn't
change judging conditions, all "is not None" are retained.

Change-Id: Ieed57a21eb4b08c6f9a25b180a3625154a0d5fde

9 years agoRename qexception->nexception
Aaron Rosen [Mon, 12 Jan 2015 21:55:32 +0000 (13:55 -0800)]
Rename qexception->nexception

A few qexception references where still present in the code this patch
renames them to nexecption.

find . -name "*.py" -print | xargs sed -i 's/qexception/nexception/g'
TrivialFix

Change-Id: I9530c7a23deb3a40c3720bc8fc99ce09dbd88dd9

9 years agoFix AttributeError on check_foreign_keys in functional job
armando-migliaccio [Mon, 12 Jan 2015 21:26:49 +0000 (13:26 -0800)]
Fix AttributeError on check_foreign_keys in functional job

Since change 75b402be3b8, the method is no longer available. This
patch makes a similar fix for the Neutron's functiona job test case.

Closes-bug: #1409909

Change-Id: I7866c0bf6c5fe3f37c5a7ea7f9161087b913127a

9 years agoEnsure config directory created before updating leases
Miguel Angel Ajo [Mon, 5 Jan 2015 12:34:53 +0000 (12:34 +0000)]
Ensure config directory created before updating leases

Under high load conditions dhcp-agent could try to start the
dhcp local process via reload_allocations. But it will fail since
the dhcp config directory for the specific network is not
created yet.

We ensure its creation with this patch.

Closes-Bug: 1407618

Change-Id: Ib37651f7f802debd472ab292b148c2a2496063a3

9 years agoAllow IptablesManager to manage mangle table
Cedric Brandily [Tue, 18 Nov 2014 09:34:30 +0000 (10:34 +0100)]
Allow IptablesManager to manage mangle table

This change enables the IptablesManager to manage mangle table (used
by daughter change).

Partial-Bug: #1187102
Change-Id: Ic2d681f1515aaa541c6d137ce981622f2fff90e5

9 years agoFix IPv6 Subnet Slaac Check
WeiHu [Tue, 30 Dec 2014 02:45:55 +0000 (10:45 +0800)]
Fix IPv6 Subnet Slaac Check

Currently, "is_slaac_subnet" method only checks "ipv6_address_mode".
This will let neutron allocate a stateful IPv6 address for instance
when ipv6_ra_mode set to "stateless" or "slaac", and "ipv6_address_mode"
unset. But actually, instance get IPv6 address prefix from radvd, and
auto configure IPv6 address by itself. This change will let "is_slaac_
subnet" also check ipv6_ra_mode attribute, which will no longer allow
fixed IPs on auto-address subnets and delete subnet will correctly delete
auto-address ports.

Change-Id: Ic99193a0a2669fb281759d9b47c7aae6a4f6ecce
Closes-Bug: 1406436

9 years agoMerge "Confusing message deleting default security group"
Jenkins [Mon, 12 Jan 2015 03:38:38 +0000 (03:38 +0000)]
Merge "Confusing message deleting default security group"

9 years agoMerge "Fix UT for L2pop test_get_agent_ports_no_data()"
Jenkins [Mon, 12 Jan 2015 01:00:44 +0000 (01:00 +0000)]
Merge "Fix UT for L2pop test_get_agent_ports_no_data()"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 12 Jan 2015 00:37:59 +0000 (00:37 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Reset policies after RESOURCE_ATTRIBUTE_MAP is populated"
Jenkins [Sun, 11 Jan 2015 21:28:53 +0000 (21:28 +0000)]
Merge "Reset policies after RESOURCE_ATTRIBUTE_MAP is populated"

9 years agoMerge "Move metadata agent entry to its own file"
Jenkins [Sun, 11 Jan 2015 17:48:22 +0000 (17:48 +0000)]
Merge "Move metadata agent entry to its own file"

9 years agoMerge "Scope metadata rpc api using a messaging namespace"
Jenkins [Sun, 11 Jan 2015 15:32:31 +0000 (15:32 +0000)]
Merge "Scope metadata rpc api using a messaging namespace"

9 years agoMerge "Provide doc string pointers for the dhcp agent rpc api"
Jenkins [Sun, 11 Jan 2015 15:29:08 +0000 (15:29 +0000)]
Merge "Provide doc string pointers for the dhcp agent rpc api"

9 years agoMerge "Clarify dnsmasq version check failure message"
Jenkins [Sun, 11 Jan 2015 14:13:31 +0000 (14:13 +0000)]
Merge "Clarify dnsmasq version check failure message"

9 years agoMerge "Break out config and entry point out of l3/agent file"
Jenkins [Sun, 11 Jan 2015 10:08:11 +0000 (10:08 +0000)]
Merge "Break out config and entry point out of l3/agent file"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 11 Jan 2015 06:11:26 +0000 (06:11 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ie5d4fbe89c4ab2f8b99dbc6099bc962310a1e8f0

9 years agoMove metadata agent entry to its own file
armando-migliaccio [Fri, 9 Jan 2015 18:35:59 +0000 (10:35 -0800)]
Move metadata agent entry to its own file

Break main() and configs out of agent logic. This makes metadata
consistent with the L3 and DHCP agents [1, 2].

Along with [3], this is done to better delineate what the agent module
inner boundaries are about. More to follow to finish off the cleanup.

[1] https://review.openstack.org/#/c/145979/
[2] https://review.openstack.org/#/c/146024/
[3] https://review.openstack.org/#/c/146151/

Change-Id: I2842f7c21db6f6dabdd2549f91a9001220454c22

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 9 Jan 2015 23:16:20 +0000 (23:16 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Remove SELECT FOR UPDATE from delete_network and delete_subnet"
Jenkins [Fri, 9 Jan 2015 22:31:13 +0000 (22:31 +0000)]
Merge "Remove SELECT FOR UPDATE from delete_network and delete_subnet"

9 years agoMerge "Deal with PEP-0476 certificate chaining checking"
Jenkins [Fri, 9 Jan 2015 21:58:39 +0000 (21:58 +0000)]
Merge "Deal with PEP-0476 certificate chaining checking"

9 years agoMerge "Skip adding ips from non dhcp enabled subnets to hosts file"
Jenkins [Fri, 9 Jan 2015 21:55:17 +0000 (21:55 +0000)]
Merge "Skip adding ips from non dhcp enabled subnets to hosts file"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 9 Jan 2015 18:29:08 +0000 (18:29 +0000)]
Updated from global requirements

Change-Id: I3f60658b85fe3da9575601658b1b86b1e2aee4de

9 years agoScope metadata rpc api using a messaging namespace
Russell Bryant [Thu, 18 Dec 2014 20:11:07 +0000 (20:11 +0000)]
Scope metadata rpc api using a messaging namespace

This patch does a couple of things.  First it adds docstrings to the
client/server pair of the rpc interface used by the metadata service
to make calls back into the Neutron server.  The docs tell you where
the other side of the interface is found in the code, and where docs
are that give more info on the rules for changing them.

The second thing done in this patch is to scope this interface using a
messaging namespace.  Right now some plugins expose several interfaces
via the default namespace.  This effectively means they are a single
API and should be managed with a single version stream.  It's much
more managable to just treat these as separate interfaces and this
change makes that explicit and functionally true.  Now when a method
is invoked, the only classes considered for handling that request will
be ones marked with the right namespace.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I3330229bf85b01d50c90e9ca064ae5e0fae83509

9 years agoProvide doc string pointers for the dhcp agent rpc api
Russell Bryant [Wed, 17 Dec 2014 19:55:43 +0000 (19:55 +0000)]
Provide doc string pointers for the dhcp agent rpc api

There is an rpc interface defined for the Neutron plugin to be able to
execute methods in the DHCP agent.  Provide docstring pointers in the
client and server side that tells you where to find the other side of
the interface.

No namespace usage is needed here.  This API is the only one exposed
via the DHCP agent, so the default namespace used now is fine.

The DhcpAgent class was updated to explicitly define the
messaging.Target().  Previously it was using the equivalent one
defined in the Manager base class.  Having it specified here makes it
more obvious that this is an rpc endpoint, and also provides the
obvious place that must have the version updated if the interface is
changed.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I4a6eb8dacb9ba01f329a5d5961dc0e0ee6f780ba

9 years agoLimit permission change
armando-migliaccio [Fri, 9 Jan 2015 02:03:17 +0000 (18:03 -0800)]
Limit permission change

A failure was observed where the functional job would fail with error

chmod: changing permissions of ./neutron/agent/metadata/namespace_proxy.pyc
Operation not permitted

We should limit the permission change to logs only to avoid this potential
error.

Change-Id: I28f4060bab0edd1cd0c4e25eec9017601f4bdf24

9 years agoBreak out config and entry point out of l3/agent file
armando-migliaccio [Fri, 9 Jan 2015 00:12:41 +0000 (16:12 -0800)]
Break out config and entry point out of l3/agent file

This is done in order to show the split between a main() and
the agent's inner workings. At the same time the L3 agent for
Neutron is also being restructured and to this aim, its config
is also moved out of the agent file.

Keep main() for the time being until we get dependent
services updated.

Partially-Implements: bp restructure-l3-agent
Partially-Implements: bp core-vendor-decomposition

Change-Id: I0d07d91ba301ee1aa51dabcf964a96edc0d6a3e0

9 years agoValidate legacy router services before migration
Swaminathan Vasudevan [Fri, 19 Sep 2014 17:41:09 +0000 (10:41 -0700)]
Validate legacy router services before migration

When legacy routers are migrated to distributed
routers, we need to make sure that there are no
Advanced services associated with the router.

If Advanced services such as FWaaS or VPNaaS is
associated with the router, we raise an exception
and stop the migration.

Partial-bug: #1348309

DocImpact

Change-Id: I65909040a16b022108e481344064d375050d731c

9 years agoMerge "Deletes floating agent gw port on disassociate"
Jenkins [Thu, 8 Jan 2015 20:11:58 +0000 (20:11 +0000)]
Merge "Deletes floating agent gw port on disassociate"

9 years agoMerge "Catch PortNotFound and SubnetNotFound during network_delete"
Jenkins [Thu, 8 Jan 2015 20:01:55 +0000 (20:01 +0000)]
Merge "Catch PortNotFound and SubnetNotFound during network_delete"

9 years agoMerge "Correct l3-agent iptables rule for metadata proxy"
Jenkins [Thu, 8 Jan 2015 17:23:53 +0000 (17:23 +0000)]
Merge "Correct l3-agent iptables rule for metadata proxy"

9 years agoClarify dnsmasq version check failure message
Ihar Hrachyshka [Thu, 8 Jan 2015 15:25:01 +0000 (16:25 +0100)]
Clarify dnsmasq version check failure message

It not only *may* not run correctly, it *will*, since we exit the agent.

Change-Id: Icd5c22da3b4c60751265183563cf3a1edc814215

9 years agoRemove redundant tunnel ids from ovs agent
Darragh O'Reilly [Thu, 8 Jan 2015 11:33:09 +0000 (11:33 +0000)]
Remove redundant tunnel ids from ovs agent

tunnel ids were specific to the OVS plugin which was removed in Juno.

Change-Id: I369203a23ad4af1d307166aae84aee817572370b

9 years agoMerge "Improve unit test coverage for Ml2 db.py"
Jenkins [Thu, 8 Jan 2015 10:16:39 +0000 (10:16 +0000)]
Merge "Improve unit test coverage for Ml2 db.py"

9 years agoMerge "Fix DVR flow problems for IPv6 subnet"
Jenkins [Thu, 8 Jan 2015 03:50:19 +0000 (03:50 +0000)]
Merge "Fix DVR flow problems for IPv6 subnet"

9 years agoMerge "Add Process class helper to manage processes with namespace"
Jenkins [Wed, 7 Jan 2015 22:29:15 +0000 (22:29 +0000)]
Merge "Add Process class helper to manage processes with namespace"

9 years agoCorrect l3-agent iptables rule for metadata proxy
Cedric Brandily [Thu, 11 Dec 2014 13:10:30 +0000 (13:10 +0000)]
Correct l3-agent iptables rule for metadata proxy

2 iptables rules are defined to ensure the metadata proxy is reachable
from vms on 169.254.169.254:80:
* REDIRECT 169.254.169.254:80 packets to the router on port 9697
* ACCEPT traffic to 127.0.0.1 on port 9697

The REDIRECT rule replaces destination ip by:
 * 127.0.0.1 if the packet is local,
 * router ip (the one on the input interface, metadata proxy case).

So ACCEPT rule filter is not matched ... the metadata proxy is only
reachable because INPUT policy is ACCEPT.

This change removes the destination constraint in the ACCEPT rule.

Change-Id: Iea700bdd121bbc56a3489a63e2a5391867fad0d6
Closes-Bug: #1399462

9 years agoFix UT for L2pop test_get_agent_ports_no_data()
Jakub Libosvar [Tue, 6 Jan 2015 22:21:57 +0000 (23:21 +0100)]
Fix UT for L2pop test_get_agent_ports_no_data()

Previously loop in this test has never been executed because returned
generator was empty. This patch validates that generator is empty.

Change-Id: I900cd7bccee16487ab5469a2222afd294d9dee25
Closes-Bug: #1365388

9 years agoMerge "Bump minimal dnsmasq version to 2.67"
Jenkins [Wed, 7 Jan 2015 18:10:04 +0000 (18:10 +0000)]
Merge "Bump minimal dnsmasq version to 2.67"

9 years agoMerge "Updated keystone_admin conf section to reflect changes in middleware"
Jenkins [Wed, 7 Jan 2015 15:50:31 +0000 (15:50 +0000)]
Merge "Updated keystone_admin conf section to reflect changes in middleware"

9 years agoMerge "Replace mention of nose with nose2 in devref"
Jenkins [Wed, 7 Jan 2015 15:49:14 +0000 (15:49 +0000)]
Merge "Replace mention of nose with nose2 in devref"

9 years agoReset policies after RESOURCE_ATTRIBUTE_MAP is populated
Brent Eagles [Fri, 10 Oct 2014 15:57:51 +0000 (13:27 -0230)]
Reset policies after RESOURCE_ATTRIBUTE_MAP is populated

The REST API relies on neutron-specific policy checking logic that is
only available after the extensions are loaded and the
RESOURCE_ATTRIBUTE_MAP is populated. This patch resets the policies
immediately after these steps are done. This ensures that in the event
the policies are prematurely loaded for any reason, the on-demand
loading of the policies will reload the policies and properly configure
the neutron specific checks on the next policy check.

Change-Id: Ic2ab3f0179b0c192e63af0bc4268d92aa26bdabe
Closes-Bug: #1398566
Related-Bug: #1254555

9 years agoRemove SELECT FOR UPDATE from delete_network and delete_subnet
rossella [Tue, 16 Sep 2014 22:30:12 +0000 (22:30 +0000)]
Remove SELECT FOR UPDATE from delete_network and delete_subnet

delete_network and delete_subnet instead of using SELECT FOR UPDATE
delete the ports that are allowed to be auto deleted straight away.
Then a check is performed, if there are ports still associated
with the network or the subnet that cannot be autodeleted,
an exception is raised. The operation will be rolled back.

Partial-bug: #1331564

Change-Id: I29178204b3a220c1c6010f59272981fb1b4099fe

9 years agoBump minimal dnsmasq version to 2.67
Ihar Hrachyshka [Wed, 7 Jan 2015 12:23:48 +0000 (13:23 +0100)]
Bump minimal dnsmasq version to 2.67

Versions prior to 2.67 did not support MAC address matching for IPv6 clients.
Quoting dnsmasq CHANGELOG:

"
version 2.67
[...]
    Support identification of clients by MAC address in
    DHCPv6. When using a relay, the relay must support RFC
    6939 for this to work. It always works for directly
    connected clients. Thanks to Vladislav Grishenko
    for prompting this feature.
"

Change-Id: I2f7dba6e3f8ea4ddebe7638d908b2ae42997225a
Closes-Bug: #1408297

9 years agoMake L3 HA VIPs ordering consistent in keepalived.conf
Assaf Muller [Tue, 23 Dec 2014 11:52:41 +0000 (13:52 +0200)]
Make L3 HA VIPs ordering consistent in keepalived.conf

Currently the order of VIPs in keepalived.conf is determined
by sorting the VIPs whenever one is added or removed. As it
turns out, keepalived doesn't like it when the primary VIP
changes. One side effect is that virtual routes, in our case
the router's default route, may be removed.

This patch fabricates an IP address on the router's HA interface
and uses it as the primary VIP.

Closes-Bug: #1404945
Change-Id: I993daf594a28918de6fafff465f5f40e7b89305e

9 years agoAdd Process class helper to manage processes with namespace
Jakub Libosvar [Fri, 3 Oct 2014 12:02:55 +0000 (14:02 +0200)]
Add Process class helper to manage processes with namespace

This class extends Popen class with usage of namespace and root-helper.
Because of usage of root wrapper, this class re-uses get_child_pid() for
killing the child process. get_child_pid() is taken out of AsyncProcess
as a part of this patch.

Change-Id: I856b3ec75f347ecccaf4a1c6fd17b28a33ee1a3f
Related-Bug: 1243216

9 years agoMake lb mechanism driver use enable_security_group flag
Darragh O'Reilly [Wed, 3 Dec 2014 19:51:16 +0000 (19:51 +0000)]
Make lb mechanism driver use enable_security_group flag

This patch allows Neutron security groups to be enabled or
disabled with the enable_security_group flag when using the
linuxbridge ml2 mechanism driver.

Closes-Bug: #1398996
Change-Id: I883c67c93e85668cd9d90b0486e448d906fdf8ed

9 years agoMerge "Validate IPv6 subnet while associating to Router"
Jenkins [Wed, 7 Jan 2015 07:49:30 +0000 (07:49 +0000)]
Merge "Validate IPv6 subnet while associating to Router"

9 years agoCatch PortNotFound and SubnetNotFound during network_delete
Eugene Nikanorov [Tue, 23 Dec 2014 17:28:12 +0000 (20:28 +0300)]
Catch PortNotFound and SubnetNotFound during network_delete

In some cases PortNotFound exception during network_delete
could be caused by concurrent port deletion by DHCP agent.
This condition should not prevent network from deleting.

Change-Id: Ie6eae4cecb64120c41de9823d9e72066094ad2ce
Closes-Bug: #1405197

9 years agoMerge "Add developer documentation for plugins/drivers contributions"
Jenkins [Wed, 7 Jan 2015 04:51:34 +0000 (04:51 +0000)]
Merge "Add developer documentation for plugins/drivers contributions"

9 years agoMerge "HA for DVR - schema migration and change"
Jenkins [Wed, 7 Jan 2015 02:48:09 +0000 (02:48 +0000)]
Merge "HA for DVR - schema migration and change"

9 years agoMerge "Reduce duplicate code in test_iptables_manager"
Jenkins [Wed, 7 Jan 2015 02:26:44 +0000 (02:26 +0000)]
Merge "Reduce duplicate code in test_iptables_manager"

9 years agoMerge "Delete the console scripts for lbaas and vpnaas"
Jenkins [Wed, 7 Jan 2015 02:20:22 +0000 (02:20 +0000)]
Merge "Delete the console scripts for lbaas and vpnaas"

9 years agoMerge "Add support for retargetable functional api testing"
Jenkins [Wed, 7 Jan 2015 01:25:13 +0000 (01:25 +0000)]
Merge "Add support for retargetable functional api testing"

9 years agoMerge "Revert "Revert "Add metadata proxy L3 agent driver"""
Jenkins [Wed, 7 Jan 2015 00:10:44 +0000 (00:10 +0000)]
Merge "Revert "Revert "Add metadata proxy L3 agent driver"""

9 years agoMerge "moving vxlan module check to sanity checks and making practical"
Jenkins [Tue, 6 Jan 2015 23:54:50 +0000 (23:54 +0000)]
Merge "moving vxlan module check to sanity checks and making practical"

9 years agoMerge "Drop functional/contrib directory"
Jenkins [Tue, 6 Jan 2015 23:26:42 +0000 (23:26 +0000)]
Merge "Drop functional/contrib directory"

9 years agoHA for DVR - schema migration and change
rajeev [Tue, 23 Dec 2014 18:49:19 +0000 (13:49 -0500)]
HA for DVR - schema migration and change

To support HA for DVR SNAT, default SNAT has to be schedulable
on multiple L3 agents. The csnat_l3_agent_bindings table is being
modified to include l3_agent_id in the primary key.
The migration script and Class definition update is included in
this patch. For modularity and code management, HA/DVR methods
that would make use of this change will be included in a different
patch.

Partial-bug: #1365473
Change-Id: Idfe93cace0c1b633be6e786206fbec6e1f3c13cd

9 years agoMerge "VMWare-NSXv: VMWare NSXv database models"
Jenkins [Tue, 6 Jan 2015 22:31:46 +0000 (22:31 +0000)]
Merge "VMWare-NSXv: VMWare NSXv database models"

9 years agoRevert "Revert "Add metadata proxy L3 agent driver""
Assaf Muller [Mon, 22 Dec 2014 15:01:37 +0000 (17:01 +0200)]
Revert "Revert "Add metadata proxy L3 agent driver""

This reverts commit 658dc9d30cfb337159df40fdd62c50de182d83aa.

The L3 agent metadata driver was added but then reverted
because it broke the functional job. The fix to the functional
job was merged, and this patch reverts the revert, thereby
adding the metadata driver back.

Change-Id: Ice7ae845d1d5063b116824f49961ff060a0b2baa

9 years agomoving vxlan module check to sanity checks and making practical
Matthew Thode [Wed, 10 Dec 2014 21:12:25 +0000 (15:12 -0600)]
moving vxlan module check to sanity checks and making practical

Instead of checking via modinfo (which only checks if a module is
available) this checks actual usage, which is a more reliable way of
testing real world problems.

Change-Id: Ida78652ed50e2cb16fa0ab7194d8468714b99d61
Closes-Bug: 1339197

9 years agoDrop functional/contrib directory
armando-migliaccio [Tue, 6 Jan 2015 19:03:14 +0000 (11:03 -0800)]
Drop functional/contrib directory

This has been replaced by tests/contrib and the infra change [1]
is now in force and this copy is no longer necessary.

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

Change-Id: Idbe0814e6b258d2f394894c1923f459cc1bdd4d2

9 years agorefactor l3-agent to include dvr.py
Michael Smith [Thu, 18 Dec 2014 17:11:14 +0000 (09:11 -0800)]
refactor l3-agent to include dvr.py

Creation of a dvr.py file to hold dvr related
classes/data/methods.

Change-Id: I7b59ca18f13b583b404be61558224384bc2db2c5
Partially-Implements: bp/restructure-l3-agent

9 years agoValidate IPv6 subnet while associating to Router
sridhargaddam [Mon, 24 Nov 2014 10:17:36 +0000 (10:17 +0000)]
Validate IPv6 subnet while associating to Router

Currently Neutron allows attaching a subnet (configured to use an external
router, by only setting ipv6_address_mode and leaving ipv6_ra_mode unset)
to Neutron Router. Ideally Neutron should not allow this operation and
should return an appropriate error message to the user.

APIImpact
Closes-Bug: #1393527
Change-Id: I9d597e6f5e8aea63222bb9f5ed8289e4ce28bbc3

9 years agoMerge "Check metadata iptables chains during functional test"
Jenkins [Tue, 6 Jan 2015 15:59:32 +0000 (15:59 +0000)]
Merge "Check metadata iptables chains during functional test"

9 years agoMerge "print error when no match mapping found in check_segment_for_agent"
Jenkins [Tue, 6 Jan 2015 13:53:18 +0000 (13:53 +0000)]
Merge "print error when no match mapping found in check_segment_for_agent"

9 years agoMerge "Fix neutron hang for IPv6 allocation pool update"
Jenkins [Tue, 6 Jan 2015 13:53:04 +0000 (13:53 +0000)]
Merge "Fix neutron hang for IPv6 allocation pool update"

9 years agoMerge "Removed spurious check for ip version"
Jenkins [Tue, 6 Jan 2015 13:52:49 +0000 (13:52 +0000)]
Merge "Removed spurious check for ip version"

9 years agoMerge "Enable the "not-callable" pylint check"
Jenkins [Tue, 6 Jan 2015 13:20:15 +0000 (13:20 +0000)]
Merge "Enable the "not-callable" pylint check"

9 years agoVMWare-NSXv: VMWare NSXv database models
Kobi Samoray [Thu, 25 Dec 2014 10:06:16 +0000 (12:06 +0200)]
VMWare-NSXv: VMWare NSXv database models

For Kilo, the vendor-specific code should be moved to stackforge repo,
excluding the database models (https://review.openstack.org/#/c/134680/).
This patch adds the database model for VMWare NSXv plugin from
stackforge/vmware-nsx repo.

Partially-Implements: blueprint vmware-nsx-v

Change-Id: I17cbc1ba59131bd3bdefa232800842a9e739945f

9 years agoDeal with PEP-0476 certificate chaining checking
James Page [Tue, 6 Jan 2015 12:01:40 +0000 (12:01 +0000)]
Deal with PEP-0476 certificate chaining checking

PEP-0476 introduced more thorough certificate chain verfication
for HTTPS connectivity; this was introduced in Python 2.7.9, and
breaks a number of unit tests in the neutron codebase.

Disable certificate chain verification for keystone SSL tests
using the backwards compatible SSLContext provided for this
purpose.

Change-Id: I25859d8981a022b4f625ce57ecd28da3820a7b17
Closes-Bug: #1403068

9 years agoMerge "Add help text for 'host' parameter in neutron.conf file"
Jenkins [Tue, 6 Jan 2015 11:38:41 +0000 (11:38 +0000)]
Merge "Add help text for 'host' parameter in neutron.conf file"

9 years agoReduce duplicate code in test_iptables_manager
zhiyuan_cai [Mon, 29 Dec 2014 10:48:49 +0000 (18:48 +0800)]
Reduce duplicate code in test_iptables_manager

test_iptables_manager contains many hard-code iptables dumps
which share most of the contents, extract the common part to
reduce duplication.

Change-Id: I2e373f8fe26f77db832da00c56ada6cfa3c50746

9 years agoMerge "Tweak gate hooks scripts to handle both functional and api jobs"
Jenkins [Tue, 6 Jan 2015 07:48:49 +0000 (07:48 +0000)]
Merge "Tweak gate hooks scripts to handle both functional and api jobs"

9 years agoMerge "Stale VXLAN & GRE tunnel endpoint deletion from DB"
Jenkins [Tue, 6 Jan 2015 05:43:57 +0000 (05:43 +0000)]
Merge "Stale VXLAN & GRE tunnel endpoint deletion from DB"

9 years agoAdd support for retargetable functional api testing
Maru Newby [Tue, 25 Mar 2014 08:04:50 +0000 (01:04 -0700)]
Add support for retargetable functional api testing

This patch introduces the concept of a 'retargetable' functional api
test.  Such a test targets an abstract client class, and by varying
the implementation of the client, the test can target multiple
backends.

The test added by this patch (test_network_lifecycle) can be run
against the programmatic plugin api (for configured plugins) via both
tox -e functional and tox -e dsvm-functional.  The latter env is used
by the gating neutron-dsvm-functional job.

The test can also be run against a live Neutron service via 'tox -e api'
which will soon be run as part of the check queue by the
neutron-dsvm-api job [1].  Running this tox env requires
devstack-deployed Neutron and Tempest.

The intention is to refactor the existing plugin tests
(e.g. NeutronDbPluginV2TestCase) to use this model.  Functional tests
don't have to isolate functionality - they just need to exercise it -
so fewer tests will be required.  The new tests will be able to target
plugins directly rather than through the wsgi stack, so execution time
will be decreased.  The refactored tests should be easier to maintain
and take less time to run.

Perhaps best of all, since the same tests will be able to target a
deployed service in the neutron-dsvm-api job, the deployed behaviour
of api changes will finally be able to gate merges to the Neutron
tree.

Notable parts of the change:

- tests/api
  - base_v2 -      defines the client interface (BaseNeutronClient)
                   and the base class (BaseTestApi) for the
                   retargetable test (test_network_lifecycle)

  - test_v2_rest - implements the client interface for the tempest
                   rest client and configures the retargetable test
                   with scenarios for json serialization

- tests/functional/api
  - test_v2_plugin - implements the client interface for the
                     programmatic plugin api and configures the
                     retargetable test with scenarios targeting the
                     linuxbridge and openvswitch plugins

- tests/unit
  - refactor bits of the existing plugin tests for reuse

1: https://review.openstack.org/#/c/82226/

Implements: bp retargetable-functional-testing
Change-Id: Ib5470040c0fa91ec143f38d273e1e259b3adfb2e

9 years agoprint error when no match mapping found in check_segment_for_agent
Yalei Wang [Mon, 29 Dec 2014 05:17:30 +0000 (13:17 +0800)]
print error when no match mapping found in check_segment_for_agent

error print when no match PHYSICAL_NETWORK mapping found in function
check_segment_for_agent for OVS and linuxbridge mechanism driver.

Change-Id: I58c43328f0512de25720871fc51c79f074493cdf
Closes-Bug: #1404962

9 years agoTweak gate hooks scripts to handle both functional and api jobs
armando-migliaccio [Wed, 17 Dec 2014 22:33:42 +0000 (14:33 -0800)]
Tweak gate hooks scripts to handle both functional and api jobs

With this change both the API and Functional job will benefit
from the use of gate hooks. This is especially useful to make
the API job emit the test results the same way other jobs do.

NOTE: Changes are applied to both contrib directories under
neutron/tests and neutron/tests/functional; these two directories
are supposed to be in sync until change [1] merges, after which
we can drop neutron/tests/functional/contrib, in favor of
neutron/tests/contrib. This was done because of the symlink issue
caused by [2].

[1] https://review.openstack.org/#/c/142603/
[2] https://review.openstack.org/#/c/143152/

Change-Id: I0b823b17d6317e9409fd9b5872c5f4674c1b6824

9 years agoReplace mention of nose with nose2 in devref
Maru Newby [Tue, 6 Jan 2015 00:42:52 +0000 (00:42 +0000)]
Replace mention of nose with nose2 in devref

Documentation for the nose test runner was previously included in the
testing section of the developer reference.  Due to nose's lack of
support for the load_tests protocol - required to support
testscenarios-based generative testing - the documentation has been
updated to suggest the load_tests-supporting nose2 instead.

Change-Id: I5beb8619d5045372472021ed7eb19bddd0de5862

9 years agoSkip adding ips from non dhcp enabled subnets to hosts file
Itsuro Oda [Tue, 6 Jan 2015 00:35:25 +0000 (09:35 +0900)]
Skip adding ips from non dhcp enabled subnets to hosts file

If a network had a mix of dhcp and non dhcp enabled subnets,
then ips from all subnets were added to the hosts file.
This fix ensures only ips from dhcp enabled subnets are added.

Closes-Bug: #1316444
Change-Id: I673088f7be0fb16a27b09e07f8ac41d21d1ea4d4

9 years agoAdd developer documentation for plugins/drivers contributions
armando-migliaccio [Thu, 11 Dec 2014 21:18:40 +0000 (13:18 -0800)]
Add developer documentation for plugins/drivers contributions

This is the initial step to provide documentation and
how-to for developers interested in contributing plugins and
drivers according to the core-vendor-decomp proposal.

Partially-implements: blueprint core-vendor-decomposition

Change-Id: Ib8b6cc5fd72eb1b8b4b4b2bdbda132062c81cbc1

9 years agoDeletes floating agent gw port on disassociate
Swaminathan Vasudevan [Tue, 25 Nov 2014 23:47:59 +0000 (15:47 -0800)]
Deletes floating agent gw port on disassociate

This patch deletes the floating agent gw port
on floatingip disassociate.

A recent change in the neutron trunk broke
this functionality. This was introduced by
the patch that addressed the re-order
operations in (l3_dvr) update floating ip.

The current patch fixes the problem.

Change-Id: I98e766cf4ed33412d9d5dae07217553acbb5009c
Closes-Bug: #1394026