696 Commits

Author SHA1 Message Date
Henry Gessau
7b277a1ba0 Remove last vestiges of oslo-incubator
This is a community goal for Ocata.  We're already not using any of
the code, but there are some other files and references left over.

Partial-Bug: #1639103

Change-Id: I2afd263ddc480e2512e3be77a03ffe5ae16e17a5
2016-11-04 20:49:13 -04:00
Armando Migliaccio
be3aa891ae Update Lieutenant table with new entries
Change-Id: I1bf248173675e80d582a3104b61019d4d25e1036
2016-11-01 13:02:17 -07:00
Henry Gessau
8f80a52b01 Refactor/prepare db common utils for neutron-lib
Extract all the common utils from common_db_mixin.py in preparation
for moving them to neutron-lib.

This is a preliminary step in preparation for refactoring the
CommonDbMixin class and moving it to neutron-lib also.

Partial Blueprint: neutron-lib

Change-Id: I3cba375a8162cb68e8f988f22f5c8b1ce7915180
2016-10-28 10:53:11 -04:00
Jenkins
81f1650bb7 Merge "Cleanup of SecurityGroup classes" 2016-10-21 04:18:22 +00:00
Dariusz Smigiel
9733825896 Cleanup of SecurityGroup classes
Commit Ifb70a118cef48c3c4cd313e22e907aa47bc51ad0 intended to remove some
classes, but without DeprecationWarnings. To prevent from possible
problems, if it would be now removed, added Warnings and included info,
about future removal.

Change-Id: Iacb93abc363bf638efc3acb5b29c02a7508bc43a
Related-Bug: #1444112
2016-10-13 15:38:38 +00:00
Neil Jerram
20a290ddb9 Devref: fix repeated 'testing documentation' text
Change-Id: I199a78fecad99d22b6a71d116acb8901543c5152
2016-10-12 17:18:09 +01:00
Jakub Libosvar
d41ebf8633 Make Jakub Libosvar contact for ovs-fw tag
The tag was already created on launchpad by Assaf.

Change-Id: I505a7783f4fa2090526383310aa8529b23c49ac3
2016-10-05 16:34:56 +02:00
Ihar Hrachyshka
3daffd2e62 Darek (@dasm) is our new release liaison for Ocata
https://wiki.openstack.org/wiki/CrossProjectLiaisons#Release_management

Change-Id: I55b44ff090989fe7f43b9ae43e8b8819caeb2e48
2016-09-25 21:41:27 +00:00
Ihar Hrachyshka
3ace0e5fa0 Make HenryG the Magnificent responsible for 'oslo' LP tag
https://wiki.openstack.org/wiki/CrossProjectLiaisons#Oslo

Change-Id: I9483a2e34cb726462f5ffe129887e828090394a8
2016-09-25 14:22:13 +00:00
Jenkins
dd0a296c5a Merge "stadium: remove neutron-release from release job for stadium projects" 2016-09-20 14:57:47 +00:00
Jenkins
c9dcab6119 Merge "devref: cleaning up release guidelines for stadium subprojects" 2016-09-20 14:55:18 +00:00
Jenkins
c2f279ab62 Merge "Add fullstack test with OVS arp_responder" 2016-09-19 07:56:36 +00:00
Miguel Lavalle
0541402ef6 Fix devref typo
Fix a typo in API Extensions devref

TrivialFix

Change-Id: I25ebc98c6dee9ecc23079e461690ad8d43cc652b
2016-09-16 15:44:30 -05:00
Jenkins
4c4a55ce6b Merge "Add common way to extend standard attribute models" 2016-09-16 16:35:06 +00:00
Assaf Muller
033903aec0 Add fullstack test with OVS arp_responder
Now that fullstack uses a modern OVS we may finally have
an OVS ARP responder test. The code will now have implicit
coverage. It previously was not run in any functional or
integration test.

Change-Id: I3db3185a08b7cc546dee9e711f5bda9143752f86
Related-Bug: #1623849
2016-09-15 18:08:06 -04:00
Kevin Benton
465d22180e Add common way to extend standard attribute models
This adds a way for standard attribute models to declare
the API resources they show up in. It then adds a utility
function to the standard_attr module to grab a map of all
API resources and their corresponding models.

