]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoReport proper error message in PLUMgrid Plugin
Fawad Khaliq [Mon, 13 Jan 2014 18:42:55 +0000 (10:42 -0800)]
Report proper error message in PLUMgrid Plugin

Change-Id: Ifc1bb55f6b025bba77cf9858ed392dbf170075a7
Closes-Bug: #1268460
Signed-off-by: Fawad Khaliq <fawad@plumgrid.com>
10 years agoFix interprocess locks for run_tests.sh
Justin Hammond [Thu, 16 Jan 2014 20:47:58 +0000 (20:47 +0000)]
Fix interprocess locks for run_tests.sh

This was fixed for nova using this method and we are porting it here as we are
running into a similar bug as #1264058

Closes-Bug: #1269938
Change-Id: I06a2684629fd7b4d30e2d7716dc00a2ed0479f2f

10 years agoExpunge session contents between plugin requests
Salvatore Orlando [Wed, 15 Jan 2014 20:45:22 +0000 (12:45 -0800)]
Expunge session contents between plugin requests

In the NVP plugin, metadata processing performs several plugin operations
with the same context (and db session). The first operation might leave
persisted objects in the session instance which then conflict with objects
created in the second operation.

Closes-Bug: #1266482

Change-Id: Ic9e2b952013610647aa222f1a8b6e33504b54b37

10 years agoRemove release_lease from the DHCP driver interface
Carl Baldwin [Wed, 13 Nov 2013 18:50:48 +0000 (18:50 +0000)]
Remove release_lease from the DHCP driver interface

Neither the midonet nor the linux dhcp driver needs a call to
release_lease.  Removing this from the driver API simplifies more code
in the DHCP agent.

Change-Id: Ib144b2bf3720b1b999205ace1a7d1ffe5ef3b167
Closes-Bug: #1269505

10 years agoFix the migration adding a UC to agents table
Roman Podoliaka [Thu, 12 Dec 2013 06:20:15 +0000 (08:20 +0200)]
Fix the migration adding a UC to agents table

