]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoMerge "Spawn dedicated rpc workers for state reports queue"
Jenkins [Thu, 22 Oct 2015 07:45:04 +0000 (07:45 +0000)]
Merge "Spawn dedicated rpc workers for state reports queue"

8 years agoFix the latest glitches that broke docs generation
armando-migliaccio [Thu, 22 Oct 2015 01:12:22 +0000 (18:12 -0700)]
Fix the latest glitches that broke docs generation

Change-Id: I56fd97e4d590fd67768fefc45aabe429ad169d48

8 years agoClarify what gerrit repositories can target neutron-specs
Kyle Mestery [Wed, 21 Oct 2015 17:43:58 +0000 (17:43 +0000)]
Clarify what gerrit repositories can target neutron-specs

It wasn't made clear by the existing documentation that we only want
neutron, neutron-fwaas, neutron-lbaas, and neutron-vpnaas repositories
to target specs at neutron-specs. This makes it 100% crystal clear.

Change-Id: I5b87faa31d71676f1674fd7370535ae6d895b43f
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoMerge "DVR: Notify specific agent when update floatingip"
Jenkins [Wed, 21 Oct 2015 17:31:56 +0000 (17:31 +0000)]
Merge "DVR: Notify specific agent when update floatingip"

8 years agoMerge "Remove deprecated sriov agent_required option"
Jenkins [Wed, 21 Oct 2015 17:31:35 +0000 (17:31 +0000)]
Merge "Remove deprecated sriov agent_required option"

8 years agoMerge "Fix l2pop regression"
Jenkins [Wed, 21 Oct 2015 17:30:03 +0000 (17:30 +0000)]
Merge "Fix l2pop regression"

8 years agoMerge "Set ip_nonlocal_bind in namespace if it exists"
Jenkins [Wed, 21 Oct 2015 17:14:10 +0000 (17:14 +0000)]
Merge "Set ip_nonlocal_bind in namespace if it exists"

8 years agoMerge "ovs: remove several unneeded object attributes from setup_rpc()"
Jenkins [Wed, 21 Oct 2015 17:13:55 +0000 (17:13 +0000)]
Merge "ovs: remove several unneeded object attributes from setup_rpc()"

8 years agoMerge "Remove IBM SDN-VE left-overs"
Jenkins [Wed, 21 Oct 2015 14:36:27 +0000 (14:36 +0000)]
Merge "Remove IBM SDN-VE left-overs"

8 years agoMerge "Don't remove ip addresses if not master"
Jenkins [Wed, 21 Oct 2015 14:32:42 +0000 (14:32 +0000)]
Merge "Don't remove ip addresses if not master"

8 years agoSpawn dedicated rpc workers for state reports queue
Eugene Nikanorov [Mon, 12 Oct 2015 12:21:02 +0000 (16:21 +0400)]
Spawn dedicated rpc workers for state reports queue

By default spawn one additional rpc worker to process
state report queue.
State report queue will also be processed by regular
rpc workers, but in case these workers are busy with
processing heavy requests, state reports queue will
automatically be consumed by dedicated rpc workers.

This change applies to ML2 plugin only.
Other plugins should implement start_rpc_state_reports_listener
to enable additional rpc workers.

Change-Id: I5f8df6a478f7c82382049274b34b07109eeafbdb
Closes-Bug: #1505217

8 years agoFix l2pop regression
Assaf Muller [Tue, 20 Oct 2015 21:42:57 +0000 (17:42 -0400)]
Fix l2pop regression

Patch https://review.openstack.org/#/c/236970/ introduced an issue
where get_agent_by_host can return a random host (Including L3,
DHCP or metadata agents), not only L2 agents. The caller then
tries to get tunneling_ip, which might not exist on the returned
agent, causing l2pop code to bail out with a WARNING:
'Unable to retrieve the agent ip...'.

The issue was found by manual introspection of the code, and
verified by modifying the l2pop fullstack test to register L3
agents. Both a unit test was added, as well as modifying the
fullstack connectivity test to register L3 agents if l2pop
is enabled.

The code will now check for agents with a tunneling_ip key
in their configurations dict, which is required for l2pop
to work correctly, essentially a form of duck typing.

Change-Id: Ib3072966140b7f6ca954d7847ad9835aa1191998
Closes-Bug: #1508205

8 years agoRemove deprecated sriov agent_required option
Cedric Brandily [Tue, 20 Oct 2015 19:51:09 +0000 (21:51 +0200)]
Remove deprecated sriov agent_required option

The SR-IOV option agent_required has been deprecated in Liberty.

This change removes it and from now agents are mandatory for SR-IOV
mechanism in order to support extended features: QoS, port security.

