]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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 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 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 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 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 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 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 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 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 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"

10 years agoMerge "VPNaaS REST Client UT Broken"
Jenkins [Mon, 7 Jul 2014 20:23:14 +0000 (20:23 +0000)]
Merge "VPNaaS REST Client UT Broken"

10 years agoMerge "Fix example for running individual tests"
Jenkins [Mon, 7 Jul 2014 16:51:59 +0000 (16:51 +0000)]
Merge "Fix example for running individual tests"

10 years agoVPNaaS REST Client UT Broken
Paul Michali [Mon, 30 Jun 2014 22:31:42 +0000 (18:31 -0400)]
VPNaaS REST Client UT Broken

When the H302 work was done, it broke two modules used for UT of
Cisco CSR VPNaaS REST client. Since the UT is currently disabled
(because the httmock library was not approved for test-requirements),
the error was not detected.

This fixes the files, so that they can still be used manually (by
locally importing httmock or its source file, and renaming the
module to remove the "_" prefix).

In the long term, the UT needs to be reworked to use httpretty,
which uses a register based mechanism, instead of a context
manager based mechanism, so this will take some effort. In addition.
there is discussion of switching to a new mock-request package,
instead of httpretty.

Change-Id: I8badc249ad021fdbdb2367b5416c72435ed58994
Closes-Bug: 1335977
Closes-Bug: 1326785

10 years agoAvoid notifying while inside transaction opened in delete_port()
Ihar Hrachyshka [Wed, 18 Jun 2014 14:56:25 +0000 (16:56 +0200)]
Avoid notifying while inside transaction opened in delete_port()

delete_port() calls to disassociate_floatingips() while in transaction.
The latter method sends RPC notification which may result in eventlet
yield. If yield switches a thread to another one that tries to access
the same floating IP object in db as disassociate_floatingips() method
does, we're locked and get db timeout.

We should avoid calling to notifier while under transaction.

To achieve this, I introduce a do_notify argument that controls whether
notification is done by disassociate_floatingips() itself or delegated
to caller. Callers that call to disassociate_floatingips() from under
transactions should handle notifications on their own. For this,
disassociate_floatingips() returns a set of routers that require
notification.

Updated drivers to reflect new behaviour. Added unit test.

Change-Id: I2411f2aa778ea088be416d062c4816c16f49d2bf
Closes-Bug: 1330955

10 years agoMerge "Trigger provider security group update for RA"
Jenkins [Sat, 5 Jul 2014 01:15:52 +0000 (01:15 +0000)]
Merge "Trigger provider security group update for RA"

10 years agoOmit mode keyword when spawning dnsmasq with some ipv6 subnets
Alexander Ignatov [Thu, 3 Jul 2014 09:51:14 +0000 (13:51 +0400)]
Omit mode keyword when spawning dnsmasq with some ipv6 subnets

Fix UnboundLocalError for certain cases of ipv6 subnets

Closes-Bug: #1335959
Change-Id: I5e4b94d9ba1b13b72e2300b53d5638968e0d3401

10 years agoFixed spelling mistake in securitygroups_rpc
Mike Kolesnik [Thu, 3 Jul 2014 08:46:08 +0000 (11:46 +0300)]
Fixed spelling mistake in securitygroups_rpc

Fixed spelling mistake in a doctext.

Change-Id: I04a44521403aa00048c875b44a3c0bf5ce8a6c4b

10 years agoMerge "Remove SELECT FOR UPDATE use in ML2 type driver release_segment"
Jenkins [Thu, 3 Jul 2014 08:28:25 +0000 (08:28 +0000)]
Merge "Remove SELECT FOR UPDATE use in ML2 type driver release_segment"

10 years agoMerge "OVS agent: fix a comment on CANARY_TABLE"
Jenkins [Wed, 2 Jul 2014 23:20:37 +0000 (23:20 +0000)]
Merge "OVS agent: fix a comment on CANARY_TABLE"