The migration script mistakenly assumes that all core
plugins use agents extension, which is not true (e.g.
plumgrid and bigswitch don't).

Apply this migration script only for plugins that are
stated in the original migration script adding agents
table (511471cc46b_agent_ext_model_supp.py).

Related-Bug: #1254246

Change-Id: I7915ef8d183782eb5d46ac47f45014aa9e9640fb

10 years agoNVP: Add LOG.exception to see why router was not created
Aaron Rosen [Tue, 14 Jan 2014 21:03:32 +0000 (13:03 -0800)]
NVP: Add LOG.exception to see why router was not created

Add missing LOG.exception so that it exposes what error occurred.

Change-Id: I9194795678a6be59eb1d2555dfa99ca7a035c418
Closes-bug: #1269152

10 years agoFix race condition in delete_port method. Fix update_port method
Eugene Nikanorov [Mon, 13 Jan 2014 14:58:59 +0000 (18:58 +0400)]
Fix race condition in delete_port method. Fix update_port method

Port can be gone between
  l3plugin.prevent_l3_port_deletion(context, id)
and port query. Need to handle it properly.
ALso need to handle non-existing port in update_port properly.

Closes-Bug: #1266537

Change-Id: Ic203f21db277f83c604a8757a8c421b3fb9ae709

10 years agoUse information from the dnsmasq hosts file to call dhcp_release
Carl Baldwin [Tue, 12 Nov 2013 22:52:47 +0000 (22:52 +0000)]
Use information from the dnsmasq hosts file to call dhcp_release

Certain situations can cause the DHCP agent's local cache to get out
of sync with the leases held internally by dnsmasq.  This method of
detecting when to call dhcp_release is idempotent and not dependent on
the cache.  It is more robust.

Change-Id: I4eafd9cfb94a77a2f0229f89de5483dad23725cf
Closes-Bug: #1250644

10 years agoLBaaS: handle NotFound exceptions in update_status callback
Oleg Bondarev [Mon, 16 Dec 2013 09:17:48 +0000 (13:17 +0400)]
LBaaS: handle NotFound exceptions in update_status callback

LBaaS agent may send update_status requests to server on objects
which were already deleted from db: this is due to creating and
deleting objects with a high rate (like tempest API tests do).
As a result errors and stacktraces appear in server and agent logs.
The proposed solution is to catch NotFound exceptions and print a warning.

Change-Id: I4446b678893d0bda578ad7ccdf3f109cb1c91b4d
Closes-Bug: #1260682

10 years ago[ML2] l2-pop MD handle multi create/delete ports
Édouard Thuleau [Tue, 24 Dec 2013 10:48:46 +0000 (11:48 +0100)]
[ML2] l2-pop MD handle multi create/delete ports

If more than one port is added or removed simultaneously, port db entry
have status BUILD or DOWN and pass to ACTIVE when agent have finish to
configured it.
l2-pop mechanism driver use events port pass to ACTIVE or DOWN to send
fdb entries. In case of port is the first or the last network port on
an agent, the flooding entry need to be add or removed.

This patch fix the method to determine how many ports are active on a
agent by adding filter on status port to be ACTIVE.

Closes-bug: #1263881
Change-Id: I9c1f8bd69dee37bc01a5d42327aa5f737998c5aa

10 years agoDnsmasq uses all agent IPs as nameservers
Sylvain Afchain [Wed, 4 Dec 2013 20:01:06 +0000 (21:01 +0100)]
Dnsmasq uses all agent IPs as nameservers

Add dhcp option which provides all agent IPs
which will be used as nameserver entries when
neutron uses multiple dhcp agent per network and
when there is no dns nameserver provided by the
neutron server.

Change-Id: I639a844bba212a731616851ff479a5e735612cf8
Closes-bug: #1259482

10 years agoLBaaS: fix handling pending create/update members and health monitors
Oleg Bondarev [Thu, 12 Dec 2013 08:13:22 +0000 (12:13 +0400)]
LBaaS: fix handling pending create/update members and health monitors

When agent requests loadbalancer logical config from server,
server returns only active pool members and health_monitors.
Need to make server return also members and monitors which are in pending states.

Also a small refactoring moving ACTIVE_PENDING set to common place

Change-Id: I8e10004f199f982b055da18ea7a0e5e4d11fa7fb
Closes-Bug: #1259965

10 years agovalidate if the router has external gateway interface set
Yong Sheng Gong [Sat, 7 Dec 2013 08:59:18 +0000 (16:59 +0800)]
validate if the router has external gateway interface set

If the router wants to work with vpn service, we must
make sure external gateway interface is set.

This patch cannot prevent user from clearing the gateway interface
of the router after the vpnservice is created.

Change-Id: If0f00def949b31c1e3da7a2cd055454567201e4c
Closes-Bug: #1258379

10 years agoReview (build-)depends
Thomas Goirand [Thu, 13 Mar 2014 06:47:34 +0000 (14:47 +0800)]
Review (build-)depends

Change-Id: Ib04b481742a7eb102c905a1dbea030a95dc1c105

10 years agoAdded de.po
Thomas Goirand [Sun, 2 Mar 2014 09:17:37 +0000 (17:17 +0800)]
Added de.po

Change-Id: I013244d4e9fef736653fb6f77a2f4edd478025ab

10 years agoFix openstack-pkg-tools build-depends
Thomas Goirand [Mon, 17 Feb 2014 07:56:53 +0000 (15:56 +0800)]
Fix openstack-pkg-tools build-depends

Change-Id: Iedbd996c992a443aa8d32603355c72cb5d1252e1

10 years agoApplied changes from the Havana branch.
Thomas Goirand [Mon, 17 Feb 2014 07:42:00 +0000 (15:42 +0800)]
Applied changes from the Havana branch.

Change-Id: Idf16b5d2546c94864dcf9e135ac1f80d6bbec798

10 years agoFix /var/lib/neutron and /var/lib/neutron/dhcp folder rights.
Thomas Goirand [Thu, 13 Feb 2014 11:41:40 +0000 (19:41 +0800)]
Fix /var/lib/neutron and /var/lib/neutron/dhcp folder rights.

Change-Id: If0f2ab1ad50d12dc9af155314b962cbc25052167
(cherry picked from commit 619a80f61fbf5a65234ea2684952abb8cc991f3e)

Conflicts:
debian/neutron-common.postinst.in

10 years agoRestart daemons after logrotate
Thomas Goirand [Mon, 3 Feb 2014 08:37:04 +0000 (16:37 +0800)]
Restart daemons after logrotate

Change-Id: Ia989bdde7ae136c1e49a349cd3694276207ff7a3
(cherry picked from commit bd3e2763cb1fa4aca94f89295820e313d5d2e3f1)

10 years agoFixed (build-)depends for Icehouse b2.
Thomas Goirand [Wed, 29 Jan 2014 14:02:11 +0000 (22:02 +0800)]
Fixed (build-)depends for Icehouse b2.

Change-Id: I300c3a2db00349173ff680680c39478db345276e

10 years agoRefreshed patches.
Thomas Goirand [Wed, 29 Jan 2014 11:05:14 +0000 (19:05 +0800)]
Refreshed patches.

Change-Id: I22fc6c09e64cae9af11340f416f898abf4741b80

10 years agoNow packaging icehouse b2.
Thomas Goirand [Wed, 29 Jan 2014 10:50:07 +0000 (18:50 +0800)]
Now packaging icehouse b2.

Change-Id: I3b476109e8aeb7d262e5cf6555b878e2e8d3c538

10 years agoMerge tag '2014.1_b2' into debian/icehouse
Thomas Goirand [Wed, 29 Jan 2014 10:49:53 +0000 (18:49 +0800)]
Merge tag '2014.1_b2' into debian/icehouse

Neutron icehouse-2 milestone (2014.1.b2)

10 years agoMerge "Clean up ML2 Manager"
Jenkins [Sat, 18 Jan 2014 10:32:58 +0000 (10:32 +0000)]
Merge "Clean up ML2 Manager"

10 years agoMerge "VMware NSX: add sanity checks for NSX cluster backend"
Jenkins [Sat, 18 Jan 2014 05:50:11 +0000 (05:50 +0000)]
Merge "VMware NSX: add sanity checks for NSX cluster backend"

10 years agoMerge "Update RPC code from oslo"
Jenkins [Thu, 16 Jan 2014 16:25:15 +0000 (16:25 +0000)]
Merge "Update RPC code from oslo"

10 years agoMerge "Configure plugins by name"
Jenkins [Thu, 16 Jan 2014 11:56:25 +0000 (11:56 +0000)]
Merge "Configure plugins by name"

10 years agoClean up ML2 Manager
zhhuabj [Thu, 16 Jan 2014 06:34:14 +0000 (14:34 +0800)]
Clean up ML2 Manager

Some things need cleanup in the ML2Manager.

1) Replace sys.exit(1) with raise SystemExit(1)
2) Replace reserved keyword type with network_type

