]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoExplicitly import state_path opt in tests.base
Joe Gordon [Wed, 2 Apr 2014 18:25:27 +0000 (11:25 -0700)]
Explicitly import state_path opt in tests.base

This wasn't explicitly needed in the unit tests because
neutron.common.config was already loaded, but this broke for the
functional tests (which are non-voting) so add a CONF.import_opt line so
functional tests know where to find the definition for state_path.

Closes-Bug: #1322440

Change-Id: I5b87a75317e2ba670adaa59b251bfa860920fd61
(cherry picked from commit f6dfc3a901ce7536a72e6159583051e9bcaf8d8f)

10 years agoNSX: allow net-migration only in combined mode
armando-migliaccio [Tue, 29 Apr 2014 01:27:04 +0000 (18:27 -0700)]
NSX: allow net-migration only in combined mode

To allow migration of networks from the agent based model
to the agentless one, both modes need to be available; prior
to this change the extension was available in 'agentless' mode
too; this may lead to leftovers during the migration step.
This patch makes the extension available in 'combined' mode
only, which was the intended behavior.

Change-Id: I491ee3eaf25fc30c0ab4092ee198802a6b06d91d
Closes-bug: #1313985
(cherry picked from commit e737076c374d0743927782b6318132ecf226f05a)

10 years agoNSX: do not raise on missing router during migration step
armando-migliaccio [Mon, 28 Apr 2014 21:18:06 +0000 (14:18 -0700)]
NSX: do not raise on missing router during migration step

Return None for missing router rather raising NotFound exception;
this is what the client code was expected to handle in the first
place.

Closes-bug: 1313918

Change-Id: I573770a69d0170b027fc990c29aaa87b1fc8eccc
(cherry picked from commit 5e843850527ede7a56fcc24753f87c1e9e3e8bed)

10 years agoNSX: fix error when creating VM ports on subnets without dhcp
armando-migliaccio [Tue, 6 May 2014 01:39:55 +0000 (18:39 -0700)]
NSX: fix error when creating VM ports on subnets without dhcp

The error was caused by a missing LSN port (which is created when
the subnet is setup with dhcp enabled). Therefore, check the port
is in place before proceeding with the setup.

Change-Id: I658ead0c324a24ad3f061844ecac13cd3359d341
Closes-bug: 1316365
(cherry picked from commit 7458427a0018437f4c7cac127bcd03c93cccfe70)

10 years agoOVS lib defer apply doesn't handle concurrency
Édouard Thuleau [Mon, 3 Mar 2014 17:08:33 +0000 (18:08 +0100)]
OVS lib defer apply doesn't handle concurrency

The OVS lib deferred apply methods use a dict to save flows to add,
modify or delete when deffered apply is switched off.
If another thread adds, modifies or deletes flows on that dict during
another process called deffered_apply_off, its flows could be ignored.

This fix stash reference flows list and point the flows list to a new
cleared flows list. Then, it applies flows from the stashed flows list.

Closes-bug: #1263866
Change-Id: Ia3c6ce181e1599d1474da7eb944feff7d84f1d73
(cherry picked from commit 501213686886baccd3280e10b8856a25d3517519)

10 years agoNSX: ensure that no LSN is created on external networks
armando-migliaccio [Tue, 6 May 2014 21:00:26 +0000 (14:00 -0700)]
NSX: ensure that no LSN is created on external networks

Logical Service Nodes (LSN) are those that provide dhcp
and metadata services to networks when the NSX plugin is
used without the openstack dhcp and metadata proxy
agents. External networks do not work with Neutron's
dhcp and metadata services, therefore there is no need
to provision a LSN in this case.

Added UT to avoid regression.

Closes-bug: #1316795

Change-Id: I3dab0c9cbecdd9296466c991d02d590d6bd5bd49
(cherry picked from commit af020da544ac4cf21b293d23710545ee5cdcdfa4)

10 years agoNSX: pass the right argument during metadata setup
armando-migliaccio [Fri, 2 May 2014 21:56:57 +0000 (14:56 -0700)]
NSX: pass the right argument during metadata setup

The NSX cluster was erroneously passed instead of context.
This patch addressed that and tweaks UT to verify the right
parameter is passed instead.

Change-Id: Ife660b3a23705342043d121c7dcecad43e22abc1
Closes-bug: #1315538
(cherry picked from commit a3a8a86d7bccb824725d91735bd032237786f5aa)

10 years agoBig Switch: Check source_address attribute exists
Kevin Benton [Thu, 8 May 2014 23:33:06 +0000 (16:33 -0700)]
Big Switch: Check source_address attribute exists

Check that the source_address attribute exists on
HTTPSConnection objects before referencing it since
it's not present on python 2.6 deployments. If it
does not exist, create a socket connection without
specifying the source.

Closes-Bug: #1316382

Conflicts:

neutron/tests/unit/bigswitch/test_servermanager.py

Change-Id: Ica10d23cc6de81ae56f711937f208c7321c77f36
(cherry picked from commit f5e4cf8e3edd1ce0ebb8c0c7256be07d094896de)

10 years agoL3 RPC loop could delete a router on concurrent update
Attila Fazekas [Sun, 4 May 2014 17:54:37 +0000 (19:54 +0200)]
L3 RPC loop could delete a router on concurrent update

