]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "Remove useless return"
Jenkins [Fri, 21 Nov 2014 00:13:58 +0000 (00:13 +0000)]
Merge "Remove useless return"

10 years agoMerge "Add rootwrap filters for ofagent"
Jenkins [Fri, 21 Nov 2014 00:13:44 +0000 (00:13 +0000)]
Merge "Add rootwrap filters for ofagent"

10 years agoMerge "BSN: Optimistic locking strategy for consistency"
Jenkins [Fri, 21 Nov 2014 00:13:29 +0000 (00:13 +0000)]
Merge "BSN: Optimistic locking strategy for consistency"

10 years agoMerge "NSX: Validate gateway device list against DB"
Jenkins [Fri, 21 Nov 2014 00:12:33 +0000 (00:12 +0000)]
Merge "NSX: Validate gateway device list against DB"

10 years agoMerge "Update i18n translation for neutron.server/scheduler log msg's"
Jenkins [Thu, 20 Nov 2014 21:36:02 +0000 (21:36 +0000)]
Merge "Update i18n translation for neutron.server/scheduler log msg's"

10 years agoMerge "Updated from global requirements"
Jenkins [Thu, 20 Nov 2014 21:24:20 +0000 (21:24 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Drop RpcProxy usage from FWaaS code"
Jenkins [Thu, 20 Nov 2014 20:10:25 +0000 (20:10 +0000)]
Merge "Drop RpcProxy usage from FWaaS code"

10 years agoMerge "Drop RpcProxy usage from neutron.agent.rpc.PluginApi"
Jenkins [Thu, 20 Nov 2014 20:10:10 +0000 (20:10 +0000)]
Merge "Drop RpcProxy usage from neutron.agent.rpc.PluginApi"

10 years agoMerge "linuxbridge-agent: make vxlan unicast check more efficent"
Jenkins [Thu, 20 Nov 2014 20:09:28 +0000 (20:09 +0000)]
Merge "linuxbridge-agent: make vxlan unicast check more efficent"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 20 Nov 2014 20:09:03 +0000 (20:09 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Ignore top-level hidden dirs/files by default"
Jenkins [Thu, 20 Nov 2014 20:08:46 +0000 (20:08 +0000)]
Merge "Ignore top-level hidden dirs/files by default"

10 years agoMerge "Check for default sec-group made case insensitive"
Jenkins [Thu, 20 Nov 2014 19:45:51 +0000 (19:45 +0000)]
Merge "Check for default sec-group made case insensitive"

10 years agoMerge "Update i18n translation for neutron.notifiers log msg's"
Jenkins [Thu, 20 Nov 2014 19:35:30 +0000 (19:35 +0000)]
Merge "Update i18n translation for neutron.notifiers log msg's"

10 years agoMerge "Update i18n translation for neutron.common/debug log msg's"
Jenkins [Thu, 20 Nov 2014 19:24:33 +0000 (19:24 +0000)]
Merge "Update i18n translation for neutron.common/debug log msg's"

10 years agoMerge "Big Switch: Send notification after port update"
Jenkins [Thu, 20 Nov 2014 18:06:51 +0000 (18:06 +0000)]
Merge "Big Switch: Send notification after port update"

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 20 Nov 2014 14:06:53 +0000 (14:06 +0000)]
Updated from global requirements

Change-Id: I40640d56c48b376d876908d7e004971f80228095

10 years agoCheck for default sec-group made case insensitive
abhishek.talwar [Tue, 18 Nov 2014 09:50:51 +0000 (15:20 +0530)]
Check for default sec-group made case insensitive

Currently creating another security group with name
"default" is not allowed, however we can create
another security group with name "DEFAULT"
(or any other CASE pattern).

When trying to boot a VM without specifying
a security group it should always pick the
"default" security group. However, if another
security group of the name DEFAULT is present,
the VM gets associated with the wrong
security group (i.e DEFAULT and not default).

So, updated the code so that a security group
with name DEFAULT (or any other case pattern)
is not allowed.
Closes-Bug: #1384505

Change-Id: I3bc4e48cf723bcf74e098d7ef66df0333f6a8686

10 years agoMerge "Use a string multiplier instead of 59 repetitions"
Jenkins [Thu, 20 Nov 2014 09:23:16 +0000 (09:23 +0000)]
Merge "Use a string multiplier instead of 59 repetitions"

10 years agoMerge "Fix a copy/pasted test mistake"
Jenkins [Thu, 20 Nov 2014 08:53:53 +0000 (08:53 +0000)]
Merge "Fix a copy/pasted test mistake"

10 years agoMerge "Drop test code copied from nova"
Jenkins [Thu, 20 Nov 2014 08:53:40 +0000 (08:53 +0000)]
Merge "Drop test code copied from nova"

10 years agoMerge "Drop several uses of RpcCallback"
Jenkins [Thu, 20 Nov 2014 08:53:25 +0000 (08:53 +0000)]
Merge "Drop several uses of RpcCallback"

10 years agoMerge "Add some basic rpc api docs"
Jenkins [Thu, 20 Nov 2014 08:45:13 +0000 (08:45 +0000)]
Merge "Add some basic rpc api docs"

10 years agoMerge "Drop RpcCallback usage from DhcpRpcCallback"
Jenkins [Thu, 20 Nov 2014 08:44:59 +0000 (08:44 +0000)]
Merge "Drop RpcCallback usage from DhcpRpcCallback"

10 years agoMerge "Fix a race condition adding a security group rule"
Jenkins [Thu, 20 Nov 2014 07:55:39 +0000 (07:55 +0000)]
Merge "Fix a race condition adding a security group rule"

10 years agoUpdate i18n translation for neutron.server/scheduler log msg's
Gary Kotton [Tue, 11 Nov 2014 13:43:55 +0000 (05:43 -0800)]
Update i18n translation for neutron.server/scheduler log msg's

Validate that hacking rules apply to directories:
- neutron/scheduler
- neutron/server

Change-Id: I1353f5c8b01f85e4995ee1fb23a066506ed98e3f
Partial-bug: #1320867

10 years agoUpdate i18n translation for neutron.notifiers log msg's
Gary Kotton [Tue, 11 Nov 2014 13:28:21 +0000 (05:28 -0800)]
Update i18n translation for neutron.notifiers log msg's

Validate that hacking rules apply to directories:
 - neutron/notifiers
 - neutron/openstack (this is already 'clean')

Change-Id: I37b8c45e20d2f59e4e9f5d80d5dc87f19a7a8b3a
Partial-bug: #1320867

10 years agoUpdate i18n translation for neutron.common/debug log msg's
Gary Kotton [Tue, 11 Nov 2014 13:19:19 +0000 (05:19 -0800)]
Update i18n translation for neutron.common/debug log msg's

Validate that hacking rules apply to directories:
    - neutron/common
    - neutron/hacking
    - neutron/debug
    - neutron/locale

Change-Id: I177f5fa5fb7cfdcf332949933aa4bd755a90bb94
Partial-bug: #1320867

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 20 Nov 2014 06:08:36 +0000 (06:08 +0000)]
Imported Translations from Transifex

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

Change-Id: I23309c925c4be60fffc5919c2c9c6cf096022001

10 years agoMerge "Fix hostname regex pattern"
Jenkins [Thu, 20 Nov 2014 01:41:30 +0000 (01:41 +0000)]
Merge "Fix hostname regex pattern"

10 years agoMerge "Drop RpcProxy usage from PluginReportStateAPI"
Jenkins [Wed, 19 Nov 2014 23:31:52 +0000 (23:31 +0000)]
Merge "Drop RpcProxy usage from PluginReportStateAPI"

10 years agoMerge "Correct raw table regex in test_security_groups_rpc"
Jenkins [Wed, 19 Nov 2014 22:31:20 +0000 (22:31 +0000)]
Merge "Correct raw table regex in test_security_groups_rpc"

10 years agoMerge "Update i18n translation for neutron.api log msg's"
Jenkins [Wed, 19 Nov 2014 22:20:05 +0000 (22:20 +0000)]
Merge "Update i18n translation for neutron.api log msg's"

10 years agoFix a race condition adding a security group rule
Brian Haley [Wed, 19 Nov 2014 17:10:57 +0000 (12:10 -0500)]
Fix a race condition adding a security group rule

setup_port_filters() needs to grab self.devices_to_refilter
before it calls prepare_devices_filter(), else it could skip
processing a device if an RPC arrives while it's processing
new devices.  That device will now be handled the next time
it's called.

Bug introduced in commit 3046c4ae22b1

Change-Id: Ib2f460cc095bbea8f9c767dcb9b4d4b66f1a7811
Closes-Bug: 1393925

10 years agoMerge "Subnet delete for IPv6 SLAAC should not require prior port disassoc"
Jenkins [Wed, 19 Nov 2014 19:20:37 +0000 (19:20 +0000)]
Merge "Subnet delete for IPv6 SLAAC should not require prior port disassoc"

10 years agoMerge "ofagent: Remove obsolete bridge_mappings (agent side)"
Jenkins [Wed, 19 Nov 2014 19:20:23 +0000 (19:20 +0000)]
Merge "ofagent: Remove obsolete bridge_mappings (agent side)"

10 years agoMerge "Moved out common testcases from test_type_vxlan.py"
Jenkins [Wed, 19 Nov 2014 19:20:08 +0000 (19:20 +0000)]
Merge "Moved out common testcases from test_type_vxlan.py"

10 years agoDrop RpcProxy usage from FWaaS code
Russell Bryant [Tue, 18 Nov 2014 14:46:06 +0000 (14:46 +0000)]
Drop RpcProxy usage from FWaaS code

This patch removes the usage of the RpcProxy compatibility class from
the FWaaS code.  The equivalent direct usage of oslo.messaging APIs
are now used instead.

Part of blueprint drop-rpc-compat.

Change-Id: I1bab4dcd376d4e9684fee1edc97fd29a61ba38de

10 years agoDrop RpcProxy usage from neutron.agent.rpc.PluginApi
Russell Bryant [Fri, 14 Nov 2014 14:21:05 +0000 (14:21 +0000)]
Drop RpcProxy usage from neutron.agent.rpc.PluginApi

This patch removes the usage of the RpcProxy compatibility class from
the neutron.agent.rpc.PluginApi class.  The equivalent use of
oslo.messaging APIs have been put in place instead.  This simple
conversion had a pretty wide impact on unit tests, as well.

The security groups API was converted in this patch as well.  It was
necessary because the security group class is used as a mixin, so it
must be implemented the same way.  Unfortunately, the way this is used
as a mix-in is not consistent, so for now it's only conditionally
converted.

Finally, some other miscellaneous plugin specific interfaces were
converted as well.  Again, these were methods mixed-in for certain
plugins.

Note that there's one very minor functional difference in this patch.
The previous code set the base version to be '1.1'.  The right pattern
is for this to be set to '1.0'.  This version is the default version
specified by the client, telling the server that it must implement at
least this version to satisfy the request.  The default should be
'1.0' and methods that require higher than that should specify it.
From looking at other parts of the code, '1.0' vs '1.1' is not
actually important, as '1.1' was actually the addition of some
security group methods defined elsewhere.  The correction is more
about establishing the right pattern to follow.

Change-Id: I391c01e79943ef179d815ea602253720925ccce1

10 years agoFix a copy/pasted test mistake
Russell Bryant [Mon, 17 Nov 2014 21:33:06 +0000 (21:33 +0000)]
Fix a copy/pasted test mistake

Fix a minor test mistake that was copied around a few times.  In mock
setup, the intention was to only return a value of the rpc method used
was a 'call', not 'cast'.  Unfortunately, the variable checked was
method instead of rpc_method, so this expected return was always set
to None.

This also points out that what's being tested here isn't what *really*
was intended.  It ends up testing that the code returns what we mocked
it to return, which isn't all that useful.  However, at least with
this fix it's a bit more clear what it's trying to do.

Change-Id: I18e85aa66f83331318177d70cbae2468ff8bb57d

10 years agoDrop test code copied from nova
Russell Bryant [Mon, 17 Nov 2014 20:14:04 +0000 (20:14 +0000)]
Drop test code copied from nova

Drop a couple of lines of test code that originated in nova and got
copied into Neutron.  These lines are meaningless in Neutron and can
be removed.

Change-Id: Ic7c174ba0671ddd4a9403b74fa42e7944fe74145

10 years agoDrop several uses of RpcCallback
Russell Bryant [Thu, 13 Nov 2014 21:31:10 +0000 (21:31 +0000)]
Drop several uses of RpcCallback

This patch drops several uses of the RpcCallback compatibility class.
All of these were trivial and straight forward conversions so I
batched them up.

There are still several other uses of RpcCallback, but the conversions
are were not necessarily trivial, and may be broken in one way or
another, so I wanted to address them separately.  In particular, the
use of mixin classes means that there could be cases where the version
declaration is being stepped on, so they need to be investigated more
closely.

Part of blueprint drop-rpc-compat.

Change-Id: I0977aee863d4fcc6a14a025215c6e41fe38a87f0

10 years agoAdd some basic rpc api docs
Russell Bryant [Wed, 12 Nov 2014 21:37:24 +0000 (21:37 +0000)]
Add some basic rpc api docs

The devref docs had a placeholder file for rpc API docs.  Now that
both a client side and server side interface have been converted from
the rpc compat layer to oslo.messaging APIs, add some docs that give
an overview of what the client and server sides look like.

Also include a section that describes the code layout of where you can
find client and server api implementations in the neutron code base.
It starts by discussing the DHCP agent related APIs.

Part of blueprint drop-rpc-compat.

Change-Id: Ib391958252077365a81bcb881ab27a078f71fdec

10 years agoDrop RpcCallback usage from DhcpRpcCallback
Russell Bryant [Wed, 12 Nov 2014 18:33:45 +0000 (18:33 +0000)]
Drop RpcCallback usage from DhcpRpcCallback

Drop the usage of the RpcCallback compatibility class from
DhcpRpcCallback.

Part of blueprint drop-rpc-compat.

Change-Id: I7c4654455c15c4a545c8b19bfcbf617e6d6593d6

10 years agoDrop RpcProxy usage from PluginReportStateAPI
Russell Bryant [Tue, 11 Nov 2014 19:23:15 +0000 (14:23 -0500)]
Drop RpcProxy usage from PluginReportStateAPI

Drop the usage of the RpcProxy compatibility class from the
PluginReportStateAPI rpc client class.  It now uses the appropriate
oslo.messaging APIs directly, instead.

Part of blueprint drop-rpc-compat.

Change-Id: I7101331a556bd0a5c8f782ae6cb4103151e6c45c

10 years agoMerge "Convert all incoming protocol numbers to string"
Jenkins [Wed, 19 Nov 2014 16:40:03 +0000 (16:40 +0000)]
Merge "Convert all incoming protocol numbers to string"

10 years agoMerge "Use correct base class for unit tests for ML2 drivers"
Jenkins [Wed, 19 Nov 2014 15:24:37 +0000 (15:24 +0000)]
Merge "Use correct base class for unit tests for ML2 drivers"

10 years agoFix hostname regex pattern
John Perkins [Mon, 6 Oct 2014 21:24:57 +0000 (16:24 -0500)]
Fix hostname regex pattern

Current hostname_pattern regex complexity grows exponentially
when given a string of just digits, which can be exploited to
cause neutron-server to freeze.

Change-Id: I886c6d883a9cb0acd9908495eec50bf0411d8ba8
Closes-bug: #1378450

10 years agoMerge "Switch run-time import to using importutils.import_module"
Jenkins [Wed, 19 Nov 2014 11:49:20 +0000 (11:49 +0000)]
Merge "Switch run-time import to using importutils.import_module"

10 years agoMerge "Catch DBReferenceError exception during binding a router"
Jenkins [Wed, 19 Nov 2014 10:59:13 +0000 (10:59 +0000)]
Merge "Catch DBReferenceError exception during binding a router"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 19 Nov 2014 10:11:48 +0000 (10:11 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Updated from global requirements"
Jenkins [Wed, 19 Nov 2014 09:16:10 +0000 (09:16 +0000)]
Merge "Updated from global requirements"

10 years agoUpdate i18n translation for neutron.api log msg's
Gary Kotton [Mon, 10 Nov 2014 16:19:06 +0000 (08:19 -0800)]
Update i18n translation for neutron.api log msg's

Validate that hacking rules apply to directory neutron/api

Change-Id: Idd54964dbb3a48505c20117c79ce57913a7f1c12
Partial-bug: #1320867

10 years agoCatch DBReferenceError exception during binding a router
Eugene Nikanorov [Mon, 17 Nov 2014 16:49:09 +0000 (20:49 +0400)]
Catch DBReferenceError exception during binding a router

In some cases (Concurrent API tests) router can be deleted
before it is bound to an agent by scheduler.
That may lead to traces on L3 agent side returned via RPC.
Need to handle this case in more graceful way.

Change-Id: Ic52c26ace7f32a615150bd6098b244ae0b98250c
Closes-Bug: #1385257

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 19 Nov 2014 06:08:17 +0000 (06:08 +0000)]
Imported Translations from Transifex

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

Change-Id: Ia8c01192a4c572a18bdcf987c188febb0c0a42f7

10 years agoBSN: Optimistic locking strategy for consistency
Kevin Benton [Fri, 26 Sep 2014 04:42:39 +0000 (21:42 -0700)]
BSN: Optimistic locking strategy for consistency

Summary:
  Adds an optimistic locking strategy for the Big Switch
  server manager so multiple Neutron servers wanting to
  communicate with the backend do not receive the consistency
  hash for use simultaneously.

  The bsn-rest-call semaphore is removed because serialization
  is now provided by the new locking scheme.

  A new DB engine is added because the consistency hashes
  need a life-cycle with rollbacks and other DB operations
  than cannot impact or be impacted by database operations
  happening on the regular Neutron objects.

  Unit tests are included for each of the new branches
  introduced.

Problem Statement:
  Requests to the Big Switch controllers must contain the
  consistency hash value received from the previous update.
  Otherwise, an inconsistency error will be triggered which
  will force a synchronization. Essentially, a new backend
  call must be prevented from reading from the consistency
  hash table in the DB until the previous call has updated
  the table with the hash from the server response.

  This can be addressed by a semaphore around the rest_call
  function for the single server use case and by a table lock
  on the consistency table for multiple Neutron servers.
  However, both solutions are inadequate because a single
  Neutron server does not scale and a table lock is not
  supported by common SQL HA deployments (e.g. Galera).

  This issue was previously addressed by deploying servers
  in an active-standby configuration. However, that only
  prevented the problem for HTTP API calls. All Neutron
  servers would respond to RPC messages, some of which would
  result in a port update and possible backend call which
  would trigger a conflict if it happened at the same time
  as a backend call from another server. These unnecessary
  syncs are unsustainable as the topology increases beyond
  ~3k VMs.

  Any solution needs to be back-portable to Icehouse so new
  database tables, new requirements, etc. are all out of the
  question.

Solution:
  This patch stores the lock for the consistency hash as a part
  of the DB record. The guaruntees the database offers around
  atomic insertion and constrained atomic updates offer the
  primitives necessary to ensure that only one process/thread
  can lock the record at once.

  The read_for_update method is modified to not return the hash
  in the database until an identifier is inserted into the
  current record or added as a new record. By using an UPDATE
  query with a WHERE clause restricting to the current state,
  only one of many concurrent callers to the DB will successfully
  update the rows. If a caller sees that it didn't update any
  rows, it will start the process over of trying to get the
  lock.

  If a caller observes that the same ID has the lock for
  more than 60 seconds, it will assume the holder has
  died and will attempt to take the lock. This is also done
  in a concurrency-safe UPDATE call since there may be many
  other callers may attempt to do the same thing. If it
  fails and the lock was taken by someone else, the process
  will start over.

  Some pseudo-code resembling the logic:
    read_current_lock
    if no_record:
      insert_lock
      sleep_and_retry if constraint_violation else return
    if current_is_locked and not timer_exceeded:
      sleep_and_retry
    if update_record_with_lock:
      return
    else:
      sleep_and_retry

Closes-Bug: #1374261
Change-Id: Ifa5a7c9749952bc2785a9bf3fed69ad55bf21acc

10 years agoMerge "BSN: Set inconsistency record on delete failure"
Jenkins [Wed, 19 Nov 2014 04:41:11 +0000 (04:41 +0000)]
Merge "BSN: Set inconsistency record on delete failure"

10 years agoMerge "Drop RpcProxy usage from MetadataPluginApi"
Jenkins [Wed, 19 Nov 2014 03:04:17 +0000 (03:04 +0000)]
Merge "Drop RpcProxy usage from MetadataPluginApi"

10 years agoMerge "Drop usage of RpcProxy from L3PluginApi"
Jenkins [Wed, 19 Nov 2014 03:01:39 +0000 (03:01 +0000)]
Merge "Drop usage of RpcProxy from L3PluginApi"

10 years agoofagent: Remove obsolete bridge_mappings (agent side)
YAMAMOTO Takashi [Mon, 20 Oct 2014 05:44:13 +0000 (14:44 +0900)]
ofagent: Remove obsolete bridge_mappings (agent side)

For ofagent, it has been superseded by physical_interface_mappings
and was planned to be removed in Kilo.

Related: blueprint ofagent-physical-interface-mappings
Change-Id: I68c7e9991a3dc14ccad709ed1a438c7c45420dd6

10 years agoNSX: Validate gateway device list against DB
Salvatore [Mon, 1 Sep 2014 12:37:00 +0000 (14:37 +0200)]
NSX: Validate gateway device list against DB

This patch adds a check for validating the devices for a network
gateway are defined in the neutron DB before the request for
creating the network gateway is sent to the NSX backend.

Change-Id: Ic2245f965da332dbaee4ab5a869ce47f06a9e6ce
Partial-Bug: #1319581

10 years agoMerge "Execute udevadm on other linux installs"
Jenkins [Tue, 18 Nov 2014 21:37:13 +0000 (21:37 +0000)]
Merge "Execute udevadm on other linux installs"

10 years agoMerge "Cleanup and refactor methods in unit/test_security_groups_rpc"
Jenkins [Tue, 18 Nov 2014 20:30:30 +0000 (20:30 +0000)]
Merge "Cleanup and refactor methods in unit/test_security_groups_rpc"

10 years agoMerge "Update i18n translation for neutron.extension log msg's"
Jenkins [Tue, 18 Nov 2014 20:30:14 +0000 (20:30 +0000)]
Merge "Update i18n translation for neutron.extension log msg's"

10 years agoMerge "Update i18n translation for neutron.db log msg's"
Jenkins [Tue, 18 Nov 2014 20:29:57 +0000 (20:29 +0000)]
Merge "Update i18n translation for neutron.db log msg's"

10 years agoMerge "Include call to delete_subnet from delete_network at DB level"
Jenkins [Tue, 18 Nov 2014 20:27:04 +0000 (20:27 +0000)]
Merge "Include call to delete_subnet from delete_network at DB level"

10 years agoDrop RpcProxy usage from MetadataPluginApi
Russell Bryant [Fri, 7 Nov 2014 21:10:09 +0000 (22:10 +0100)]
Drop RpcProxy usage from MetadataPluginApi

Drop the usage of the RpcProxy compatibility class from
MetadataPluginApi.  The equivalent direct usage of oslo.messaging APIs
are used instead.

Part of blueprint drop-rpc-compat.

Change-Id: I1764dd715237bc76dae2789121850f69b8f82888

10 years agoDrop usage of RpcProxy from L3PluginApi
Russell Bryant [Fri, 7 Nov 2014 15:30:15 +0000 (16:30 +0100)]
Drop usage of RpcProxy from L3PluginApi

Drop the usage of the RpcProxy compatibility class from the
L3PluginApi.  The equivalent direct usage of the oslo.messaging APIs
are now being used instead.

Part of blueprint drop-rpc-compat.

Change-Id: I6639d1aa8acca8c0544020e28489e71f3d5d2955

10 years agoUse a string multiplier instead of 59 repetitions
Kevin Benton [Tue, 18 Nov 2014 15:51:08 +0000 (07:51 -0800)]
Use a string multiplier instead of 59 repetitions

A recently added test case added a long string of repeated 1's
which required a #noqa flag. A string multiplier represents the
same thing in a much shorter fashion.

Change-Id: I2f4d5568b3e132781fc51bd2e9b3efd44c549689

10 years agoConvert all incoming protocol numbers to string
Ann Kamyshnikova [Mon, 10 Nov 2014 14:05:54 +0000 (17:05 +0300)]
Convert all incoming protocol numbers to string

PostgreSQL is more sensitive for types than MySQL when it selects
something from columns in database. So it fails when it tries to
select from string field comparing with integer value.

Added unit test to verify conversion of protocol numbers to
strings.

Closes-bug:#1381379

Change-Id: I0a29595403a07c66888871088d5549705a097f68

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 18 Nov 2014 11:32:10 +0000 (11:32 +0000)]
Updated from global requirements