Change-Id: I921bfaec7d3e31503942b3ca4a1b2218c44b14ac
Closes-Bug: #1259646

10 years agoMerge "Fix negative unit test for sec group rules"
Jenkins [Thu, 16 Jan 2014 04:57:02 +0000 (04:57 +0000)]
Merge "Fix negative unit test for sec group rules"

10 years agoMerge "Add binding:host_id when creating port for probe"
Jenkins [Wed, 15 Jan 2014 18:30:52 +0000 (18:30 +0000)]
Merge "Add binding:host_id when creating port for probe"

10 years agoVMware NSX: add sanity checks for NSX cluster backend
armando-migliaccio [Thu, 9 Jan 2014 13:53:09 +0000 (05:53 -0800)]
VMware NSX: add sanity checks for NSX cluster backend

Ensure that all transport nodes registered are up
and running. A failure here, may prevent a lot of
failures down the lines.

Change-Id: I3473928e296ec6792f34bc27a4ae797fed337e7c
Closes-bug: #1267468

10 years agoMerge "LBaaS: synchronize haproxy deploy/undeploy_instance methods"
Jenkins [Wed, 15 Jan 2014 12:43:38 +0000 (12:43 +0000)]
Merge "LBaaS: synchronize haproxy deploy/undeploy_instance methods"

10 years agoUpdate RPC code from oslo
Gary Kotton [Mon, 30 Dec 2013 08:48:15 +0000 (00:48 -0800)]
Update RPC code from oslo

The common RPC code has been updated to include the following:
    8575d87af49ea276341908f83c8c51db13afca44
    8b2b0b743e84ceed7841cf470afed6a5da8e1d07
    23f602940c64ba408d77ceb8f5ba0f67ee4a18ef
    6d0a6c3083218cdac52758a8b6aac6b03402c658
    7cac1ac1bd9df36d4e5183afac3b643df10b1d4d
    8159efddabb09dd9b7c99963ff7c9de0a6c62b62

Updated to include the following in modules in openstack-common.conf:
py3kcompat, sslutils, and versionutils.

The update also includes imports from the RPC code

Change-Id: I84c5b8e2b17da0018dd69ecb354d123a609afe98

10 years agoConfigure plugins by name
Zang MingJie [Fri, 10 Jan 2014 10:35:49 +0000 (18:35 +0800)]
Configure plugins by name

To configure core plugin or service plugins, instead of using class names,
simpler names can also be used, ex:

service_plugins = router, firewall, lbaas

For compatibility with previous versions, the class name of a plugin can be
specified instead of its entrypoint name, ex:

service_plugins = router, neutron.services.firewall.fwaas_plugin.FirewallPlugin, lbaas

DocImpact

Implements: blueprint config-plugin-by-name
Change-Id: Ia4aaa1d305b160a4d6dab9e227c744727a4c78c2

10 years agoFix negative unit test for sec group rules
Salvatore Orlando [Mon, 13 Jan 2014 11:33:40 +0000 (03:33 -0800)]
Fix negative unit test for sec group rules

Ensure the test fails because the security group
rule could not be created, and not because the security
group was deleted before creating the rule.