routers_updated does not acquire any lock just updates
a set for future rpc loop processing.

The self.updated_routers can be changed by concurrent update
notification. If this change happens at the time around the
self.plugin_rpc.get_routers call, the additional routers
- by mistake - is considered as admin_state_up=false routers, which
 are safe to delete.

Creating a local copy of the updated_routers and preserve
the fresh updated_routers entries for the next _rpc_loop
operations.

Change-Id: Icc7377f9c29e248c3b34562465e859b15ecc2ec3
Closes-Bug: #1315467
Partial-Bug: #1253896
(cherry picked from commit 45381fe1c742c75773d97f1c0bd1f3cb1e7a6468)

10 years agoOptimize querying for security groups
Sudheendra Murthy [Fri, 2 May 2014 22:25:28 +0000 (15:25 -0700)]
Optimize querying for security groups

In the check for all security groups on port belong to tenant,
add a filter to get security groups for the tenant which are in
common with the security groups of the port.

Change-Id: I66f31755525fca37f9dbce6fb43e475791f82495
Closes-Bug: #1315097
(cherry picked from commit 89b01ca24ba95e36568352b4e5c7abf0cd04e4af)

10 years agoset api.extensions logging to ERROR in unit tests
Sean Dague [Mon, 7 Apr 2014 21:07:41 +0000 (17:07 -0400)]
set api.extensions logging to ERROR in unit tests

neutron.api.extensions generates a lot of output in a normal
unit test run. It's responsible for > 80% of the lines in the
subunit_log.txt. Logging each file load 10k times slows everything
down, takes up valuable memory, and doesn't really help with testing.

Instead we can set this to ERROR level in a fixture to ignore most
of that logging and help make the unit tests run faster.

Change-Id: I86b41f20342b4080859ee036220ddffa200f0562
(cherry picked from commit df96a03e6c74f1fceb4525900bca885307907b79)

10 years agoMake default nova_url use a version
Dan Prince [Thu, 10 Apr 2014 16:40:13 +0000 (12:40 -0400)]
Make default nova_url use a version

The default nova_url for neutron is missing an API
version number. This can cause requests to fail
because the Nova /versions API cannot respond
to Neutron notification requests.

It seems reasonable for the default value to
at least have a chance at being correct so
this patch upgrades the default Nova API url to
use the Nova 'v2' API.

Related-bug: #1298640
Change-Id: Ib1449de84fbc01fb704ebfe4a016ac8f4932be96
(cherry picked from commit c09a14089a5ca7cd3093895ee0248876499a6d06)

10 years agoNSX: fix API payloads for dhcp/metadata setup
armando-migliaccio [Fri, 25 Apr 2014 22:29:14 +0000 (15:29 -0700)]
NSX: fix API payloads for dhcp/metadata setup

NSX 4.2 GA has tweaked the way dhcp and metadata
ports are configured. This patch takes care of
that.

Closes-bug: #1312822

Change-Id: I4e8496bf721c0f35df4228ec9c6f8066275e8c7a
(cherry picked from commit bfdec043f1429ac4aa884e9422861b4e6c1ca815)

10 years agoNSX: fix migration for networks without a subnet
armando-migliaccio [Tue, 29 Apr 2014 03:24:18 +0000 (20:24 -0700)]
NSX: fix migration for networks without a subnet

In case the network is without a subnet, calling the validation
logic during the report phase leads to an error because the LSN
would have been already allocated during the migration phase.

Bypass the issue by calling the plugin directly, which is what
the validation logic does in the first place.

Closes-bug: #1313997

Change-Id: I14f77ae3b0cc147c4ea1c79e56bdd809de7c76a0
(cherry picked from commit 47e51e7521784f6a2edcfbf71a9aac0237e76e42)

10 years agoNSX: change api mapping for Service Cluster to Edge Cluster
armando-migliaccio [Thu, 24 Apr 2014 17:38:37 +0000 (10:38 -0700)]
NSX: change api mapping for Service Cluster to Edge Cluster

NSX 4.2 GA has tweaked the naming for certain resources. Edge
Cluster vs Service CLuster is one of them.

Closes-bug: #1312822

Change-Id: Id4ddd99128c5e82e7a40c2d9e7385b272549cc3e
(cherry picked from commit 07a8751f799ede6b3d4868d8268148f21e17a47a)

10 years agoNSX: add nsx switch lookup to dhcp and metadata operations
armando-migliaccio [Thu, 24 Apr 2014 19:11:41 +0000 (12:11 -0700)]
NSX: add nsx switch lookup to dhcp and metadata operations

The operations in questions were still using the neutron network
uuid as the nsx switch uuid, but this is no longer valid.

Close-bug: #1312439

Change-Id: I0f4bf02bb176c5c3914c7dd7e8249121af1b5a79
(cherry picked from commit 0f2f768578900a7ca74091ab400bd9facce9eaf9)

10 years agoFixed floating IP logic in PLUMgrid plugin
Fawad Khaliq [Tue, 8 Apr 2014 22:49:35 +0000 (15:49 -0700)]
Fixed floating IP logic in PLUMgrid plugin

  * Fixed associate and disassociate
    floating IP logic
  * Added unit tests

