]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoRemoved difference with upstream.
gustavo panizzo [Mon, 30 Jun 2014 21:15:58 +0000 (18:15 -0300)]
Removed difference with upstream.

10 years agoinitial packaging for juno-b1
gustavo panizzo [Mon, 30 Jun 2014 21:14:35 +0000 (18:14 -0300)]
initial packaging for juno-b1

10 years agoMerge tag '2014.2.b1' into debian/juno
gustavo panizzo [Mon, 30 Jun 2014 21:13:31 +0000 (18:13 -0300)]
Merge tag '2014.2.b1' into debian/juno

Neutron juno-1 milestone (2014.2.b1)

Conflicts:
neutron/locale/ar/LC_MESSAGES/neutron.po
neutron/locale/bg_BG/LC_MESSAGES/neutron.po
neutron/locale/bn_IN/LC_MESSAGES/neutron.po
neutron/locale/bs/LC_MESSAGES/neutron.po
neutron/locale/ca/LC_MESSAGES/neutron.po
neutron/locale/cs/LC_MESSAGES/neutron.po
neutron/locale/da/LC_MESSAGES/neutron.po
neutron/locale/de/LC_MESSAGES/neutron.po
neutron/locale/el/LC_MESSAGES/neutron.po
neutron/locale/en_AU/LC_MESSAGES/neutron.po
neutron/locale/en_GB/LC_MESSAGES/neutron.po
neutron/locale/es/LC_MESSAGES/neutron.po
neutron/locale/es_MX/LC_MESSAGES/neutron.po
neutron/locale/eu/LC_MESSAGES/neutron.po
neutron/locale/eu_ES/LC_MESSAGES/neutron.po
neutron/locale/fa/LC_MESSAGES/neutron.po
neutron/locale/fi_FI/LC_MESSAGES/neutron.po
neutron/locale/fil/LC_MESSAGES/neutron.po
neutron/locale/fr/LC_MESSAGES/neutron.po
neutron/locale/gl/LC_MESSAGES/neutron.po
neutron/locale/he/LC_MESSAGES/neutron.po
neutron/locale/he_IL/LC_MESSAGES/neutron.po
neutron/locale/hi/LC_MESSAGES/neutron.po
neutron/locale/hr/LC_MESSAGES/neutron.po
neutron/locale/hu/LC_MESSAGES/neutron.po
neutron/locale/id/LC_MESSAGES/neutron.po
neutron/locale/is_IS/LC_MESSAGES/neutron.po
neutron/locale/it/LC_MESSAGES/neutron.po
neutron/locale/it_IT/LC_MESSAGES/neutron.po
neutron/locale/ja/LC_MESSAGES/neutron.po
neutron/locale/ka_GE/LC_MESSAGES/neutron.po
neutron/locale/km/LC_MESSAGES/neutron.po
neutron/locale/kn/LC_MESSAGES/neutron.po
neutron/locale/ko/LC_MESSAGES/neutron.po
neutron/locale/ko_KR/LC_MESSAGES/neutron.po
neutron/locale/ml_IN/LC_MESSAGES/neutron.po
neutron/locale/mr_IN/LC_MESSAGES/neutron.po
neutron/locale/ms/LC_MESSAGES/neutron.po
neutron/locale/nb/LC_MESSAGES/neutron.po
neutron/locale/ne/LC_MESSAGES/neutron.po
neutron/locale/nl_NL/LC_MESSAGES/neutron.po
neutron/locale/pa_IN/LC_MESSAGES/neutron.po
neutron/locale/pl_PL/LC_MESSAGES/neutron.po
neutron/locale/pt/LC_MESSAGES/neutron.po
neutron/locale/pt_BR/LC_MESSAGES/neutron.po
neutron/locale/ro/LC_MESSAGES/neutron.po
neutron/locale/ru/LC_MESSAGES/neutron.po
neutron/locale/ru_RU/LC_MESSAGES/neutron.po
neutron/locale/sk/LC_MESSAGES/neutron.po
neutron/locale/sl_SI/LC_MESSAGES/neutron.po
neutron/locale/sq/LC_MESSAGES/neutron.po
neutron/locale/sr/LC_MESSAGES/neutron.po
neutron/locale/sv/LC_MESSAGES/neutron.po
neutron/locale/sw_KE/LC_MESSAGES/neutron.po
neutron/locale/ta/LC_MESSAGES/neutron.po
neutron/locale/te_IN/LC_MESSAGES/neutron.po
neutron/locale/tl/LC_MESSAGES/neutron.po
neutron/locale/tl_PH/LC_MESSAGES/neutron.po
neutron/locale/tr_TR/LC_MESSAGES/neutron.po
neutron/locale/uk/LC_MESSAGES/neutron.po
neutron/locale/ur/LC_MESSAGES/neutron.po
neutron/locale/vi_VN/LC_MESSAGES/neutron.po
neutron/locale/zh_CN/LC_MESSAGES/neutron.po
neutron/locale/zh_HK/LC_MESSAGES/neutron.po
neutron/locale/zh_TW/LC_MESSAGES/neutron.po
neutron/tests/unit/vmware/extensions/test_networkgw.py

