]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoDeprecate external_network_bridge option in L3 agent
Kevin Benton [Wed, 2 Sep 2015 02:35:33 +0000 (19:35 -0700)]
Deprecate external_network_bridge option in L3 agent

This option provides another way to attach to a specific bridge
that is not quite equivalent with how bridge_mappings work in the
L2 agent. This creates inconsistencies between how the L3 agent
behaves when configured with a bridge_mapping and provider properties
of the Neutron network vs. when it just ignores all L2 stuff and
plugs itself directly into the bridge.

See the bug report for more info.

Change-Id: I37de3cd6eaaf34856fa72753f471f4f0a9381836
Closes-Bug: #1491668

9 years agoMerge "Do not track active reservations"
Jenkins [Wed, 2 Sep 2015 22:12:53 +0000 (22:12 +0000)]
Merge "Do not track active reservations"

9 years agoMerge "Catch errors on 'port not found' while deleting subnet"
Jenkins [Wed, 2 Sep 2015 19:55:00 +0000 (19:55 +0000)]
Merge "Catch errors on 'port not found' while deleting subnet"

9 years agoCatch errors on 'port not found' while deleting subnet
armando-migliaccio [Tue, 1 Sep 2015 22:45:50 +0000 (15:45 -0700)]
Catch errors on 'port not found' while deleting subnet

In some circumstances (like the one triggered by the test_dhcp_ipv6 testcase)
calls to deleting a port and calls to deleting subnets can happen in straight
sequence.

If this happens the execution of the operations can interleave leading
to the subnet deletion to fail because the port has already gone. This patch
ensures a missing port is handled correctly.

The method delete_subnet is ginormous and hence impossible to test at a unit
level without proper refactoring. That can happen with a follow-up patch.

Closes-bug: #1490832

Change-Id: I80c3733c93b2b66c2a1c4bc3bc24272afdd88b1f

9 years agoMerge "Remove duplicated codes in two test cases"
Jenkins [Wed, 2 Sep 2015 11:20:18 +0000 (11:20 +0000)]
Merge "Remove duplicated codes in two test cases"

9 years agoMerge "Enable py34 tests for pluggable ipam backend"
Jenkins [Wed, 2 Sep 2015 03:28:55 +0000 (03:28 +0000)]
Merge "Enable py34 tests for pluggable ipam backend"

9 years agoMerge "Python 3: use a hash to sort dictionaries"
Jenkins [Wed, 2 Sep 2015 03:25:51 +0000 (03:25 +0000)]
Merge "Python 3: use a hash to sort dictionaries"

9 years agoDo not track active reservations
salvatore [Fri, 21 Aug 2015 08:44:25 +0000 (10:44 +0200)]
Do not track active reservations

Reservations have a transient nature: a reservation lifespan
typically begins and ends with a single request.
Therefore tracking reserved amounts for each tenant and resource
is not nearly as efficient as tracking resource usage.
Indeed it is fairly easy to verify that the overhead for tracking
reserved amounts is much greater than the one needed for counting
active reservations for each tenant and resource.

This patch removes the logic for tracking reservations, and
replaces it with an explicit count of active reservations.

Please note that this patch does not adjust accordingly the
ResourceUsage DB model. This will be done in a separate patch with
an expand migration; this should avoid most merge conflicts before
the final patch for restoring reservation logic merges.

Related-Blueprint: better-quotas

Change-Id: Ib5e3bd61c1bc0fc8a5d612dae5c1740a8834a980

9 years agoMerge "Fix misnomer on network attribute"
Jenkins [Tue, 1 Sep 2015 22:57:24 +0000 (22:57 +0000)]
Merge "Fix misnomer on network attribute"

9 years agoMerge "Remove requirements.txt for decomposed plugins/drivers"
Jenkins [Tue, 1 Sep 2015 19:58:22 +0000 (19:58 +0000)]
Merge "Remove requirements.txt for decomposed plugins/drivers"

9 years agoMerge "Process update_network in the openvswitch agent"
Jenkins [Tue, 1 Sep 2015 18:21:24 +0000 (18:21 +0000)]
Merge "Process update_network in the openvswitch agent"