Change-Id: I310f5550bca1c9015cbda3e0338eb90a36dc96f1
Closes-Bug: 1298495
(cherry picked from commit 9f8cb33557ecc7c0a832610e913a56a8b8e6c524)

10 years agoIBM: set secret=True on passwd config field
Aaron Rosen [Thu, 24 Apr 2014 01:34:14 +0000 (18:34 -0700)]
IBM: set secret=True on passwd config field

This should carry secret=True to avoid being logged as clear text.

Change-Id: I7d15b9648b3a037589405b9ca9d26aae4a834f15
Closes-bug: 1311943
(cherry picked from commit 4c82fc82238c56400998e3e25b3039e817015bac)

10 years agoUpdate ensure()/reconnect() to catch MessagingError
Russell Bryant [Wed, 9 Apr 2014 15:32:44 +0000 (11:32 -0400)]
Update ensure()/reconnect() to catch MessagingError

The error handling code that gets connections reset if necessary
caught ConnectionError. It really needs to catch MessagingError,
which ConnectionError inherits from. There are other types of
MessagingErrors that may occur, such as InternalError, and they need
to cause the connection to reset, as well.

This fix has already been merged into oslo.messaging.

--

Cherry-picked from oslo-incubator 234f64d608266f43d8856ff98c89ceba6699d752
See also https://bugzilla.redhat.com/show_bug.cgi?id=1086077

Closes-bug: #1303890
Change-Id: Ic5082b74a362ded8b35cbc75cf178fe6e0db62d0
(cherry picked from commit 9a830b370551019a4bd3a0c7504f48961e755bd4)

10 years agoNSX: Fix fake_api_client to raise NotFound
Aaron Rosen [Tue, 22 Apr 2014 19:46:08 +0000 (12:46 -0700)]
NSX: Fix fake_api_client to raise NotFound

If one quries NSX doing GET /ws.v1/lswitch/LS_UUID/lport and LS_UUID
is a UUID that does not exist in NSX. NSX raises a 404. If LS_UUID is *
NSX returns an empty result string. This patch fixes the fake_api_client
so that it's behavior is correct.

Change-Id: Id66299d6ae3cfa43a65d4cb28f34348d64d8ed65
Closes-bug: 1311291
(cherry picked from commit dd143a619900792a0563b9ac4fe1f78197291d94)

10 years agonetaddr<=0.7.10 raises ValueError instead of AddrFormatError
Aaron Rosen [Wed, 16 Apr 2014 18:31:25 +0000 (11:31 -0700)]
netaddr<=0.7.10 raises ValueError instead of AddrFormatError

This patch ensures that ValueError is also caught in addition to
AddrFormatError as in netaddr>=0.7.11 AddrFormatError is raised and
in netaddr<=0.7.10 ValueError is raised.

Change-Id: I595c90e42129a2d365f3860e3042e826bd031365
Closes-bug: #1308675
(cherry picked from commit dd2ccd12adfb6c7d4aa500ba4120f767beeed35c)

10 years agoValidate CIDR given as ip-prefix in security-group-rule-create
marios [Fri, 29 Nov 2013 16:23:54 +0000 (18:23 +0200)]
Validate CIDR given as ip-prefix in security-group-rule-create

There was no validation for the provided ip prefix. This just adds
a simple parse using netaddr and explodes with appropriate message.
Also makes sure ip prefix _is_ cidr (192.168.1.1-->192.168.1.1/32).

Validation occurs at the attribute level (API model) as well as at
the db level, where the ethertype is validated against the ip_prefix
address type.

Unit test cases added - bad prefix, unmasked prefix and incorrect
ethertype. Also adds attribute test cases for the added
convert_ip_prefix_to_cidr method

Closes-Bug: 1255338

Conflicts:
neutron/tests/unit/test_security_groups_rpc.py

Change-Id: I71fb8c887963a122a5bd8cfdda800026c1cd3954
(cherry picked from commit 65aa92b0348b7ab8413f359b00825610cdf66607)

10 years agogw_port should be set as lazy='join'
armando-migliaccio [Fri, 18 Apr 2014 19:32:26 +0000 (12:32 -0700)]
gw_port should be set as lazy='join'

This forces the object to be ready ahead of accessing time.
The change in loading behavior is also beneficial while listing
routers, as reduces the amount of queries being issued. Tests
show a performance gain of 15-30% for router-list times.

As Mr. Aaron Rosen is used to saying: Woot woot!!

Closes-bug: #1309144

Change-Id: Ibae261b91de26ca7c50e3f6c80e9be2a799785a3
(cherry picked from commit 966dbb5368d710e2652b18f5b9cb4295f58598da)

10 years agoNSX: ensure dhcp port is setup on metadata network
armando-migliaccio [Tue, 8 Apr 2014 15:43:00 +0000 (08:43 -0700)]
NSX: ensure dhcp port is setup on metadata network

Change in scheduling behavior caused a regression
where the dhcp port is no longer provisioned on
the (admin) metadata network created when a subnet
is uplinked to a router.

This change recovers the past behavior and extend UT
coverage to avoid further regression.

Closes-bug: #1304127

Change-Id: I8420203f68a43368f3784adb0c4cbbe55f048662
(cherry picked from commit 4cb3eb2a98246f28f8016cfe32946d365203fbae)

