]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoThe default value of quota_firewall_rule should not be -1
Liping Mao [Mon, 21 Jul 2014 15:41:54 +0000 (23:41 +0800)]
The default value of quota_firewall_rule should not be -1

A bad tenant User can create unlimited firewall rules to
"attack" the network node, so I modify the default value to 100.

Change-Id: I485c24cb1a7ed77dee81356fe6d95276808a47d4
Closes-Bug: #1346372

10 years agoMerge "Add partial specs support in ML2 for vlan provider networks"
Jenkins [Mon, 21 Jul 2014 04:51:53 +0000 (04:51 +0000)]
Merge "Add partial specs support in ML2 for vlan provider networks"

10 years agoMerge "Support Quota extension in MidoNet plugin"
Jenkins [Mon, 21 Jul 2014 04:51:44 +0000 (04:51 +0000)]
Merge "Support Quota extension in MidoNet plugin"

10 years agoMove plugin.delete_port call out of transaction
Eugene Nikanorov [Sat, 19 Jul 2014 13:08:53 +0000 (17:08 +0400)]
Move plugin.delete_port call out of transaction

This might fix a few cases of lock wait timeouts.

Change-Id: Iaa656a8582b2ff3ec55709bbe47b1ac9f5fc2a99
Closes-Bug: #1342166

10 years agoAdd partial specs support in ML2 for vlan provider networks
Cedric Brandily [Mon, 16 Jun 2014 20:43:13 +0000 (22:43 +0200)]
Add partial specs support in ML2 for vlan provider networks

ML2 provider networks partial specs let admins choose some provider
network attributes and let neutron choose remaining attributes. This
change provides the implementation for VLAN provider networks.

In practice, for VLAN provider networks provider:physical_network
and provider:segmentation_id choices can be delegated to neutron,
in such case neutron will try to find a network in tenant network
pools which respects provided provider attributes.

DocImpact

Related to blueprint provider-network-partial-specs
Partial-Bug: #1330562

Change-Id: I2c52c71167edaa153b2e04681273e2f1be8d03aa

10 years agoMerge "Mock out tunnel_sync in test to avoid sleeping"
Jenkins [Sat, 19 Jul 2014 07:21:12 +0000 (07:21 +0000)]
Merge "Mock out tunnel_sync in test to avoid sleeping"

10 years agoMerge "Validate expected parameters in add/remove router interfaces"
Jenkins [Sat, 19 Jul 2014 06:39:56 +0000 (06:39 +0000)]
Merge "Validate expected parameters in add/remove router interfaces"

10 years agoMerge "Add a gate-specific tox env for functional tests"
Jenkins [Sat, 19 Jul 2014 02:48:16 +0000 (02:48 +0000)]
Merge "Add a gate-specific tox env for functional tests"

10 years agoMerge "Dnsmasq config files syntax issue when dhcp_domain is empty"
Jenkins [Sat, 19 Jul 2014 00:23:15 +0000 (00:23 +0000)]
Merge "Dnsmasq config files syntax issue when dhcp_domain is empty"

10 years agoMerge "Fix incorrect default paramater in migration"
Jenkins [Fri, 18 Jul 2014 22:27:31 +0000 (22:27 +0000)]
Merge "Fix incorrect default paramater in migration"

10 years agoMerge "Fix DVR regression for ofagent"
Jenkins [Fri, 18 Jul 2014 22:09:00 +0000 (22:09 +0000)]
Merge "Fix DVR regression for ofagent"

10 years agoMerge "Allow to import _LC, _LE, _LI and _LW functions directly"
Jenkins [Fri, 18 Jul 2014 20:47:37 +0000 (20:47 +0000)]
Merge "Allow to import _LC, _LE, _LI and _LW functions directly"

10 years agoFix DVR regression for ofagent
YAMAMOTO Takashi [Fri, 11 Jul 2014 00:15:58 +0000 (09:15 +0900)]
Fix DVR regression for ofagent

Background:
    ML2 plugin sometimes uses truncated port uuids.
    For example, in the case of ofagent and linuxbridge,
    if port id is 804ceaa1-0e3e-11e4-b537-08606e7f74e7,
    an agent would send "tap804ceaa1-0e" to the plugin.
    ML2 plugin's _device_to_port_id() would restore it to
    "804ceaa1-0e".  While it's still truncated, ML2 plugin's
    get_port() handles that by using "startswith".