Closes-Bug: #1268561

Change-Id: Ib2ea8c4507862d7bb343ce5181cf018b3cdf4b73

10 years agoAdd binding:host_id when creating port for probe
Jakub Libosvar [Thu, 9 Jan 2014 19:38:37 +0000 (20:38 +0100)]
Add binding:host_id when creating port for probe

When probe is created it needs to have correct bindings otherwise port
is marked as dead.

Change-Id: I64441fbe802aab068c129c9647c7144fcd4c50a1
Partial-Bug: #1262785

10 years agoFix pip install failure due to missing nvp.ini file
armando-migliaccio [Tue, 7 Jan 2014 10:20:28 +0000 (02:20 -0800)]
Fix pip install failure due to missing nvp.ini file

It looks like sdist does not support symlinks, therefore
letting nvp.ini point to nsx.ini is not a good solution.
Since nvp.ini is going away, leave a copy for now, but
add a warning so that users are aware of the switch,
whilst preserving full backward-compatibility.

Closes-bug: #1266555

Change-Id: Id98c41145712583072a8e63a5de31ecc1074e420

10 years agoMerge "L3 Agent can handle many external networks"
Jenkins [Mon, 13 Jan 2014 16:34:56 +0000 (16:34 +0000)]
Merge "L3 Agent can handle many external networks"

10 years agoMerge "Make timeout for ovs-vsctl configurable"
Jenkins [Mon, 13 Jan 2014 16:21:53 +0000 (16:21 +0000)]
Merge "Make timeout for ovs-vsctl configurable"