Change-Id: Ie86ce0bd15761b237385007a7905ac1317f0bfff

10 years agoMerge "Update i18n translation for neutron.cmd log msg's"
Jenkins [Tue, 18 Nov 2014 11:14:27 +0000 (11:14 +0000)]
Merge "Update i18n translation for neutron.cmd log msg's"

10 years agoMerge "Update i18n translation for neutron.agents log msg's"
Jenkins [Tue, 18 Nov 2014 11:12:55 +0000 (11:12 +0000)]
Merge "Update i18n translation for neutron.agents log msg's"

10 years agoCorrect raw table regex in test_security_groups_rpc
Cedric Brandily [Tue, 18 Nov 2014 09:59:31 +0000 (10:59 +0100)]
Correct raw table regex in test_security_groups_rpc

Currently in test_security_groups_rpc, raw table regex uses nat table
chains regex but raw table chains[1] is a strict subset of nat table
chains[2] so a more strict regex should be used as raw table chains
regex.

[1] OUTPUT, PREROUTING
[2] OUTPUT, POSTROUTING, PREROUTING, float-snat, snat

Change-Id: I6f32cda917c2f882f5fd17b6fa105def5572cdef

10 years agoMerge "enable F812 check for flake8"
Jenkins [Tue, 18 Nov 2014 00:56:20 +0000 (00:56 +0000)]
Merge "enable F812 check for flake8"