9 years agoMerge "Fix import path in neutron-sanity-check for ml2_sriov opts"
Jenkins [Tue, 1 Sep 2015 18:07:47 +0000 (18:07 +0000)]
Merge "Fix import path in neutron-sanity-check for ml2_sriov opts"

9 years agoMerge "Correct neutron-ns-metadata-proxy command when watch_log is False"
Jenkins [Tue, 1 Sep 2015 18:07:33 +0000 (18:07 +0000)]
Merge "Correct neutron-ns-metadata-proxy command when watch_log is False"

9 years agoMerge "Use directly neutron.common.constants constants in l3_dvr_db"
Jenkins [Tue, 1 Sep 2015 17:54:29 +0000 (17:54 +0000)]
Merge "Use directly neutron.common.constants constants in l3_dvr_db"

9 years agoMerge "Only mark metadata packets on internal interfaces"
Jenkins [Tue, 1 Sep 2015 15:25:24 +0000 (15:25 +0000)]
Merge "Only mark metadata packets on internal interfaces"

9 years agoMerge "[rpc] pull: removed a hack to avoid object backport triggered"
Jenkins [Tue, 1 Sep 2015 12:45:14 +0000 (12:45 +0000)]
Merge "[rpc] pull: removed a hack to avoid object backport triggered"

9 years agoMerge "Add policy and policy rule belongs check"
Jenkins [Tue, 1 Sep 2015 11:07:22 +0000 (11:07 +0000)]
Merge "Add policy and policy rule belongs check"

