]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoFixed functional test that validates graceful ovs agent restart
Ihar Hrachyshka [Fri, 4 Sep 2015 20:21:41 +0000 (22:21 +0200)]
Fixed functional test that validates graceful ovs agent restart

The async_ping function returns a callable that returns True when all ping
futures are done. Since those futures are running for 10 secs, there was no
chance that the result of the callable was True.

The test was bailing out without calling bridge reset even a single time,
effectively leaving the feature untested in gate.

Another thing to note is that for some reason the patch fixed oslo rootwrap
errors in the test when executed locally. Since I still don't understand how
it's possible that it fixes the issue for me, I mark the bug as related only,
and will track logstash after it's merged to see whether it applies unknown
magic to gate jobs too.

Change-Id: Iaa977abddf1a0c6af7e964f1a5cd545ffb79585a
Related-Bug: #1490051

9 years agoMerge "Make sure service providers can be loaded correctly"
Jenkins [Fri, 4 Sep 2015 10:31:23 +0000 (10:31 +0000)]
Merge "Make sure service providers can be loaded correctly"

9 years agoMerge "Add constraint target to tox.ini"
Jenkins [Fri, 4 Sep 2015 09:33:18 +0000 (09:33 +0000)]
Merge "Add constraint target to tox.ini"

9 years agoMerge "Changed filter field to router_id"
Jenkins [Fri, 4 Sep 2015 09:31:27 +0000 (09:31 +0000)]
Merge "Changed filter field to router_id"

9 years agoMerge "Fix a wrong condition for the _purge_metering_info function"
Jenkins [Fri, 4 Sep 2015 09:30:49 +0000 (09:30 +0000)]
Merge "Fix a wrong condition for the _purge_metering_info function"

9 years agoMerge "Better message on allowed address pairs error"
Jenkins [Fri, 4 Sep 2015 09:28:04 +0000 (09:28 +0000)]
Merge "Better message on allowed address pairs error"

9 years agoMerge "OVS-agent: Introduce Ryu based OpenFlow implementation"
Jenkins [Fri, 4 Sep 2015 06:22:29 +0000 (06:22 +0000)]
Merge "OVS-agent: Introduce Ryu based OpenFlow implementation"

9 years agoMerge "Add support for PluginWorker and Process creation notification"
Jenkins [Fri, 4 Sep 2015 05:02:52 +0000 (05:02 +0000)]
Merge "Add support for PluginWorker and Process creation notification"

9 years agoMerge "OVS agent add functional tests of OVS status"
Jenkins [Fri, 4 Sep 2015 05:02:36 +0000 (05:02 +0000)]
Merge "OVS agent add functional tests of OVS status"

9 years agoMerge "check_changed_vlans doesn't need registered_ports as param"
Jenkins [Fri, 4 Sep 2015 05:02:15 +0000 (05:02 +0000)]
Merge "check_changed_vlans doesn't need registered_ports as param"

9 years agoChanged filter field to router_id
Tu Hong Jun [Thu, 20 Aug 2015 06:08:07 +0000 (14:08 +0800)]
Changed filter field to router_id

The get_sync_interfaces query will always return all router ports
from database even it is supposed to query specific ones that
belong to a certain router. In large L3 scale environment with
number of route ports in place, this would lag the response time
for adding router interface and router L3 agent binding.

Closes-Bug: #1489671
Change-Id: Ib78ca766f91783ad2ecca5b728c31602b4ed15d8

9 years agoFix a wrong condition for the _purge_metering_info function
Sergey Vilgelm [Mon, 31 Aug 2015 14:06:48 +0000 (17:06 +0300)]
Fix a wrong condition for the _purge_metering_info function

Fix a situation for the _purge_metering_info function
when the items will never be deleted from the metering_info.
Delete the metering_info dict and use the metering_infos instead.
Fix the problem with changing a dictionary during iteration.
Add the unit tests for the _purge_metering_info and
_add_metering_info functions.

Co-Authored-By: Yaroslav Isakov <yisakov@mirantis.com>
Change-Id: I9031a5f27ae6438ffd5c5a48b0cf5cdc6867eff3
Closes-Bug: #1490581