The recently merged DVR change (https://review.openstack.org/#/c/102332/)
assumes that port_id is always a complete uuid (it's the case
for openvswitch) and fails to handle the above mentioned case.
This commit fixes the regression.

Change-Id: I9c0845be606969068ab5d13c0165e76760378500
Closes-Bug: #1343750

10 years agoMerge "RPC additions to support DVR"
Jenkins [Thu, 17 Jul 2014 21:05:53 +0000 (21:05 +0000)]
Merge "RPC additions to support DVR"

10 years agoMerge "no quota for allowed address pair"
Jenkins [Thu, 17 Jul 2014 20:54:48 +0000 (20:54 +0000)]
Merge "no quota for allowed address pair"

10 years agoRPC additions to support DVR
Vivekanandan Narasimhan [Tue, 24 Jun 2014 14:22:38 +0000 (07:22 -0700)]
RPC additions to support DVR

This patch introduces the RPC contract changes
required for both the server (plugin) and agent
to propagate and retrieve additional information
about Distributed Routers, like MAC addresses
and Port Bindings.

Partially-implements: blueprint neutron-ovs-dvr

Change-Id: I04a2ee5fceea79d2786c799178f8dd1675925a39
Authored-by: Vivekanandan Narasimhan <vivekanandan.narasimhan@hp.com>
Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
10 years agono quota for allowed address pair
Liping Mao [Tue, 15 Jul 2014 06:22:46 +0000 (14:22 +0800)]
no quota for allowed address pair

There is no quota for allowed address pair. User can create unlimited
allowed address pairs. I add quota for allowed address pairs.

Change-Id: I2efb0c0f527f1fb22c4d4b07f6d280863f565648
Closes-Bug: #1336207

10 years agoAllow to import _LC, _LE, _LI and _LW functions directly
Cedric Brandily [Tue, 15 Jul 2014 18:05:55 +0000 (20:05 +0200)]
Allow to import _LC, _LE, _LI and _LW functions directly

_LC, _LE, _LI, _LW are translation helper functions. This change updates
hacking rules to allow importing them directly:

    from neutron.openstack.common.gettextutils import _LC
    from neutron.openstack.common.gettextutils import _LE
    from neutron.openstack.common.gettextutils import _LI
    from neutron.openstack.common.gettextutils import _LW

neutron.policy module has been updated as an example of _LE, _LI and
_LW uses.

Change-Id: I11cba6bca48a179945385fce69e6f642270f5563

10 years agoL2 Model additions to support DVR
Vivekanandan Narasimhan [Tue, 24 Jun 2014 01:53:32 +0000 (18:53 -0700)]
L2 Model additions to support DVR

This patch introduces the models, the DB migrations
and the config options required by the L2 layer to
support DVR east/west traffic.

These changes will be used by the control-plane made
of ML2, L2pop and L2 agent.

Two new configuration options have been introduced:
'dvr_base_mac' is used to set DVR MAC addresses apart
from tenant ones (every distributed router will have
ports being created on compute hosts) and
'enable_distributed_routing' is used to enable dvr
support in the L2 agent. This gives the capability of
rolling out the dvr functionality in stages.

Partially-implements: blueprint neutron-ovs-dvr

DocImpact

Change-Id: Iab6505f239d2c4c9bcbf4e32a292d7b4b5320c8e
Authored-by: Vivekanandan Narasimhan <vivekanandan.narasimhan@hp.com>
Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
10 years agoMerge "Fix a log typo in ML2 manager.bind_port()"
Jenkins [Thu, 17 Jul 2014 10:41:14 +0000 (10:41 +0000)]
Merge "Fix a log typo in ML2 manager.bind_port()"

10 years agoMerge "VPNaaS: separate out validation logic for ref impl"
Jenkins [Thu, 17 Jul 2014 03:11:48 +0000 (03:11 +0000)]
Merge "VPNaaS: separate out validation logic for ref impl"

10 years agoFix a log typo in ML2 manager.bind_port()
Li Ma [Sun, 13 Jul 2014 08:51:38 +0000 (01:51 -0700)]
Fix a log typo in ML2 manager.bind_port()

Change-Id: I43134ef4a9e01aac1967fb7b69ad36f96cde04c0

10 years agoMerge "Shamelessly removing commented print line"
Jenkins [Thu, 17 Jul 2014 00:39:17 +0000 (00:39 +0000)]
Merge "Shamelessly removing commented print line"

10 years agoMerge "ofagent: Handle device name prefixes other than "tap""
Jenkins [Wed, 16 Jul 2014 22:05:00 +0000 (22:05 +0000)]
Merge "ofagent: Handle device name prefixes other than "tap""

10 years agoMerge "Big Switch: Remove consistency hash on full sync"
Jenkins [Wed, 16 Jul 2014 21:59:40 +0000 (21:59 +0000)]
Merge "Big Switch: Remove consistency hash on full sync"

10 years agoMerge "Added support for NOS version 4.1.0, 5.0.0 and greater"
Jenkins [Wed, 16 Jul 2014 21:44:55 +0000 (21:44 +0000)]
Merge "Added support for NOS version 4.1.0, 5.0.0 and greater"

10 years agoMerge "Fixes port update failure when device ID is not updated"
Jenkins [Wed, 16 Jul 2014 21:42:30 +0000 (21:42 +0000)]
Merge "Fixes port update failure when device ID is not updated"

10 years agoMerge "Add L3 Extension for Distributed Routers"
Jenkins [Wed, 16 Jul 2014 21:08:58 +0000 (21:08 +0000)]
Merge "Add L3 Extension for Distributed Routers"

10 years agoBig Switch: Remove consistency hash on full sync
Kevin Benton [Mon, 9 Jun 2014 19:20:18 +0000 (12:20 -0700)]
Big Switch: Remove consistency hash on full sync

Clears the consistency hash before performing a full
backend synchronization. Since all of the data is being
replaced, there is no reason to include this and it
currently requires special-casing to handle.

Closes-Bug: #1328233
Change-Id: Iace766d869dc78b041d3a5464e728b872c8347c2

10 years agoVPNaaS: separate out validation logic for ref impl
Paul Michali [Mon, 23 Jun 2014 20:42:41 +0000 (16:42 -0400)]
VPNaaS: separate out validation logic for ref impl

Modify the persistence logic for VPNaaS to separate out the
validation for the reference implmentation. This allows
providers to override/extend the validation, as needed.
Additional commits will address the separation for other
providers and for other L3 services.

In addition, the logic that sets default values for optional
attributes is also moved into separate methods to allow
providers to override the defaults used.

Only attributes that have multiple validations are considered
at this time, but this can be extended, as needed.

Currently, one UT fails due to an oslo.messaging bug that
has been fixed, but not yet released for Neutron use.
As a workaround, the affected test case has been commented
out. This test verifies that the right (only, in this case)
device driver is used for validation. Once the issue with
releasing oslo.messaging 1.4.0.0a2 or newer is resolved,
this can be uncommented.

In the future, TaskFlow may be used for the L3 services workflow,
and these changes will provide validation modularization for that
effort.

Change-Id: Id420983ccbceece5f4a00546941618318b9562c7
Partially-implements: blueprint l3-svcs-vendor-validation

10 years agoAdd L3 Extension for Distributed Routers
Swaminathan Vasudevan [Mon, 31 Mar 2014 19:19:03 +0000 (12:19 -0700)]
Add L3 Extension for Distributed Routers

This patch introduces the model and extension
framework for implementing distributed virtual
routing on top of Open vSwitch.

A new admin-only 'distributed' (as opposed to a
'centralized' or legacy-mode) attribute is added
to the API router resource. It is possible to convert
an existing (centralized) router to a distributed
one; the opposite conversion, even though allowed by
the API, may not be honored by the underlying
plugin implementation and an appropriate error will
be reported.

When creating a router (regardless of the user role),
Neutron will rely on a system wide configuration, whose
default currently allows to create 'centralized' routers.

Tests are added for basic unit coverage; when the first
building blocks for neutron-testing-refactor
are complete, functional testing will be added.
This is because we should be moving away from how
extension tests have been done up until now.

Partially-implements: blueprint neutron-ovs-dvr

DocImpact

Change-Id: I7227fbe2718eba6665a5afb5dcaaaa77b341091f
Authored-by: Swaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
10 years agoVPNaaS Cisco REST client enhance CSR create
Paul Michali [Mon, 7 Jul 2014 22:57:43 +0000 (18:57 -0400)]
VPNaaS Cisco REST client enhance CSR create

For the create of the REST client object that represents a Cisco CSR,
all of the info needed were passed in as separate parameters. This
change just uses a dict instead, so that additional parameters can
be added w/o changing the API.

Updated the currently unused UT module, just so that it can be used
locally and stays up-to-date until it can be converted to use the
new requests-mock package.

Change-Id: I5d4f439cc7ffe125cea9ed3407b70645587a739a
Closes-Bug: 1336478

10 years agoFixes port update failure when device ID is not updated
Mithil Arun [Tue, 8 Jul 2014 13:08:04 +0000 (18:38 +0530)]
Fixes port update failure when device ID is not updated

The updation was failing because the changed_device_id variable
was undeclared.This fix declares the variable with a default value
at the beginning of the method.

Change-Id: I06dfea1170a6b2a649f4e1efe4bf70b7cee0eacb
Closes-Bug: 1337787

10 years agoMerge "Add BSN plugin to agent migration script"
Jenkins [Wed, 16 Jul 2014 08:08:10 +0000 (08:08 +0000)]
Merge "Add BSN plugin to agent migration script"

10 years agoMerge "Add CONTRIBUTING.rst"
Jenkins [Wed, 16 Jul 2014 07:35:15 +0000 (07:35 +0000)]
Merge "Add CONTRIBUTING.rst"

10 years agoMerge "Send network name and uuid to subnet create"
Jenkins [Wed, 16 Jul 2014 07:35:06 +0000 (07:35 +0000)]
Merge "Send network name and uuid to subnet create"

10 years agoMerge "l2-pop : removing a TODO for the delete port use case"
Jenkins [Wed, 16 Jul 2014 07:04:31 +0000 (07:04 +0000)]
Merge "l2-pop : removing a TODO for the delete port use case"

10 years agoSupport Quota extension in MidoNet plugin
Tomoe Sugihara [Fri, 4 Jul 2014 09:06:57 +0000 (09:06 +0000)]
Support Quota extension in MidoNet plugin

Implements: blueprint midonet-support-quotas-ext

Change-Id: I848e36273b655355e5a833c48d7be417df95c7f4

10 years agoMerge "Change all occurences of no_delete to do_delete"
Jenkins [Wed, 16 Jul 2014 03:44:11 +0000 (03:44 +0000)]
Merge "Change all occurences of no_delete to do_delete"

10 years agoMerge "Fixed audit notifications for l3-agent-router ops"
Jenkins [Wed, 16 Jul 2014 02:45:35 +0000 (02:45 +0000)]
Merge "Fixed audit notifications for l3-agent-router ops"

10 years agoMerge "Use auth_token from keystonemiddleware"
Jenkins [Tue, 15 Jul 2014 22:11:03 +0000 (22:11 +0000)]
Merge "Use auth_token from keystonemiddleware"

10 years agoMerge "Security groups extension for PLUMgrid plugin"
Jenkins [Tue, 15 Jul 2014 21:36:46 +0000 (21:36 +0000)]
Merge "Security groups extension for PLUMgrid plugin"

10 years agoMerge "Database healing migration"
Jenkins [Tue, 15 Jul 2014 21:35:48 +0000 (21:35 +0000)]
Merge "Database healing migration"

10 years agoMerge "ofagent: Fix an argument mismatch bug in commit 9d13ea88"
Jenkins [Tue, 15 Jul 2014 21:31:45 +0000 (21:31 +0000)]
Merge "ofagent: Fix an argument mismatch bug in commit 9d13ea88"

10 years agoMerge "L3 agent prefers RPC messages over full sync"
Jenkins [Tue, 15 Jul 2014 21:03:20 +0000 (21:03 +0000)]
Merge "L3 agent prefers RPC messages over full sync"

10 years agoUse auth_token from keystonemiddleware
Brant Knudson [Tue, 24 Jun 2014 21:52:51 +0000 (16:52 -0500)]
Use auth_token from keystonemiddleware

auth_token middleware in python-keystoneclient is deprecated and has
been moved to the keystonemiddleware repo.

Closes-Bug: #1342274

Change-Id: I1aadbe24db63eb2507b088cd53886d7f2e192cab

10 years agoMerge "Freeze models for healing migration"
Jenkins [Tue, 15 Jul 2014 16:55:56 +0000 (16:55 +0000)]
Merge "Freeze models for healing migration"

10 years agoMerge "ML2: Bind ports outside transactions"
Jenkins [Tue, 15 Jul 2014 16:54:38 +0000 (16:54 +0000)]
Merge "ML2: Bind ports outside transactions"

10 years agoShamelessly removing commented print line
armando-migliaccio [Tue, 15 Jul 2014 16:38:25 +0000 (09:38 -0700)]
Shamelessly removing commented print line

This is not supposed to be there.

Change-Id: I52c17ea8e6ecb0beb2511e03ffbd8c36dd7c1d66

10 years agoL3 agent prefers RPC messages over full sync
Carl Baldwin [Thu, 6 Mar 2014 23:57:11 +0000 (23:57 +0000)]
L3 agent prefers RPC messages over full sync

When the L3 agent starts up and runs the sync task it doesn't process
any incoming RPC events until the sync task is complete.

This change combines the work from _rpc_loop and _sync_routers_task in
to a single loop called _process_routers_loop.  This loop spawns
threads that pull from a priority queue.  The queue ensures that RPC
messages are handled before _process_routers_loop.  The latter is
generally maintenance tasks triggered by the agent rather than user
triggered tasks.

Synchronization between RPC and sync routers loops is no longer
necessary since they both feed in to a single queue.  There were
places where it was necessary to reorder some things to allow for the
lack of synchronization.  For example, it is necessary to list
namespaces before fetching the full list of routers to ensure that it
doesn't delete a new namespace that gets created after listing
namespaces.  The lack of the need for synchronization between loops is
probably the main strength of this patch.

With multiple worker threads, need to handle the case where an RPC
message came in while a thread was working on a router.  Another
thread should not handle the same router that is already in progress.
Adds a mechanism to signal to the working thread that an update came
in for the router it is working on.  The original thread will repeat
processing the router when it is finished to get the update.
Multiple rapid updates to the same router will be consolidated.
Essentially, there is still synchronization of work for a given router
but not between routers.  Much better than before.

blueprint l3-agent-responsiveness
Closes-Bug: #1289066
Change-Id: I39afe86c66f864d71adf865d7bd1c9db35511505

10 years agoDnsmasq config files syntax issue when dhcp_domain is empty
Bertrand Lallau [Wed, 11 Jun 2014 13:46:58 +0000 (15:46 +0200)]
Dnsmasq config files syntax issue when dhcp_domain is empty

When using dhcp-agent with the following property dhcp_domain=""
addn_hosts and host files genererated for Dnsmasq have wrong syntax
concerning hostname parameter (dot char at the end).

As described in RFC-952 the hostname grammar is as follows:
<hname> ::= <name>*["."<name>]
<name>  ::= <let>[*[<let-or-digit-or-hyphen>]<let-or-digit>]
Hence it can't be conclude with a dot char.

Dnsmasq process is waiting for a hostname (2nd parameter) in the
following files:
"addn_hosts" file contains:
   20.0.0.3 host-20-0-0-3. host-20-0-0-3
"host" file contains:
   fa:16:3e:bf:e1:e4,host-20-0-0-3.,20.0.0.3

With the patch you will get:
"addn_hosts":
   20.0.0.3 host-20-0-0-3 host-20-0-0-3
"host":
   fa:16:3e:bf:e1:e4,host-20-0-0-3,20.0.0.3

Change-Id: I4c10169019becaed6b2968b74f03ef356244a057
Closes-Bug: #1326256

10 years agoDatabase healing migration
Ann Kamyshnikova [Wed, 28 May 2014 08:38:35 +0000 (12:38 +0400)]
Database healing migration

Add script that will add all tables for all plugins and make db schema
unconditional.

partially implement bp: db-migration-refactor

Closes-bug: #1277379
Closes-bug: #1304741
Closes-bug: #1298456
Closes-bug: #1298461
Closes-bug: #1239974
Closes-bug: #1336177
Closes-bug: #1337185

Change-Id: Ie49088a74bc5a87466f46989ce14d935e27567d1

10 years agoFix incorrect default paramater in migration
Ann Kamyshnikova [Mon, 14 Jul 2014 10:18:34 +0000 (14:18 +0400)]
Fix incorrect default paramater in migration

Migration 5446f2a45467_set_server_default try to set incorrect default
boolean value on Integer column cisco_network_profiles.

Closes-bug: #1341518

Change-Id: I594a6811af23fced7105252f47d72232bf37184c

10 years agoFixed audit notifications for l3-agent-router ops
Maruti [Sat, 7 Jun 2014 12:42:45 +0000 (05:42 -0700)]
Fixed audit notifications for l3-agent-router ops

l3-agent-router-add and l3-agent-router-remove do not
generate audit notifications which are used for security
compliance.
CRUD operations of core network resources are
handled by neutron/api/v2/base.py. In base.py, each of
create(), update(), delete() methods makes calls to
oslo.messaging.Notifier.info() to generate these notifications.
In the proposed fix, it is fixed in a similar fashion in
extensions/l3agentscheduler.py inside create() and delete()
methods by introducing info() method calls inside them.

Change-Id: I1354e51e4af24eda128c042926765683018b320b
Closes-Bug: 1317000

10 years agoSend network name and uuid to subnet create
Steven Hillman [Tue, 8 Jul 2014 22:35:10 +0000 (15:35 -0700)]
Send network name and uuid to subnet create

Added the network segment name and uuid parameters to the infomation sent to
Cisco N1kV during subnet creation to allow for proper association of the
subnet and network segment.

Change-Id: I375d49ec43f79360189ecf5de0583873b8039db9
Closes-Bug: 1332713

10 years agoMerge "Add -s option for neutron metering rules"
Jenkins [Mon, 14 Jul 2014 21:25:23 +0000 (21:25 +0000)]
Merge "Add -s option for neutron metering rules"

10 years agoMerge "Refactor 'if false do nothing' logic in l3 scheduler db"
Jenkins [Mon, 14 Jul 2014 19:15:25 +0000 (19:15 +0000)]
Merge "Refactor 'if false do nothing' logic in l3 scheduler db"

10 years agoML2: Bind ports outside transactions
Robert Kukura [Wed, 12 Mar 2014 01:54:35 +0000 (21:54 -0400)]
ML2: Bind ports outside transactions

The ML2 plugin now calls the bind_port() operation on the registered
mechanism drivers outside of any enclosing DB transaction. Ports are
created or updated in one transaction, then a binding is established
if possible, and finally a second transaction commits the binding
result.

With [re]binding moved outside the DB transaction that triggered it,
it is now possible that multiple threads or processes will
concurrently try to bind the same port, or that the port will be
updated between transactions. Concurrent attempts to bind the same
port are allowed to proceed, which results are used is resolved in the
second transaction, and binding is retried if necessary.

Improvements to the Cisco Nexus driver and unit tests from Rich Curran
needed due to the binding changes are also included.

Closes-Bug: 1276391
Closes-Bug: 1335226
Change-Id: I65dafc330d6e812dad0667d2383858504d0ba299

10 years agoFreeze models for healing migration
Jakub Libosvar [Thu, 26 Jun 2014 14:56:32 +0000 (16:56 +0200)]
Freeze models for healing migration

Take a snapshot of all models from the code base at the time when the
healing migration merges. The healing migration needs this frozen view
of the models to be available (even as the models change in the future)
to compare with the current DB schema. The healing migration will use
this comparison to heal the schema.

partially implement bp: db-migration-refactor

Change-Id: I438147c7961b1ecad47f6146cc7fc9396aee7bc5

10 years agoofagent: Handle device name prefixes other than "tap"
YAMAMOTO Takashi [Thu, 10 Jul 2014 08:36:43 +0000 (17:36 +0900)]
ofagent: Handle device name prefixes other than "tap"

This fixes regressions in commit 9d13ea884bff749b3975acb5eb5630e5aca4a665.

Handle device name prefixes other than "tap".
For example, nova hybrid interface driver uses "qvo" prefix.

Also, ignore non neutron ports correctly.  For example, veth pairs
used to connect physical bridges.

Closes-Bug: #1341465
Change-Id: I1d71c8a2cf8c2f71f0dbcfb54c9b347e24c03562

10 years agoAdd -s option for neutron metering rules
Koteswara Rao Kelam [Mon, 26 May 2014 13:44:33 +0000 (06:44 -0700)]
Add -s option for neutron metering rules

While adding iptables rule, cidr is added as destination for both ingress
and egress directions. Modified code to add -s for egress and -d for ingress.

Closes-bug: 1310589

Change-Id: Id9ca10855e6527d4bec689f8f9bcd6f681221954

10 years agoSecurity groups extension for PLUMgrid plugin
Fawad Khaliq [Tue, 8 Jul 2014 18:10:12 +0000 (11:10 -0700)]
Security groups extension for PLUMgrid plugin

This patch includes immplementation of security groups
extension in PLUMgrid plugin.

APIs include CRUD operations for security groups
and security group rules.

Added unit tests.

Implements: blueprint plumgrid-plugin-security-groups
Change-Id: I23fea3fe6c3abbe310e883e00706b93863db3bfb

10 years agoChange all occurences of no_delete to do_delete
Assaf Muller [Sun, 4 May 2014 15:26:43 +0000 (18:26 +0300)]
Change all occurences of no_delete to do_delete

Previously, ports, networks and subnets had a do_delete=True
parameter. By default, these resources were deleted at the
end of the context manager scope. All other resources used
a different semantic: no_delete=False.

This caused confusing situations such as:
with self.subnet(network, do_delete=False) as subnet:
    with self.security_group(no_delete=True) as sg:
        pass

Now all resources use the same do_delete semantic.

Closes-Bug: #1336196
Change-Id: I4627481813f714819efe85831e2a55975ea71ed4

10 years agoUse integer server_default value for multicast_ip_index
Henry Gessau [Sat, 12 Jul 2014 16:07:16 +0000 (12:07 -0400)]
Use integer server_default value for multicast_ip_index

Use integer server_default value for multicast_ip_index in
cisco_network_profiles table.

Change-Id: I1948aabb65485aaa1045a101957303c3e6522d21
Closes-bug: #1341144

10 years agoValidate expected parameters in add/remove router interfaces
Edgar Magana [Thu, 5 Jun 2014 23:33:16 +0000 (16:33 -0700)]
Validate expected parameters in add/remove router interfaces

The add and remove router interface methods check that interface_info
is not empty but don't check if it contains any of expected parameters:
port_id and subnet_id
This patch adds a helper method to validate that interface_info contains
at least one of the expected parameters
Include a unit test for the empty port_id and subnet_id case

Closes-Bug: #1325982

Change-Id: Ia370565235a33a847704b972c875d8f1573306c0

10 years agoMerge "Revert "VPNaaS REST Client UT Broken""
Jenkins [Fri, 11 Jul 2014 21:10:33 +0000 (21:10 +0000)]
Merge "Revert "VPNaaS REST Client UT Broken""

10 years agoMerge "Remove dead helper function from test_l3_plugin"
Jenkins [Fri, 11 Jul 2014 21:10:25 +0000 (21:10 +0000)]
Merge "Remove dead helper function from test_l3_plugin"

10 years agoRevert "VPNaaS REST Client UT Broken"
Joe Gordon [Fri, 11 Jul 2014 18:02:54 +0000 (18:02 +0000)]
Revert "VPNaaS REST Client UT Broken"

I8badc249ad021fdbdb2367b5416c72435ed58994 causes anything importing
neutron/tests/unit/services/vpn/device_drivers/_test_cisco_csr_rest.py
to exit since httmock isn't a dependency.

Fix all hacking issues in addition to the revert, as this patch fixes 'tox -epep8'.
And just a reverting the patch will cause pep8 to fail.

Fixes-Bug: #1340881

This reverts commit 7f0a8f09ab7867100081a898347a5f901e5a442b.

Change-Id: I373a8c8ab16eb387be6a451b8146642389081afa

10 years agoMerge "Remove reference to setuptools_git"
Jenkins [Fri, 11 Jul 2014 16:51:28 +0000 (16:51 +0000)]
Merge "Remove reference to setuptools_git"

10 years agoMerge "Add 'server_default' parameter"
Jenkins [Fri, 11 Jul 2014 15:58:13 +0000 (15:58 +0000)]
Merge "Add 'server_default' parameter"

10 years agoMerge "Fix missing migration default value"
Jenkins [Fri, 11 Jul 2014 11:31:34 +0000 (11:31 +0000)]
Merge "Fix missing migration default value"

10 years agoMock out tunnel_sync in test to avoid sleeping
Kevin Benton [Fri, 11 Jul 2014 07:58:41 +0000 (07:58 +0000)]
Mock out tunnel_sync in test to avoid sleeping

The tunnel_sync call in the daemon loop for the ovs tunnel
tests blocks for 30 seconds. This patch mocks it out to stop
that.

Closes-Bug: #1340570
Change-Id: I58c3907ed564413a8251bc1bb7922e25f673db18

10 years agoMerge "NSX: neutron router-interface-add should clear security-groups"
Jenkins [Fri, 11 Jul 2014 07:55:15 +0000 (07:55 +0000)]
Merge "NSX: neutron router-interface-add should clear security-groups"

10 years agoAdd 'server_default' parameter
Ann Kamyshnikova [Tue, 8 Jul 2014 08:52:44 +0000 (12:52 +0400)]
Add 'server_default' parameter

If a model mentions 'default' it is better to set 'server_default'
as well because this 'defaut' can be reached only via code. This
change adds 'server_default' parameter to models and in database,
so if someone will use SQL query it will also use default value.

For model Router added parameter server_default. In migration it was
added by this change https://review.openstack.org/105212.

For model MeteringLabelRule added parameter server_default.
In migration it will be added by heal script due to problems
with Metering plugin and grenade.

Partial-Bug: #1295539

Change-Id: Iab6fb4eca73e4918c16dac2945fd8552ae2a0c73

10 years agoAdd BSN plugin to agent migration script
Kevin Benton [Thu, 10 Jul 2014 19:18:54 +0000 (12:18 -0700)]
Add BSN plugin to agent migration script

Adds the Big Switch plugin to the migration script that creates
the agents table. A recent commit (d3be7b040eaa61a4d0ac617026cf5c9132d3831e)
added it to the agent tables but it missed this one so an error was thrown
during migration when it reached a table that depended on the agents table.

Closes-Bug: #1340405
Change-Id: I90a164a1b632c3794a7f7607f3f1da8f7d7b15db

10 years agoExtract CommonDBMixin to a separate file
Eugene Nikanorov [Wed, 9 Jul 2014 10:47:01 +0000 (14:47 +0400)]
Extract CommonDBMixin to a separate file

db_base_plugin_v2 imports too much modules that are not necessary
usually, so extract CommonDBMixin in different file.
Plus using db_base_plugin_v2 for some types of modules can lead to
cycles in imports, this refactoring should resolve the issue.

Closes-Bug: #1340145
Change-Id: Idb027d7c5cee2d5bc7598f805c56c55fd4aca048

10 years agoRemove dead helper function from test_l3_plugin
armando-migliaccio [Wed, 9 Jul 2014 23:02:59 +0000 (16:02 -0700)]
Remove dead helper function from test_l3_plugin

This code is no longer used anywhere, so it
can be safely removed.

Change-Id: I23cc2e2cafda2408c98e052a6667cd303335331f

10 years agoMerge "Fixed spelling mistake in securitygroups_rpc"
Jenkins [Wed, 9 Jul 2014 21:48:01 +0000 (21:48 +0000)]
Merge "Fixed spelling mistake in securitygroups_rpc"

10 years agoMerge "Do not mark device as processed if it wasn't"
Jenkins [Wed, 9 Jul 2014 21:46:49 +0000 (21:46 +0000)]
Merge "Do not mark device as processed if it wasn't"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 9 Jul 2014 21:46:40 +0000 (21:46 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fix 'server_default' parameter usage in models"
Jenkins [Wed, 9 Jul 2014 21:42:55 +0000 (21:42 +0000)]
Merge "Fix 'server_default' parameter usage in models"

10 years agoAdded support for NOS version 4.1.0, 5.0.0 and greater
Shiv Haris [Fri, 20 Jun 2014 22:05:10 +0000 (15:05 -0700)]
Added support for NOS version 4.1.0, 5.0.0 and greater

NETCONF temaplates for NOS version greater than 4.1.0 are slightly
different (argh). An init time check of the NOS version is done
to enable selection of the correct NETCONF templates.

Change-Id: I01e82ad402fbbb25d92a99a3325ca2608dd514cb
Closes-bug: #1332719

10 years agoRemove reference to setuptools_git
Monty Taylor [Wed, 9 Jul 2014 17:58:39 +0000 (10:58 -0700)]
Remove reference to setuptools_git

It is not needed for any purpose and was superseeded a while ago.

Change-Id: I53f318cc49916afeea749d4fd8aa5a0bafa567a7

10 years agoNSX: neutron router-interface-add should clear security-groups
Aaron Rosen [Wed, 9 Jul 2014 17:02:09 +0000 (10:02 -0700)]
NSX: neutron router-interface-add should clear security-groups

NSX does not support security groups on router ports so in the case
where someone uses a port that has a security group on it as the router
port we need to clear the security group off the port.

Change-Id: Ia0fb331516887dcd7e9a435094ce1eb082d72575
closes-bug: 1329043

10 years agoRefactor 'if false do nothing' logic in l3 scheduler db
Assaf Muller [Wed, 9 Jul 2014 12:54:10 +0000 (15:54 +0300)]
Refactor 'if false do nothing' logic in l3 scheduler db

Change-Id: I67983bb1115857ab11e3269fcbe1b20c85c93dbb

10 years agoMerge "Updated from global requirements"
Jenkins [Wed, 9 Jul 2014 12:40:42 +0000 (12:40 +0000)]
Merge "Updated from global requirements"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 9 Jul 2014 06:09:26 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: Id49bf1194e06adfcda63a706e95de504a6f5fb5b

10 years agoAdd a gate-specific tox env for functional tests
Maru Newby [Wed, 2 Jul 2014 00:35:12 +0000 (00:35 +0000)]
Add a gate-specific tox env for functional tests

The functional gate jobs (*-neutron-dsvm-functional) need special
configuration (e.g. OS_SUDO_TESTING, OS_ROOTWRAP_CMD) to run tests.
This patch adds a new gate-specific tox env (tox -e dsvm-functional)
that sets the appropriate values and allows easy duplication of the
results of the upstream job on a host that has successfully run
devstack with neutron enabled.

A new configuration option, OS_FAIL_ON_MISSING_DEPS, is also set by
the dsvm-functional tox env to ensure that dependency failures will
result in failures rather than skips when run in the gate.

Change-Id: Idbfef1ba72ed129a3021509c7969e2685b8a6d09
Partial-bug: #1336172

10 years agoMerge "Add a link to a blog post by RedHat that discusses GRE tunnels in OVS"
Jenkins [Wed, 9 Jul 2014 04:19:14 +0000 (04:19 +0000)]
Merge "Add a link to a blog post by RedHat that discusses GRE tunnels in OVS"

10 years agoMerge "Fix UnboundLocalError raised during L3 router sync task"
Jenkins [Wed, 9 Jul 2014 02:52:03 +0000 (02:52 +0000)]
Merge "Fix UnboundLocalError raised during L3 router sync task"

10 years agoAdd CONTRIBUTING.rst
liuqing [Tue, 1 Jul 2014 07:34:18 +0000 (15:34 +0800)]
Add CONTRIBUTING.rst

There is no CONTRIBUTING.rst file, the patch will add it.

Change-Id: Ifcdc30b47b5fb668bbca2e974d8cff63a938addb

10 years agoDo not mark device as processed if it wasn't
Salvatore Orlando [Sat, 5 Jul 2014 16:17:54 +0000 (09:17 -0700)]
Do not mark device as processed if it wasn't

Currently treat_devices_added_or_updated in the OVS agent skips
processing devices which disappeared from the integration bridge
during the agent loop.
This is fine, however the agent should not mark these devices as
processed. Otherwise they won't be processed, should they appear
again on the bridge.

This patch ensures these devices are not added to the current
device set.

The patch also changes treat_devices_added_or_updated. The
function now will return the list of skipped devices and not
anymore a flag signalling whether a resync is required.
With the current logic a resync would be required if retrieval
of device details fails. With this change, the function
treat_devices_added_or_updated will raise in this case and the
exception will be handled in process_network_ports.

For the sake of consistency, this patch also updates the
similar function treat_ancillary_devices_added in order to
use the same logic.

Finally, this patch amends an innaccurate related comment.

Closes-Bug: #1329546

Change-Id: Icc744f32494c7a76004ff161536316924594fbdb

10 years agoMerge "Omit mode keyword when spawning dnsmasq with some ipv6 subnets"
Jenkins [Tue, 8 Jul 2014 11:32:49 +0000 (11:32 +0000)]
Merge "Omit mode keyword when spawning dnsmasq with some ipv6 subnets"

10 years agoFix 'server_default' parameter usage in models
Ann Kamyshnikova [Fri, 21 Mar 2014 08:33:30 +0000 (12:33 +0400)]
Fix 'server_default' parameter usage in models

In ml2 models parameter 'default' is used for vnic_type, profile and
vif_details, but in migrations 27cc183af192_ml2_vnic_type,
157a5d299379_ml2_binding_profile and
50d5ba354c23_ml2_binding_vif_details is used 'server_default' parameter.
Usage 'default' and 'server_default' should be equal in models and
migration. So models in models is added 'server_default' parameter.

Partial-bug: #1295539

Change-Id: If6a17f381d2550daf64916ad3c1b120f41406d56

10 years agoFix missing migration default value
Sergey Kolekonov [Mon, 7 Jul 2014 15:22:25 +0000 (19:22 +0400)]
Fix missing migration default value

Fix 128e042a2b68_ext_gw_mode and 40b0aff0302e_mlnx_initial
migrations by properly using server_default parameter in column
definitions.

Change-Id: I199e206dccc36fcfc2457a17167c76611d69784a
Closes-bug: #1336556

10 years agoMerge "Fix isinstance assertions"
Jenkins [Tue, 8 Jul 2014 08:44:04 +0000 (08:44 +0000)]
Merge "Fix isinstance assertions"

10 years agoAdd a link to a blog post by RedHat that discusses GRE tunnels in OVS
Sean M. Collins [Tue, 8 Jul 2014 06:48:19 +0000 (23:48 -0700)]
Add a link to a blog post by RedHat that discusses GRE tunnels in OVS

Change-Id: I6f3f458eadac12bcb907a2ee6b5d795b8e9593e2

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 8 Jul 2014 04:00:53 +0000 (04:00 +0000)]
Updated from global requirements

Change-Id: I128b621ecb9f54db5054e24a8db807e2722ce619

10 years agoMerge "Avoid notifying while inside transaction opened in delete_port()"
Jenkins [Tue, 8 Jul 2014 00:49:26 +0000 (00:49 +0000)]
Merge "Avoid notifying while inside transaction opened in delete_port()"

10 years agoMerge "NSX: properly handle floating ip status"
Jenkins [Mon, 7 Jul 2014 21:05:41 +0000 (21:05 +0000)]
Merge "NSX: properly handle floating ip status"