9 years agoMerge "Updated from global requirements"
Jenkins [Tue, 1 Sep 2015 10:39:48 +0000 (10:39 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Add flows to tunnel bridge with proper cookie."
Jenkins [Tue, 1 Sep 2015 09:49:37 +0000 (09:49 +0000)]
Merge "Add flows to tunnel bridge with proper cookie."

9 years ago[rpc] pull: removed a hack to avoid object backport triggered
Ihar Hrachyshka [Tue, 1 Sep 2015 09:22:39 +0000 (11:22 +0200)]
[rpc] pull: removed a hack to avoid object backport triggered

Since oslo.versionedobjects 0.8.0, the object is not backported if the
requested version is the same as the latest known.

Change-Id: Ia1e9aa77b75261e4b2d2b24f31250ce2a2f028a7

9 years agoEnable py34 tests for pluggable ipam backend
Pavel Bondar [Fri, 24 Jul 2015 08:50:26 +0000 (11:50 +0300)]
Enable py34 tests for pluggable ipam backend

Enable neutron.tests.unit.db.test_ipam_pluggable_backend.
It was disabled after extending ipam tests to run db_base_plugin tests,
which are not py34 compatible yet.

Change-Id: I3ae491fa79d4c3311a86e98db3fb2f7d5926a0ba

9 years agoMerge "Split SR-IOV configuration file into driver and agent pieces"
Jenkins [Tue, 1 Sep 2015 08:26:35 +0000 (08:26 +0000)]
Merge "Split SR-IOV configuration file into driver and agent pieces"

9 years agoMerge "Remove out-of-tree vendor VIF_TYPE_* constants"
Jenkins [Tue, 1 Sep 2015 08:14:07 +0000 (08:14 +0000)]
Merge "Remove out-of-tree vendor VIF_TYPE_* constants"

9 years agoMerge "Fixed the typo in the doc string of the class SubnetPoolReader"
Jenkins [Tue, 1 Sep 2015 07:08:07 +0000 (07:08 +0000)]
Merge "Fixed the typo in the doc string of the class SubnetPoolReader"

9 years agoMerge "Decentralize the managemement of service providers"
Jenkins [Tue, 1 Sep 2015 07:07:55 +0000 (07:07 +0000)]
Merge "Decentralize the managemement of service providers"

9 years agoMerge "Fix DBDuplicateEntry when creating port with fixed_ips on PD subnet"
Jenkins [Tue, 1 Sep 2015 06:51:21 +0000 (06:51 +0000)]
Merge "Fix DBDuplicateEntry when creating port with fixed_ips on PD subnet"

9 years agoMerge "SimpleInterfaceMonitor handle case when ofport is an empty set"
Jenkins [Tue, 1 Sep 2015 06:50:54 +0000 (06:50 +0000)]
Merge "SimpleInterfaceMonitor handle case when ofport is an empty set"

9 years agoMerge "Defer freeing of conntrack zone ids until allocation fails"
Jenkins [Tue, 1 Sep 2015 06:36:35 +0000 (06:36 +0000)]
Merge "Defer freeing of conntrack zone ids until allocation fails"

9 years agoMerge "Add network to SubnetContext"
Jenkins [Tue, 1 Sep 2015 06:35:13 +0000 (06:35 +0000)]
Merge "Add network to SubnetContext"

9 years agoMerge "Refactor IpRouteCommand to allow using it without a device"
Jenkins [Tue, 1 Sep 2015 06:31:06 +0000 (06:31 +0000)]
Merge "Refactor IpRouteCommand to allow using it without a device"

9 years agoMerge "SR-IOV: deprecate agent_required option"
Jenkins [Tue, 1 Sep 2015 06:26:05 +0000 (06:26 +0000)]
Merge "SR-IOV: deprecate agent_required option"

9 years agoMerge "Linuxbridge-agent: fix bridge deletion"
Jenkins [Tue, 1 Sep 2015 05:57:03 +0000 (05:57 +0000)]
Merge "Linuxbridge-agent: fix bridge deletion"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 1 Sep 2015 04:25:00 +0000 (04:25 +0000)]
Updated from global requirements

Change-Id: Ie5ad70b0afbeb5502cc41f585f6a3f2942203369

9 years agoFix import path in neutron-sanity-check for ml2_sriov opts
sridhargaddam [Thu, 27 Aug 2015 09:49:28 +0000 (09:49 +0000)]
Fix import path in neutron-sanity-check for ml2_sriov opts

neutron-sanity-check fails while importing ml2_sriov
configuration. This patch fixes the import path and
also includes a unit test to avoid such issues.

Closes-Bug: #1489374
Change-Id: I4265ee78be9e7f83e35c94187d4577b32005bef9

9 years agoDecentralize the managemement of service providers
armando-migliaccio [Wed, 8 Jul 2015 20:48:11 +0000 (13:48 -0700)]
Decentralize the managemement of service providers

After the service split, some of the configuration, parsing and
validation was kept in the neutron core; ultimately this needs to
get closer to the services where it belongs.

This patch starts from ProviderConfiguration and ServiceTypeManager
classes, and aims at removing the hard-coded elements, like the list
of known advanced services, so that in the long run we can make
Neutron easier to plug with external services.

Partial-bug: #1473110

Depends-on: I44edcceba37ac58efcc0a53c9d1f835d9530344a
Depends-on: I8924234aadf786801ffc100d7daa27acc145a195
Change-Id: Ia4cad678e6c722ca05821dbdbf05d61523246a86

9 years agoRemove requirements.txt for decomposed plugins/drivers
Henry Gessau [Tue, 1 Sep 2015 03:12:07 +0000 (23:12 -0400)]
Remove requirements.txt for decomposed plugins/drivers

They serve no purpose.

Related-Blueprint: core-vendor-decomposition
https://blueprints.launchpad.net/neutron/+spec/core-vendor-decomposition

Change-Id: I05a433bdbd9ab803252ba02fd51cdfcda8fef88e

9 years agoMerge "[neutron-db-manage] Introduce contract and expand commands"
Jenkins [Tue, 1 Sep 2015 02:54:23 +0000 (02:54 +0000)]
Merge "[neutron-db-manage] Introduce contract and expand commands"

9 years agoMerge "DHCP agent: add 'bridged' property to interface driver"
Jenkins [Tue, 1 Sep 2015 02:43:40 +0000 (02:43 +0000)]
Merge "DHCP agent: add 'bridged' property to interface driver"

9 years agoMerge "Add lieutenants contact for networking-calico"
Jenkins [Mon, 31 Aug 2015 22:35:12 +0000 (22:35 +0000)]
Merge "Add lieutenants contact for networking-calico"

9 years agoMerge "Adding networking-calico to sub_projects document"
Jenkins [Mon, 31 Aug 2015 22:32:10 +0000 (22:32 +0000)]
Merge "Adding networking-calico to sub_projects document"

9 years agoLinuxbridge-agent: fix bridge deletion
Nick [Wed, 26 Aug 2015 10:16:14 +0000 (18:16 +0800)]
Linuxbridge-agent: fix bridge deletion

Make sure that linuxbridge agent doesn't delete
physical interfaces if they are specified in the
physical_interface_mappings.

Change-Id: I95e3c46b03ba2ae0872f5def47f26d4e8ea13094
Closes-Bug: #1334634

9 years agoCorrect neutron-ns-metadata-proxy command when watch_log is False
Cedric Brandily [Mon, 31 Aug 2015 14:40:14 +0000 (16:40 +0200)]
Correct neutron-ns-metadata-proxy command when watch_log is False

Neutron[1] uses the option --metadata_proxy_watch_log=false to disable
log watch[2] in neutron-ns-metadata-proxy instances but should use the
option --nometadata_proxy_watch_log. It implies that
neutron-ns-metadata-proxy instances fail to start.

This changes updates neutron[1] to use the correct option.

The change also corrects associated functional tests[2], indeed
metadata_proxy_watch_log option has no effect if a log_file/dir is
defined for the agent running the neutron-ns-metadata-proxy.

[1] neutron.agent.common.config
[2] could be done by setting metadata_proxy_watch_log = false
[3] neutron.tests.functional.agent.test_l3_agent

Closes-Bug: #1490594
Change-Id: Iaec4a78847d802234c99514313440fd7c14bc554

9 years agoSplit SR-IOV configuration file into driver and agent pieces
Ihar Hrachyshka [Wed, 26 Aug 2015 15:12:59 +0000 (17:12 +0200)]
Split SR-IOV configuration file into driver and agent pieces

This is the same as we do for linuxbridge or openvswitch. We should not
expose server-only configuration options to the agent, and vice versa.

DocImpact
Closes-Bug: #1489060
Change-Id: Ie1eda925e051f85d53ad9624d6617d095cf8c7be

9 years agoPython 3: use a hash to sort dictionaries
Cedric Brandily [Wed, 22 Jul 2015 22:35:36 +0000 (00:35 +0200)]
Python 3: use a hash to sort dictionaries

Dictionaries are unorderable in py3K. This change defines the method
safe_sort_key[1] which could be used a sort function for list of
dictionaries and non-dictionaries.

[1] neutron.common.utils

Change-Id: I9c9fae53bb3ac5b8611c92164c9630c82c2d0ceb
Blueprint: neutron-python3

9 years agoMerge "Make delete-vlan-bridge and delete-vlan functions clear"
Jenkins [Mon, 31 Aug 2015 18:44:54 +0000 (18:44 +0000)]
Merge "Make delete-vlan-bridge and delete-vlan functions clear"

9 years agoFix usage of netaddr '.broadcast'
Kevin Benton [Mon, 31 Aug 2015 02:15:27 +0000 (19:15 -0700)]
Fix usage of netaddr '.broadcast'

netaddr 0.7.16 changed the behavior of IPNetworks with /31 and /32
prefixes to make their 'broadcast' attribute return None. This patch
replaces the use of the attribute with a -1 index lookup to get the
last address instead.

Closes-Bug: #1490380
Change-Id: I97d71c4051882ddd9e496c78cfbce840ad7a2b67

9 years agoAdd lieutenants contact for networking-calico
Neil Jerram [Mon, 31 Aug 2015 10:16:24 +0000 (11:16 +0100)]
Add lieutenants contact for networking-calico

Change-Id: Idc688a380e82ea6a385efc7b459b46e2daed0b4a

9 years agoAdding networking-calico to sub_projects document
Neil Jerram [Mon, 31 Aug 2015 10:10:53 +0000 (11:10 +0100)]
Adding networking-calico to sub_projects document

Change-Id: I537936dcc1723c76c12e816ff04645abaa7a8431

9 years agoRemove duplicated codes in two test cases
gong yong sheng [Mon, 31 Aug 2015 08:48:46 +0000 (16:48 +0800)]
Remove duplicated codes in two test cases

Change-Id: Icc36af93a6d648ba46388be270f9c7b6082d0ef1

9 years agoMerge "Fix Prefix delegation router deletion key error"
Jenkins [Sun, 30 Aug 2015 21:51:51 +0000 (21:51 +0000)]
Merge "Fix Prefix delegation router deletion key error"

9 years agoMerge "Updated from global requirements"
Jenkins [Sun, 30 Aug 2015 08:36:58 +0000 (08:36 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Fixes wrong neutron Hyper-V Agent name in constants"
Jenkins [Sun, 30 Aug 2015 08:33:01 +0000 (08:33 +0000)]
Merge "Fixes wrong neutron Hyper-V Agent name in constants"

9 years agoMerge "Adding networking-onos to sub_projects document"
Jenkins [Sun, 30 Aug 2015 06:17:18 +0000 (06:17 +0000)]
Merge "Adding networking-onos to sub_projects document"

9 years agoMerge "Add enable_new_agents to neutron server"
Jenkins [Sun, 30 Aug 2015 05:08:14 +0000 (05:08 +0000)]
Merge "Add enable_new_agents to neutron server"

9 years agoMerge "Replace "prt" variable by "port""
Jenkins [Sun, 30 Aug 2015 05:08:02 +0000 (05:08 +0000)]
Merge "Replace "prt" variable by "port""

9 years agoMerge "PLUMgrid plugin decomposition part II"
Jenkins [Sun, 30 Aug 2015 05:07:49 +0000 (05:07 +0000)]
Merge "PLUMgrid plugin decomposition part II"

9 years agoMerge "handle gw_info outside of the db transaction on router creation"
Jenkins [Sun, 30 Aug 2015 05:07:36 +0000 (05:07 +0000)]
Merge "handle gw_info outside of the db transaction on router creation"

9 years agoFixes wrong neutron Hyper-V Agent name in constants
Adelina Tuvenie [Thu, 27 Aug 2015 09:27:28 +0000 (02:27 -0700)]
Fixes wrong neutron Hyper-V Agent name in constants

Change Id03fb147e11541be309c1cd22ce27e70fadc28b5 moved the
AGENT_TYPE_HYPERV constant from common.constants to
plugins.ml2.drivers.hyperv.constants but change the value of the
constant from 'HyperV agent' to 'hyperv'. This patch changes
the name back to 'HyperV agent'

Change-Id: If74b4b2a84811e266c8b12e70bf6bfe74ed4ea21
Partial-Bug: #1487598

9 years agoMerge "Add optional file permission argument to replace_file()"
Jenkins [Sun, 30 Aug 2015 03:50:56 +0000 (03:50 +0000)]
Merge "Add optional file permission argument to replace_file()"

9 years agoMerge "IPv6 display suitable message when MTU is invalid on iface"
Jenkins [Sun, 30 Aug 2015 02:55:02 +0000 (02:55 +0000)]
Merge "IPv6 display suitable message when MTU is invalid on iface"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 30 Aug 2015 01:39:06 +0000 (01:39 +0000)]
Updated from global requirements

Change-Id: Ie52aa3b59784722806726e4046bd07f4a4d97328

9 years agoMerge "Stop logging STDOUT and STDERR on every shell out"
Jenkins [Sun, 30 Aug 2015 00:03:41 +0000 (00:03 +0000)]
Merge "Stop logging STDOUT and STDERR on every shell out"

9 years agoMerge "Remove ml2 resource extension success logging"
Jenkins [Sun, 30 Aug 2015 00:02:38 +0000 (00:02 +0000)]
Merge "Remove ml2 resource extension success logging"

9 years agoMerge "Revert "Add support for unaddressed port""
Jenkins [Sat, 29 Aug 2015 23:57:46 +0000 (23:57 +0000)]
Merge "Revert "Add support for unaddressed port""

9 years agoMerge "Improve logging upon failure in iptables functional tests"
Jenkins [Sat, 29 Aug 2015 23:57:06 +0000 (23:57 +0000)]
Merge "Improve logging upon failure in iptables functional tests"

9 years agoMerge "Removing the SDN-VE monolithic plugin"
Jenkins [Sat, 29 Aug 2015 23:56:31 +0000 (23:56 +0000)]
Merge "Removing the SDN-VE monolithic plugin"

9 years agoMerge "Validate router admin_state_up on upgrade to distributed"
Jenkins [Sat, 29 Aug 2015 23:55:17 +0000 (23:55 +0000)]
Merge "Validate router admin_state_up on upgrade to distributed"

9 years agoMerge ""FakeV4Subnet" class be inherited by following class"
Jenkins [Sat, 29 Aug 2015 22:00:13 +0000 (22:00 +0000)]
Merge ""FakeV4Subnet" class be inherited by following class"

9 years agoMerge "Fix DVR log strings in agent"
Jenkins [Sat, 29 Aug 2015 22:00:00 +0000 (22:00 +0000)]
Merge "Fix DVR log strings in agent"

9 years agoMerge "Add lieutenants contact for networking-onos"
Jenkins [Sat, 29 Aug 2015 18:58:37 +0000 (18:58 +0000)]
Merge "Add lieutenants contact for networking-onos"

9 years agoMerge "Switch to using os-testr's copy of subunit2html"
Jenkins [Sat, 29 Aug 2015 18:58:18 +0000 (18:58 +0000)]
Merge "Switch to using os-testr's copy of subunit2html"

9 years agoMerge "Document prefix delegation testing issues"
Jenkins [Sat, 29 Aug 2015 17:32:14 +0000 (17:32 +0000)]
Merge "Document prefix delegation testing issues"

9 years agoMerge "lb: stop handling Havana device updates"
Jenkins [Sat, 29 Aug 2015 17:29:14 +0000 (17:29 +0000)]
Merge "lb: stop handling Havana device updates"

9 years agoMerge "Base on SqlTestCase to init db tables correctly"
Jenkins [Sat, 29 Aug 2015 14:54:22 +0000 (14:54 +0000)]
Merge "Base on SqlTestCase to init db tables correctly"

9 years agoMerge "Stops patching an object method which could be gone at cleanup"
Jenkins [Sat, 29 Aug 2015 14:54:09 +0000 (14:54 +0000)]
Merge "Stops patching an object method which could be gone at cleanup"

9 years agoMerge "Add Geneve type driver support to ML2"
Jenkins [Fri, 28 Aug 2015 23:12:29 +0000 (23:12 +0000)]
Merge "Add Geneve type driver support to ML2"

9 years agoFix misnomer on network attribute
armando-migliaccio [Fri, 28 Aug 2015 23:01:31 +0000 (16:01 -0700)]
Fix misnomer on network attribute

admin_status_up is not a network attribute; admin_state_up is.

Change-Id: Iccdfb3d32ee59f5c475bb72801814ae5aaa2fc0c

9 years agoRefactor IpRouteCommand to allow using it without a device
Carl Baldwin [Tue, 11 Aug 2015 15:21:25 +0000 (15:21 +0000)]
Refactor IpRouteCommand to allow using it without a device

Routing tables are not tied to devices (though routes are), so it
makes sense to be able to use IpRouteCommand without a device.

Change-Id: I95806eb5823820092d91ec53d9e65c8d7f56f5f5
Partially-Implements: blueprint address-scopes

9 years agoMerge "Fix py34 No sql_connection parameter is established error"
Jenkins [Fri, 28 Aug 2015 21:08:01 +0000 (21:08 +0000)]
Merge "Fix py34 No sql_connection parameter is established error"

9 years agoRevert "Add support for unaddressed port"
armando-migliaccio [Fri, 28 Aug 2015 20:53:04 +0000 (13:53 -0700)]
Revert "Add support for unaddressed port"

This implementation may expose a vulnerability where a malicious
user can sieze the opportunity of a time window where a port
may land unaddressed on a shared network, thus allowing him/her
to suck up all the tenant traffic he/she wants....oh the shivers.

This reverts commit d4c52b7f5a36a103a92bf9dcda7f371959112292.

Change-Id: I7ebdaa8d3defa80eab90e460fde541a5bdd8864c

9 years agoImprove logging upon failure in iptables functional tests
Assaf Muller [Fri, 28 Aug 2015 20:41:07 +0000 (16:41 -0400)]
Improve logging upon failure in iptables functional tests

This will help us nail down a more accurate and efficient logstash
query.

Change-Id: Iee4238e358f7b056e373c7be8d6aa3202117a680
Related-Bug: #1478847

9 years agohandle gw_info outside of the db transaction on router creation
Ivar Lazzaro [Tue, 18 Aug 2015 00:17:42 +0000 (17:17 -0700)]
handle gw_info outside of the db transaction on router creation

Move the gateway interface creation outside the DB transaction
to avoid lock timeout.

Change-Id: I5a78d7f32e8ca912016978105221d5f34618af19
Closes-bug: 1485809

9 years agoRemove ml2 resource extension success logging
Assaf Muller [Wed, 26 Aug 2015 14:07:03 +0000 (10:07 -0400)]
Remove ml2 resource extension success logging

This is the cause of a tremendous amount of logs, for no
perceivable gain.  A normal dvr run in the gate shows this debug
message around 120K times, which is way too much.

Closes-Bug: #1489952

Change-Id: I26fca8515d866a7cc1638d07fa33bc04479ae221

9 years agoReplace "prt" variable by "port"
huangpengtao [Fri, 28 Aug 2015 15:20:46 +0000 (23:20 +0800)]
Replace "prt" variable by "port"

the local variable prt is meaningless,
and port is used popular.

Change-Id: I20849102cf5b4d84433c46791b4b1e2a22dc4739

9 years agoAdd optional file permission argument to replace_file()
ajmiller [Tue, 25 Aug 2015 04:04:02 +0000 (21:04 -0700)]
Add optional file permission argument to replace_file()

The replace_file() utility function currently sets the mode of all files
it creates to 0o644.  This is not appropriate for all files.  This patch
adds an optional "file_mode" argument to the function.

Change-Id: I9744abde10b95fadef6e74c55332d041e5372071
Partial-Bug: 1488320

9 years agoMerge "devref: Add sub-project release notes"
Jenkins [Fri, 28 Aug 2015 13:09:54 +0000 (13:09 +0000)]
Merge "devref: Add sub-project release notes"

9 years agoFixed the typo in the doc string of the class SubnetPoolReader
Praveen Kumar SM [Fri, 28 Aug 2015 09:00:23 +0000 (02:00 -0700)]
Fixed the typo in the doc string of the class SubnetPoolReader

Closes-Bug: #1489788

Change-Id: I9fb4563354efaf4e34f9169098dba4e42c489b73

9 years agoAdd flows to tunnel bridge with proper cookie.
Eugene Nikanorov [Thu, 27 Aug 2015 12:34:32 +0000 (16:34 +0400)]
Add flows to tunnel bridge with proper cookie.

Without that fix flows applied to br-tun through
DeferredOVSBridge are created without cookie.
That results in l2pop flows being deleted in the process of
cleanup of stale flows.

Solution is to add cookie to all add/mod-flows of OVSBrigde
class in the method do_action_flows.
Also, agent_uuid_stamp moved to a proper place - into the
base OVSBridge class as storing attributes in Mixing was
just a wrong code design.

Change-Id: Ic09a0dbc04fc5da38d30e1392cf2ea27d576040c
Closes-Bug: #1489372

9 years agoMerge "Update template for ModelMigrationSync test"
Jenkins [Fri, 28 Aug 2015 10:20:28 +0000 (10:20 +0000)]
Merge "Update template for ModelMigrationSync test"

9 years agoMerge "devref: added guidelines on how to maintain sub-projects"
Jenkins [Fri, 28 Aug 2015 09:44:11 +0000 (09:44 +0000)]
Merge "devref: added guidelines on how to maintain sub-projects"

9 years agoAdd lieutenants contact for networking-onos
vikram.choudhary [Fri, 28 Aug 2015 07:52:42 +0000 (13:22 +0530)]
Add lieutenants contact for networking-onos

Change-Id: If8cd40eb49acddfce3d951b41aa3b17f8460ec72

9 years agoAdding networking-onos to sub_projects document
vikram.choudhary [Fri, 28 Aug 2015 07:39:09 +0000 (13:09 +0530)]
Adding networking-onos to sub_projects document

Change-Id: I5b09373cc98e8727b349835aaf26dff64c0be9a1

9 years agoAdd policy and policy rule belongs check
gong yong sheng [Tue, 25 Aug 2015 08:21:39 +0000 (16:21 +0800)]
Add policy and policy rule belongs check

before updating and deletion of a qos rule under a policy,
we check if the qos is binding to the policy to avoid users
operating on policy rules binding to other policy.

Change-Id: I04723fa9dd37409cb211c35e701f352419b2d6fa
Closes-bug: #1485993

9 years agoBase on SqlTestCase to init db tables correctly
gong yong sheng [Wed, 26 Aug 2015 09:20:25 +0000 (17:20 +0800)]
Base on SqlTestCase to init db tables correctly

Change-Id: I6c6503d4b8b0677cb31fa54185b1aacda68f7b53
Closes-bug: #1488868

9 years agoStops patching an object method which could be gone at cleanup
Miguel Angel Ajo [Fri, 28 Aug 2015 05:49:28 +0000 (07:49 +0200)]
Stops patching an object method which could be gone at cleanup

Stop patching the qos plugin 'notification_driver_manager' method
and instead substitute for a mock since it's destroyed and reloaded
on every test run.

Closes-Bug: #1489716
Change-Id: I0e84b19bba92a7cbef837de7994a605a78936250

9 years agoAdd enable_new_agents to neutron server
Hirofumi Ichihara [Wed, 26 Aug 2015 05:47:36 +0000 (14:47 +0900)]
Add enable_new_agents to neutron server

Neutron doesn't have a way to test a newly added network node
by deploying test resource before any customer resource on the node
is deployed. Nova and Cinder has the setting of “enable_new_services”
in each conf to disable the initial service status to achieve this.
This proposal adds enable_new_agents config.

DocImpact

Change-Id: Ie0d0b2dd4d95de95f3839d1c35f24b708e893801
Implements: blueprint enable-new-agents
Related-Bug: 1472076

9 years agoMerge "Add empty policy rule to get_rule_type action"
Jenkins [Thu, 27 Aug 2015 23:24:46 +0000 (23:24 +0000)]
Merge "Add empty policy rule to get_rule_type action"

9 years agoDocument prefix delegation testing issues
Assaf Muller [Thu, 27 Aug 2015 23:00:56 +0000 (19:00 -0400)]
Document prefix delegation testing issues

Change-Id: I06071c7497dcd4654c2b03a9b66120b919feb8dc
Related-Bug: #1489650

9 years agoFix Prefix delegation router deletion key error
Assaf Muller [Thu, 27 Aug 2015 21:44:50 +0000 (17:44 -0400)]
Fix Prefix delegation router deletion key error

Change-Id: I1b7008bc6a9dd7d23a651023fd540eec3e46f072
Closes-Bug: #1489576

9 years agoAdd Geneve type driver support to ML2
Aaron Rosen [Tue, 5 May 2015 21:35:08 +0000 (14:35 -0700)]
Add Geneve type driver support to ML2

More information about Geneve protocol can be found here:
  https://tools.ietf.org/pdf/draft-gross-geneve-02.pdf

Following configuration variables were added:
[ml2_type_geneve]
  vni_ranges - Comma-separated list of <vni_min>:<vni_max> tuples
               enumerating ranges of Geneve VNI IDs that are
               available for tenant network allocation
  max_header_size - Geneve encapsulation header size is dynamic, this
                    value is used to calculate the maximum MTU for the driver
                    this is the sum of the sizes of the outer
                    ETH + IP + UDP + GENEVE header sizes

DocImpact

Change-Id: I8c29a1c1a7c79e02c26ac9e2ad2645d30dfbeefc
Closes-Bug: #1461069