9 years agoMerge "Retain logs for functional test cases"
Jenkins [Fri, 4 Sep 2015 00:51:01 +0000 (00:51 +0000)]
Merge "Retain logs for functional test cases"

9 years agoMake sure service providers can be loaded correctly
armando-migliaccio [Thu, 3 Sep 2015 17:29:12 +0000 (10:29 -0700)]
Make sure service providers can be loaded correctly

This patch fixes a regression where, if neutron was loaded using
--config-dir, the service_providers option was no longer available.

We bring the logic back (removed by 61121c5f2af), alongside the ability
to load the option auto-magically. This is especially required for DevStack
deployments as of today, because neutron-server is only loaded by passing
--config-file (...)neutron.conf and --config-file (...)ml2_conf.ini

Change-Id: I9bfaed9e19a5506e27795a0b7ad47f4c31fefa40
Closes-bug: #1490990

9 years agoRetain logs for functional test cases
armando-migliaccio [Thu, 3 Sep 2015 00:23:56 +0000 (17:23 -0700)]
Retain logs for functional test cases

This helps greatly the debugging process in face of race conditions.

Change-Id: I74235307183cbb15a7179b18b417b38ffb1d2cc9

9 years agoMerge "Add info to debug test_keepalived_respawns gate failure"
Jenkins [Thu, 3 Sep 2015 10:42:39 +0000 (10:42 +0000)]
Merge "Add info to debug test_keepalived_respawns gate failure"

9 years agoMerge "Deprecate --service option for neutron-db-manage"
Jenkins [Thu, 3 Sep 2015 08:12:34 +0000 (08:12 +0000)]
Merge "Deprecate --service option for neutron-db-manage"

9 years agoMerge "Make Neutron service flavor save service_type"
Jenkins [Thu, 3 Sep 2015 08:11:59 +0000 (08:11 +0000)]
Merge "Make Neutron service flavor save service_type"

9 years agoMerge "Enable to update external network subnet's gateway-ip"
Jenkins [Thu, 3 Sep 2015 08:11:40 +0000 (08:11 +0000)]
Merge "Enable to update external network subnet's gateway-ip"

9 years agoMerge "Add tenant_id to flavor service profiles attributes"
Jenkins [Thu, 3 Sep 2015 07:59:59 +0000 (07:59 +0000)]
Merge "Add tenant_id to flavor service profiles attributes"

9 years agoAdd support for PluginWorker and Process creation notification
Terry Wilson [Tue, 16 Jun 2015 03:52:28 +0000 (22:52 -0500)]
Add support for PluginWorker and Process creation notification

There are several cases where plugin initialization should be
handled after neutron-server forks API/RPC workers. For example,
starting a client connection to an SDN controller before forking
copies the fd of the socket to the child process, but then you have
multiple processes trying to read/write the same socket connection.

It is also useful for a plugin to be able to do something in only
one process, regardless of how many workers are forked. One example
would be handling syncing from an external system to the neutron
database.

This patch does 3 things:
1) Treats rpc_workers=0 as = 1. This simplifies the code for
   handling notification that forking has completed. In the
   existing code, calling the notification in the Worker object's
   start() method would happen twice in the case where both api
   and rpc workers were 0, despite there being only one process.
   An earlier patch already changed the default api_workers to be
   the number of processors.
2) Adds notification of forking via the callbacks mechanism.
   Plugins can subscribe to resources.PROCESS, event.AFTER_CREATE
   and do any post-fork initialization that needs to be done for
   every spawned process.
3) Adds core/service plugin calls to get_workers() which defaults
   to returning (). Plugins that need additional processes to spawn
   should just return an iterable of NeutronWorkers that will be
   spawned in their own process.

DocImpact

Closes-Bug: #1463129
Change-Id: Ib99954678c2b4f32f486b537979d446aafbea07b

9 years agoMerge "DHCP agent: allow using gateway IPs instead of uniquely allocated"
Jenkins [Thu, 3 Sep 2015 04:05:07 +0000 (04:05 +0000)]
Merge "DHCP agent: allow using gateway IPs instead of uniquely allocated"

9 years agoBetter message on allowed address pairs error
Kevin Benton [Fri, 28 Aug 2015 05:12:48 +0000 (22:12 -0700)]
Better message on allowed address pairs error