This can be used by any processing code that wants to add
fields to standard attribute resources.

This also adjusts the existing extensions to leverage this
new functionality.

Partially-Implements: blueprint add-neutron-extension-resource-timestamp
Change-Id: Idc8923d0e983fcb0690f8cb5b55a5aff8690154f
2016-09-15 01:42:24 +00:00
Armando Migliaccio
e1b2ac1e9e Add release note for blueprint vlan-aware-vms
Now that the bulk of the code is in place, and we are about
to see the finish line, it is time to prepare the release
notes for this feature.

This patch refines docstrings that recently went in and
makes sure the code is in sync with the agent's devref.

Implements: blueprint vlan-aware-vms

Change-Id: Idb9379046aeb07354a170a361da777140a2a028e
2016-09-09 13:30:22 -07:00
Ihar Hrachyshka
053448dadd stadium: remove neutron-release from release job for stadium projects
Now that release folks automated release process for independent
projects, we should be safe to offload the whole release management
process to openstack/releases machinery. Actually, leaving it up to
neutron-release team is error prone (f.e. we made mistakes before with
missing information in pushed git tags that held off email
announcements).

The idea of the change comes from Doug Hellmann. Quoting:

(in reference to no announcement email for networking-sfc 2.0.0)
> the email was skipped because you tagged the release by hand and the
> script didn't have the metadata it needed [...]
> this is why I want you to let us tag the releases.

Change-Id: Idc7f85fa860b3699d457ba00e800208acecb15de
2016-09-09 14:59:23 +00:00
Ihar Hrachyshka
65757a38ec devref: cleaning up release guidelines for stadium subprojects
Removed guideline on how to pack release tarballs because all releases
are now automated and do the right job.

Changed the example link to PyPI to a /simple/ one that lists all
releases, not just the latest.

Removed the step that requires sending an announcement email because it
should be automated by openstack/releases repo.

Change-Id: I0d57cecd88ef2da19034fe433fc41c1e861aee3f
2016-09-08 23:47:11 +00:00
Kevin Benton
09c87425fa Prepare retry decorator to move to plugin level
Retrying mutating operations at the API layer caused a
couple of problems. First, when components would call
the core plugin using the neutron manager, they would
have to handle the retriable failures on their own or
undo any work they had done so far and allow retriable
failures to be propagated up to the API. Second, retrying
at the API makes composite operations (e.g. auto allocate,
add_router_interface, etc) painful because they have to
consider if exceptions are retriable before raising
fatal exceptions on failures of core plugin calls.

This patch begins the process of moving them down to the
core operations with a new decorator called
'retry_if_session_inactive', which ensures that the
retry logic isn't triggered if there is an ongoing transaction
since retrying inside of a transaction is normally ineffective.
Follow-up patches apply them to various parts of the code-base.

Additionally, the args and kwargs of the method are automatically
deep copied in retries to ensure that any mangling the methods
do to their arguments don't impact their retriability.

Finally, since we are leaving the API decorators in place for now,
the retry logic will not be triggered by another decorator if an
exception has already been retried. This prevents an exponential
explosion of retries on nested retry decorators.

The ultimate goal will be to get rid of the API decorators entirely
so retries are up to each individual plugin.

Partial-Bug: #1596075
Partial-Bug: #1612798
Change-Id: I7b8a4a105aabfa1b5f5dd7a638099007b0933e66
2016-09-08 14:07:08 -07:00
Nate Johnston
b0cb041ee9 Update L3 agent extensions devref
The L3 agent extensions devref was not properly included into the
documentation tree, so it would not appear in the online devref.  Also,
there were a few updates to the agent extensions documentation to
properly show the updated file names.

Change-Id: I5f55f68d2c251dfa993668024ee312085b605a8a
2016-09-06 21:11:17 +00:00
Jenkins
3938655af9 Merge "Add L3 agent extension API object" 2016-08-31 20:17:50 +00:00
Nate Johnston
23f7da3021 Add L3 agent extension API object
In L2 agent extensions, when the agent extension needed access to a
datastructure within the L2 agent, an agent extension API object was created.
This API object would be the interface permitting agent extensions to have
access to those objects internal to the L2 agent.