10 years agoMerge "Cisco APIC Layer 3 Service plugin"
Jenkins [Thu, 12 Jun 2014 14:22:44 +0000 (14:22 +0000)]
Merge "Cisco APIC Layer 3 Service plugin"

10 years agoMerge "Use list copy for events in nova notifier"
Jenkins [Thu, 12 Jun 2014 13:30:08 +0000 (13:30 +0000)]
Merge "Use list copy for events in nova notifier"

10 years agoMerge "Replace XML with JSON for N1kv REST calls"
Jenkins [Wed, 11 Jun 2014 10:11:45 +0000 (10:11 +0000)]
Merge "Replace XML with JSON for N1kv REST calls"

10 years agoMerge "multiprovidernet: fix a comment"
Jenkins [Wed, 11 Jun 2014 06:43:59 +0000 (06:43 +0000)]
Merge "multiprovidernet: fix a comment"

10 years agoMerge "OVS Agent: limit veth names to 15 chars"
Jenkins [Wed, 11 Jun 2014 01:05:30 +0000 (01:05 +0000)]
Merge "OVS Agent: limit veth names to 15 chars"

10 years agoDisable DHCP config patch too.
Thomas Goirand [Tue, 10 Jun 2014 23:22:16 +0000 (07:22 +0800)]
Disable DHCP config patch too.

Change-Id: I142cad58020a2e6fb93de651a52fb892a10707ee