Neutron was throwing a 500 error when a non-iterable was passed
into allowed address pairs. This patch just catches that and
converts it into a regular badrequest message.

Closes-Bug: #1477829
Change-Id: I3c6f55df4912c7a9480fa097988f910b254572fd
Signed-off-by: Kevin Benton <blak111@gmail.com>
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 agoAdd info to debug test_keepalived_respawns gate failure
Assaf Muller [Sat, 29 Aug 2015 15:32:19 +0000 (11:32 -0400)]
Add info to debug test_keepalived_respawns gate failure

Current theory is that there's a bug in external_process.active,
it returns True when it shouldn't, then kill -15 on the process
pid fails because the process isn't up. Added ps -p output to
see if the process is up or not.

Change-Id: Ic062be829d5f05a1294f6b2fa54820422871ffcb
Related-Bug: #1490043

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 agoEnable to update external network subnet's gateway-ip
Hirofumi Ichihara [Tue, 25 Aug 2015 00:10:00 +0000 (09:10 +0900)]
Enable to update external network subnet's gateway-ip

This patch enables users to update gateway_ip of a subnet even if
the subnet is in use for an external network of a router.

Change-Id: I78d2b024c99b1af0001bd454465d2fc02692cbf2
Closes-Bug: #1317363

9 years agoMake Neutron service flavor save service_type
James Arendt [Fri, 28 Aug 2015 23:33:44 +0000 (16:33 -0700)]
Make Neutron service flavor save service_type

While the service_type exists in the resource attributes and as
a database field for a Flavor, the creation dictionary did not
pass the value so the service_type was not being persisted
in the database nor returned.

Enhanced unit test to show problem.  Test fails on old code
to save or return the input service_type.

Change-Id: I4dba287f5972ecebd193d65e7f542dd0a65f055b
Closes-Bug: 1490063

9 years agoAdd tenant_id to flavor service profiles attributes
James Arendt [Wed, 26 Aug 2015 23:53:24 +0000 (16:53 -0700)]
Add tenant_id to flavor service profiles attributes

Neutron v2 base.py auto populates a 'tenant_id' attribute on
calls if the attribute is not passed.  This causes a POST
to create a flavor service binding to fail when verifying
attributes with:
Unrecognized attribute(s) 'tenant_id'

Solution is to add tenant_id as expected attribute in the
attribute map as done in other sub resources like QOS.

Fix unit test for non-keystone case.

Change-Id: Ic2bd1271f297fc10b49304ffd5fe617637e3d8f4
Closes-Bug: 1489197

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 agoOVS-agent: Introduce Ryu based OpenFlow implementation
YAMAMOTO Takashi [Mon, 2 Mar 2015 07:40:11 +0000 (16:40 +0900)]
OVS-agent: Introduce Ryu based OpenFlow implementation

Introduce an alternative OpenFlow implementation, "native",
implemented using Ryu ofproto python library from Ryu SDN Framework.
Make it selectable with of_driver=native agent option.
The aim is to replace the existing ovs-ofctl based implementation
eventually.

It introduces node-local OpenFlow controller embedded in
OVS agent.  Benefits include:
* Reduce the overhead of invoking ovs-ofctl command (and associated
  rootwrap)
* Make future uses of OpenFlow asynchronous messages (e.g. Packet-In,
  Port-Status, etc) easier
* Make XenAPI integration simpler

Highlights:
* Switch to OpenFlow 1.3.
* Make OVS-agent act as an OpenFlow controller
* Configure OVS on the node to connect to the controller

DocImpact

Implements: blueprint ovs-ofctl-to-python
Co-Authored-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Change-Id: I02e65ea7c6083b2c0a686fed2ab04da4d92b21a3

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 agoDeprecate --service option for neutron-db-manage
Henry Gessau [Tue, 1 Sep 2015 21:17:01 +0000 (17:17 -0400)]
Deprecate --service option for neutron-db-manage

Now that https://review.openstack.org/198542 has merged we can
deprecate the --service option. From now on instead of
  --service fwaas
we should instead use
  --subproject neutron-fwaas