10 years agoMerge "VMware NSX: Fix db integrity error on dhcp port operations"
Jenkins [Mon, 13 Jan 2014 10:44:41 +0000 (10:44 +0000)]
Merge "VMware NSX: Fix db integrity error on dhcp port operations"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 13 Jan 2014 06:34:08 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: Ic9f6e6754db748acf456cc69b38c4268b86fe3e1

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 13 Jan 2014 03:49:47 +0000 (03:49 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Update lockutils and fixture in openstack.common"
Jenkins [Mon, 13 Jan 2014 00:59:52 +0000 (00:59 +0000)]
Merge "Update lockutils and fixture in openstack.common"

10 years agoMerge "Fix mistake in usage drop_constraint parameters"
Jenkins [Mon, 13 Jan 2014 00:58:06 +0000 (00:58 +0000)]
Merge "Fix mistake in usage drop_constraint parameters"

10 years agoMerge "Fix race condition on ml2 delete and update port methods"
Jenkins [Sun, 12 Jan 2014 20:49:57 +0000 (20:49 +0000)]
Merge "Fix race condition on ml2 delete and update port methods"

10 years agoAdded new es and sv po debian/po/*.po files.
Thomas Goirand [Sun, 12 Jan 2014 09:33:49 +0000 (17:33 +0800)]
Added new es and sv po debian/po/*.po files.

Change-Id: Ia485215222a88868069e784770b4ea34573127da
(cherry picked from commit d1a0fa1a7bbeca628ab01bd8e3a8fd1dbeefcc9a)

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 12 Jan 2014 06:34:37 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: I498d30ef3158b1823a48ad521bc0c5f7149e6ab4

10 years agoMerge "Remove FWaaS Noop driver as default and move to unit tests dir"
Jenkins [Sun, 12 Jan 2014 02:50:07 +0000 (02:50 +0000)]
Merge "Remove FWaaS Noop driver as default and move to unit tests dir"

10 years agoMerge "Fix extension description and remove unused exception"
Jenkins [Sun, 12 Jan 2014 00:39:26 +0000 (00:39 +0000)]
Merge "Fix extension description and remove unused exception"

10 years agoMerge "Remove extra whitespace"
Jenkins [Sun, 12 Jan 2014 00:39:17 +0000 (00:39 +0000)]
Merge "Remove extra whitespace"

10 years agoMerge "Add VXLAN example to ovs_neutron_plugin.ini"
Jenkins [Sun, 12 Jan 2014 00:18:04 +0000 (00:18 +0000)]
Merge "Add VXLAN example to ovs_neutron_plugin.ini"

10 years agoMerge "Add test to port_security to test with security_groups"
Jenkins [Sat, 11 Jan 2014 07:14:14 +0000 (07:14 +0000)]
Merge "Add test to port_security to test with security_groups"

10 years agoMerge "Remove dupl. for get_resources in adv. services"
Jenkins [Fri, 10 Jan 2014 23:32:30 +0000 (23:32 +0000)]
Merge "Remove dupl. for get_resources in adv. services"

10 years agoMake timeout for ovs-vsctl configurable
Salvatore Orlando [Tue, 10 Dec 2013 12:20:26 +0000 (04:20 -0800)]
Make timeout for ovs-vsctl configurable

This patch adds a new configuration variable for the timeout on
ovs-vsctl commands, and sets the default timeout to 10 seconds.
This is aimed at allowing users to tune the agents in order to avoid
timeout errors on their deployments.

Change-Id: I73ea0d0de49a4b4a118bc2d68ad9c093ea122717
Closes-Bug: #1254520

10 years agoMerge "Fix Migration 50e86cb2637a and 38335592a0dc"
Jenkins [Fri, 10 Jan 2014 17:32:02 +0000 (17:32 +0000)]
Merge "Fix Migration 50e86cb2637a and 38335592a0dc"

10 years agoRemove extra whitespace
Salvatore Orlando [Fri, 10 Jan 2014 13:09:18 +0000 (05:09 -0800)]
Remove extra whitespace

Remove an extra whitespace in the __str__ routine for the
VifPort class

Change-Id: Ie4a7d011af1697d2e6f523dfe00244aaa42d5127

10 years agoFix extension description and remove unused exception
Salvatore Orlando [Fri, 10 Jan 2014 13:04:23 +0000 (05:04 -0800)]
Fix extension description and remove unused exception

Change-Id: Id0a40a8decb46e306256196c7fc79d687d4f8075
Closes-Bug: #1267841

10 years agoFix mistake in usage drop_constraint parameters
Ann Kamyshnikova [Wed, 4 Dec 2013 06:59:59 +0000 (10:59 +0400)]
Fix mistake in usage drop_constraint parameters

In migration e197124d4b9_add_unique_constrain mistake in usage
drop_constraint parameter type_ and positional arguments name
and table_name.

The same mistake was already fixed in migration
63afba73813_ovs_tunnelendpoints_id_unique.

Change-Id: I6a250e55ea53048bb11afd71fecf94da6f0c7421
Closes-bug: #1257607

10 years agoMerge "Update the descriptions for the log cfg opts"
Jenkins [Fri, 10 Jan 2014 09:29:13 +0000 (09:29 +0000)]
Merge "Update the descriptions for the log cfg opts"

10 years agoFix race condition on ml2 delete and update port methods
Eugene Nikanorov [Thu, 9 Jan 2014 09:23:02 +0000 (13:23 +0400)]
Fix race condition on ml2 delete and update port methods

Synchronize access to ports table when deleting and updating
a port. Otherwise concurrent update/delete request for the same port
may cause neutron server to throw an exception and return
'500 Internal server error' for such requests.

Change-Id: I868002643147ce6baace5671cffb38b4f5e66729
Closes-Bug: #1266537

10 years agoFix Migration 50e86cb2637a and 38335592a0dc
Aaron Rosen [Thu, 9 Jan 2014 21:49:10 +0000 (13:49 -0800)]
Fix Migration 50e86cb2637a and 38335592a0dc

When the rename of quantum->neutron occurred here ee3fe4e8 it also renamed
the the table creation from quantum_nvp_port_mapping to
neutron_nvp_port_mapping. This went undetected for a long time because
when neutron-server starts up it pushes down the scheme for tables that
are not there so the table would be created.

Because of this the following migration 50e86cb2637a called
op.rename_table('neutron_nvp_port_mapping', 'neutron_nsx_port_mappings')
though the table name being used was quantum_nvp_port_mapping. Because of this
the quantum_id->nvp_id mapping was never migrated over to the new table and
you would be left with a quantum_nvp_port_mapping table hanging around.

In addition, the downgrade would rename the table to neutron_nvp_port_mapping
instead of quantum_nvp_port_mapping. This patch addresses this issues.

Change-Id: I4f80b7b9dc56996ecd83826ee65918f5311c7c4f
Closes-bug: #1267619

10 years agoL3 Agent can handle many external networks
Sylvain Afchain [Fri, 29 Nov 2013 23:49:02 +0000 (00:49 +0100)]
L3 Agent can handle many external networks

With this patch a l3 agent can handle
any networks by setting the neutron
parameter external_network_bridge
and gateway_external_network_id to
empty.

Related-Bug: #1234750
Related-Bug: #1194350

Change-Id: Id260a239df23951da730513f40cda490002effc3

10 years agoUpdate lockutils and fixture in openstack.common
Ann Kamyshnikova [Fri, 20 Sep 2013 11:48:37 +0000 (15:48 +0400)]
Update lockutils and fixture in openstack.common

lockutils: included commits:
  8b2b0b7 Use hacking import_exceptions for gettextutils._
  6d0a6c3 Correct invalid docstrings
  12bcdb7 Remove vim header
  79e6bc6 fix lockutils.lock() to make it thread-safe
  ace5120 Add main() to lockutils that creates temp dir for locks
  537d8e2 Allow lockutils to get lock_path conf from envvar
  371fa42 Move LockFixture into a fixtures module
  d498c42 Fix to properly log when we release a semaphore
  29d387c Add LockFixture to lockutils
  3e3ac0c Modify lockutils.py due to dispose of eventlet
  90b6a65 Fix locking bug
  27d4b41 Move synchronized body to a first-class function
  15c17fb Make lock_file_prefix optional
  1a2df89 Enable H302 hacking check

fixture: created, included commits:
  45658e2 Fix violations of H302:import only modules
  12bcdb7 Remove vim header
  3970d46 Fix typos in oslo
  371fa42 Move LockFixture into a fixtures module
  f4a4855 Consolidate the use of stubs
  6111131 Make openstack.common.fixture.config Py3 compliant
  3906979 Add a fixture for dealing with config
  d332cca Add a fixture for dealing with mock patching.
  1bc3ecf Start adding reusable test fixtures.

Also tox.ini was corrected to let lockutils work in tests.

This change is needed for work on bp: db-sync-models-with-migrations

Closes-Bug: #1065531

Change-Id: I139f30b4767ff2c9d1f01ee728823859c09b3859

10 years agoAdd test to port_security to test with security_groups
Aaron Rosen [Wed, 8 Jan 2014 21:03:29 +0000 (13:03 -0800)]
Add test to port_security to test with security_groups

This patch adds a missing testcase to the port_security tests to test
for creating a port with port_security_enabled=False and passing in
a security group.

Closes-bug: #1267246
Change-Id: Ifb5a5571f016a5d7c5b5075c97dc27279cd79bb7

10 years agoMerge "Remove plugin_name_v2 and extension_manager in test_config"
Jenkins [Wed, 8 Jan 2014 21:14:41 +0000 (21:14 +0000)]
Merge "Remove plugin_name_v2 and extension_manager in test_config"

10 years agoMerge "neutron-rootwrap-xen-dom0 handles data from stdin"
Jenkins [Wed, 8 Jan 2014 18:56:02 +0000 (18:56 +0000)]
Merge "neutron-rootwrap-xen-dom0 handles data from stdin"

10 years agoMerge "Add security groups tables for ML2 plugin via migration"
Jenkins [Wed, 8 Jan 2014 00:57:00 +0000 (00:57 +0000)]
Merge "Add security groups tables for ML2 plugin via migration"

10 years agoMerge "Corrects broken format strings in check_i18n.py"
Jenkins [Tue, 7 Jan 2014 14:11:59 +0000 (14:11 +0000)]
Merge "Corrects broken format strings in check_i18n.py"

10 years agoVMware NSX: Fix db integrity error on dhcp port operations
armando-migliaccio [Mon, 6 Jan 2014 12:42:30 +0000 (04:42 -0800)]
VMware NSX: Fix db integrity error on dhcp port operations

If the dhcp port and network disappear, ensure that
the integrity constraint violation that results from
inserting the neutron/nsx port mapping to the DB does
not propagate the exception all the way through, but
instead is caught and handled correctly.

Closes-bug: #1265472

Change-Id: I3ae072729d579def0bd9658241eda1011a3dcfa0

10 years agoUse base.BaseTestCase in NVP config test
Akihiro Motoki [Thu, 19 Dec 2013 09:05:57 +0000 (18:05 +0900)]
Use base.BaseTestCase in NVP config test

BaseTestCase setup stdout/stderr capture and
it is better to be used.

Change-Id: I3537a633125e5e474fda660581f41e5f57af26ca
Closes-Bug: 1262550

10 years agoRemove plugin_name_v2 and extension_manager in test_config
Akihiro MOTOKI [Sat, 26 Oct 2013 12:53:21 +0000 (21:53 +0900)]
Remove plugin_name_v2 and extension_manager in test_config

There are two ways to specify a core plugin and an extension manager
in the unit tests: test_config and arguments of the constructor.
Both are used and it sometimes makes it a bit difficult to debug.
This patch removes the way via test_config and makes constructor
arguments the only way to do it.

Also removes the default entries in test_config because they are
not used anywhere.

Change-Id: I491003f4246e62001e9b74743c8fbfa922088383
Closes-Bug: #1245335

10 years agoEnables quota extension on BigSwitch plugin
Kevin Benton [Mon, 6 Jan 2014 03:31:52 +0000 (03:31 +0000)]
Enables quota extension on BigSwitch plugin

Adds quotas to supported extensions in
BigSwitch plugin and adds db migration script
to create quota tables for BigSwitch plugin.

Closes-Bug: #1266334
Change-Id: I255b318fde792ef59fe2cf456df4be87135c65cd

10 years agoAdd security groups tables for ML2 plugin via migration
Eugene Nikanorov [Sat, 21 Dec 2013 16:08:10 +0000 (20:08 +0400)]
Add security groups tables for ML2 plugin via migration

Copy the migration from revision 3cb5d900c5de

Change-Id: Ie0f6f14d69e896727715ecce573b81275c7869dc
Closes-Bug: #1263304

10 years agoMerge "Rename nicira configuration elements to match new naming structure"
Jenkins [Sun, 5 Jan 2014 09:42:59 +0000 (09:42 +0000)]
Merge "Rename nicira configuration elements to match new naming structure"

10 years agoMerge "Fix race in get_network(s) in OVS plugin"
Jenkins [Sat, 4 Jan 2014 19:40:29 +0000 (19:40 +0000)]
Merge "Fix race in get_network(s) in OVS plugin"

10 years agoMerge "Mock looping_call in metadata agent tests"
Jenkins [Fri, 3 Jan 2014 12:46:52 +0000 (12:46 +0000)]
Merge "Mock looping_call in metadata agent tests"

10 years agoRename nicira configuration elements to match new naming structure
armando-migliaccio [Thu, 2 Jan 2014 21:02:11 +0000 (13:02 -0800)]
Rename nicira configuration elements to match new naming structure

- Every config item prefixed with nvp is prefixed with nsx
- deprecation qualifiers are added to preserve bw compatibility
- nicira/nvp.ini is renamed to vmware/nsx.ini
- symlink nicira/nvp.ini is created to point to vmware/nsx.ini
- UT added to verify that nvp.ini and old config items can still
  parsed correctly; bw-compat will be dropped in Juno

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I676b868e61064cc5ff17e2246e83ba5c5e4a3449

10 years agoMerge "Start of new developer documentation"
Jenkins [Fri, 3 Jan 2014 01:39:35 +0000 (01:39 +0000)]
Merge "Start of new developer documentation"

10 years agoFix race in get_network(s) in OVS plugin
Eugene Nikanorov [Tue, 24 Dec 2013 11:08:22 +0000 (15:08 +0400)]
Fix race in get_network(s) in OVS plugin

Load network bindings eagerly with networks.
Otherwise a different db query could try to fetch network bindings
for already deleted networks. The issue is reproducible with
concurrent tempest network API tests.

Closes-Bug: 1263686
Change-Id: I0521ab162220c66a62491ff8e7e4a9f6d7bef6c4

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 2 Jan 2014 16:44:50 +0000 (16:44 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fix empty network deletion in db_base_plugin for postgresql"
Jenkins [Thu, 2 Jan 2014 13:05:32 +0000 (13:05 +0000)]
Merge "Fix empty network deletion in db_base_plugin for postgresql"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 2 Jan 2014 06:34:00 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: Ie39eae9336254407ac8688135f932763d860cf7b

10 years agoMerge "Remove unused imports"
Jenkins [Thu, 2 Jan 2014 03:45:17 +0000 (03:45 +0000)]
Merge "Remove unused imports"

10 years agoMerge "Add missing quota flags in the config file sample"
Jenkins [Wed, 1 Jan 2014 23:04:58 +0000 (23:04 +0000)]
Merge "Add missing quota flags in the config file sample"

10 years agoMerge "Fix NoSuchOptError in lbaas agent test"
Jenkins [Wed, 1 Jan 2014 23:03:11 +0000 (23:03 +0000)]
Merge "Fix NoSuchOptError in lbaas agent test"

10 years agoFix empty network deletion in db_base_plugin for postgresql
Eugene Nikanorov [Sat, 21 Dec 2013 20:48:48 +0000 (00:48 +0400)]
Fix empty network deletion in db_base_plugin for postgresql

Need to disable joined loads for port query in delete_network
as in other methods.

No unit test is being added, because the problem is not reproducible with
sqlite.

Closes-Bug: #1261652

Change-Id: I7a015be6f2f9b8ae43bc29a767d16af30120f13f

10 years agoMerge "nicira: fix db integrity error during port deletion"
Jenkins [Wed, 1 Jan 2014 16:43:35 +0000 (16:43 +0000)]
Merge "nicira: fix db integrity error during port deletion"

10 years agoMerge "Rename check_nvp_config utility tool"
Jenkins [Wed, 1 Jan 2014 16:17:54 +0000 (16:17 +0000)]
Merge "Rename check_nvp_config utility tool"

10 years agoRemove unused imports
Wu Wenxiang [Wed, 1 Jan 2014 13:59:07 +0000 (21:59 +0800)]
Remove unused imports

Remove unused imports in tools/install_venv.py

Change-Id: Ia2fbb4ece5c8bcdee96503f0f853f826ae4f3dfa
Closes-Bug: #1265267

10 years agonicira: fix db integrity error during port deletion
armando-migliaccio [Tue, 31 Dec 2013 13:51:43 +0000 (05:51 -0800)]
nicira: fix db integrity error during port deletion

Due to the fact that plugin port operations are not
transactional (as they involve non synchronized DB
and Controller operations), concurrent (interleaved)
port requests may accidentally cause the insertion
of the mapping entry (neutron-port-id, nvp-port-id)
more than once. In case this occurs, it's safe to
expect the failure and continue the normal process
of the operation being requested.

Closes-bug: #1265081

Change-Id: Ifcf5b453fa08145df844c2de3cbb08bf2f4baa59

10 years agoRename check_nvp_config utility tool
armando-migliaccio [Tue, 31 Dec 2013 16:08:24 +0000 (08:08 -0800)]
Rename check_nvp_config utility tool

Add new entry point whilst preserving the old ones
for backward compatibility.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I3c5b5dcd316df3867f434bbc35483a2636b715d8

10 years agoRemove redundant codes
shihanzhang [Tue, 31 Dec 2013 07:22:40 +0000 (15:22 +0800)]
Remove redundant codes

the code is redundant, it should be removed

Change-Id: I050bfc0b4d72037510dc2f3d729a564869a374c2
Closes-Bug: #1265132

10 years agoMerge "Add post-mortem debug option for tests"
Jenkins [Mon, 30 Dec 2013 07:27:27 +0000 (07:27 +0000)]
Merge "Add post-mortem debug option for tests"

10 years agoRemove dupl. for get_resources in adv. services
Paul Michali [Tue, 24 Dec 2013 21:17:02 +0000 (16:17 -0500)]
Remove dupl. for get_resources in adv. services

There is duplication of logic related to creating API resources
for advanced services extensions. Extracted the common logic
out into a new module that can be used by the services.
There are already UT cases in the services that exercises
the logic, so no new tests were added.

Change-Id: Ib52e2de6f215a1755f11a382dc4451a05ce3b147
Closes-Bug: 1258656

10 years agoStart of new developer documentation
Jay Pipes [Thu, 26 Dec 2013 21:04:19 +0000 (16:04 -0500)]
Start of new developer documentation

There is currently no useful developer-focused documentation in-tree
for Neutron. There are a smattering of useful documents on the
OpenStack wiki, however, there isn't a good organization to this
information, nor is there a condensed developer focus to a lot of it.
Some of the wiki pages are more proposals for features or bug fixes,
and there is a need for architecture, design, and code walk-through
documentation for Neutron to help with new (and existing) contribution.

This patch begins the process of adding developer documentation to Neutron.
It updates the main developer reference index.rst to pull in-line with what
Nova is doing, leaving some todo references for future patches. It also
adds a development.environment tutorial that is up-to-date with current
Neutron development, using tox/testr processes for running unit tests and
including a number of references to external wiki pages that have
instructions for using DevStack for OpenStack contribution/testing.

The next series of patches will add automodule documentation to the
developer reference for some of the major modules in Neutron.

Change-Id: I23aaa11d9a174f24242c49767b92540f5e25b48a
Addresses: blueprint quantum-developer-docs

10 years agoFix NoSuchOptError in lbaas agent test
Yuanchao Sun [Thu, 26 Dec 2013 07:20:23 +0000 (15:20 +0800)]
Fix NoSuchOptError in lbaas agent test

Option 'periodic_interval' doesn't exist when using testtools
to test lbaas agent, fix this by adding a mock object.

Change-Id: I5ef02d6fa154ea7a18ca77d02a2704b7e3990c3b
Closes-Bug: #1264260

10 years agoCorrects broken format strings in check_i18n.py
Jay Pipes [Tue, 24 Dec 2013 01:58:31 +0000 (20:58 -0500)]
Corrects broken format strings in check_i18n.py

In tools/check_i18n.py, the error messages printed out
had format strings that included 5 interpolations, but only
four variables were supplied. This patch simply corrects that
mismatch by including the name of the predicate or checker
that failed.

Closes-Bug: #1263813
Change-Id: I5cacee9ea000f56a9ef45f07367e85f20fa333c7

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 23 Dec 2013 23:40:18 +0000 (23:40 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Send DHCP notifications regardless of agent status"
Jenkins [Mon, 23 Dec 2013 23:40:00 +0000 (23:40 +0000)]
Merge "Send DHCP notifications regardless of agent status"

10 years agoMerge "BigSwitch: Fixes floating IP backend updates"
Jenkins [Mon, 23 Dec 2013 16:13:25 +0000 (16:13 +0000)]
Merge "BigSwitch: Fixes floating IP backend updates"