]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoAdded RpcProxy class
Ihar Hrachyshka [Fri, 30 May 2014 11:08:40 +0000 (13:08 +0200)]
Added RpcProxy class

This class is intended for easy and iterative migration from
oslo-incubator RPC implementation to oslo.messaging. It will adapt
oslo.messaging API to old oslo-rpc interfaces.

Migrated all affected classes to the new RpcProxy class.

blueprint oslo-messaging

Change-Id: I1563c13b470b61eebc982ee81efee47732943d48

10 years agoMerge "Freescale SDN Mechanism Driver for ML2 Plugin"
Jenkins [Mon, 9 Jun 2014 07:16:59 +0000 (07:16 +0000)]
Merge "Freescale SDN Mechanism Driver for ML2 Plugin"

10 years agoMerge "ovs, ofagent: Remove dead code"
Jenkins [Mon, 9 Jun 2014 04:28:17 +0000 (04:28 +0000)]
Merge "ovs, ofagent: Remove dead code"

10 years agoMerge "Radware LBaaS driver is able to flip to a secondary backend node"
Jenkins [Mon, 9 Jun 2014 02:53:44 +0000 (02:53 +0000)]
Merge "Radware LBaaS driver is able to flip to a secondary backend node"

10 years agoMerge "BSN: Set hash header to empty instead of False"
Jenkins [Mon, 9 Jun 2014 02:20:52 +0000 (02:20 +0000)]
Merge "BSN: Set hash header to empty instead of False"

10 years agoMerge "Improve readability of MagicMock use in RYU test"
Jenkins [Mon, 9 Jun 2014 02:19:31 +0000 (02:19 +0000)]
Merge "Improve readability of MagicMock use in RYU test"

10 years agoMerge "Log firewall status on delete in case of status inconsistency"
Jenkins [Mon, 9 Jun 2014 01:48:43 +0000 (01:48 +0000)]
Merge "Log firewall status on delete in case of status inconsistency"

10 years agoMerge "Improve iptables_manager _modify_rules() method"
Jenkins [Sun, 8 Jun 2014 21:43:08 +0000 (21:43 +0000)]
Merge "Improve iptables_manager _modify_rules() method"

10 years agoMerge "Allow L3 base to handle extensions on router creation"
Jenkins [Sun, 8 Jun 2014 16:32:26 +0000 (16:32 +0000)]
Merge "Allow L3 base to handle extensions on router creation"

10 years agoMerge "Refactor some router-related methods"
Jenkins [Sun, 8 Jun 2014 16:32:22 +0000 (16:32 +0000)]
Merge "Refactor some router-related methods"

10 years agoMerge "NSX: fix tenant_id passed as security_profile_id"
Jenkins [Sun, 8 Jun 2014 15:15:57 +0000 (15:15 +0000)]
Merge "NSX: fix tenant_id passed as security_profile_id"

10 years agoMerge "NSX: bump http_timeout to 30 seconds"
Jenkins [Sun, 8 Jun 2014 15:10:47 +0000 (15:10 +0000)]
Merge "NSX: bump http_timeout to 30 seconds"

10 years agoMerge "add engine parameter for offline migrations"
Jenkins [Sun, 8 Jun 2014 04:37:35 +0000 (04:37 +0000)]
Merge "add engine parameter for offline migrations"

10 years agoMerge "Big Switch: fix capabilities retrieval code"
Jenkins [Sun, 8 Jun 2014 03:46:00 +0000 (03:46 +0000)]
Merge "Big Switch: fix capabilities retrieval code"

10 years agoMerge "Add NVP advanced service check before deleting a router"
Jenkins [Sun, 8 Jun 2014 01:46:10 +0000 (01:46 +0000)]
Merge "Add NVP advanced service check before deleting a router"

10 years agoMerge "NSX: Fix request_id in api_client to increment"
Jenkins [Sun, 8 Jun 2014 01:46:02 +0000 (01:46 +0000)]
Merge "NSX: Fix request_id in api_client to increment"

10 years agoMerge "Add flat type driver unittests"
Jenkins [Sat, 7 Jun 2014 14:20:56 +0000 (14:20 +0000)]
Merge "Add flat type driver unittests"

10 years agoMerge "remove token from notifier middleware"
Jenkins [Sat, 7 Jun 2014 14:20:47 +0000 (14:20 +0000)]
Merge "remove token from notifier middleware"