10 years agoMerge "Allow setting a rootwrap cmd for functional tests"
Jenkins [Wed, 2 Jul 2014 19:50:16 +0000 (19:50 +0000)]
Merge "Allow setting a rootwrap cmd for functional tests"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 2 Jul 2014 18:37:36 +0000 (18:37 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Updated from global requirements"
Jenkins [Wed, 2 Jul 2014 18:37:27 +0000 (18:37 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Add configurable http_timeout parameter for Cisco N1K"
Jenkins [Wed, 2 Jul 2014 18:14:42 +0000 (18:14 +0000)]
Merge "Add configurable http_timeout parameter for Cisco N1K"

10 years agoOVS agent: fix a comment on CANARY_TABLE
YAMAMOTO Takashi [Tue, 1 Jul 2014 01:50:57 +0000 (10:50 +0900)]
OVS agent: fix a comment on CANARY_TABLE

CANARY_TABLE is for br-int, not for br-tun.  Grouping it with
constants for br-tun tables together is misleading.  Move it into
a separate section and comment appropriately.  No functional changes.

Change-Id: Ic1aed992776a87ed77665b712de7ec3bd9dab397

10 years agoofagent: Fix an argument mismatch bug in commit 9d13ea88
YAMAMOTO Takashi [Tue, 1 Jul 2014 07:07:39 +0000 (16:07 +0900)]
ofagent: Fix an argument mismatch bug in commit 9d13ea88

recently merged commit 9d13ea884bff749b3975acb5eb5630e5aca4a665
had an argument mismatch bug which causes the following crash.

    TypeError: _get_ports() takes exactly 2 arguments (1 given)

this commit fixes it.

Closes-Bug: #1336175
Change-Id: I46bb1fc1aebf06274bb226014e4a9bc5a83f98ac

10 years agoFix UnboundLocalError raised during L3 router sync task
armando-migliaccio [Tue, 1 Jul 2014 22:08:11 +0000 (15:08 -0700)]
Fix UnboundLocalError raised during L3 router sync task

This can be fixed in a number of ways: a) consolidating the
two except clauses into one; b) adding a 'return' after the
last except clause c) by calling the cleanup method only on
success; d) initializing 'routers' before usage.

Approach c) has the benefit of stating the developer's intent
more explicitly and minimize chances of regression.

Closes-bug: #1336566

Change-Id: Ib91ac5bb07869cbec6825b60d7c4c5b23c4c4d3a

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 2 Jul 2014 12:25:51 +0000 (12:25 +0000)]
Updated from global requirements

Change-Id: If26b2e9b875f8cae0af1cf66607ef1efb8dd429c

10 years agoMerge "Fix OVSBridge.get_port_ofport to handle empty output"
Jenkins [Wed, 2 Jul 2014 11:08:03 +0000 (11:08 +0000)]
Merge "Fix OVSBridge.get_port_ofport to handle empty output"

10 years agoFix isinstance assertions
Ralf Haferkamp [Wed, 2 Jul 2014 10:25:00 +0000 (12:25 +0200)]
Fix isinstance assertions

self.assertIsInstance is preferred over assert(isinstance(..)). See feedback in:
https://review.openstack.org/#/c/102754/1/neutron/tests/unit/test_extension_security_group.py

Change-Id: I9dd6141d8f25961eb42a390b45e6d94d482afc1c

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 2 Jul 2014 06:08:38 +0000 (06:08 +0000)]
Imported Translations from Transifex

Change-Id: I194cb4f511cf05b70f2bffaeb3d4daee24e46993

10 years agoMerge "Ignore variable column widths in ovsdb functional tests"
Jenkins [Wed, 2 Jul 2014 04:13:24 +0000 (04:13 +0000)]
Merge "Ignore variable column widths in ovsdb functional tests"

10 years agoMerge "NSX: fix indentations"
Jenkins [Wed, 2 Jul 2014 04:01:54 +0000 (04:01 +0000)]
Merge "NSX: fix indentations"

10 years agoAllow setting a rootwrap cmd for functional tests
Maru Newby [Wed, 2 Jul 2014 00:02:08 +0000 (00:02 +0000)]
Allow setting a rootwrap cmd for functional tests