10 years agoMerge "Fix L2 agent does not remove unused ipset set"
Jenkins [Tue, 18 Nov 2014 00:35:35 +0000 (00:35 +0000)]
Merge "Fix L2 agent does not remove unused ipset set"

10 years agoBSN: Set inconsistency record on delete failure
Kevin Benton [Thu, 2 Oct 2014 18:26:50 +0000 (11:26 -0700)]
BSN: Set inconsistency record on delete failure

Set a bad value in the consistency DB on a delete
failure so a sync is triggered the next time the backend
servers become available.

This fixes the issue where the backend servers are unavailable
when an object is deleted from ML2 but not deleted from the
backend.

Closes-Bug: #1377350
Change-Id: I24713a03af4d3499645241f900de1f572689c235

10 years agoSubnet delete for IPv6 SLAAC should not require prior port disassoc
Dane LeBlanc [Mon, 17 Nov 2014 15:40:04 +0000 (10:40 -0500)]
Subnet delete for IPv6 SLAAC should not require prior port disassoc

With the current Neutron implementation, a subnet cannot be deleted
until all associated IP addresses have been remove from ports (via
port update) or the associated ports/VMs have been deleted.

In the case of SLAAC-enabled subnets, however, it's not feasible to
require removal of SLAAC-generated addresses individually from each
associated port before deleting a subnet because of the multicast
nature of RA messages. For SLAAC-enabled subnets, the processing of
subnet delete requests needs to be changed so that these subnets will
be allowed to be deleted, and all ports get disassociated from their
corresponding SLAAC IP address, when there are ports existing on
the SLAAC subnet.