10 years agoMerge "Improve module-level mocks in midonet tests"
Jenkins [Sat, 7 Jun 2014 14:20:37 +0000 (14:20 +0000)]
Merge "Improve module-level mocks in midonet tests"

10 years agoFreescale SDN Mechanism Driver for ML2 Plugin
trinaths [Fri, 6 Jun 2014 10:12:25 +0000 (15:42 +0530)]
Freescale SDN Mechanism Driver for ML2 Plugin

- Mechanism driver specific unit testing.

Implements: blueprint fsl-sdn-os-mech-driver

Change-Id: If37a39119c620c6d204346a7fe66c70aaad7261e

10 years agoMerge "Pass object to policy when finding fields to strip"
Jenkins [Fri, 6 Jun 2014 22:41:32 +0000 (22:41 +0000)]
Merge "Pass object to policy when finding fields to strip"

10 years agoMerge "Neutron does not follow the RFC 3442 spec for DHCP"
Jenkins [Fri, 6 Jun 2014 20:18:22 +0000 (20:18 +0000)]
Merge "Neutron does not follow the RFC 3442 spec for DHCP"

10 years agoMerge "Allow neutron-sanity-check to check OVS patch port support"
Jenkins [Fri, 6 Jun 2014 17:01:10 +0000 (17:01 +0000)]
Merge "Allow neutron-sanity-check to check OVS patch port support"

10 years agoMerge "Remove run-time version checking for openvswitch features"
Jenkins [Fri, 6 Jun 2014 17:01:00 +0000 (17:01 +0000)]
Merge "Remove run-time version checking for openvswitch features"

10 years agoMerge "Record and log reason for dhcp agent resync"
Jenkins [Fri, 6 Jun 2014 08:45:22 +0000 (08:45 +0000)]
Merge "Record and log reason for dhcp agent resync"

10 years agoMerge "NSX: fix invalid docstring"
Jenkins [Thu, 5 Jun 2014 19:11:47 +0000 (19:11 +0000)]
Merge "NSX: fix invalid docstring"

10 years agoovs, ofagent: Remove dead code
YAMAMOTO Takashi [Thu, 5 Jun 2014 07:03:28 +0000 (16:03 +0900)]
ovs, ofagent: Remove dead code

Remove "class Port", which seems like a leftover from
the old days when agents had direct database accesses.

Change-Id: Ibc0bf5ab48f08ad620f87eb4952c7ff0f4701fda
Closes-Bug: #1326666

10 years agoMerge "ofagent: Add a missing push_vlan action"
Jenkins [Wed, 4 Jun 2014 20:00:08 +0000 (20:00 +0000)]
Merge "ofagent: Add a missing push_vlan action"

10 years agoMerge "Add 'secret' property for 'connection' option"
Jenkins [Wed, 4 Jun 2014 17:27:36 +0000 (17:27 +0000)]
Merge "Add 'secret' property for 'connection' option"

10 years agoAllow neutron-sanity-check to check OVS patch port support
Cedric Brandily [Wed, 4 Jun 2014 11:44:18 +0000 (13:44 +0200)]
Allow neutron-sanity-check to check OVS patch port support

This patch allows to check OVS patch port support using:

  neutron-sanity-check --ovs_patch

or pass in the deployed configuration files with a non-empty
AGENT/tunnel_types (indeed patch ports are used to interconnect
br-int and br-tun):

  neutron-sanity-check --config-file ml2.conf.ini

DocImpact
Related-Bug: #1285335
Change-Id: Ic7bfabd1f4b85bfa490dd06c70eb5682ee42a681

10 years agoRemove run-time version checking for openvswitch features
Terry Wilson [Thu, 17 Apr 2014 01:48:04 +0000 (21:48 -0400)]
Remove run-time version checking for openvswitch features

The current method of checking openvswitch and kernel versions for
specific feature support is brittle, distro-specific and unsupportable.

This patch removes the runtime version checks and implements a test
script which allows testing specific neutron features or can test
that all features required by a specific configuration are available.

For example, to test VXLAN support in openvswitch, either:

  neutron-sanity-check --ovs_vxlan

or pass in the deployed configuration files with AGENT/tunnel_types
containing 'vxlan', like:

  neutron-sanity-check --config-file /etc/neutron/plugins/ml2.conf.ini

Deployment tools can then test that the required features exist without
relying on version numbers and without incurring a penalty every time
the agent is started.

