698 Commits

Author SHA1 Message Date
Kevin Benton
c46edbc7d6 Use db_api.retry_db_errors in quota engine
The quota engine was still using oslo_db wrap_db_retry
which does not automatically take into account deadlocks
that occur inside of nested savepoint transactions.

In one case it didn't matter because it passed in the correct
exception checker but in the one that protected 'set_quota_usage'
it did not use is_retriable so a deadlock inside of the savepoint
would have resulted in a much more expensive retry all of the way
up at the API layer.

This patch just adjusts them to both use the standard neutron
retry_db_errors decorator.

Change-Id: I1e45eb15f14bf35881e5b1dce77733e831e9c6b1
Related-Bug: #1596075
2016-07-18 22:48:19 -06:00
Jenkins
bcdbeeb278 Merge "Fixes a link error" 2016-07-19 00:08:12 +00:00
Julie Pichon
2e9da886b9 Fix broken URLs in bugs.rst (core-reviewers.html -> neutron-teams.html)
Change-Id: I6aee63b2ef5b7740c5e4a3a5d4ade9d0ebb79eac
2016-07-15 17:34:36 +01:00
Jenkins
95472a8969 Merge "Stable Branch URL Fixed" 2016-07-12 02:59:47 +00:00
Jenkins
213167552e Merge "Fixed Typo in contribute.rst" 2016-07-07 15:47:08 +00:00
Ann Kamyshnikova
860624153f Add information about contract creation exceptions in devref
Change Ia0f39697afddec7cd04f870746a4bdd8b9410a32 introduce
contract_creation_exceptions which should be implemented in
migrations that add something in contract branch. Put some
details of its usage in devref.

Change-Id: I1a0b3d384ee8a967ce7f697886630b688843cdaa
Related-bug: #1589328
2016-07-07 07:24:40 +00:00
Jenkins
4a98b31b6a Merge "Revert "Support unique labels for alembic branches"" 2016-07-06 19:36:42 +00:00
Anindita Das
88bd2be57a Fixed Typo in contribute.rst
Replaced '.' with ':'

Change-Id: I1c0b9233b4c06989e3fea9c4462c7f417d9ebfc1
2016-07-06 18:13:13 +00:00
Henry Gessau
e8ac4b402a Revert "Support unique labels for alembic branches"
A problem was found with the --expand (and --contract) options, see the bug report. I am reverting this patch so that I can redo it and have one single patch that can be back-ported.

Closes-Bug: #1599574

This reverts commit 88359e3fe91b7e8f430b48da30b6d4f1ddf17d62.

Change-Id: Iebca469c6fec32bac0480be6627ad5e9dedaad9d
2016-07-06 16:51:04 +00:00
fellypefca
8d3aa3f786 Fix broken link
Fix broken link of Core Reviews at the
Effective Neutron: 100 specific ways to improve your Neutron contributions

Change-Id: I929ddbcccd202b42fc48698fda14447f3c3d0e83
2016-07-05 19:51:45 +00:00
Petronio Carlos Bezerra
a057fe5a95 Fixes a link error
Fixes a broken link, changing to the correct page.

Change-Id: I1d043d0885824a6adf3d6011f0c04f7677700369
2016-07-05 13:14:23 +00:00
Jenkins
d112b65c5f Merge "Support unique labels for alembic branches" 2016-07-05 12:55:04 +00:00
Henry Gessau
92934ddb91 Update the template for model sync test docs
Update the docs to match the changes from
  https://review.openstack.org/332476

Related-bug: #1594898