Previously, sudo-requiring functional tests hardcoded the use of
'sudo' as the root helper.  Devstack gate jobs do not allow
password-less invocation of 'sudo', though, so such tests were unable
to run in the gate.  This patch adds the ability to configure the
rootwrap command installed by devstack by setting the OS_ROOTWRAP_CMD
environment variable in the test execution environment, allowing
sudo-requiring tests to run.

Change-Id: I3b8f6b4f14ac1743e08b9401f73951885165350a
Partial-bug: #1336172

10 years agoFix OVSBridge.get_port_ofport to handle empty output
Maru Newby [Tue, 1 Jul 2014 23:51:15 +0000 (23:51 +0000)]
Fix OVSBridge.get_port_ofport to handle empty output

Previously ovs_lib.OVSBridge.get_port_ofport() was not handling the
case where db_get_val() was returning None when no output was recieved
from ovs-vsctl.  This patch ensures that the TypeError that results
from this condition is appropriately handled.

Change-Id: I168eb0f2c6f0cb98a3eb3e118972bbaf0383ff89
Partial-bug: #1336172

10 years agoIgnore variable column widths in ovsdb functional tests
Henry Gessau [Tue, 1 Jul 2014 21:56:49 +0000 (17:56 -0400)]
Ignore variable column widths in ovsdb functional tests

The ovsdb tests check the output of "ovsdb-client monitor" before and after
some operations. The first line of output is a header row with spaces for
column separation. The column widths can vary depending on the data in the
columns, so compress multiple spaces to one for testing.

Change-Id: I6b4690ea9ef1c1b215411ca2c39b1e65fec2c6c7
Partial-bug: #1336172