Implements: blueprint remove-openvswitch-version-check
DocImpact
Change-Id: I5e822d97b9bece9242ba5ac8901aa0ca4f090cfe

10 years agoAdd flat type driver unittests
Cedric Brandily [Mon, 2 Jun 2014 10:06:59 +0000 (12:06 +0200)]
Add flat type driver unittests

Partial-Bug: #1269127

Change-Id: Ib56c5823ddb927d8269cfcdaa8df8b0f78dc5a6e

10 years agoPass object to policy when finding fields to strip
Salvatore Orlando [Mon, 2 Jun 2014 10:14:02 +0000 (03:14 -0700)]
Pass object to policy when finding fields to strip

During the evaluation of fields to strip in responses to list
operations, pass also the first object in the list to the
policy engine.
This will avoid errors in policy evaluation if during
an upgrade from icehouse policy.json was not updated to remove
attribute-level policies dependent on resource values.

Closes-Bug: #1323715

Change-Id: Iaa6ed3bbf4a07ce0b614a4197cabdfa1cb36d427

10 years agoAllow L3 base to handle extensions on router creation
armando-migliaccio [Mon, 2 Jun 2014 14:31:33 +0000 (07:31 -0700)]
Allow L3 base to handle extensions on router creation

By changing the boolean flag, API extensions made to
the router model can be handled correctly: this means
that on router creation, the response body will
contain all the extension attributes being part of
the resource. Prior to this fix, it was only on GETs
or PUTs, leaving the user at loss as to whether
the flag was actually being processed.

Closes-bug: #1325608
Supports-blueprint: neutron-ovs-dvr

Change-Id: I6f913c8417676a789177e00f30eb5875e7aaa3ae

10 years agoRefactor some router-related methods
armando-migliaccio [Fri, 30 May 2014 21:58:30 +0000 (14:58 -0700)]
Refactor some router-related methods

This is done in preparation for the distributed
router functionality. Breaking down and factoring
out some functionality helps the DVR work to come
as a more loosely coupled addition to the L3
centralized case. This also ensures that the two
code bases are kept separately to minimize chance
of regression, and simplify code coverage effort.

Partially-implements: blueprint neutron-ovs-dvr

Change-Id: Ide1bc193666ce03a3ae26b1869bde8093ed453ef

10 years agoadd engine parameter for offline migrations
Jakub Libosvar [Tue, 8 Apr 2014 10:41:11 +0000 (12:41 +0200)]
add engine parameter for offline migrations

Offline migration required config file containing connection string.
In that case only engine from URL was used. With this patch engine can be
passed from command line (or config file) along with plugins which sql
script will be generated accordingly.

DocImpact

Change-Id: Ib667a71960b833fd981f97fe7d6b1856084ef5c8
Closes-Bug: #1304326

10 years agoImprove module-level mocks in midonet tests
Kevin Benton [Fri, 30 May 2014 04:08:24 +0000 (21:08 -0700)]
Improve module-level mocks in midonet tests

Remove unnecessary module-level mocks and replace
them with test-specific mocks so they don't persist
through the entire test suite.

Partial-Bug: #1316401
Change-Id: I49039749bb700ec0a88639f4772701ba3b920352

10 years agoBig Switch: fix capabilities retrieval code
Kevin Benton [Tue, 3 Jun 2014 04:39:51 +0000 (21:39 -0700)]
Big Switch: fix capabilities retrieval code

References the raw REST response in the capabilities
parsing code so json.loads doesn't get an object
that may already be decoded and fail.

Closes-Bug: #1326173
Change-Id: Ia3179b7499f35a6ab2e9ce1631ab15ed27d64647

10 years agoMerge "LBaaS add missing rootwrap filter for route"
Jenkins [Mon, 2 Jun 2014 22:51:47 +0000 (22:51 +0000)]
Merge "LBaaS add missing rootwrap filter for route"

10 years agoImprove iptables_manager _modify_rules() method
Sudhakar [Mon, 3 Mar 2014 10:05:20 +0000 (15:35 +0530)]
Improve iptables_manager _modify_rules() method

As the number of ports per default security group increases, the
number of iptables entries on the Compute Node grows.  Because of
this, there is a gradual increase in the time taken to apply chains
and rules.

Currently we are using list comprehensions to find if a new chain or
rule matches an existing one.  Instead, walk through the list in
reverse to find a matching entry.