Change-Id: I281f5a1553248e09174dc49d0a42aef4b5c44bee
Closes-Bug: 1393435

10 years agoFix client side versions in dhcp rpc API
Russell Bryant [Fri, 7 Nov 2014 14:31:15 +0000 (15:31 +0100)]
Fix client side versions in dhcp rpc API

The dhcp rpc API has two version (1.0 and 1.1).  The proper way to use
versioning for this is to only specify '1.1' from the client side when
you require that the remote side implements at least version '1.1' for
the method to work.  Otherwise, '1.0' should still be specified.  The
previous code specified '1.1' always.

Related to blueprint drop-rpc-compat.

Change-Id: I9468f8f67d80c5d064137f917fc04f9335a3ed55

10 years agoDrop usage of RpcProxy from DhcpPluginApi
Russell Bryant [Fri, 7 Nov 2014 14:11:42 +0000 (15:11 +0100)]
Drop usage of RpcProxy from DhcpPluginApi

Drop the usage of the RpcProxy compatibility class from the
DhcpPluginApi RPC client class.  The implementation has been updated
to use the appropariate APIs from oslo.messaging directly.

Part of blueprint drop-rpc-compat.

Change-Id: I81bfd761707c4c587b12877668c4399efe3d652e

10 years agolinuxbridge-agent: make vxlan unicast check more efficent
Darragh O'Reilly [Mon, 17 Nov 2014 10:20:58 +0000 (10:20 +0000)]
linuxbridge-agent: make vxlan unicast check more efficent