10 years agoOpening stable/icehouse
Thierry Carrez [Thu, 17 Apr 2014 13:36:44 +0000 (15:36 +0200)]
Opening stable/icehouse

Bump version to next stable release on icehouse branch, and set
defaultbranch in .gitreview for convenience.

Change-Id: I70ddfb8cc70f9d7fca4ff63f95d5bd9c7fb7ef81

10 years agoAlso patches dhcp_agent.ini
Thomas Goirand [Sat, 7 Jun 2014 09:59:12 +0000 (17:59 +0800)]
Also patches dhcp_agent.ini

Change-Id: Icdadf7f68710987d97875e6758769631d46abdce

10 years ago* Added sane-defaults-for-ml2_conf.ini.patch
Thomas Goirand [Sat, 7 Jun 2014 09:26:24 +0000 (17:26 +0800)]
* Added sane-defaults-for-ml2_conf.ini.patch
* Fixed debian/changelog

Change-Id: I70ad50cae04ebfd52c4f4a0f2f84e6091a40d309

10 years agoMerge branch 'debian/icehouse' of ssh://git.debian.org/git/openstack/neutron into...
Thomas Goirand [Sat, 7 Jun 2014 09:26:56 +0000 (09:26 +0000)]
Merge branch 'debian/icehouse' of ssh://git.debian.org/git/openstack/neutron into debian/icehouse

Conflicts:
debian/changelog