Added a new method, _find_last_entry(), to return the entry we are
searching for.

Change-Id: I3585479ffa00be556b8b21dc9dbd6b36ad37f4de
Closes-Bug: #1302272
Related-Bug: #1253993

10 years agoNSX: bump http_timeout to 30 seconds
Aaron Rosen [Fri, 30 May 2014 18:59:36 +0000 (11:59 -0700)]
NSX: bump http_timeout to 30 seconds

We've seen that sometimes NSX takes longer then 10 seconds to return
in production setups under high bursts. Setting this value to 30 seconds
seems more appropriate and solves the issue at load.

Suggestion by: Jacob Cherkas

Change-Id: If604d5d52d15cc1165e19d20b38774dfecec275f
Closes-bug: 1325055

10 years agoLog firewall status on delete in case of status inconsistency
Eugene Nikanorov [Mon, 2 Jun 2014 10:26:09 +0000 (14:26 +0400)]
Log firewall status on delete in case of status inconsistency

This should help to troubleshoot related gate failres.

Change-Id: I92d4d886cafed5faeb2a6d0b224f4b5dc8522100
Related-Bug: #1314313

10 years agoBSN: Set hash header to empty instead of False
Kevin Benton [Mon, 2 Jun 2014 05:43:02 +0000 (22:43 -0700)]
BSN: Set hash header to empty instead of False

Sets the consistency hash header to empty instead
of False since 'False' is handled like a string on
the backend and requires special-casing to detect.

Closes-Bug: #1325771
Change-Id: Iee1651574c01a32e78167a9bbed4e0433abbdec2

10 years agoMerge "Remove function replacement with mock patch"
Jenkins [Mon, 2 Jun 2014 01:45:44 +0000 (01:45 +0000)]
Merge "Remove function replacement with mock patch"

10 years agoMerge "Remove unnecessary MagicMocks in cisco unit tests"
Jenkins [Sun, 1 Jun 2014 22:24:42 +0000 (22:24 +0000)]
Merge "Remove unnecessary MagicMocks in cisco unit tests"

10 years agoMerge "NSX: replace strong references to the plugin with weakref ones"
Jenkins [Sun, 1 Jun 2014 21:54:02 +0000 (21:54 +0000)]
Merge "NSX: replace strong references to the plugin with weakref ones"

10 years agoNeutron does not follow the RFC 3442 spec for DHCP
Christoph Arnold [Thu, 29 May 2014 14:17:30 +0000 (16:17 +0200)]
Neutron does not follow the RFC 3442 spec for DHCP

When setting a gateway and additional host routes in neutron subnet, the
gateway is only sent to clients via the router dhcp option, dhcp clients
conforming to rfc3442 will ignore router option if
classless-static-routes are available. This patch ensures setting both
the router option and the classless-static-routes including the gateway

Change-Id: Ia00b9385025020f848872309ae42ddac08528f53
Closes-Bug: #1317935

10 years agoLBaaS add missing rootwrap filter for route
Aaron Rosen [Sun, 1 Jun 2014 18:37:05 +0000 (11:37 -0700)]
LBaaS add missing rootwrap filter for route

If one runs the lbaas agent from packages and does not have the l3-agent
installed on the same box as the lbaas agent it will fail to add the
default gw route. This is because it's missing the rootwrap filter for
route which is only present in l3.filters.

Change-Id: I59cd0a549a1f1d1564d139d42daf55d02898bf76
Closes-bug: 1325406

10 years agoRadware LBaaS driver is able to flip to a secondary backend node
Avishay Balderman [Thu, 29 May 2014 11:22:21 +0000 (14:22 +0300)]
Radware LBaaS driver is able to flip to a secondary backend node

Change-Id: Ifbfef493d5339f61dcf58dddcc8e3830aaf06bf1
Closes-Bug: #1324131

10 years agoNSX: fix invalid docstring
Gary Kotton [Sat, 31 May 2014 06:54:58 +0000 (23:54 -0700)]
NSX: fix invalid docstring

Updated the text of docstring.

Change-Id: Ic82fe4719c8b04d01cfb5ebb69411f2f35e7f646

10 years agoMerge "Make linux.utils.execute log error on return codes"
Jenkins [Fri, 30 May 2014 23:31:12 +0000 (23:31 +0000)]
Merge "Make linux.utils.execute log error on return codes"