This puts the *aas subprojects on equal footing with the other
projects in the Neutron Stadium for neutron-db-manage.

In the Liberty release the --service option will be marked as
deprecated. It will be removed in Mitaka.

Related-Bug: #1470625

Change-Id: Iecc678efafd798b62bb83e6e85333c64760f16b5

9 years agoAdd constraint target to tox.ini
Sachi King [Tue, 1 Sep 2015 05:10:54 +0000 (15:10 +1000)]
Add constraint target to tox.ini

This adds a pip install command to tox.ini that is only used when the
tox env is passed with the 'constraints' factor appended onto it.
As such this will not effect developer workflows or current unit tests.

The initial use of this will be in a non-voting job, to verify that the
constrained checks with tox are stable.  DevStack is already running
constrained jobs, as such problems are no expected.

To run a tox with pip using constraints on a developer system a
developer should run the desired tox environment with -constraints.
For example: $(tox -epy27-constraints)
Pip will pull the current version of the upper-constraints.txt file down
from the git.openstack.org, however this method can be overriden to use
a local file setting the environment variable "UPPER_CONSTRAINTS_FILE"
to the local path or a different URL, it is passed directly to pip.

This is currently not enabled in the default tox run, however it is
possible to enable it as a default by adding it to 'envlist' in tox.ini

Change-Id: I13579599dfdf846d06d8c39f33265e8b46db6e68
Depends-On: I17ac389f78af241917b6da7f049085f2b13d30f2
Implements Blueprint: Requirements-Management

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 agoDHCP agent: allow using gateway IPs instead of uniquely allocated
Neil Jerram [Mon, 27 Jul 2015 13:41:29 +0000 (14:41 +0100)]
DHCP agent: allow using gateway IPs instead of uniquely allocated

In each place where the DHCP agent runs, and for each subnet for which
DHCP is handing out IP addresses, the DHCP port needs - at the Linux
level - to have an IP address within that subnet.  Generally this
needs to be a unique Neutron-allocated IP address, because the
subnet's underlying L2 domain is bridged across multiple compute hosts
and network nodes, and for HA there may be multiple DHCP agents
running on that same bridged L2 domain.

However, if the DHCP ports - on multiple compute/network nodes but for
the same network - are _not_ bridged to each other, they do not need
each to have a unique IP address.  Instead they can all share the same
address from the relevant subnet.  This works, without creating any
ambiguity, because those ports are not all present on the same L2
domain, and because no data within the network is ever sent to that
address.  (DHCP requests are broadcast, and it is the network's job to
ensure that such a broadcast will reach at least one of the available
DHCP servers.  DHCP responses will be sent _from_ the DHCP port
address.)

Specifically, for some networking backends it makes sense to allow all
DHCP ports to use the subnet's gateway IP address, and thereby to
completely avoid any unique IP address allocation.

This change therefore enhances the DHCP agent code to be able to use
gateway IPs as an alternative to uniquely allocated ones, with the
choice between those being made by a new interface driver property,
'use_gateway_ips'.  The back-compatible default is to use unique IPs.
An interface driver that wants the DHCP agent to use gateway IPs can
achieve that by overriding as follows:

    @property
    def use_gateway_ips(self):
        return True

Partial-Bug: #1486649
Change-Id: I17e1dc9231a5ec35bd6f84c4c7aca6350d76e8ec

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 agoOVS agent add functional tests of OVS status
rossella [Thu, 23 Jul 2015 17:41:20 +0000 (19:41 +0200)]
OVS agent add functional tests of OVS status

Add a functional tests to verify that the agent
behaves correctly when OVS restarted.

Partially-Implements: blueprint restructure-l2-agent
Change-Id: Ifeb0f2f6a06baead93df2c016ea26bfea990734d

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 agocheck_changed_vlans doesn't need registered_ports as param
rossella [Fri, 31 Jul 2015 17:25:37 +0000 (17:25 +0000)]
check_changed_vlans doesn't need registered_ports as param

check_changed_vlans doesn't need registered_ports since the
ports processed by the agent are accessible from local_vlan_map

Partially-Implements: blueprint restructure-l2-agent
Change-Id: I279dcaff469337c553b358f6f5476c7238e89a59

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"