This change implements a similar agent extension API object for the L3 agent
extensions.  This is necessary to allow L3 agent extensions to have access to
the RouterInfo class, so that they can do lookups on it, for example
determining the namespace for a specific router.  Without this API object, the
L3 agent extension would not have access to this structure.

Co-Authored-By: Margaret Frances <margaret_frances@cable.comcast.com>

Partially-Implements: blueprint l3-agent-extensions

Change-Id: I85f89accbeefd820130335674fd56cb54f1449de
2016-08-31 11:15:51 -04:00
Jenkins
4ef8ea66a5 Merge "Add QoS minimum bandwidth rule for instance egress traffic" 2016-08-31 08:27:06 +00:00
Jenkins
b1803737ea Merge "Include db_models document to avoid errors" 2016-08-29 20:43:03 +00:00
Kevin Benton
bdd7298284 Move standard attr out of model_base
The model_base file is going to move to Neutron lib in
I2087c6f5f66154cdaa4d8fa3d86f5e493f1d24d9. This will mainly leave
behind only the standard attributes related stuff so the name
'model_base' won't make much sense. This moves the standard attribute
related things into its own module so model_base can conceivably be
eliminated entirely.

Change-Id: Icaf3220fbc5723f2b5421a494371ef274d7073c7
2016-08-27 17:46:38 -04:00
Rodolfo Alonso Hernandez
60325f4ae9 Add QoS minimum bandwidth rule for instance egress traffic
This patch introduces the front end implementation for QoS
minimum bandwidth rule.

APIImpact: New type of parameter for QoS rule in neutron API
DocImpact

Change-Id: I6b619a96a2bfde164646c71409b671352bc6ce7d
Partial-Bug: #1560963
2016-08-27 17:08:18 +00:00
Jenkins
fa811176e4 Merge "Revisit the Stadium section of the developer guide" 2016-08-26 22:10:53 +00:00
Jenkins
fc47046cd7 Merge "docs: Small Open vSwitch devref tweaks" 2016-08-26 01:01:25 +00:00
Jenkins
4eff72619f Merge "Added the appropriate links in developer guide" 2016-08-25 18:24:11 +00:00
Armando Migliaccio
21235f02c1 Revisit the Stadium section of the developer guide
This patch updates this section to reflect what was agreed on
and sealed in [1]. More iterations will happen as we learn
how effectively the process works.

[1] I689d765fe88ed244e2f6116d0a7d7e4b4f03d08b

Change-Id: I82c35a474a2eccdecafa446b825daa2b8992180f
2016-08-23 10:58:17 -07:00
venkatamahesh
d390f1c850 Added the appropriate links in developer guide
Change-Id: I68463032125bc6011979a4342045bd5ea5f3cab7
Closes-Bug: #1616065
2016-08-23 18:27:12 +05:30
Jenkins
a6628ed61b Merge "Update "devref/quality_of_service" with QoS DSCP rule reference." 2016-08-23 06:59:31 +00:00
Jakub Libosvar
8ef52f5788 docs: Small Open vSwitch devref tweaks
- renames OpenVSwitch to Open vSwitch
 - fixes formating of ovs-vsctl commands
 - adds vlan tags to vlan aware vms plugging schemas

TrivialFix

Change-Id: I04b5ea13c708705a96e8ea7665b493ee152c7bbb
2016-08-19 16:56:52 +01:00
Rodolfo Alonso Hernandez
484e44d4c6 Update "devref/quality_of_service" with QoS DSCP rule reference.
Change-Id: Ib9e75bdee91b87770be5b6dd4c87d0ee6d767160
Closes-Bug: 1613699
2016-08-17 09:37:43 +01:00
Jenkins
793e572617 Merge "devref doc config option separation" 2016-08-16 21:54:07 +00:00
Victor Morales
f1edd59b1f Include db_models document to avoid errors
The db_models.rst file was not referenced by any other document. This
was generating warnings during the creation of documentation.