10 years agoNSX: fix tenant_id passed as security_profile_id
Aaron Rosen [Fri, 30 May 2014 22:24:06 +0000 (15:24 -0700)]
NSX: fix tenant_id passed as security_profile_id

Previously we were passing the tenant_id as the security_profile_id
to NSX so these ids would be switched around in the system backend.
This does not affect any operations as this is just extra metadata
in nsx to help an operator debug.

Change-Id: I1afdcc3621fef8fdd7d4eb3c57bff749a71d0d33
Closes-bug: 1325118

10 years agoNSX: Fix request_id in api_client to increment
Aaron Rosen [Fri, 30 May 2014 22:11:27 +0000 (15:11 -0700)]
NSX: Fix request_id in api_client to increment

Previously, the NSX request_id in the api_client would always be
0 because the current request id was stored in the class which is
always initialized on each request. This patch fixes that by storing
the request_id as a class variable.

Change-Id: I9ff4d3eb09899fe6d14b462dddf9daddbf77873b
Closes-bug: 1325100

10 years agoMerge "Handle errors from run_ofctl() when dumping flows"
Jenkins [Fri, 30 May 2014 18:42:46 +0000 (18:42 +0000)]
Merge "Handle errors from run_ofctl() when dumping flows"

10 years agoMerge "Sync periodic_task from oslo-incubator"
Jenkins [Fri, 30 May 2014 16:22:50 +0000 (16:22 +0000)]
Merge "Sync periodic_task from oslo-incubator"

10 years agoImprove readability of MagicMock use in RYU test
Kevin Benton [Fri, 30 May 2014 04:15:22 +0000 (21:15 -0700)]
Improve readability of MagicMock use in RYU test

Replaces an unnecessarily complex setup of a magicmock
in an RYU test module.

Change-Id: If2e99ff76114d896a6480a884a531f901198caa5

10 years agoRemove function replacement with mock patch
Kevin Benton [Fri, 30 May 2014 03:59:00 +0000 (20:59 -0700)]
Remove function replacement with mock patch

In the hyperv unit tests, an rpc method is
manually replaced with a MagicMock using setattr.
This prevents it from being cleaned up by mock.patch.stopall.
This patch replaces it with a short-lived patch call
in a with statement.

Change-Id: I7b10a8115c474977e3acd16dc49d6f3ae67b0c3b
Partial-Bug: #1316401

10 years agoRemove unnecessary MagicMocks in cisco unit tests
Kevin Benton [Fri, 30 May 2014 03:49:48 +0000 (20:49 -0700)]
Remove unnecessary MagicMocks in cisco unit tests

Two patches that just return static data never have
assertions made on the MagicMocks generated. This
replaces the magicmocks with lambdas to make the code
easier to read and to get a minor performance gain.

Change-Id: I064c57a66a0f7a8e3080f39cf48bd4b67cf304e3
Partial-Bug: #1316401

10 years agoMerge "NSX: fix bug for flat provider network"
Jenkins [Fri, 30 May 2014 02:21:46 +0000 (02:21 +0000)]
Merge "NSX: fix bug for flat provider network"

10 years agoHandle errors from run_ofctl() when dumping flows
Kyle Mestery [Thu, 29 May 2014 13:07:55 +0000 (13:07 +0000)]
Handle errors from run_ofctl() when dumping flows

The function dump_flows_for_table() calls run_ofctl(). If this occurs during an OVS
restart, run_ofctl() will return None. dump_flows_for_table() needs to realize this
and not try to call splitlines() on a None object.

Change-Id: Ide26028656e634113f955dfc89569149d4d5b306
Closes-Bug: #1324659

10 years agoSync periodic_task from oslo-incubator
Matt Riedemann [Thu, 29 May 2014 14:33:16 +0000 (07:33 -0700)]
Sync periodic_task from oslo-incubator

This is more or less to get commit c63fd5a from oslo into the core
projects which have several periodic tasks.  Neutron has periodic tasks
for L3, load balancing and metering agents to sync up state with the
server and most don't have specific spacing values set which can lead to
non-deterministic spacing of when the tasks run.

Note that this does not include the gettextutils and log dependencies
since there are not functional changes in those modules needed for the
periodic_task changes synced in *and* more importantly, the changes
to gettextutils and log require pervasive changes to neutron which
should happen when neutron integrates with the oslo-i18n library for
blueprint i18n--messages.