DocImpact
Closes-Bug: #1508182
Related-Bug: #1488807
Change-Id: I4e6497da6b287531a211084a5208028c84112a83

8 years agoMerge "Include alembic versions directory to the package"
Jenkins [Wed, 21 Oct 2015 10:26:45 +0000 (10:26 +0000)]
Merge "Include alembic versions directory to the package"

8 years agoDon't remove ip addresses if not master
John Schwarz [Mon, 12 Oct 2015 12:53:49 +0000 (15:53 +0300)]
Don't remove ip addresses if not master

When setting --admin-state-up=False on an HA router with a gateway set,
standby nodes don't have any ip addresses set on the devices (although
the devices themselves are present). In such cases, Neutron should not
try to un-set those ip addresses before deleting the device itself.

Closes-bug: #1505203
Change-Id: I5df04b2ed1dc08286f6c467111c61c7f97643d66

8 years agoMerge "Refactor _populate_ports_for_subnets for testability"
Jenkins [Wed, 21 Oct 2015 09:16:11 +0000 (09:16 +0000)]
Merge "Refactor _populate_ports_for_subnets for testability"

8 years agoInclude alembic versions directory to the package
Jakub Libosvar [Tue, 13 Oct 2015 11:18:56 +0000 (13:18 +0200)]
Include alembic versions directory to the package

If package is built without access to git metadata, all the migration
scripts are not included in the build. We need to explicitly specify to
package the scripts.

Change-Id: I9a2acad13271863ee94de63c2404e8697ea70601
Closes-Bug: #1505628

8 years agoMerge "Split the FIP Namespace delete in L3 agent for DVR"
Jenkins [Wed, 21 Oct 2015 04:23:40 +0000 (04:23 +0000)]
Merge "Split the FIP Namespace delete in L3 agent for DVR"

8 years agoMerge "Properly handle segmentation_id in OVS agent"
Jenkins [Wed, 21 Oct 2015 01:46:25 +0000 (01:46 +0000)]
Merge "Properly handle segmentation_id in OVS agent"

8 years agoMerge "Fix formatting of hyperlinks provided in the office-hours doc"
Jenkins [Wed, 21 Oct 2015 00:59:31 +0000 (00:59 +0000)]
Merge "Fix formatting of hyperlinks provided in the office-hours doc"

8 years agoMerge "Remove the port-forwarding sub-project from the list"
Jenkins [Tue, 20 Oct 2015 22:20:46 +0000 (22:20 +0000)]
Merge "Remove the port-forwarding sub-project from the list"

8 years agoMerge "Remove SUPPORTED_AGENT_TYPES for l2pop"
Jenkins [Tue, 20 Oct 2015 20:34:58 +0000 (20:34 +0000)]
Merge "Remove SUPPORTED_AGENT_TYPES for l2pop"

8 years agoFix formatting of hyperlinks provided in the office-hours doc
armando-migliaccio [Wed, 14 Oct 2015 01:44:17 +0000 (18:44 -0700)]
Fix formatting of hyperlinks provided in the office-hours doc

Change-Id: I7b11f4c6efb39d17d339b3e655f184c900b83376

8 years agoRemove IBM SDN-VE left-overs
armando-migliaccio [Tue, 20 Oct 2015 17:59:08 +0000 (10:59 -0700)]
Remove IBM SDN-VE left-overs

The project has been removed in I8def7fc2e92f967785b9ab05f8496de641e8f866
and it's been retired from stackforge [1]. So it's safe to remove it from
the list with the remaining bits.

[1] https://github.com/stackforge/networking-ibm/commit/f66ddfa0a1e8c2ab2931a87d84bd5a5feab2f540

Change-Id: Ic1bb021d91bbaaa01d0ac305c8060b3af9e2389b

8 years agoRemove the port-forwarding sub-project from the list
armando-migliaccio [Tue, 20 Oct 2015 18:05:20 +0000 (11:05 -0700)]
Remove the port-forwarding sub-project from the list

This project is no longer maintained, there are newer talks
going on to better support the use case [1], possibly in
tree. To this aim, it's safe to remove this project from
the list.

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-September/073461.html

Change-Id: Ic1ae39f19381bc912a5fdb6417fff19181916744

8 years agoProperly handle segmentation_id in OVS agent
Thomas Herve [Tue, 20 Oct 2015 13:42:59 +0000 (15:42 +0200)]
Properly handle segmentation_id in OVS agent

The segmentation_id of a OVS VLAN can be None, but a recent change
assumed that it was always an integer. It highlighted the fact that we
try to store None in the OVS database, which got stored as a string.
This fixes the storage, and handles loading the value while keeping
compatibility.

Change-Id: I6e7df1406c90ddde254467bb87ff1507a4caaadd
Closes-Bug: #1494281