10 years ago * Updates the OVS_lib_defer_apply_doesn_t_handle_concurrency.patch patch
Thomas Goirand [Thu, 5 Jun 2014 07:27:58 +0000 (07:27 +0000)]
  * Updates the OVS_lib_defer_apply_doesn_t_handle_concurrency.patch patch
    (Closes: #750415).
  * Now build-depends on openstack-pkg-tools (>= 12~).

10 years agoAdded missing dbconfig-common dependency.
Thomas Goirand [Tue, 3 Jun 2014 07:46:50 +0000 (15:46 +0800)]
Added missing dbconfig-common dependency.

Change-Id: Ie97b19b17857b3c026a08dffd97420ef9a1c9114

10 years agoAdds Install_SNAT_rules_for_ipv4_only.patch. Note that without this patch,
Thomas Goirand [Mon, 2 Jun 2014 16:08:25 +0000 (00:08 +0800)]
Adds Install_SNAT_rules_for_ipv4_only.patch. Note that without this patch,
it's possible to destroy an OpenStack cloud network, which is why I'm
putting urgency=high in this upload.

Change-Id: I34aa3c656f0218a1986ef6b78f7e28132d6172a6

10 years agoSwitched from restarting daemons to copytruncate for logrotate.
Thomas Goirand [Thu, 29 May 2014 05:43:35 +0000 (13:43 +0800)]
Switched from restarting daemons to copytruncate for logrotate.

Change-Id: Id7529a82ba4baba916ced64e7b12b4e7a88520d3

10 years agoFixed linuxbridge init script.
Thomas Goirand [Wed, 21 May 2014 00:39:01 +0000 (08:39 +0800)]
Fixed linuxbridge init script.

Change-Id: Ia46155d2e5f5c739f06b0d1241fcb446599c0391

10 years agoAdded Russian Debconf translation, thanks to Yuri Kozlov <yuray@komyakino.ru> (Closes...
Thomas Goirand [Sun, 4 May 2014 06:37:04 +0000 (14:37 +0800)]
Added Russian Debconf translation, thanks to Yuri Kozlov <yuray@komyakino.ru> (Closes: #746939).

Change-Id: I3798cc693cdb6f6738bcae7d3b40372fc0dc5f5f

10 years agoMerge branch 'debian/icehouse' of ssh://git.debian.org/git/openstack/neutron into...
Thomas Goirand [Sat, 3 May 2014 03:21:46 +0000 (03:21 +0000)]
Merge branch 'debian/icehouse' of ssh://git.debian.org/git/openstack/neutron into debian/icehouse

Conflicts:
debian/changelog

10 years agoFixed fr.po, thanks to Christian Perrier (Closes: #745249).
Thomas Goirand [Sat, 3 May 2014 02:25:01 +0000 (02:25 +0000)]
Fixed fr.po, thanks to Christian Perrier (Closes: #745249).
Added it.po thanks to Beatrice Torracca (Closes: #746575).

10 years agoAdded a Provides: neutron-plugin-ml2 in neutron-common (LP: #1309858).
Thomas Goirand [Sun, 20 Apr 2014 02:15:41 +0000 (10:15 +0800)]
Added a Provides: neutron-plugin-ml2 in neutron-common (LP: #1309858).

Change-Id: Id9a98e99c6d5d05bb574424647f85384db7b9896

10 years agoFixed fr.po (Closes: #745249). Thanks to Christian Perrier for this.
Thomas Goirand [Sun, 20 Apr 2014 01:51:00 +0000 (09:51 +0800)]
Fixed fr.po (Closes: #745249). Thanks to Christian Perrier for this.

Change-Id: I8084032bdb0a9d2fd8b40e9885681280d3541cec

10 years agoUploading to unstable.
Thomas Goirand [Fri, 18 Apr 2014 09:07:29 +0000 (09:07 +0000)]
Uploading to unstable.

10 years agoPackaging Icehouse first release to unstable.
Thomas Goirand [Fri, 18 Apr 2014 01:22:13 +0000 (09:22 +0800)]
Packaging Icehouse first release to unstable.

Change-Id: If6186892352e0686efccfc3a41f529430ed5d946

10 years agoFixed 11c6e18605c8_pool_monitor_status_.py migration
Thomas Goirand [Wed, 16 Apr 2014 12:55:52 +0000 (20:55 +0800)]
Fixed 11c6e18605c8_pool_monitor_status_.py migration

Change-Id: Ic6c16c99635505b61b44dc8fce1ccbd10862482a

10 years agore-adds 0001-Add-parameter-and-iptables-rules-to-protect-dnsmasq-.patch
Thomas Goirand [Wed, 16 Apr 2014 02:02:46 +0000 (10:02 +0800)]
re-adds 0001-Add-parameter-and-iptables-rules-to-protect-dnsmasq-.patch

Change-Id: I76512e455a321952870e3d57fd1e5c74f06d5ad1

10 years agodebian/changelog: documents re-addintion of 0004-Fix-Metering-doesn-t-respect-the...
Thomas Goirand [Mon, 14 Apr 2014 17:18:15 +0000 (01:18 +0800)]
debian/changelog: documents re-addintion of 0004-Fix-Metering-doesn-t-respect-the-l3-agent-binding.patch

Change-Id: Ia33d0a7fa31c4cdd55d4cc88cb9d394e35d03272

10 years agoRe-added 0004-Fix-Metering-doesn-t-respect-the-l3-agent-binding.patch
Thomas Goirand [Mon, 14 Apr 2014 17:13:44 +0000 (01:13 +0800)]
Re-added 0004-Fix-Metering-doesn-t-respect-the-l3-agent-binding.patch

Change-Id: I68fbd4f84ba31430ec110fc31148610798fa56cb

10 years agoDocuments: Allow selecting log destination for Neutron daemons
Thomas Goirand [Fri, 11 Apr 2014 06:07:05 +0000 (14:07 +0800)]
Documents: Allow selecting log destination for Neutron daemons

Change-Id: I20d3c211db7735f69e6a2b1444e8901c927df375

10 years agoAllow selecting log destination for Neutron daemons
Sylvain Baubeau [Mon, 7 Apr 2014 15:38:58 +0000 (17:38 +0200)]
Allow selecting log destination for Neutron daemons

10 years agoNow packaging Icehouse RC2
Thomas Goirand [Wed, 9 Apr 2014 15:47:00 +0000 (23:47 +0800)]
Now packaging Icehouse RC2

Change-Id: I9430e892bd90122111526481d4392b3850ac1a21

10 years agoMerge tag '2014.1.rc2' into debian/icehouse
Thomas Goirand [Wed, 9 Apr 2014 15:44:22 +0000 (23:44 +0800)]
Merge tag '2014.1.rc2' into debian/icehouse

Neutron icehouse-rc2 milestone (2014.1.rc2)

Conflicts:
neutron/tests/unit/vmware/extensions/test_networkgw.py

Change-Id: I9e1d8789e01c5e35f26fa732b177dffd6caac635

10 years agoMerge "NSX: Fix KeyError in sync if nsx_router_id not found" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 08:07:59 +0000 (08:07 +0000)]
Merge "NSX: Fix KeyError in sync if nsx_router_id not found" into milestone-proposed

10 years agoMerge "Hide ipv6 subnet API attributes" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 02:17:04 +0000 (02:17 +0000)]
Merge "Hide ipv6 subnet API attributes" into milestone-proposed

10 years agoNSX: Fix KeyError in sync if nsx_router_id not found
Aaron Rosen [Tue, 8 Apr 2014 20:20:49 +0000 (13:20 -0700)]
NSX: Fix KeyError in sync if nsx_router_id not found

Previously, a KeyError would occur in the sync code which would
cause the sync thread to stop running. This would occur if there
was a router entry in the database but no nsx_router_mapping and
the router was not found in nsx. Note: this should never happen unless
one did not run the db migration which introduced and migrated the data
for the NeutronNsxRouterMapping table.

(cherry picked from commit d90d71cfdae1d9c9c3b54cc33adfabce683c633c)
Change-Id: I44f3e7de9323f594501db63d3ad33e80e617bfdc
Closes-bug: #1304647

10 years agoMerge "Correctly inherit __table_args__ from parent class" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 00:11:21 +0000 (00:11 +0000)]
Merge "Correctly inherit __table_args__ from parent class" into milestone-proposed

10 years agoMerge "Add a note that rpc_workers option is experimental" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 00:08:11 +0000 (00:08 +0000)]
Merge "Add a note that rpc_workers option is experimental" into milestone-proposed

10 years agoHide ipv6 subnet API attributes
Salvatore Orlando [Mon, 7 Apr 2014 23:29:54 +0000 (16:29 -0700)]
Hide ipv6 subnet API attributes

The attributes for ra mode and address mode should be hidden
until the IPv6 feature is fully implemented.

The changes in this patch will be reverted by another patch
which closes this bug.

Change-Id: I69a1a571b5beb566641200e60b84f0716c1ec138
Related-Bug: 1304093
(cherry picked from commit d739486a3f70cb83f8730cf7201a8b8ccf4b4c70)

10 years agoMerge "Add L2 Agent side handling for non consistent security_group settings" into...
Jenkins [Tue, 8 Apr 2014 21:25:38 +0000 (21:25 +0000)]
Merge "Add L2 Agent side handling for non consistent security_group settings" into milestone-proposed

10 years agoCorrectly inherit __table_args__ from parent class
Darren Birkett [Thu, 6 Mar 2014 16:17:03 +0000 (16:17 +0000)]
Correctly inherit __table_args__ from parent class

Where unique constraints are added to certain tables by populating
__table_args__, we need to ensure we inherit the top level
__table_args__ that define the default storage engine to use when
creating tables.

Change-Id: Ib886b84922830b60282b4f882591e43f5041e713
Fixes: bug 1288358
(cherry picked from commit 72e37ddcd067432675543c8f4d327fe766bc8044)

10 years agoAdds OVS_lib_defer_apply_doesn_t_handle_concurrency.patch
Thomas Goirand [Tue, 8 Apr 2014 16:01:29 +0000 (00:01 +0800)]
Adds OVS_lib_defer_apply_doesn_t_handle_concurrency.patch

Change-Id: Ie1e469decd5ec1068133efffe29e15463812e086

10 years agoMerge "Delete routers that are requested but not reported as active" into milestone...
Jenkins [Tue, 8 Apr 2014 14:28:05 +0000 (14:28 +0000)]
Merge "Delete routers that are requested but not reported as active" into milestone-proposed

10 years agoAdd a note that rpc_workers option is experimental
Carl Baldwin [Thu, 3 Apr 2014 20:44:49 +0000 (20:44 +0000)]
Add a note that rpc_workers option is experimental

blueprint multiple-rpc-workers

Closes-Bug: 1304374
Change-Id: Id354b96fc591752e1e79b072997423b6447d5de9

10 years agoDelete routers that are requested but not reported as active
Carl Baldwin [Tue, 1 Apr 2014 22:02:17 +0000 (22:02 +0000)]
Delete routers that are requested but not reported as active

There are two cases that I can think of that result in a router being
requested but not reported as active.  One is that admin_state_up has
been set to False.  In this case, the router is never removed and
continues to be operational.

The other case is if a router is changed and then deleted before the
change is processed.  In this case, it is prudent to be sure that the
router is queued for deletion.

Change-Id: I4738f599a18f0d130cc8ad4d4dafc488eec75ffd
Closes-Bug: #1215387
(cherry picked from commit 9da60d0a417dd70c16ae34f5877c564e425e4cf8)

10 years agoFix _validate_mac_address method
Aaron Rosen [Sat, 15 Mar 2014 05:57:09 +0000 (22:57 -0700)]
Fix _validate_mac_address method

The method _validate_mac_address previously used: netaddr.EUI(data)
which would convert data passed in to the correct mac_address representation.
For example if data=123 it would return: EUI('00-00-00-00-00-7B'). To fix
this issue I used netaddr.valid_mac() instead which returns a bool if a mac is
valid or not and does not raise. Note this file needs some improvements to
improve how exception handling is done that will come later.

Change-Id: I4fb868e40abbad9e743028cc768f47ca9b3e0e70
Closes-bug: 1291163
(cherry picked from commit b9390333a146d0435710f85d365318268e267fc3)

10 years agoAdd L2 Agent side handling for non consistent security_group settings
Irena Berezovsky [Tue, 25 Mar 2014 07:30:17 +0000 (09:30 +0200)]
Add L2 Agent side handling for non consistent security_group settings

Add setting of the firewall_driver to NoopDriver when firewall_driver is None and
add warning if driver combination is not valid.
Modify is_valid_driver_combination to verify default settings: enable_security_group (True) and firewall_driver (None).

Change-Id: I841f9cf96ac6ee2ad17a4e8908d6c8a96f368cca
Closes-Bug: #1296957
(cherry picked from commit 5c6ff449bbd7386f0f3e41efc524024434f325df)

10 years agoFix wrong section name "security_group" in sample config files
Akihiro Motoki [Tue, 8 Apr 2014 01:31:06 +0000 (10:31 +0900)]
Fix wrong section name "security_group" in sample config files

The section name [security_group] in Sample config files of
ML2 and Big Switch plugins was wrong and it should be
[securitygroup].

Change-Id: I8204b2f37f96a5e46038e117853ac8637a9705fd
Closes-Bug: #1304105
(cherry picked from commit ec24d2cb3ac17a86ee5c4626c625131c10732143)

10 years agoMerge "Fix Jenkins translation jobs" into milestone-proposed
Jenkins [Mon, 7 Apr 2014 15:11:58 +0000 (15:11 +0000)]
Merge "Fix Jenkins translation jobs" into milestone-proposed

10 years agoMerge the 2 Alembic migration patches into a single one.
Thomas Goirand [Mon, 7 Apr 2014 14:27:24 +0000 (22:27 +0800)]
Merge the 2 Alembic migration patches into a single one.

Change-Id: Ia312c97c1b443bcd5df3ff5824d9a70f2dab0abb

10 years agoMerge "Updated from global requirements" into milestone-proposed
OpenStack Jenkins [Mon, 7 Apr 2014 10:06:37 +0000 (10:06 +0000)]
Merge "Updated from global requirements" into milestone-proposed

10 years agoFix Jenkins translation jobs
Thierry Carrez [Mon, 7 Apr 2014 09:37:38 +0000 (11:37 +0200)]
Fix Jenkins translation jobs

The -propose-translation-update and -upstream-translation-update
jobs do not update from transifex since our po files contain
duplicate entries where obsolete entries duplicate normal entries.

Remove all obsolete entries to fix the jobs.

Change-Id: I1ab0f23f5b1dc9a88636dab09fadb5d44008cf51
Closes-Bug: #1299349

10 years agoMerge "ML2: ODL driver sets port status" into milestone-proposed
Jenkins [Mon, 7 Apr 2014 09:31:06 +0000 (09:31 +0000)]
Merge "ML2: ODL driver sets port status" into milestone-proposed

10 years agoMore SQLite patches.
Thomas Goirand [Mon, 7 Apr 2014 06:21:02 +0000 (14:21 +0800)]
More SQLite patches.

Change-Id: I4ce294fbdf39f5f4b70258d54dd0e2e6a0732c4a

10 years agoAdd missing comma in nsx router mappings migration
Henry Gessau [Sat, 5 Apr 2014 22:10:52 +0000 (18:10 -0400)]
Add missing comma in nsx router mappings migration

Change-Id: I85bcc9b7fe636f34dbdf6f8c3172352c8e586e2a
Closes-bug: #1303179
Related-bug: #1207402
(cherry picked from commit acae91475775a8c85598b1bfdc4910e5fe81ced9)

10 years agoML2: ODL driver sets port status
Robert Kukura [Thu, 3 Apr 2014 21:01:00 +0000 (17:01 -0400)]
ML2: ODL driver sets port status

The OpenDaylight mechanism driver does not depend on an L2 agent to
plug the port. Now that nova waits for notification that the port
status is ACTIVE, the ML2 driver API is extended so that the mechanism
driver that binds a port can optionally set the port status, and the
OpenDaylight mechanism driver uses this to set the port status to
ACTIVE.

Closes-Bug: 1301449
Change-Id: I171c405f36b4f2354d9585e8ae3dfa50ddaa9a7e
(cherry picked from commit a9e3074aa9f442c2fff1ba058ac8ed585c6caa24)

10 years agoUpdated from global requirements
OpenStack Jenkins [Sun, 6 Apr 2014 14:22:16 +0000 (14:22 +0000)]
Updated from global requirements

Change-Id: I73c3798ede53e2c4d936f997d9a502e1b5cfa462

10 years agoMerge "Fix test MAC addresses to be valid" into milestone-proposed
Jenkins [Sun, 6 Apr 2014 05:13:57 +0000 (05:13 +0000)]
Merge "Fix test MAC addresses to be valid" into milestone-proposed

10 years agoMerge "Cisco VPN driver correct reporting for admin state chg" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 14:06:09 +0000 (14:06 +0000)]
Merge "Cisco VPN driver correct reporting for admin state chg" into milestone-proposed

10 years agoMerge "De-duplicate unit tests for ports in Big Switch" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 07:10:43 +0000 (07:10 +0000)]
Merge "De-duplicate unit tests for ports in Big Switch" into milestone-proposed

10 years agoMerge "Add unit test for add_vxlan in test_linux_ip_lib" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 03:15:25 +0000 (03:15 +0000)]
Merge "Add unit test for add_vxlan in test_linux_ip_lib" into milestone-proposed

10 years agoMerge "Add missing DB migrations for BSN ML2 plugin" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:39:25 +0000 (02:39 +0000)]
Merge "Add missing DB migrations for BSN ML2 plugin" into milestone-proposed

10 years agoMerge "Set ns_name in RouterInfo as attribute" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:39:15 +0000 (02:39 +0000)]
Merge "Set ns_name in RouterInfo as attribute" into milestone-proposed

10 years agoMerge "use floatingip's ID as key instead of itself" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:27:30 +0000 (02:27 +0000)]
Merge "use floatingip's ID as key instead of itself" into milestone-proposed