10 years agoMerge "extensions: remove 'check_env' method"
Jenkins [Tue, 10 Jun 2014 23:05:34 +0000 (23:05 +0000)]
Merge "extensions: remove 'check_env' method"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 10 Jun 2014 23:05:11 +0000 (23:05 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Use import from six.moves to import the queue module"
Jenkins [Tue, 10 Jun 2014 19:49:37 +0000 (19:49 +0000)]
Merge "Use import from six.moves to import the queue module"

10 years agoMerge "Support Subnets that are configured by external RAs"
Jenkins [Tue, 10 Jun 2014 18:49:01 +0000 (18:49 +0000)]
Merge "Support Subnets that are configured by external RAs"

10 years agoMerge "ofagent: Fix VLAN usage for TYPE_FLAT and TYPE_VLAN"
Jenkins [Tue, 10 Jun 2014 17:51:28 +0000 (17:51 +0000)]
Merge "ofagent: Fix VLAN usage for TYPE_FLAT and TYPE_VLAN"

10 years agoMerge "Fix race condition with firewall deletion"
Jenkins [Tue, 10 Jun 2014 16:31:39 +0000 (16:31 +0000)]
Merge "Fix race condition with firewall deletion"

10 years agoMerge "Improve usage of MagicMocks in ML2 and L3 tests"
Jenkins [Tue, 10 Jun 2014 14:30:45 +0000 (14:30 +0000)]
Merge "Improve usage of MagicMocks in ML2 and L3 tests"

10 years agoMerge "Changed DictModel to dict with attribute access"
Jenkins [Tue, 10 Jun 2014 14:30:36 +0000 (14:30 +0000)]
Merge "Changed DictModel to dict with attribute access"

10 years agoMerge "Refactor code in update_subnet, splitting into individual methods"
Jenkins [Tue, 10 Jun 2014 14:09:05 +0000 (14:09 +0000)]
Merge "Refactor code in update_subnet, splitting into individual methods"

10 years agoMerge "Check the validation of 'delay' and 'timeout'"
Jenkins [Tue, 10 Jun 2014 13:01:08 +0000 (13:01 +0000)]
Merge "Check the validation of 'delay' and 'timeout'"

10 years agoDisabled ml2 config patch.
Thomas Goirand [Tue, 10 Jun 2014 12:53:41 +0000 (20:53 +0800)]
Disabled ml2 config patch.

Change-Id: I6fe2073de3f361820f64064e9822ddbba4b9792b

10 years agoMerge "Ensure routing key is specified in the address for a direct producer"
Jenkins [Tue, 10 Jun 2014 12:03:52 +0000 (12:03 +0000)]
Merge "Ensure routing key is specified in the address for a direct producer"

10 years agoMerge "Monkey patch threading module as early as possible"
Jenkins [Tue, 10 Jun 2014 10:14:43 +0000 (10:14 +0000)]
Merge "Monkey patch threading module as early as possible"

10 years agoMerge "Add local type driver unittests"
Jenkins [Tue, 10 Jun 2014 06:42:33 +0000 (06:42 +0000)]
Merge "Add local type driver unittests"

10 years agomultiprovidernet: fix a comment
YAMAMOTO Takashi [Tue, 10 Jun 2014 06:33:33 +0000 (15:33 +0900)]
multiprovidernet: fix a comment

Change-Id: I8a09af9f77bb589203bb47fcc1c6c7b704a5b6c2

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 10 Jun 2014 06:08:37 +0000 (06:08 +0000)]
Imported Translations from Transifex

Change-Id: Ib6b1eb8816862ba17c40d7fb0a510e1936503ec4

10 years agoFix race condition with firewall deletion
Eugene Nikanorov [Tue, 10 Jun 2014 03:55:40 +0000 (07:55 +0400)]
Fix race condition with firewall deletion

In some cases when firewall is created and then deleted in short
period of time, there could be a race condition of firewall status
changes. Agent may change firewall status from PENDING_DELETE to ACTIVE
because the agent has just set it up on the backend.
Delete request then is not properly served and firewall remains in ERROR
state and can't be deleted at all.

To fix this changing status from PENDING_DELETE is not allowed.
Deleting firewall in ERROR state is allowed.

Change-Id: Iec3cfcb1e03b33dda8e1f10ca51bd9b61fa8030d
Closes-Bug: #1328162

10 years agoextensions: remove 'check_env' method
YAMAMOTO Takashi [Tue, 10 Jun 2014 03:28:44 +0000 (12:28 +0900)]
extensions: remove 'check_env' method

The method is not documented or used.
It was introduced for quota but unused since commit 603e3b78.

Closes-Bug: #1328362
Change-Id: Id0a4d8606f34e54468ed0de26adbf25ff273079e

10 years agoMerge "Default to setting secure mode on the integration bridge"
Jenkins [Tue, 10 Jun 2014 03:39:21 +0000 (03:39 +0000)]
Merge "Default to setting secure mode on the integration bridge"

10 years agoMerge "Make allocation_pools attribute of subnet updateable by PUT"
Jenkins [Tue, 10 Jun 2014 02:27:50 +0000 (02:27 +0000)]
Merge "Make allocation_pools attribute of subnet updateable by PUT"

10 years agoCheck the validation of 'delay' and 'timeout'
shihanzhang [Fri, 16 May 2014 07:26:57 +0000 (15:26 +0800)]
Check the validation of 'delay' and 'timeout'

In health monitor, the 'delay' should be greater or equal than 'timeout'.

Change-Id: I64972881676f2a1269aad8f9cdc77ae957c088d9
Closes-bug: #1320111

10 years agoMerge "Introduced transition RPC exception types"
Jenkins [Tue, 10 Jun 2014 01:39:26 +0000 (01:39 +0000)]
Merge "Introduced transition RPC exception types"