8 years agoovs: remove several unneeded object attributes from setup_rpc()
Ihar Hrachyshka [Tue, 13 Oct 2015 16:11:29 +0000 (18:11 +0200)]
ovs: remove several unneeded object attributes from setup_rpc()

It's currently not clear what the interactions and interdependencies
between existing attributes set inside setup_rpc() and other code are.
This complicates its perception. So reduce the complexity a bit by using
local variables instead of object attributes where applies; and moving
agent_id calculation out of setup_rpc() since it's not related to AMQP.

Change-Id: I6ad156a7dd686ab2a2349704a34385db1ee9681c

8 years agoMerge "Move some projects url from cgit/stackforge to cgit/openstack"
Jenkins [Tue, 20 Oct 2015 15:09:15 +0000 (15:09 +0000)]
Merge "Move some projects url from cgit/stackforge to cgit/openstack"

8 years agoMerge "Remove non-existent enable_tunneling conf from fullstack"
Jenkins [Tue, 20 Oct 2015 15:08:52 +0000 (15:08 +0000)]
Merge "Remove non-existent enable_tunneling conf from fullstack"

8 years agoMerge "Update notes about the Neutron teams"
Jenkins [Tue, 20 Oct 2015 14:30:00 +0000 (14:30 +0000)]
Merge "Update notes about the Neutron teams"

8 years agoSet ip_nonlocal_bind in namespace if it exists
Brian Haley [Fri, 16 Oct 2015 22:02:16 +0000 (18:02 -0400)]
Set ip_nonlocal_bind in namespace if it exists

Somewhere in the 3.19 kernel timeframe ip_nonlocal_bind was
changed to be a per-namespace attribute. To be backwards
compatible we need to try that first, then fall-back to
setting the one in the root namespace if it fails.

Closes-Bug: #1507078
Change-Id: I018e800bc8d4e85d067aaae865c9b04bf030c980

8 years agoRemove SUPPORTED_AGENT_TYPES for l2pop
Romil Gupta [Mon, 19 Oct 2015 13:17:04 +0000 (06:17 -0700)]
Remove SUPPORTED_AGENT_TYPES for l2pop

In a world where agents can be out of tree,
this check seems no longer necessary.

As part of networking-vsphere project which runs ovsvapp agent
on each ESXi host inside service VM, which talk to neutron-server
having l2pop enabled in a multi-hypervisor mode like KVM, ESXi.
The tunnels are not getting established between KVM compute node
and ESXi host. The l2pop mech_driver needs to embrace ovsvapp agent
to form the tunnels.

Hence, this patch-set addresses the issue by removing the
SUPPORTED_AGENT_TYPES for l2pop.

Closes-Bug: #1507684
Change-Id: I93ca5736e4aad41b851d2b7b082b4bb69d1632fb

8 years agoMerge "Add stevedore aliases for interface_driver configuration"
Jenkins [Tue, 20 Oct 2015 10:49:14 +0000 (10:49 +0000)]
Merge "Add stevedore aliases for interface_driver configuration"

8 years agoDVR: Notify specific agent when update floatingip
changzhi [Thu, 20 Aug 2015 13:40:42 +0000 (21:40 +0800)]
DVR: Notify specific agent when update floatingip

The L3 agent was determined when update floatingip.
So notify the specific agent rather than notify all agents.
This will save some RPC resources. This is only for DVR routers.
Legacy and HA routers notify only the relevant agents.

This reproposes commit 52e91f48f2327b47f126893f9cb12f153380a9a6
which was reverted by commit a2f7e0343a147a30a637af4e1cb9a866f557e87d
because of Ironic gate failures.
Now the patch preserves original behavior for legacy routers and
should not break Ironic tests.

Partial-Bug: #1486828
Related-Bug: #1507602
Change-Id: I4ef7a69ad033b979ea0e29620a4febfe5e0c30dd

8 years agoMove some projects url from cgit/stackforge to cgit/openstack
Einst Crazy [Tue, 20 Oct 2015 05:57:44 +0000 (13:57 +0800)]
Move some projects url from cgit/stackforge to cgit/openstack

Some projects is moved from cgit/stackforge to cgit/openstack,
modify the rst file.

Change-Id: I37fbdeb9054dc35ff8b61aef5b444aa4f5289563

8 years agoRemove non-existent enable_tunneling conf from fullstack
Assaf Muller [Mon, 19 Oct 2015 22:15:56 +0000 (18:15 -0400)]
Remove non-existent enable_tunneling conf from fullstack

enable_tunneling is not actually a conf option, fullstack
config fixture code was passing it to the OVS agent but
it doesn't do anything.

Change-Id: I4fbe20c37f3ca6395c1ac43123a3cc2338065ed1