10 years agoMerge "fixes tests using called_once_ without assert" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:22:48 +0000 (02:22 +0000)]
Merge "fixes tests using called_once_ without assert" into milestone-proposed

10 years agoMerge "Only send notifications on uuid device_id's" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:31:24 +0000 (01:31 +0000)]
Merge "Only send notifications on uuid device_id's" into milestone-proposed

10 years agoMerge "NSX: Fix pagination support" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:28:16 +0000 (01:28 +0000)]
Merge "NSX: Fix pagination support" into milestone-proposed

10 years agoMerge "Update BigSwitch Name to its correct name" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:28:06 +0000 (01:28 +0000)]
Merge "Update BigSwitch Name to its correct name" into milestone-proposed

10 years agoMerge "Fixing Arista CLI command" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:49 +0000 (01:27 +0000)]
Merge "Fixing Arista CLI command" into milestone-proposed

10 years agoMerge "Stop using portbindings_db in BSN ML2 driver" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:39 +0000 (01:27 +0000)]
Merge "Stop using portbindings_db in BSN ML2 driver" into milestone-proposed

10 years agoMerge "Don't emit log for missing attribute check policy" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:29 +0000 (01:27 +0000)]
Merge "Don't emit log for missing attribute check policy" into milestone-proposed

10 years agoMerge "Fix function parsing the kernel version" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:18 +0000 (01:27 +0000)]
Merge "Fix function parsing the kernel version" into milestone-proposed