10 years agoMerge "Added RpcProxy class"
Jenkins [Tue, 10 Jun 2014 01:39:08 +0000 (01:39 +0000)]
Merge "Added RpcProxy class"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 10 Jun 2014 01:36:57 +0000 (01:36 +0000)]
Merge "Imported Translations from Transifex"

10 years agoEnsure routing key is specified in the address for a direct producer
Russell Bryant [Mon, 9 Jun 2014 20:53:21 +0000 (16:53 -0400)]
Ensure routing key is specified in the address for a direct producer

This change is already merged in oslo-incubator.  Original commit
message body includes:

    Porting this fix from oslo.messaging.  This fixes the impl_qpid.py
    driver to allow it to work with the latest stable upstream QPID broker
    (version 0.28).  See the Apache Qpid Jira bug
    https://issues.apache.org/jira/browse/QPID-5557

Change-Id: If71f78e50f8a9b3acfd1e9d02c8271f17c4ebee7
Related-Bug: #1300318

10 years agoSupport Subnets that are configured by external RAs
Sean M. Collins [Mon, 7 Apr 2014 18:35:58 +0000 (14:35 -0400)]
Support Subnets that are configured by external RAs

The IPv6 attributes for subnets provides support for IPv6 subnets that
are managed by non-OpenStack gateway devices, by creating a subnet that
has the ipv6_ra_mode attribute not set, and the ipv6_address_mode
attribute set to IPV6_SLAAC.

In order to support stateless IPv6, Neutron should calculate an IPv6
address based on the IPv6 prefix and MAC address via EUI-64 specification,
and assign this address to the port.

Implements blueprint ipv6-provider-nets-slaac

DocImpact

Change-Id: Ia76d76a67e0dc9f996a72e38d987a05aecc1b55f
Co-Authored-By: Xu Han Peng <xuhanp@cn.ibm.com>
Co-Authored-By: Dazhao Yu <dzyu@cn.ibm.com>
10 years agoMerge "Add an option to turn off DF for GRE and VXLAN tunnels"
Jenkins [Mon, 9 Jun 2014 17:24:20 +0000 (17:24 +0000)]
Merge "Add an option to turn off DF for GRE and VXLAN tunnels"

10 years agoMerge "Start an unstarted patch in the hyperv unit tests"
Jenkins [Mon, 9 Jun 2014 17:14:40 +0000 (17:14 +0000)]
Merge "Start an unstarted patch in the hyperv unit tests"

10 years agoRefactor code in update_subnet, splitting into individual methods
marios [Fri, 30 May 2014 13:04:18 +0000 (16:04 +0300)]
Refactor code in update_subnet, splitting into individual methods

The update_subnet was already long and complex enough and adding
more code to it was undesirable, after commit

I47a3a71d0d196b76eda46b1d960193fb60417ba9

Hence this refactor splits parts of the update_subnet code into
dedicated sub-methods.

Change-Id: I8f98938da88db287290493dc0daf7c81b8b5f542

10 years agoMake allocation_pools attribute of subnet updateable by PUT
marios [Fri, 13 Dec 2013 16:57:28 +0000 (18:57 +0200)]
Make allocation_pools attribute of subnet updateable by PUT

Bug 1111572 was filed about a failed update (PUT) on
'allocation_pools' of subnet. This is currently not allowed by the
neutron API (hence DocImpact below). Following discussion on the
bug and subsequently, it seems this is a desirable feature.

This review makes the allocation_pools attribute of subnet
updateable by PUT. The semantics are that the entire allocation
pools attribute is replaced by the provided parameter (see
provided tests for details).

Unit tests added that exercise successful update of
allocation_pools with sane params and update using erroneous
allocation_pools that fall outside the subnet cidr.

DocImpact

Closes-Bug: 1111572
Change-Id: I47a3a71d0d196b76eda46b1d960193fb60417ba9
Co-Authored-By: Robert Collins <rbtcollins@hp.com>
10 years agoMerge "Check DB scheme prior to migration to Ml2"
Jenkins [Mon, 9 Jun 2014 15:11:18 +0000 (15:11 +0000)]
Merge "Check DB scheme prior to migration to Ml2"