8 years agoUpdate notes about the Neutron teams
armando-migliaccio [Mon, 19 Oct 2015 19:57:29 +0000 (12:57 -0700)]
Update notes about the Neutron teams

Provide links to who belongs to what team, and
rename the section to better reflect its content.
Add the Neutron drivers team, which apparently
was missing and only captured on the wiki.o.o.

Change-Id: Ica1de55b11f9c9f3ad24fa5bfa431548499951e8

8 years agoMerge "Improvements to the blueprint management process"
Jenkins [Tue, 20 Oct 2015 02:22:22 +0000 (02:22 +0000)]
Merge "Improvements to the blueprint management process"

8 years agoMerge "Register oslo_service.wsgi options correctly"
Jenkins [Tue, 20 Oct 2015 02:22:09 +0000 (02:22 +0000)]
Merge "Register oslo_service.wsgi options correctly"

8 years agoMerge "ovs_neutron_agent: display loaded extensions"
Jenkins [Tue, 20 Oct 2015 02:18:18 +0000 (02:18 +0000)]
Merge "ovs_neutron_agent: display loaded extensions"

8 years agoRefactor _populate_ports_for_subnets for testability
Carl Baldwin [Fri, 16 Oct 2015 16:16:15 +0000 (16:16 +0000)]
Refactor _populate_ports_for_subnets for testability

I want to add to this function but I found it very difficult to test
the additions that I was making (because this code isn't well covered
by UTs).  This patch adds some unit testing so that I can change it
more confidently but does not change any functionality.

Change-Id: Id2cf57968f2dfb8bcf18946c922ce2bb51a27766
Partially-implements:  bp/address-scopes

8 years agoSplit the FIP Namespace delete in L3 agent for DVR
Swaminathan Vasudevan [Wed, 30 Sep 2015 18:15:52 +0000 (11:15 -0700)]
Split the FIP Namespace delete in L3 agent for DVR

Right now we are seeing a race condition in the l3 agent
for DVR routers when a floatingip is deleted and created.

The agent tries to delete the floatingip namespace and
while it tries to delete there is another call to add a
namespace. There is a timing window in between these two
calls where sometimes the call to create a namespace succeeds
but, when tried to execute any commands in the namespace
it fails, since the namespace was deleted concurrently.

Since the fip namespace is associated with an external net
and each node has only one fip namespace for an external net,
we would like to only delete the fip namespace when the
external net is deleted.

The first step is to split the delete functionality into two.
The call to fip_ns.cleanup will only remove the dependency that
the fipnamespace has with the router namespace such as fpr and
rfp veth pairs.

The call to fip_ns.delete will actually delete the
the fip namespace and the fg device.

Partial-Bug: #1501873
Change-Id: Ic94625d5a968f554af70c274b2b2c20ab64e2487

8 years agoAdd stevedore aliases for interface_driver configuration
Martin Hickey [Wed, 14 Oct 2015 21:32:49 +0000 (22:32 +0100)]
Add stevedore aliases for interface_driver configuration

Changed the interface_driver configure for agents from class
imports to stevedor aliases. The loading method needed to be
updated to load as a DriverManager. Backward compatability
for configuration as class import.

DocImpact

Change-Id: Ic349691989484286cd7c60eaf3ad1454c5852d1f
Closes-Bug: #1504536

8 years agoRegister oslo_service.wsgi options correctly
Elena Ezhova [Tue, 13 Oct 2015 08:13:51 +0000 (11:13 +0300)]
Register oslo_service.wsgi options correctly

oslo_service 0.10.0 release added register_opts function to wsgi
module that is why it is no longer needed to access its private
_options module.

Change-Id: I4803a3540a6bc9c8f08db49e209668d0736abec7
Depends-On: Id0f9f93758c68aa954d37e3566e35deae2961268

8 years agoovs_neutron_agent: display loaded extensions
Haim Daniel [Thu, 24 Sep 2015 15:53:40 +0000 (18:53 +0300)]
ovs_neutron_agent: display loaded extensions

Currently neutron agent-show command does not provide the visibility for the
loaded extensions. This commit fixes that.

DocImpact

Change-Id: Iab101682df4676ad3ca2531356a1de8f2a2d4f14
Closes-Bug: #1497969

8 years agoMerge "Cache the ARP entries in L3 Agent for DVR"
Jenkins [Mon, 19 Oct 2015 19:40:26 +0000 (19:40 +0000)]
Merge "Cache the ARP entries in L3 Agent for DVR"

8 years agoImprovements to the blueprint management process
armando-migliaccio [Thu, 15 Oct 2015 23:54:17 +0000 (16:54 -0700)]
Improvements to the blueprint management process