10 years agoMerge "Return 409 for second firewall creation" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:09 +0000 (01:27 +0000)]
Merge "Return 409 for second firewall creation" into milestone-proposed

10 years agoMerge "Redundant SG rule create calls in unit tests" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:26:59 +0000 (01:26 +0000)]
Merge "Redundant SG rule create calls in unit tests" into milestone-proposed

10 years agoMerge "NSX plugin: return 400 for invalid gw certificate" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:26:48 +0000 (01:26 +0000)]
Merge "NSX plugin: return 400 for invalid gw certificate" into milestone-proposed

10 years agoMerge "fixes broken neutron-netns-cleanup" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:26:39 +0000 (01:26 +0000)]
Merge "fixes broken neutron-netns-cleanup" into milestone-proposed

10 years agoMerge "Log configuration values for OFA agent" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 00:24:14 +0000 (00:24 +0000)]
Merge "Log configuration values for OFA agent" into milestone-proposed

10 years agoMerge "Changed the message line of RouterInUse class" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 00:11:42 +0000 (00:11 +0000)]
Merge "Changed the message line of RouterInUse class" into milestone-proposed

10 years agoSet ns_name in RouterInfo as attribute
Jakub Libosvar [Thu, 3 Apr 2014 12:52:59 +0000 (14:52 +0200)]
Set ns_name in RouterInfo as attribute