A list with the full range of vxlan VNIs (1 to 2**24) was using
over 300MB of memory. This patch uses xrange instead of range.

Closes-Bug: #1393362
Change-Id: I21ccab758e7911712690fd5e732f64361e809264

10 years agoMerge "Decrease policy logging verbosity"
Jenkins [Mon, 17 Nov 2014 09:28:55 +0000 (09:28 +0000)]
Merge "Decrease policy logging verbosity"

10 years agoMoved out common testcases from test_type_vxlan.py
Romil Gupta [Sun, 16 Nov 2014 17:35:35 +0000 (09:35 -0800)]
Moved out common testcases from test_type_vxlan.py

This patch-set will refactor the test_type_vxlan.py and test_type_gre.py.

We need to add testcases for TunnelRpcCallbackMixin() so better we
should move common test cases from test_type_vxlan.py to test_type_tunnel.py and
add testcases for TunnelRpcCallbackMixin() into it.

Partial-Bug: #1381071
Change-Id: I81f8930cf665ccd89c03f0bd2199ce5d1d9dff65

10 years agoUpdate i18n translation for neutron.extension log msg's
Gary Kotton [Mon, 10 Nov 2014 15:39:40 +0000 (07:39 -0800)]
Update i18n translation for neutron.extension log msg's