It is easy to oversubscribe ourselves during a release
cycle. We approve specs only to experience that we fail
to review consistently; code is posted last minute,
we get lost into chasing race conditions, the odd dependency
throws the gate under the bus, and the ever-present cosmetic
refactoring patch steers our attention from what matters,
which is *reviewing what we commit to deliver*.

In order to keep ourselves focused on the bigger picture,
this patch proposes/formalizes changes to the way we
register blueprints so that we can improve our ability
to better foresee what we'll deliver at the end of a
release.

We obviously can't predict the future or chain people
to a desk, but a regular pulse check of a well planned
task list should at least help mitigate the feeding frenzy
that usually happens closer to FF. That inevitably
leads to half-baked and buggy solutions.

Change-Id: Ia27b2a779204bf98c1dec2a30d00507de285f801

8 years agoMerge "Revert "DVR: Notify specific agent when update floatingip""
Jenkins [Mon, 19 Oct 2015 16:31:48 +0000 (16:31 +0000)]
Merge "Revert "DVR: Notify specific agent when update floatingip""

8 years agoAdd a note to ban agents from connecting to the DB
Henry Gessau [Mon, 19 Oct 2015 14:05:13 +0000 (10:05 -0400)]
Add a note to ban agents from connecting to the DB

Change-Id: I7768b354c3f07aa7d692bbe8dc344e2fece592fa

8 years agoRevert "DVR: Notify specific agent when update floatingip"
Ihar Hrachyshka [Mon, 19 Oct 2015 12:44:58 +0000 (12:44 +0000)]
Revert "DVR: Notify specific agent when update floatingip"

This reverts commit 52e91f48f2327b47f126893f9cb12f153380a9a6.

The patch broke notifications about FIP updates and triggered 100%
gate failures for Ironic gate.

I believe that I0cbe8c51c3714e6cbdc48ca37135b783f8014905 is also
breaking notifications, but for FIP create, which probably was not
utilized in any gate before and hence not caught in time.

The change the reverted patch introduced made update_floatingip to
fetch router based on FIP router_id field on every call, which was
not the case before the patch. For some reason unknown at the
moment, we get NotFound from database on this fetch.

The patch does not answer the question why we get NotFound from
database on fetching a FIP router_id, but that's another issue that
should be investigated while Ironic gate is happy.

Change-Id: I4affac49d7c63f47c5654b94b28f4cb7471e87b0
Closes-Bug: #1507558
Related-Bug: #1507602

8 years agoMerge "DVR: Notify specific agent when update floatingip"
Jenkins [Mon, 19 Oct 2015 00:19:33 +0000 (00:19 +0000)]
Merge "DVR: Notify specific agent when update floatingip"

8 years agoMerge "Fix AttributeError on port_bound for missing ports"
Jenkins [Sun, 18 Oct 2015 12:48:03 +0000 (12:48 +0000)]
Merge "Fix AttributeError on port_bound for missing ports"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Sun, 18 Oct 2015 10:06:33 +0000 (10:06 +0000)]
Merge "Imported Translations from Zanata"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Sun, 18 Oct 2015 06:15:10 +0000 (06:15 +0000)]
Imported Translations from Zanata

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

Change-Id: I5745a7fb8057a39981a48e0668ac9a867f29bd4c

8 years agoFix DVR downgrade exception / error code
Assaf Muller [Mon, 12 Oct 2015 18:42:43 +0000 (14:42 -0400)]
Fix DVR downgrade exception / error code

Updating a distributed router back to a legacy router
should return error 400 (BadRequest), not error 500.

Closes-Bug: #1505346
Change-Id: Ia57e80107bd11ff7b38b89d30279603017913724

8 years agoMerge "test_db_base_plugin_v2: Skip a few tests on some platforms"
Jenkins [Sat, 17 Oct 2015 00:16:01 +0000 (00:16 +0000)]
Merge "test_db_base_plugin_v2: Skip a few tests on some platforms"

8 years agoMerge "test_create_network_segment_allocation_fails: Assert the status"
Jenkins [Fri, 16 Oct 2015 23:58:07 +0000 (23:58 +0000)]
Merge "test_create_network_segment_allocation_fails: Assert the status"

8 years agoMerge "Do not try to delete a veth from a nonexistent namespace"
Jenkins [Fri, 16 Oct 2015 23:14:28 +0000 (23:14 +0000)]
Merge "Do not try to delete a veth from a nonexistent namespace"

8 years agoMerge "Do not accept abbreviated CIDRs"
Jenkins [Fri, 16 Oct 2015 23:14:14 +0000 (23:14 +0000)]
Merge "Do not accept abbreviated CIDRs"

8 years agoMerge "The exception type is wrong and makes the except block not work"
Jenkins [Fri, 16 Oct 2015 23:13:59 +0000 (23:13 +0000)]
Merge "The exception type is wrong and makes the except block not work"