10 years agoRemoved debian/patches/Install_SNAT_rules_for_ipv4_only.patch applied upstream.
Thomas Goirand [Mon, 9 Jun 2014 15:09:59 +0000 (23:09 +0800)]
Removed debian/patches/Install_SNAT_rules_for_ipv4_only.patch applied upstream.

Change-Id: I9231c598c6df1cfabb9d863e65171c93299182e3

10 years agoRemoved OVS_lib_defer_apply_doesn_t_handle_concurrency.patch applied upstream.
Thomas Goirand [Mon, 9 Jun 2014 15:08:14 +0000 (23:08 +0800)]
Removed OVS_lib_defer_apply_doesn_t_handle_concurrency.patch applied upstream.

Change-Id: I0bc29f8e5a2ff571cc170824bec06fe1308acfca

10 years agoNow packaging upstream release 2014.1.1.
Thomas Goirand [Mon, 9 Jun 2014 15:07:14 +0000 (23:07 +0800)]
Now packaging upstream release 2014.1.1.

Change-Id: I673230a1b40fba4f1b2ed0e6e984e34fe48402fd

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

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

Change-Id: Ide26028656e634113f955dfc89569149d4d5b306
Closes-Bug: #1324659
(cherry picked from commit b5d596877f538a84e8336b45026b552df8e53be6)

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

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

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

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

Conflicts:
neutron/plugins/openvswitch/common/constants.py

Change-Id: If9e07465c43115838de23e12a4e0087c9218cea2
Closes-Bug: #1290486
(cherry picked from commit 8e9f00a19dab98e5cfc7ca32beb9f17ebb5bc1bb)

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

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

Conflicts:
setup.cfg

Change-Id: I31f096e7fbf9f7a182ba8535ca8cadc4fecc6632
Partial-Bug: 1324487
(cherry picked from commit a75e156af64afb61f3ebf928eda132325e5a46f5)

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

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

Change-Id: I0073a3de9ea0cd59d43c821f9bdaea89bd125a65
Closes-Bug: #1323769
(cherry picked from commit e588ee5b470bdca25abc634db3144d2aa9b84554)

10 years agoRemove List events API from Cisco N1kv Neutron
Dhanashree Gosavi [Mon, 10 Feb 2014 12:19:50 +0000 (04:19 -0800)]
Remove List events API from Cisco N1kv Neutron

Earlier Cisco N1kv plugin was using list events api to
poll policies from VSM.
It was inefficient and caused delay in processing.
So, now Cisco N1kv plugin  switched to list profiles to
poll policies from VSM.

Change-Id: Ia734735361dc3eaee8e276ada0c80045eaa9ef96
Closes-Bug: #1292173
(cherry picked from commit e0f69d69293f0ffba22a6540f483f05baa48cd6f)

10 years agoInstall SNAT rules for ipv4 only
Baodong Li [Thu, 24 Apr 2014 01:47:13 +0000 (01:47 +0000)]
Install SNAT rules for ipv4 only

Change-Id: I37bd770aa0d54a985ac2bec708c571785084e0ec
Closes-Bug: #1309195
(cherry picked from commit d23bc8fa6e2d8a735a2aa75224b1bc96a3b992f5)

10 years agoUse os.uname() instead of calling uname in subprocess
Jakub Libosvar [Tue, 1 Apr 2014 14:41:38 +0000 (16:41 +0200)]
Use os.uname() instead of calling uname in subprocess

Related-Bug: #1291535

Change-Id: I57e18c0b95904f318e3fff08cd18b32e28f48834
(cherry picked from commit 22a0692c2e9b0276c6b4dd2f66cedc70f7f835a5)

10 years agoReplace loopingcall in notifier with a delayed send
Carl Baldwin [Wed, 2 Apr 2014 16:53:33 +0000 (16:53 +0000)]
Replace loopingcall in notifier with a delayed send

The loopingcall thread here was started before processes fork and so
the thread stops working after the fork call.  This is a problem that
will probably need to be worked out in the long run.