Validate that hacking rules apply to directory neutron/extensions

Change-Id: Ifbc97ae2b5670fbdf22c7d0ae48f91a7776daf01
Partial-bug: #1320867

10 years agoUpdate i18n translation for neutron.db log msg's
Gary Kotton [Mon, 10 Nov 2014 15:29:58 +0000 (07:29 -0800)]
Update i18n translation for neutron.db log msg's

Validate that hacking rules apply to directory neutron/db
Partial-bug: #1320867

Change-Id: Iffdaa28bf5d5d503623f1f6dec4a8003f48974d8

10 years agoUpdate i18n translation for neutron.cmd log msg's
Gary Kotton [Mon, 10 Nov 2014 15:07:34 +0000 (07:07 -0800)]
Update i18n translation for neutron.cmd log msg's

Validate that hacking rules apply to directory neutron/cmd

Change-Id: I7fbeba035e8a7f7602fef96a0e10cec5298b08f3
Partial-bug: #1320867

10 years agoUpdate i18n translation for neutron.agents log msg's
Gary Kotton [Sat, 17 May 2014 06:48:21 +0000 (23:48 -0700)]
Update i18n translation for neutron.agents log msg's

Don't translate debug level logs and enforce log hints
Our translation policy
(https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls
for not translating debug level logs. This is to help prioritize log
translation. Furthermore translation has a performance overhead, even if
the log isn't used (since neutron doesn't support lazy translation yet).