10 years agoMerge "Updated from global requirements"
Jenkins [Tue, 1 Jul 2014 20:05:54 +0000 (20:05 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "validate flat networks physical name"
Jenkins [Tue, 1 Jul 2014 19:27:30 +0000 (19:27 +0000)]
Merge "validate flat networks physical name"

10 years agoMerge "BSN: Remove db lock and add missing contexts"
Jenkins [Tue, 1 Jul 2014 19:21:56 +0000 (19:21 +0000)]
Merge "BSN: Remove db lock and add missing contexts"

10 years agoMerge "LBaaS new object model logging no-op driver"
Jenkins [Tue, 1 Jul 2014 18:32:25 +0000 (18:32 +0000)]
Merge "LBaaS new object model logging no-op driver"

10 years agoAdd configurable http_timeout parameter for Cisco N1K
Sayaji [Wed, 25 Jun 2014 18:39:40 +0000 (11:39 -0700)]
Add configurable http_timeout parameter for Cisco N1K

http_timeout is a constant defined in the code. This
change makes it configurable by providing it as an
option in the config file.

DocImpact

Closes-Bug: #1332290
Change-Id: I429dd9efa43f6a596933359f4627a7761411e621

10 years agoNSX: fix indentations
Gary Kotton [Tue, 1 Jul 2014 09:03:45 +0000 (02:03 -0700)]
NSX: fix indentations

Commit f43eb49f56accab87e4d1b6defcf78d1e697f9e6 had invalid
indentations.

Change-Id: I795d1960e79cc6fae889fbe8fca264d9e60e6f08

10 years agoMerge "Stop the dhcp-agent process when dnsmasq version is not determined"
Jenkins [Tue, 1 Jul 2014 18:08:17 +0000 (18:08 +0000)]
Merge "Stop the dhcp-agent process when dnsmasq version is not determined"

10 years agoMerge "lb-agent: ensure removed devices get treated on resyncs"
Jenkins [Tue, 1 Jul 2014 18:07:04 +0000 (18:07 +0000)]
Merge "lb-agent: ensure removed devices get treated on resyncs"

10 years agoBSN: Remove db lock and add missing contexts
Kevin Benton [Tue, 1 Jul 2014 13:03:19 +0000 (06:03 -0700)]
BSN: Remove db lock and add missing contexts

Adds context tracking decorators that were missing
from router interface methods. Without them, new
sessions were being created instead of using the
existing context which was causing transaction
issues.

Modifies the servermanager to store context references
as weakrefs so if multiple functions are called before
the rest functions are called, the first one doesn't steal
the only context reference with a pop() call.

Removes a DB lock for update in the server manager that occured
during rest calls that was triggering deadlocks due to the
file lock synchronization for the rest calls.

Closes-Bug: #1336251
Change-Id: Iad3d61e2c23832b3ad760a999fbab7feaa13f805

10 years agoNSX: properly handle floating ip status
Salvatore Orlando [Fri, 27 Jun 2014 18:50:00 +0000 (11:50 -0700)]
NSX: properly handle floating ip status

Ensure the floating IP status is put ACTIVE or DOWN when it
is associated or disassociated.
This is done directly on the plugin class as the NSX backend
applies relevant NAT rules synchronously.

Change-Id: Ie747c4eae2ac33016fdabaade2335f7d2d24eec9
Closes-Bug: #1334708

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 1 Jul 2014 13:08:10 +0000 (13:08 +0000)]
Updated from global requirements

Change-Id: I4e105ae586e8a2379f3025f6f0d0344738b4e925

10 years agoFix example for running individual tests
Ralf Haferkamp [Mon, 23 Jun 2014 12:27:55 +0000 (14:27 +0200)]
Fix example for running individual tests

The ':' syntax doesn't seem to work anymore. Additionally fix the "tox" call to
not try to run it from the current working directory. It's usually installed
somewhere in $PATH.

Closes-Bug: #1334134
Change-Id: Ie608cee2ac131941d6642e2560a84db55415654b

10 years agoMerge "Replace occurences of 'test_tenant' with 'test-tenant' in tests"
Jenkins [Mon, 30 Jun 2014 20:31:21 +0000 (20:31 +0000)]
Merge "Replace occurences of 'test_tenant' with 'test-tenant' in tests"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 30 Jun 2014 19:40:36 +0000 (19:40 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Switch to using of oslo.db"
Jenkins [Mon, 30 Jun 2014 19:26:20 +0000 (19:26 +0000)]
Merge "Switch to using of oslo.db"

10 years agoStop the dhcp-agent process when dnsmasq version is not determined
Edgar Magana [Fri, 30 May 2014 23:27:35 +0000 (16:27 -0700)]
Stop the dhcp-agent process when dnsmasq version is not determined

When it is not possible to determinate the dnsmasq version
or dnsmasq is not installed, neutron shows only a warning message.
With this commit the dhcp-agent process will be stopped if the
dnsmasq service is not installed.
Modifies the dhcp version unit test with the expected SystemExit exception

Change-Id: Ia26eaae6f432305f412a4b6a4a6b2b7b15d99d45
Closes-Bug: 1212401

10 years agoMerge "changes ovs agent to get bridges via ovs_lib"
Jenkins [Mon, 30 Jun 2014 17:53:58 +0000 (17:53 +0000)]
Merge "changes ovs agent to get bridges via ovs_lib"

10 years agoSwitch to using of oslo.db
Roman Podoliaka [Mon, 30 Jun 2014 08:20:35 +0000 (11:20 +0300)]
Switch to using of oslo.db

oslo.db first stable release has been cut and we can start using it
instead of openstack/common/db/* code which is now marked obsolete.

Change-Id: I1ccf896922a5a762d37a1a3b93c56c8b8ae8c085

10 years agoReplace occurences of 'test_tenant' with 'test-tenant' in tests
Assaf Muller [Sat, 3 May 2014 14:05:04 +0000 (17:05 +0300)]
Replace occurences of 'test_tenant' with 'test-tenant' in tests

tenant_id will now be consistent among all resources created.
This is important when getting or listing resources by tenant_id.
Most resources are created under the 'test-tenant', while
metering and security groups were created under 'test_tenant'.

Closes-Bug: #1335821
Change-Id: Ifde22814ab5c302e751f2102f6fd7ef52c932126