8 years agoMerge "Fix rendering"
Jenkins [Fri, 16 Oct 2015 22:28:23 +0000 (22:28 +0000)]
Merge "Fix rendering"

8 years agoMerge "Remove the embrane plugin"
Jenkins [Fri, 16 Oct 2015 22:06:28 +0000 (22:06 +0000)]
Merge "Remove the embrane plugin"

8 years agoFix AttributeError on port_bound for missing ports
armando-migliaccio [Wed, 14 Oct 2015 21:27:09 +0000 (14:27 -0700)]
Fix AttributeError on port_bound for missing ports

If the port is concurrently deleted, db_get_val returns None, and
that causes the Exception to be raised. However, the exception is just
log noise if the port has been deleted concurrently and it does not
lead to failures.

This can happen if port_update and port_delete operations occur
in short sequence and interleave. To prevent this trace from
occurring, this patch checks that the port is being eliminated and
emits an error trace only if the port is indeed to be expected
amongst the list of ports to be updated.

We do not raise an exception to avoid disrupting the agent sync
process, and leave to the admin the investigation of the issue
(should that be cronic rather than transient).

Under normal circumstances, if the port is expected it should
be there, and if it isn't this should be treated as a bug to be
investigated further.

Closes-bug: #1455320

Change-Id: Ic609af0ef6a09b536c882c58c23167c0a469b155

8 years agoThe exception type is wrong and makes the except block not work
Hong Hui Xiao [Fri, 16 Oct 2015 16:39:32 +0000 (12:39 -0400)]
The exception type is wrong and makes the except block not work

According to the context, it should be KeyError here to catch.
AttributeError will not happen here. More details could be found
in the bug report.

Change-Id: Id6351172703ac492e86475f75bf1be03f4e4e8a3
Closes-bug: #1506934

8 years agoFix rendering
Kyle Mestery [Fri, 16 Oct 2015 17:08:36 +0000 (17:08 +0000)]
Fix rendering

Commits 874fd5b61a5d6a81f0e147a08a1da444e2380a5f and
a937582f7aa430f5edace2d52f5f6feccf381a34
both had formatting issues with links that were
added. This commit fixes both of the links in
question.

Change-Id: Ib02e7c659d18719d3a2898dbb9da147a8aa1f817
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoDVR: Notify specific agent when update floatingip
changzhi [Thu, 20 Aug 2015 13:40:42 +0000 (21:40 +0800)]
DVR: Notify specific agent when update floatingip

The L3 agent was determined when update floatingip.
So notify the specific agent rather than notify all agents.
This will save some RPC resources. This is only for DVR routers.
Legacy and HA routers notify only the relevant agents.

Partial-Bug: #1486828
Change-Id: I12f61afdfaa944bc4b659cec61a8b5ff8c66ae76
Co-Authored-By: Oleg Bondarev <obondarev@mirantis.com>
8 years agoDo not try to delete a veth from a nonexistent namespace
Cedric Brandily [Tue, 8 Sep 2015 15:02:57 +0000 (15:02 +0000)]
Do not try to delete a veth from a nonexistent namespace

Currently, VethFixture cleanup tries to delete veth from their
namespaces even if they don't exist anymore (without crashing the
cleanup). It implies an extra trace if an error is raised which can be
confusing.

This change avoids to try deleting a veth from a nonexistent namespace
in the fixture VethFixture.

Closes-Bug: #1506862
Change-Id: I5d0192998d2f3f8d1a6f783769ae9bfcb4bae7f2

8 years agoMerge "Improve performance of ensure_namespace"
Jenkins [Fri, 16 Oct 2015 02:26:57 +0000 (02:26 +0000)]
Merge "Improve performance of ensure_namespace"

8 years agoMerge "Lower the log level for the message about concurrent port delete"
Jenkins [Thu, 15 Oct 2015 23:20:31 +0000 (23:20 +0000)]
Merge "Lower the log level for the message about concurrent port delete"

8 years agoMerge "Python 3: add classifiers"
Jenkins [Thu, 15 Oct 2015 23:16:34 +0000 (23:16 +0000)]
Merge "Python 3: add classifiers"

8 years agoMerge "Updated from global requirements"
Jenkins [Thu, 15 Oct 2015 23:16:14 +0000 (23:16 +0000)]
Merge "Updated from global requirements"

8 years agoDo not accept abbreviated CIDRs
Sean M. Collins [Tue, 1 Sep 2015 08:43:30 +0000 (04:43 -0400)]
Do not accept abbreviated CIDRs

This is a special netaddr behavior that we wish to prevent.

http://lists.openstack.org/pipermail/openstack-dev/2015-August/072610.html

APIImpact