Closes-Bug: #1302007
Change-Id: I02a9b92eea06010569d3d9c5a987e69f89b23be5
(cherry picked from commit ceee7b4ac9d027499dfd2568868f1192bfb77879)

10 years agouse floatingip's ID as key instead of itself
Yong Sheng Gong [Wed, 19 Mar 2014 08:14:33 +0000 (16:14 +0800)]
use floatingip's ID as key instead of itself

Change-Id: I267f174a0e2e611ec007404c7b44e2c73a359c38
Closes-Bug: 1294526
(cherry picked from commit 7120325d37df414d8de084c5b41fdfbea3a06565)

10 years agoDe-duplicate unit tests for ports in Big Switch
Kevin Benton [Thu, 20 Mar 2014 14:24:33 +0000 (07:24 -0700)]
De-duplicate unit tests for ports in Big Switch

This eliminates the separate classes that existed
for the VIF type testing. Each class was going
through all of the port tests when none of the
logic those tests were exercising was affected by
the VIF types.

This cut the number of tests run in test_restproxy_plugin
by close to 44% without a reduction in code coverage.

Closes-Bug: #1295448
Change-Id: I8c84e1599568fad36b6dd3d51e4ba8a3c012c6c5
(cherry picked from commit 913f45bc16dd2c35f7be772d5867f9208064498a)

10 years agoNSX: Fix pagination support
armando-migliaccio [Fri, 21 Mar 2014 21:48:19 +0000 (14:48 -0700)]
NSX: Fix pagination support

Add pagination support to the base plugin,
leaving the service plugin unaltered.

Minor tweaks to the UT where required to
avoid intermittent failures caused by random
ordering.

Closes-bug: 1295854

Change-Id: I03e9e104967716046909d6120426e879f714a5c8
(cherry picked from commit 16ce0ae2c2b50b4317cdb95e62246d805b3d76a9)

10 years agofixes tests using called_once_ without assert
Miguel Angel Ajo [Mon, 31 Mar 2014 13:50:55 +0000 (15:50 +0200)]
fixes tests using called_once_ without assert

A few tests were using mock's called_once, or called_once_with_args
instead of assert_called_once or assert_called_once_with_args. Those
methods return a bool that needs to be actively checked.

The tests are fixed to avoid them from passing if the call condition
is not met.

Change-Id: I21e5257b26b2a08cc8f0b108233d1d5cc0b97b89
Closes-bug: #1297875
(cherry picked from commit c6c4a20777921dc1b21e80edb96ccd957a054c68)

10 years agoAdd missing DB migrations for BSN ML2 plugin
Kevin Benton [Tue, 1 Apr 2014 02:58:31 +0000 (19:58 -0700)]
Add missing DB migrations for BSN ML2 plugin

Adds missing database migrations for the Big Switch
ML2 driver and plugin.

Closes-Bug: #1298459
Change-Id: I6a46a53e069353501d85c4c8400f98514d6f0162
(cherry picked from commit d3be7b040eaa61a4d0ac617026cf5c9132d3831e)

10 years agoUpdate BigSwitch Name to its correct name
Kanzhe Jiang [Fri, 28 Mar 2014 18:31:56 +0000 (11:31 -0700)]
Update BigSwitch Name to its correct name

Update Neutron documentation and code comments to replace
"BigSwitch" name to "Big Switch"

Closes-Bug: #1299145
Change-Id: I7c14f6170871b361c8929898ee6af5d1a1f41714
(cherry picked from commit 408ef55d4ef1a9d246571511203ab337ba5346c6)