Further note that this does not include jsonutils due to some
issues introduced with a change for python 2.6 that impacts how strings
are encoded with simplejson. The details for that issue are in bug
1314129.  The jsonutils changes are not related to the periodic_task
changes being synced in so the dependency is not functionally required.

The LbaasAgentManager extends PeriodicTasks but wasn't calling the
parent class init function, which was causing failures since commit
47c9d60 changed PeriodicTasks to init _periodic_last_run, so also
fixed that here.

Changes:

c63fd5a Make unspecified periodic spaced tasks run on default interval
f0dd798 Remove rendundant parentheses of cfg help strings
fcf517d Update oslo log messages with translation domains
051b9f3 Refactor unnecessary arithmetic ops in periodic_task
674cdaf Refactor if logic in periodic_task
b6b82c5 Use timestamp in periodic tasks
47c9d60 Don't share periodic_task instance data in a class attr
8b2b0b7 Use hacking import_exceptions for gettextutils._

Related-Bug: #1319232

Change-Id: Ib23e33326129be0dd952efde263f381d5aa2457f

10 years agoMerge "Added missing plugin .ini files to setup.cfg"
Jenkins [Thu, 29 May 2014 17:34:41 +0000 (17:34 +0000)]
Merge "Added missing plugin .ini files to setup.cfg"

10 years agoMerge "Reprogram flows when ovs-vswitchd restarts"
Jenkins [Thu, 29 May 2014 15:57:40 +0000 (15:57 +0000)]
Merge "Reprogram flows when ovs-vswitchd restarts"

10 years agoAdded missing plugin .ini files to setup.cfg
Ihar Hrachyshka [Thu, 29 May 2014 13:28:15 +0000 (15:28 +0200)]
Added missing plugin .ini files to setup.cfg

Some plugin .ini configuration files were missing and hence not
installed via 'setup.py install'.

Change-Id: I31f096e7fbf9f7a182ba8535ca8cadc4fecc6632
Partial-Bug: 1324487

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 29 May 2014 06:11:17 +0000 (06:11 +0000)]
Imported Translations from Transifex

Change-Id: I224b5013b66c3a571018036678f30e7ab5848200

10 years agoMerge "Restore ability to run functional tests with run_tests.sh"
Jenkins [Thu, 29 May 2014 05:34:06 +0000 (05:34 +0000)]
Merge "Restore ability to run functional tests with run_tests.sh"