Change-Id: I94a059cee396e183bffd4a064709bb83504bf983
Closes-Bug: #1490885

8 years agoMerge "Spelling and grammar corrections"
Jenkins [Thu, 15 Oct 2015 22:20:44 +0000 (22:20 +0000)]
Merge "Spelling and grammar corrections"

8 years agoMerge "Cross link sub-project release processes"
Jenkins [Thu, 15 Oct 2015 22:20:30 +0000 (22:20 +0000)]
Merge "Cross link sub-project release processes"

8 years agoMerge "Update RFE documentation to clarify when the tag is not appropriate"
Jenkins [Thu, 15 Oct 2015 20:17:00 +0000 (20:17 +0000)]
Merge "Update RFE documentation to clarify when the tag is not appropriate"

8 years agoSpelling and grammar corrections
Kyle Mestery [Thu, 15 Oct 2015 18:05:50 +0000 (18:05 +0000)]
Spelling and grammar corrections

Change-Id: I38ba5a9145764357f0416b5c6f42e1204332ba5a
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoMerge "Revert "Make OVS interface name hashing algorithm common and extend it""
Jenkins [Thu, 15 Oct 2015 17:43:26 +0000 (17:43 +0000)]
Merge "Revert "Make OVS interface name hashing algorithm common and extend it""

8 years agoCross link sub-project release processes
Kyle Mestery [Thu, 15 Oct 2015 17:26:01 +0000 (17:26 +0000)]
Cross link sub-project release processes

Cross link the release processes for sub-projects across the devref
and bug policy documentation.

Change-Id: Ifa548fc61777e13a0131b681610babf212b42e27
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoMerge "The first word of the error message should be capitalized"
Jenkins [Thu, 15 Oct 2015 17:01:21 +0000 (17:01 +0000)]
Merge "The first word of the error message should be capitalized"

8 years agoLower the log level for the message about concurrent port delete
Ihar Hrachyshka [Thu, 15 Oct 2015 15:57:56 +0000 (17:57 +0200)]
Lower the log level for the message about concurrent port delete

There is nothing wrong or interesting in that log message that would be
useful during general cloud operation. It may be useful when debugging
an issue, so leaving the message, but with lowered log level.

Change-Id: I6c16a829665b602da84c0d694fcc5f8ad5ed546b

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 15 Oct 2015 15:42:20 +0000 (15:42 +0000)]
Updated from global requirements

Change-Id: Ib0b0138caca1214201fa52ed06ec5df4b7c7820d

8 years agoMerge "Merge tag '7.0.0'"
Jenkins [Thu, 15 Oct 2015 15:37:59 +0000 (15:37 +0000)]
Merge "Merge tag '7.0.0'"

8 years agoUpdate RFE documentation to clarify when the tag is not appropriate
John Davidge [Wed, 14 Oct 2015 14:09:45 +0000 (15:09 +0100)]
Update RFE documentation to clarify when the tag is not appropriate

Adds a passage to clarify that the 'rfe' tag is not to be used for work
that is already well-defined, to avoid code being submitted before proper
discussion can take place.

Change-Id: I20a1a87b263154e8b7726da08bfb615b272ba4c1

8 years agoCache the ARP entries in L3 Agent for DVR
Swaminathan Vasudevan [Mon, 28 Sep 2015 18:43:03 +0000 (11:43 -0700)]
Cache the ARP entries in L3 Agent for DVR

There seems to be a timing issue between the
ARP entries that arrive from the server to
the agent and the internal qr-device getting
created by the agent.
So those unsuccessful arp entries are dropped.

This patch makes sure that the early ARP entries
are cached in the agent and then utilized when
the internal device is up.

Closes-Bug: #1501086
Change-Id: I9ec5412f14808de73e8dd86e3d51593946d312a0

8 years agoRevert "Make OVS interface name hashing algorithm common and extend it"
Sean M. Collins [Mon, 12 Oct 2015 16:43:02 +0000 (12:43 -0400)]
Revert "Make OVS interface name hashing algorithm common and extend it"

Based on discussion with Ihar and Cedric, this may break upgrades. Let's
revert it for the time being and reassess.

This reverts commit 3d0db13370eee09aaee5923c54d0e3188509c4e5.

Change-Id: I69d74befb08e074c1bccd823cca0899de6ed57d6
Closes-Bug: 1504647

8 years agoMerge "Move retries out of ML2 plugin"
Jenkins [Thu, 15 Oct 2015 14:05:25 +0000 (14:05 +0000)]
Merge "Move retries out of ML2 plugin"

8 years agoMerge tag '7.0.0'
OpenStack Proposal Bot [Thu, 15 Oct 2015 12:44:04 +0000 (12:44 +0000)]
Merge tag '7.0.0'