NOTE: this is done on a directory by directory basis to ensure that we
do not have too many conflicts and rebases.

Add a local hacking rule to enforce this.

This patch set enforces the directory neutron/agents

Partial-bug: #1320867

Change-Id: I4bd562e5138c2d2850072440aa121f27e902463a

10 years agoMerge "switch to oslo.serialization"
Jenkins [Sat, 15 Nov 2014 00:41:56 +0000 (00:41 +0000)]
Merge "switch to oslo.serialization"

10 years agoenable F812 check for flake8
Mark McClain [Thu, 12 Jun 2014 01:23:53 +0000 (21:23 -0400)]
enable F812 check for flake8

The change removes the shadowed variable in list comprehensions and
enables the F812 check

Change-Id: If7b4d6f198795565fe0d8e7524b73555e310cd14
Partial-Bug: 1329017

10 years agoMerge "Drop neutron.common.rpc.MessagingTimeout"
Jenkins [Fri, 14 Nov 2014 22:03:44 +0000 (22:03 +0000)]
Merge "Drop neutron.common.rpc.MessagingTimeout"

10 years agoenable F811 check for flake8
Mark McClain [Thu, 12 Jun 2014 01:23:53 +0000 (21:23 -0400)]
enable F811 check for flake8

This change incorporates two cleanups that do not change logic:
- Removes the shadowed unused imports by using the proper oslo.config import
mechanism
- duplicate unit tests have been removed
- duplicate unit test names have been corrected to reflect true test
  nature