To ensure that this notifier works correctly in all processes, this
change replaces the persistent loopingcall thread with a thread
created on demand to delay and batch up notifications.  The first
notification will trigger spawning the thread to wait to send it.  Any
notifications that come in the meantime will notice that there is
already a thread waiting to send and will return without spawning.

Conflicts:
        neutron/notifiers/nova.py

Change-Id: I519d4e89b8cee341c0e1cfffbce3e77151e8202a
Closes-Bug: #1301035
(cherry picked from commit 3be1d7a75c5ec754825e99e0a8d95b4e1521ae4b)

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 agoMonkey patch threading module as early as possible
Ihar Hrachyshka [Fri, 30 May 2014 13:53:25 +0000 (15:53 +0200)]
Monkey patch threading module as early as possible

In oslo.messaging, local thread store is used to pass RPC request
context [1]. If we try to import oslo.messaging before monkey patching
threading library, it attempts to access unpatched storage and fails
with AttributeError.

[1]: oslo/messaging/localcontext.py#L26

blueprint oslo-messaging

Change-Id: Ied7302fcb1d3e14428540e39e3db704550027890

10 years agoIntroduced transition RPC exception types
Ihar Hrachyshka [Fri, 30 May 2014 13:26:45 +0000 (15:26 +0200)]
Introduced transition RPC exception types

These exception types will ease transition from oslo-rpc to
oslo.messaging.

blueprint oslo-messaging

Change-Id: I48d214d676e863d7a60d78c49d2fa917d47c07d9

10 years agoAdded RpcProxy class
Ihar Hrachyshka [Fri, 30 May 2014 11:08:40 +0000 (13:08 +0200)]
Added RpcProxy class

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

Migrated all affected classes to the new RpcProxy class.

blueprint oslo-messaging

Change-Id: I1563c13b470b61eebc982ee81efee47732943d48

10 years agoofagent: Fix VLAN usage for TYPE_FLAT and TYPE_VLAN
YAMAMOTO Takashi [Wed, 2 Apr 2014 06:41:38 +0000 (15:41 +0900)]
ofagent: Fix VLAN usage for TYPE_FLAT and TYPE_VLAN

while ofagent uses OF1.3, the current coding incorrectly uses
OF1.0 terms in some places.  namely, _local_vlan_for_flat uses
0xffff to mean "no VLAN".  it should use OFPVID_NONE and
pop_vlan/push_vlan appropriately.  the same problem exists for
reclaim_local_vlan.

Closes-Bug: 1301144
Change-Id: I3df821fd72471f8bd84366e3b5a1cc7e3489156c

10 years agoUse import from six.moves to import the queue module
Christian Berendt [Sun, 8 Jun 2014 16:30:43 +0000 (18:30 +0200)]
Use import from six.moves to import the queue module

The name of the synchronized queue class is queue instead of
Queue in Python3.

Change-Id: I5c5aba89b30b311bbfba2b64c61ea566d339b7c9
Closes-Bug: #1327975

10 years agoStart an unstarted patch in the hyperv unit tests
Kevin Benton [Mon, 9 Jun 2014 07:46:30 +0000 (00:46 -0700)]
Start an unstarted patch in the hyperv unit tests

This starts a patch that was setup but never started
for a loopingcall that was allowing an occasional
exception to be thrown from the agent on unrelated patches.

Closes-Bug: #1327974
Change-Id: I6cfdb128c2a78e9c087d79a6db850603f2d03fa8

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

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 9 Jun 2014 06:09:05 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: I3c8e6595c12a2dabd15eb811f7d3fd5611427c6c

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

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

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

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

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

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

10 years agoAdd an option to turn off DF for GRE and VXLAN tunnels
Pierre Rognant [Wed, 28 May 2014 18:18:45 +0000 (14:18 -0400)]
Add an option to turn off DF for GRE and VXLAN tunnels

Modifications included allow to set a new option (dont_fragment) in
the ovs agent configuration file that can be used for (un-)setting the DF
bit on GRE or VXLAN tunnels. The default behaviour is not altered (DF on).

Change-Id: I17ecb00165990b72ab121c2688097139b3f2f157
Implements: blueprint neutron-ovs-agent-df-gre-vxlan

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

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

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

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

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

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

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

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

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