10 years agoMerge "Updated from global requirements"
Jenkins [Thu, 29 May 2014 05:29:19 +0000 (05:29 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Fix KeyError exception while updating dhcp port"
Jenkins [Thu, 29 May 2014 04:20:14 +0000 (04:20 +0000)]
Merge "Fix KeyError exception while updating dhcp port"

10 years agoMerge "FWaaS plugin doesn't need to handle firewall rule del ops"
Jenkins [Thu, 29 May 2014 04:20:06 +0000 (04:20 +0000)]
Merge "FWaaS plugin doesn't need to handle firewall rule del ops"

10 years agoMake linux.utils.execute log error on return codes
Aaron Rosen [Tue, 27 May 2014 20:39:39 +0000 (13:39 -0700)]
Make linux.utils.execute log error on return codes

Previously, the execute method in neutron logs everything as debug which hides
a lot of extremely fatal errors like unable to apply security group rules!
This patch changes this code so that we log all non 0 returns as error.

Change-Id: I7328e62269212ccd9c7950ff064a3e337de56918
Closes-bug: 1323832
Related-bug: 1322945

10 years agoFWaaS plugin doesn't need to handle firewall rule del ops
berlin [Thu, 22 May 2014 07:42:25 +0000 (15:42 +0800)]
FWaaS plugin doesn't need to handle firewall rule del ops

If firewall rule is attached to firewall policy, it would raise
FirewallRuleInUse excpetion in DB ops, else it is a pure DB delete ops.
So it is useless to handle delete_firewall_rule ops in fwaas plugin.
Closes-Bug: #1322076

Change-Id: I55a000d206f232c79b41230f526007f684db8f4f

10 years agoMerge "Revert "fix openvswitch requirement check""
Jenkins [Wed, 28 May 2014 23:55:38 +0000 (23:55 +0000)]
Merge "Revert "fix openvswitch requirement check""

10 years agoMerge "Support 'infinite' dhcp_lease_duration"
Jenkins [Wed, 28 May 2014 23:50:16 +0000 (23:50 +0000)]
Merge "Support 'infinite' dhcp_lease_duration"

10 years agoMerge "Remove redundant default=None for config options"
Jenkins [Wed, 28 May 2014 22:21:23 +0000 (22:21 +0000)]
Merge "Remove redundant default=None for config options"

10 years agoReprogram flows when ovs-vswitchd restarts
Kyle Mestery [Fri, 16 May 2014 04:21:32 +0000 (04:21 +0000)]
Reprogram flows when ovs-vswitchd restarts

When OVS is restarted, by default it will not reprogram flows which were
programmed. For the case of the OVS agent, this means a restart will cause
all traffic to be switched using the NORMAL action. This is undesirable for
a number of reasons, including obvious security reasons.

This change provides a way for the agent to check if a restart of ovs-vswitchd
has happened in the main agent loop. If a restart of ovs-vswitchd is detected,
the agent will run through the setup of the bridges on the host and reprogram
flows for all the ports connected.

DocImpact
This changes adds a new table (table 23) to the integration bridge, with a
single 'drop' flow. This is used to monitor OVS restarts and to reprogram
flows from the agent.

Change-Id: If9e07465c43115838de23e12a4e0087c9218cea2
Closes-Bug: #1290486

10 years agoRevert "fix openvswitch requirement check"
Benedikt Trefzer [Wed, 28 May 2014 19:24:46 +0000 (21:24 +0200)]
Revert "fix openvswitch requirement check"

This reverts commit be340d1bab015c47650687f97393c6c9015fb537.

The fix did not fix anything.
See comments at
https://review.openstack.org/#/c/95592/

Change-Id: I2926acf4b0a7020a7ad3237e6d03d5b78bfcb6c4

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 28 May 2014 19:15:25 +0000 (19:15 +0000)]
Updated from global requirements

Change-Id: I91778ac6d505f8808a359765555a1619c2f34d3c

10 years agoFix KeyError exception while updating dhcp port
armando-migliaccio [Wed, 28 May 2014 17:37:15 +0000 (10:37 -0700)]
Fix KeyError exception while updating dhcp port

This is caused by a missing network_id in the port body.
This patch adds it so that a warning message can be traced
correctly. Wording is slightly tweaked to ensure it applies
to the right context.

Closes-bug: #1324194

Change-Id: I4b67b5c3584aa33278eb0e9e879ca338ba0ca8b0

10 years agoNSX: fix bug for flat provider network
Gary Kotton [Wed, 28 May 2014 13:37:16 +0000 (06:37 -0700)]
NSX: fix bug for flat provider network

The flat provider network would cause an exception when writing to
database. This is due to the fact that the DB expected an integer
and received an object instead.

Change-Id: Ib9d38711c0c2ef16d8bf74bfae44864a1bc272b1
Closes-bug: #1324120

10 years agoDisallow regular user to update firewall's shared attribute
Eugene Nikanorov [Tue, 27 May 2014 22:08:17 +0000 (02:08 +0400)]
Disallow regular user to update firewall's shared attribute

Shared firewalls should only be operable by  admins.
Currently only admin can provide shared attribute at firewall creation,
so update_firewall should be consistent with that as well.

Change-Id: I093743514637824207b375d724404d51f778d012
Closes-Bug: #1323322

10 years agoSupport 'infinite' dhcp_lease_duration
Erik Colnick [Tue, 6 May 2014 13:56:31 +0000 (07:56 -0600)]
Support 'infinite' dhcp_lease_duration

Process a dhcp_lease_duration value of -1 as 'infinite'
when setting the dnsmasq dhcp-range values to support
cases where it is undesirable for instance dhcp leases
to expire.

DocImpact

Closes-Bug: #1315430
Change-Id: I1cc3cfebfec355014e6d5b5cbd656a1300c43c0b

10 years agoMerge "OFAgent: Fixing lost vlan ids on interfaces"
Jenkins [Wed, 28 May 2014 12:25:06 +0000 (12:25 +0000)]
Merge "OFAgent: Fixing lost vlan ids on interfaces"

10 years agoMerge "OFAgent: Avoid processing ports which are not yet ready"
Jenkins [Wed, 28 May 2014 12:24:52 +0000 (12:24 +0000)]
Merge "OFAgent: Avoid processing ports which are not yet ready"

10 years agoMerge "Synced jsonutils from oslo-incubator"
Jenkins [Wed, 28 May 2014 10:00:46 +0000 (10:00 +0000)]
Merge "Synced jsonutils from oslo-incubator"

10 years agoMerge "Fix some typos in neutron/db and IBM SDN-VE plugin"
Jenkins [Wed, 28 May 2014 09:40:36 +0000 (09:40 +0000)]
Merge "Fix some typos in neutron/db and IBM SDN-VE plugin"

10 years agoMerge "Log iptables rules when they fail to apply"
Jenkins [Wed, 28 May 2014 06:06:28 +0000 (06:06 +0000)]
Merge "Log iptables rules when they fail to apply"

10 years agoMerge "Disallow 'timeout' in health_monitor to be negative"
Jenkins [Wed, 28 May 2014 05:21:43 +0000 (05:21 +0000)]
Merge "Disallow 'timeout' in health_monitor to be negative"

10 years agoMerge "Delete DHCP port without DHCP server on a net node"
Jenkins [Wed, 28 May 2014 04:19:37 +0000 (04:19 +0000)]
Merge "Delete DHCP port without DHCP server on a net node"

10 years agoMerge "NEC plugin: Bump L3RPC callback version to 1.1"
Jenkins [Wed, 28 May 2014 03:41:50 +0000 (03:41 +0000)]
Merge "NEC plugin: Bump L3RPC callback version to 1.1"

10 years agoMerge "Install SNAT rules for ipv4 only"
Jenkins [Wed, 28 May 2014 03:23:23 +0000 (03:23 +0000)]
Merge "Install SNAT rules for ipv4 only"

10 years agoMerge "Set onlink routes for all subnets on an external network"
Jenkins [Wed, 28 May 2014 01:11:29 +0000 (01:11 +0000)]
Merge "Set onlink routes for all subnets on an external network"

10 years agoNEC plugin: Bump L3RPC callback version to 1.1
Akihiro Motoki [Tue, 27 May 2014 17:48:30 +0000 (02:48 +0900)]
NEC plugin: Bump L3RPC callback version to 1.1

update_floatingip_statuses RPC call implemented in Icehouse expects
RPC version 1.1 and RPC version of L3RpcCallback of other plugins
was bumped to 1.1, but the version of L3RpcCallback in NEC plugin
was not bumped to 1.1 yet.

Change-Id: I0073a3de9ea0cd59d43c821f9bdaea89bd125a65
Closes-Bug: #1323769

10 years agoSynced jsonutils from oslo-incubator
Ihar Hrachyshka [Tue, 27 May 2014 08:22:49 +0000 (10:22 +0200)]
Synced jsonutils from oslo-incubator

The sync includes change that makes sure we get unicode-only dicts from
jsonutils no matter which json module implementation is selected.

The latest commit in oslo-incubator:
0f4586c0076183c6356eec682c8a593648125abd

The sync adds a new 'strutils' module that is now used in jsonutils.

Change-Id: Ic815ca3df94c33edec9104172048b2cd94b92e3f
Closes-Bug: 1314129

10 years agoMerge "fix openvswitch requirement check"
Jenkins [Tue, 27 May 2014 09:05:00 +0000 (09:05 +0000)]
Merge "fix openvswitch requirement check"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 27 May 2014 08:19:11 +0000 (08:19 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fix for multiple misspelled words"
Jenkins [Tue, 27 May 2014 06:31:29 +0000 (06:31 +0000)]
Merge "Fix for multiple misspelled words"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 27 May 2014 06:13:22 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I493fe42de2c87538c730a2ac62ce6fbe39b154ae

10 years agoMerge "Fixes bugs for requests sent to SDN-VE controller"
Jenkins [Tue, 27 May 2014 00:07:11 +0000 (00:07 +0000)]
Merge "Fixes bugs for requests sent to SDN-VE controller"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 26 May 2014 20:52:12 +0000 (20:52 +0000)]
Merge "Imported Translations from Transifex"

10 years agofix openvswitch requirement check
Benedikt Trefzer [Mon, 26 May 2014 20:45:25 +0000 (22:45 +0200)]
fix openvswitch requirement check

With VXLAN enabled on openvswitch, neutron checks
module version of the openvswitch kernel module.
If the pattern to extract the version matches twice
(eg. for path and version) the agent dies.

This patch ensures, that only the version is checked
against the pattern.

Change-Id: I879624f6b0936cab59e02958ae3a89950df773bb
Closes-Bug: #1322139