Change-Id: Iad7a3373c1f787a2078b932c5f40bb718ad76767
Partial-Bug: 1329017

10 years agoDecrease policy logging verbosity
Eugene Nikanorov [Fri, 24 Oct 2014 14:40:15 +0000 (18:40 +0400)]
Decrease policy logging verbosity

Log enforced rules only in case policy check has failed.

Change-Id: I1fe8cbc1c9b5084b9cef6aa8329780512d8c7ec2
Closes-Bug: #1385266

10 years agoMerge "Remove neutron.common.rpc.RemoteError"
Jenkins [Fri, 14 Nov 2014 15:07:14 +0000 (15:07 +0000)]
Merge "Remove neutron.common.rpc.RemoteError"

10 years agoCleanup and refactor methods in unit/test_security_groups_rpc
Miguel Angel Ajo [Fri, 5 Sep 2014 14:58:34 +0000 (16:58 +0200)]
Cleanup and refactor methods in unit/test_security_groups_rpc

We had strings repeating all along the code which already were
in constant form, those have been refactored. Also global configuration
changes are now handled by functions to enhance code readability.

Change-Id: I0d4e508cda2537abe431f04a278ba2e1d2f5d97d

10 years agoswitch to oslo.serialization
gordon chung [Thu, 9 Oct 2014 18:17:43 +0000 (14:17 -0400)]
switch to oslo.serialization

jsonutils has been moved to the oslo.serialization library. in this
patch we bring in oslo.serialization and switch all references to
the new library.

Closes-Bug: #1385353
Change-Id: I2898c4040abb2f208959049708e7bc093cfbaba7

10 years agoAdd rootwrap filters for ofagent
YAMAMOTO Takashi [Mon, 10 Nov 2014 05:23:30 +0000 (14:23 +0900)]
Add rootwrap filters for ofagent

neutron-ofagent-agent currently relies on the fact the rootwrap
filters for neutron-openvswitch-agent covers what it needs.
as they are independent agents and their requirements are
getting more different, introduce a dedicated rootwrap filters
for ofagent.

Closes-Bug: #1392560
Change-Id: Iba205260a238431432caf8d9697268ceeef85eca

10 years agoMerge "Resolving some spelling mistakes"
Jenkins [Thu, 13 Nov 2014 23:58:03 +0000 (23:58 +0000)]
Merge "Resolving some spelling mistakes"

10 years agoMerge "Cisco VPNaaS and L3 router plugin integration"
Jenkins [Thu, 13 Nov 2014 23:50:48 +0000 (23:50 +0000)]
Merge "Cisco VPNaaS and L3 router plugin integration"

10 years agoMerge "Remove neutron.common.rpc.RPCException"
Jenkins [Thu, 13 Nov 2014 23:39:03 +0000 (23:39 +0000)]
Merge "Remove neutron.common.rpc.RPCException"

10 years agoMerge "Updated policy module from oslo-incubator"
Jenkins [Thu, 13 Nov 2014 18:56:48 +0000 (18:56 +0000)]
Merge "Updated policy module from oslo-incubator"

10 years agoMerge "Fix missing allowed command in openvswitch xenapi agent"
Jenkins [Thu, 13 Nov 2014 16:05:16 +0000 (16:05 +0000)]
Merge "Fix missing allowed command in openvswitch xenapi agent"