Change-Id: I432aabb3c22b12faa29ca88e13392e6c2d0e33d8
Closes-Bug: #1611546
2016-08-10 09:10:15 -05:00
Jenkins
a45e0bde37 Merge "Add devref for Relocating DB models" 2016-08-09 21:00:41 +00:00
Jenkins
9c0b636389 Merge "Ensure most of ML2's core methods not in transaction" 2016-08-09 14:46:23 +00:00
Manjeet Singh Bhatia
34ec3536b2 Add devref for Relocating DB models
This patch will add devref for relocating db models and
it also explains why that change is required. It will also
add a directory named models under tree neutron/db/.

Change-Id: I160cecb76fb736307e5937122c84cdc0546207b6
Related-Bug: #1597913
2016-08-09 15:55:18 +02:00
Kevin Benton
e770c868f8 Ensure most of ML2's core methods not in transaction
This adds a check to each of the core methods that other callers
(e.g. service plugins) may use to manipulate core resources. This
check prevents them from passing in a context that is already part
of an ongoing DB session because we do not want DB rollbacks to be
allowed after the ML2 plugin calls postcommit methods on drivers.

All of the core methods are protected except for create_port and
update_port. This was left out because of a few particularily deeply
nested calls to the port methods from the L3 code that will be
addressed in change I5aa099c2264636336ab0b76c0826b506e2dc44b6.

For more details, read the devref added by this patch.

Partial-Bug: #1540844
Change-Id: I9924600c57648f7eccaa5abb6979419d9547a2ff
2016-08-04 16:02:46 +00:00
Armando Migliaccio
de0b16f79d Fix link reference in OVS agent devref
This was not rendering correcly in [1].

http://docs.openstack.org/developer/neutron/devref/openvswitch_agent.html

Change-Id: Ica177bbdb3b673bf4bc2a831ecab639bd2fc8a0f
2016-08-02 10:47:36 -07:00
Jenkins
17d85e4748 Merge "Introduce bulk push to rpc callback mechanism" 2016-08-02 03:56:09 +00:00
Jenkins
2b1c143ca9 Merge "stadium: adopt openstack/releases in subproject release process" 2016-08-02 00:22:01 +00:00
Miguel Angel Ajo
7f617e6a21 Introduce bulk push to rpc callback mechanism
There are usage patterns which would benefit from having
the capability to send a list of resources in bulk instead
of using individual fanout messages.

From now on, the rpc callback subscriber receives a list of
resources (single or multiple), and the pushers must always
push a list.

Backwards compatibility for QoSPolicy consumers in mitaka
is provided by calling push with "resource" parameter for
single item lists during one release cycle. That will be
dropped when Ocata opens.

Partially-implements: blueprint vlan-aware-vms

Change-Id: I1117925360a29ecbd1902fa527b2f24f94ce81ec
2016-08-01 14:22:56 -07:00
Jenkins
3483ada46d Merge "bug tag: Add 'api-ref' for API reference" 2016-08-01 21:13:24 +00:00
Ihar Hrachyshka
4ff721590e stadium: adopt openstack/releases in subproject release process
The openstack/releases repository is open for all official deliverables
(including stable releases for previous cycles), not just
release-with-milestone ones, and we are expected to update the repo in
addition to pushing signed git tags.

http://lists.openstack.org/pipermail/openstack-dev/2016-May/095225.html

With that, streamlined the release request process to avoid Launchpad
from the release scheme: new release requests are tracked and managed in
gerrit only. A new request now starts with a patch for
openstack/releases that should be handled by neutron-release team
members and approved by release liaison before merged by global
OpenStack release team.

Branch creation/expiration is still funneled through LP.

While at it, also suggest switching version numbering to SemVer at
earliest convenience.

Change-Id: Ifcae4b596bc27f7fc8a315e3807144ea03fbb83c
2016-08-01 22:30:17 +02:00
Jenkins
7bce210f78 Merge "Remove 'released-neutronclient' tag from official bug tags" 2016-07-30 07:13:46 +00:00
Jenkins
38d33363e3 Merge "Update testing coverage document" 2016-07-29 05:29:54 +00:00
Akihiro Motoki
c76ee031b1 bug tag: Add 'api-ref' for API reference
We start to maintain the networking API reference in our repo
(neutron-lib), so we need a way to tag bugs related to API ref.

Change-Id: Iea53cc9675d79de1a812782b191e66468dd3c4cb
2016-07-28 14:33:30 +09:00