This is a null-merge of the 7.0.0 release tag back into the master
branch so that the 7.0.0 tag will appear in the git commit history of
the master branch. It contains no actual changes to the master branch,
regardless of how our code review system's UI represents it. Please
ask in #openstack-infra if you have any questions, and otherwise try
to merge this as quickly as possible to avoid later conflicts on the
master branch.

Change-Id: I920a33126a5871447602e6f9872985d8c9a4707a

8 years agoPython 3: skip test_json_with_utf8 on Py3
Cyril Roelandt [Mon, 12 Oct 2015 14:07:54 +0000 (16:07 +0200)]
Python 3: skip test_json_with_utf8 on Py3

The last skipped unit test should indeed be skipped: it does not make
sense to run it with Python 3.

$ python 2
>>> import json; json.dumps({'a': u'\xe9'.encode('utf-8')})
'{"a": "\\u00e9"}'

$ python3
>>> import json; json.dumps({'a': u'\xe9'.encode('utf-8')})
Traceback (most recent call last):
  ...
  File "/usr/lib64/python3.4/json/encoder.py", line 173, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'\xc3\xa9' is not JSON serializable

In Python 2, the JSON encoder function to encode a string begins with
a magic test to convert UTF-8 encoded string to Unicode:

    if isinstance(s, str) and HAS_UTF8.search(s) is not None:
        s = s.decode('utf-8')

https://hg.python.org/cpython/file/4188cd5dc0c5/Lib/json/encoder.py#l42

This trick is gone in Python 3:

https://hg.python.org/cpython/file/288953a787ce/Lib/json/encoder.py#l49

Change-Id: Iddaaea4ebedf04c87f1ff9f9098163a15ffa78f7
Blueprint: neutron-python3
Closes-Bug: #1491824

8 years agotest_create_network_segment_allocation_fails: Assert the status
YAMAMOTO Takashi [Thu, 15 Oct 2015 05:11:19 +0000 (14:11 +0900)]
test_create_network_segment_allocation_fails: Assert the status

Related-Bug: #1505908
Change-Id: I17ee725a458f86ee59f7988b385e76b83ab9fd3e

8 years agoThe first word of the error message should be capitalized
Hong Hui Xiao [Thu, 15 Oct 2015 03:26:24 +0000 (23:26 -0400)]
The first word of the error message should be capitalized

The patch is straightforward, just spelling mistake.

Change-Id: I127a155800a11d09cd0b3d332cfeed7e6920a222
Closes-bug: #1506289

8 years agoMerge "Python 3: make post_test_hook work with more tox targets"
Jenkins [Thu, 15 Oct 2015 01:39:16 +0000 (01:39 +0000)]
Merge "Python 3: make post_test_hook work with more tox targets"

8 years agoMerge "Always send status update for processed floating ips"
Jenkins [Thu, 15 Oct 2015 01:20:47 +0000 (01:20 +0000)]
Merge "Always send status update for processed floating ips"

8 years agoMerge "Create ipset set_name_exists() method"
Jenkins [Thu, 15 Oct 2015 01:16:51 +0000 (01:16 +0000)]
Merge "Create ipset set_name_exists() method"

8 years agoMerge "L3 agent: use run_immediately parameter to sync after start"
Jenkins [Thu, 15 Oct 2015 00:12:36 +0000 (00:12 +0000)]
Merge "L3 agent: use run_immediately parameter to sync after start"

8 years agoMerge "Add ml2 extension drivers examples"
Jenkins [Thu, 15 Oct 2015 00:08:05 +0000 (00:08 +0000)]
Merge "Add ml2 extension drivers examples"

8 years agoMerge "Include external bridge deprecation warning in string"
Jenkins [Wed, 14 Oct 2015 23:23:41 +0000 (23:23 +0000)]
Merge "Include external bridge deprecation warning in string"

8 years agoMerge "Kill conntrackd state on HA routers FIP disassociation"
Jenkins [Wed, 14 Oct 2015 22:44:40 +0000 (22:44 +0000)]
Merge "Kill conntrackd state on HA routers FIP disassociation"

8 years agoMerge "DVR: notify specific agent when creating floating ip"
Jenkins [Wed, 14 Oct 2015 22:03:37 +0000 (22:03 +0000)]
Merge "DVR: notify specific agent when creating floating ip"

8 years agoMerge "Fix inconsistency in DHCPv6 hosts and options generation"
Jenkins [Wed, 14 Oct 2015 18:54:35 +0000 (18:54 +0000)]
Merge "Fix inconsistency in DHCPv6 hosts and options generation"

8 years agoMerge "Add -constraints sections for base CI jobs"
Jenkins [Wed, 14 Oct 2015 18:45:44 +0000 (18:45 +0000)]
Merge "Add -constraints sections for base CI jobs"