Change-Id: Iefebbac213db043e27b5244b63df1e04ee9cdc4f
2016-07-02 20:30:12 -04:00
SauloAislan
4bdf575a07 Stable Branch URL Fixed
Change-Id: I294f67f1ded6f714ce5c45d0c6cd43e738fb61fb
2016-07-01 19:20:24 +00:00
Henry Gessau
88359e3fe9 Support unique labels for alembic branches
We plan to have all projects that integrate with Neutron use the same
alembic environment (Neutron's) instead of having a separate alembic
env.py in each repo. This means that each project will need to label
their contract and expand branches uniquely.

With this patch we add support for branch labels of the form
  'networking-foo-contract'
  'networking-foo-expand'

We also support the old labels ('contract' and 'expand') with the
intent of backporting this patch to Mitaka so that projects can be
backwards compatible when they update their alembic branch labels. A
best effort will be made to backport this patch to Liberty also.

Support has been removed for label names starting with a "liberty_"
prefix. Such labels temporarily existed during the Liberty cycle but
have now all been cleaned up.

Partial-Bug: #1497830

Change-Id: Ibf38b3125d5d404d57f3e8ef0c7ecfa56eaf8042
2016-07-01 12:05:38 -04:00
Tracy Jones
b853e77421 Fix spelling mistakes in the docs
Change-Id: Ic01cbc0634214d3ecef2033333cd263343a78941
2016-06-30 09:38:17 -07:00
Jenkins
dcb05881de Merge "Implementation details to support trunk ports" 2016-06-29 23:24:26 +00:00
Bernard Cafarelli
deee2d348f Fix some typos
Change-Id: I5317006ca91c76833f54fd23a5742b42780b3022
2016-06-28 22:46:19 +02:00
rossella
8817c7d14d Implementation details to support trunk ports
This patch explains in details the changes needed for the OVS
agent to support vlan aware vms using two different models:
vlan interfaces and trunk bridge.

Change-Id: I74e0748869d1a2f27db95aafadf7d104cb1a1b3d
Partially-implements: blueprint vlan-aware-vms
2016-06-27 15:52:40 +02:00
Jenkins
7245b172b0 Merge "How to support trunk ports with Open vSwitch Agent" 2016-06-21 13:46:24 +00:00
Jenkins
5decf84c63 Merge "Update Neutron documentation with project" 2016-06-18 03:07:28 +00:00
Jenkins
496f1f75e8 Merge "Move dragonflow to affiliated project list" 2016-06-16 21:23:35 +00:00
Jenkins
f35c4f72e8 Merge "Drop neutron/i18n.py in favor of neutron/_i18n.py" 2016-06-16 21:23:08 +00:00
Dariusz Smigiel
23c240724b Update Neutron documentation with project
Based on changes in Keystone we try to unify naming across the projects.

Change-Id: I9fb3a9aa32b9834cb7bd7ae651c75939a0f5f687
Partially-Implements: blueprint keystone-v3
2016-06-15 15:41:20 -05:00
Jenkins
4821196f94 Merge "Cleanup Liberty to Mitaka upgrade corner cases not necessary anymore" 2016-06-13 14:23:01 +00:00
Miguel Angel Ajo
884b73595c Cleanup Liberty to Mitaka upgrade corner cases not necessary anymore
This corner case was handled to consider the version of non reporting
agents which could have the qos extension enabled.

It's not necessary anymore and has been therefore removed.

The devref details have been updated to present tense, as they should be.

Change-Id: Ie40d3f34a46950f5124cf8ef7f486d90513271f4
2016-06-13 11:14:06 +02:00
Richard Theis
80f9e4f580 Update networking-ovn project functionality
The networking-ovn project no longer provides a monolithic
plugin. It has switched to an ML2 mechanism driver with a
Layer 3 service plugin.

Change-Id: I7c7a61180090867bc72c9c09190f6475810e63a9
Related-Bug: #1578198
2016-06-10 12:08:38 -05:00
Jenkins
b49648dc9a Merge "Refactor the rpc callback version discovery mechanism" 2016-06-09 12:40:20 +00:00
Miguel Angel Ajo
1d43dd217a Refactor the rpc callback version discovery mechanism
The previous version depended on the AgentDbMixin to be loaded by
any plugin, and also introduced an __init__ on the mixin which
was problematic: mixins are expected to be classes which add methods
to another class, but to implement no constructor. One of the plugins
had one of the elements of MRO not calling to super().__init__ and
hence not triggering this __init__ method.

This change requires the plugins using the rpc callback mechanism
to provide the AgentDbMixin which is used to refresh cache of known
resource consumers (agents) and versions on demand, this way
we make it more clear that the rpc_callback api is currently designed
to be used with agents only, despite of its extensibility to other
areas.

Change-Id: Ie96b52dbe3a1f32cd4c11de8d8a5eff663fbf7f6
Related-Bug: #1584204
2016-06-09 07:33:03 +00:00
Akihiro Motoki
19c5ec7646 Drop neutron/i18n.py in favor of neutron/_i18n.py
The hacking rule already ensures everyone uses neutron._i18n.
Now we can drop neutron.i18n.

Closes-Bug: #1520094
Change-Id: I1a415c23fd1db103742e8f3a92a3dd26c7252233
2016-06-08 13:10:13 +00:00
Jenkins
805e2391f6 Merge "devref: remove references to oslo incubator" 2016-06-07 16:52:28 +00:00
Jenkins
ad55f92ff2 Merge "Devref: Add inline codeblock to upgrade command" 2016-06-04 08:56:25 +00:00
Jenkins
718966b0a5 Merge "devref: Cleanup OVS vHost User Guide" 2016-06-03 17:57:35 +00:00
Sean M. Collins
49b96b4ec2 Devref: Add inline codeblock to upgrade command
Change-Id: I7498e80c2d28b97adc9d9801bcda7d8a49027ca2
Closes-Bug: #1588880
2016-06-03 11:39:58 -04:00
Ihar Hrachyshka
7ddfffb0fc devref: remove references to oslo incubator
With I108242ca9f27c9ec47959ce7615bc7d84cae014b, the last bit from
neutron.openstack.common was removed, and with it, all incubator code
that could be used by subprojects. It's time to remove the warning on
how to properly use incubator.

Also removed neutron/openstack directory that is now unused.

Change-Id: I0a0744fe68588bd5e3966b7c2457b56583231f42
2016-06-03 12:53:17 +02:00
Paul Carver
55d32ec40b Correct hyperlinks to sub_projects documentation
The file sub_projects.rst was moved from the devref directory to the stadium
directory. This change corrects a couple of broken links and a reference to
the rst in the old location.

Change-Id: I828ab4c3d5ff48e6ed915df2962f55335a70c672
2016-06-02 11:37:17 +00:00
Hirofumi Ichihara
82b3ccaffd Move dragonflow to affiliated project list
Dragonflow isn't Neutron Stadium project but OpenStack Big Tent project.
This patch fixes documentation.

TrivialFix

Change-Id: I3949461052438bb3821274ce3f5e76659ad57e84
2016-06-02 09:36:41 +09:00
Jenkins
cd4a80461e Merge "Refactor QoS plugin to avoid code duplication" 2016-05-26 17:45:23 +00:00
Margaret Frances
b3ca00f7a6 Refactor QoS plugin to avoid code duplication
This change refactors the rule-specific methods in qos_plugin.py
in order to facilitate implementation of additional QoS rule types.

Further, with the recent merge of
https://review.openstack.org/#/c/292488/, which prevents primary
keys in Neutron's oslo.versioned objects from being updated, the
QoS plugin needed additional refactoring. This change implements a
generic method in Neutron's base objects to handle object updates
without updating the primary key.  This method is then used in the
QoS plugin.

Co-Authored-By: Slawek Kaplonski <slawek@kaplonski.pl>

Change-Id: I863f063a0cfbb464cedd00bddc15dd853cbb6389
Partial-Bug: #1468353
2016-05-25 22:56:21 -04:00
Jenkins
e5b6fbdca1 Merge "add networking-fortinet in affiliated projects" 2016-05-25 19:31:21 +00:00
Jenkins
24f5772f71 Merge "Introduce official lib tag for neutron-lib issues" 2016-05-25 04:13:18 +00:00
Bence Romsics
3088e93097 How to support trunk ports with Open vSwitch Agent
This patch documents the various strategies that can be
considered to support the vlan-aware-vms API with the
OVS mech driver and respective agent.

A proposal is chosen based on the tradeoffs amongst design,
implementation, upgrade, and performance complexities, and
it has the aim of fostering brainstorming and discussion.

More patches will follow up on design internals for the
adopted implementation strategy.

Partially-implements: blueprint vlan-aware-vms

Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
Co-Authored-By: Rossella Sblendido <rsblendido@suse.com>

Change-Id: Ib4a176da2863b796283d6c1fff05f08edf40efb4
2016-05-24 12:11:35 -07:00
Armando Migliaccio
fe3f5f54c1 Introduce official lib tag for neutron-lib issues
This allows us to track more effectively efforts that affect
neutron-lib.

Change-Id: I714424d38f76299339d3b44a2440878c1bfe5be8
2016-05-24 12:08:41 -07:00
Haim Daniel
6083f24135 devref: remove l2 agent extensions steps literal
The interaction steps should be presented as a numbered list and not as
a literal block, which makes it look like bash comments.

Change-Id: Id00ae50255a3487830d1d77b6cb5862e186283ee
2016-05-23 11:00:12 +00:00
Jenkins
0eed94a777 Merge "Update for removing ofagent" 2016-05-18 07:01:51 +00:00
fumihiko kakuma
cece185573 Update for removing ofagent
Update document and configuration help.
A release-note for removing ofagent is added in the following.

I5dbcd38b0ccc156a6c1cbac4d7fa7f9d297ec466

Change-Id: I586c0d5a7f9d3b742e8c65ff7e2986fd5d837f94
Partial-Bug: #1521477
2016-05-18 10:06:29 +09:00
Jenkins
42a607f0db Merge "Add provisioning blocks to status ACTIVE transition" 2016-05-17 22:26:29 +00:00
Jenkins
3347da8b05 Merge "Remove openstack-common.conf" 2016-05-12 10:15:10 +00:00
Jenkins
d1efbaf400 Merge "Trivial Fixes for 'sub_project.rst' devref document" 2016-05-11 22:30:11 +00:00
Kevin Benton
b672c26cb4 Add provisioning blocks to status ACTIVE transition
Sometimes an object requires multiple disjoint actors to complete
a set of tasks before the status of the object should be transitioned
to ACTIVE. The main example of this is when a port is being created.
The L2 agent has to do its business to wire up the VIF, but at the same
time the DHCP agent has to setup the DHCP reservation. This led to
Nova booting the VM when the L2 agent was done even though the DHCP
agent may have been nowhere near ready.

This patch introduces a provisioning blocks mechansim that allows the
entities to be tracked that need to be involved to make a transition
to ACTIVE happen. See the devref in the dependent patch for a high-level
view of how this works.

The ML2 code is updated to use this new mechanism to prevent updating
the port status to ACTIVE without both the DHCP agent and L2 agent
reporting that the port is ready.

The DHCP RPC API required a version bump to allow the port ready
notification.

This also adds a devref doc for the provisioning_blocks
module with a high-level overview of how it works in addition
to a detailed description of how it is used specifically with
ML2, the L2 agents, and the DHCP agents.

Closes-Bug: #1453350
Change-Id: Id85ff6de1a14a550ab50baf4f79d3130af3680c8
2016-05-11 11:03:09 -07:00