306 Commits

Author SHA1 Message Date
Maciej Józefczyk
9267966628 [OVN] Sync requirements with OVN
This patch sync requirements from OVN requirements.

Change-Id: I988e506e9593e7c0856ef9e2955ec04b37f2ba3b
Related-Blueprint: neutron-ovn-merge
2019-11-27 12:23:56 +00:00
Brian Haley
6842465260 Stop testing python 2
Since it's no longer supported past Train, lets stop
running the tests.

Updated docs and made some pep8 code tweaks as well.

Change-Id: I1c171ab906a3b4c66558163ad26947ebf710a276
2019-10-25 18:50:08 +00:00
Riccardo Pittau
c6ff9c922e Use openstacksdk for ironic notifiers
This patch removes the dependency from ironicclient for the ironic
event notifiers in favor of openstacksdk.
Also, increasing minimum required versions for mock and
openstacksdk.

Change-Id: Ib76e19d29f0ae3db6d181578b638da699181f60d
2019-09-19 06:56:24 +00:00
Bence Romsics
2cb24490c0 bump neutron-lib to 1.29.1
Bump neutron-lib to 1.29.1 [1] in requirements and lower-constraints.

[1] https://review.opendev.org/680619

Change-Id: I95ed02087e7cd6cc757f9a1578a1e4590458a714
2019-09-11 07:24:19 +00:00
Bence Romsics
1c27dc05d7 bump neutron-lib to 1.29.0
Bump neutron-lib to 1.29.0 [1] in requirements and lower-constraints.

[1] https://review.opendev.org/677314

Change-Id: Ia243c7d64f99ca222ad3b9c583fe4a64b01beb43
2019-08-22 14:45:13 +02:00
Bence Romsics
45e59e3a18 Propagate profiler info into BatchNotifier threads
While working on improving the osprofiler report in neutron I'm finding
various places where the profiling can be extended by propagating the
profiler info further then before.

This change starts to profile BatchNotifier threads (e.g. various
callbacks to nova) when the code starting the thread was already
profiled (it's not at the moment, but that will be another change).

In this change we use osprofiler.profiler.clean(). Since that has became
part of the public interface of osprofiler in version 2.3.0, we bump
osprofiler version to 2.3.0 both in lower-constraints and requirements.

Change-Id: Ibd08e097b6f8457c50f8ba9e4a63b96e7e3182bc
Partial-Bug: #1833674
2019-07-09 13:28:33 +02:00
Boden R
4b8790ed20 bump neutron-lib to 1.28.0
Bump up neutron-lib to 1.28.0 [1] in requirements and lower-constraints.

[1] https://review.opendev.org/#/c/668928/

Change-Id: I57efc19d67826698cfafbf03d735c5e8978ca745
2019-07-04 10:48:57 -06:00
Boden R
0d943added bump neutron-lib to 1.27.0
Change-Id: I4e0f53e770211ae072bec5b8684649743479dd5b
2019-06-18 06:21:08 -06:00
LIU Yulong
975143fd08 Add a generic coordination lock mechanism
For various synchronized scenarios, this decorator
allows flexible lock name with parameters and names
of underlying functions.
For instance:
    @synchronized('{f_name}-{resource.id}-{snap[name]}')
    def foo(self, resource, snap):

Change-Id: I4bf75be2902cd598a5a5a2c5887d4b4262f3e042
Related-Bug: #1824911
2019-06-06 09:56:58 +08:00
翟小君
e71adfde06 Exclude broken ironicclient versions 2.7.1
Depends-On:https://review.opendev.org/#/c/659612/
Change-Id: I832fa869ec1eee4ab616d1f205a416cbc61f816a
2019-06-04 11:30:24 +08:00
Zuul
0e2508c8b1 Merge "Notify ironic on port status changes" 2019-06-01 02:07:46 +00:00
Harald Jensås
afff649a39 Notify ironic on port status changes
This patch adds an ironic notifier that sends notifications
to ironic endpoint /v1/events. The events are triggered by
port updates and deletions. Only ports with vnic_type
baremetal are honored.

Story: 1304673
Task: 22263
Closes-Bug: #1828367
Implements: blueprint event-notifier-ironic
Authored-By: Vasyl Saienko <vsaienko@mirantis.com>
Co-Authored-By: Harald Jensås <hjensas@redhat.com>
Co-Authored-By: Julia Kreger <juliaashleykreger@gmail.com>
Change-Id: I0bb3187a88a7f20adb8c60e24945db159afb83f1
2019-05-27 13:38:42 +02:00
Hamdy Khader
b4243ad3f7 Add Smart NIC representor port to integration bridge
In case of Smart NIC vNIC type neutron should mimic nova-compute
that plug the port to the ovs bridge.

Extend the Neutron OVS mechanism driver and Neutron OVS Agent to bind
the Neutron port for the baremetal host with Smart NIC. This will allow
the Neutron OVS Agent to configure the pipeline of the OVS running on
the Smart NIC and leverage the pipeline features such as: VXLAN,
Security Groups and ARP Responder.

Story: #2003346
Closes-Bug: #1785608
Change-Id: I6d520d3bac2e9ceb30b5b6197c6eb0f958cc3659
2019-05-23 10:54:36 +03:00
YAMAMOTO Takashi
4353d1b06c Revert "Bump Pyroute2 version to 0.5.5"
This reverts commit d2d57371dc7dd35b1f66eb6390d96dfc512eeca1.

Change-Id: Ic04adae9cd27ce18324d5a2b2ec1966b38eddc2b
Closes-Bug: #1829239
2019-05-15 13:52:59 +00:00
Rodolfo Alonso Hernandez
d2d57371dc Bump Pyroute2 version to 0.5.5
Pyroute2 is modifying the default logger, adding NullHandler to it. If
the logger is not properly configured, like in any service or agent
spawn in Neutron, the only handler will be NullHandler. This prevents
from rendering the message passed, as when StreamHandler is used.

This issue is present only in version 0.5.4 and 0.5.5. Current Pyroute2
master version implements a new logger which removes this problem.

[1]https://github.com/svinota/pyroute2/blob/0.5.5/pyroute2/__init__.py#L78-L79

Change-Id: Ic89d8503e9d1a7f622f0c3a148bf78766b92ed08
Related-Bug: #1811515
2019-05-10 11:24:18 +00:00
Boden R
130dad25b6 bump neutron-lib to 1.26.0
Bump up the required and lower constraint for neutron-lib to use the
latest release 1.26.0. Also see https://review.opendev.org/#/c/653887/

Change-Id: I55344c117793ddce91ad95401e1306d6605ee586
2019-04-29 09:44:54 -06:00
Doug Wiegley
1e9086f6e2
Use dynamic lazy mode for fetching security group rules
In conjunction with the prior fix to only get a subset of fields
when needed, this makes the querying of non-rules SG objects
very very fast.

Before the two fixes, if you have about ten security groups with 2000 rules each:

list all: 14s
list all, just 'id' field: 14s
list one: 0.6s
list one, just 'id' field: 0.6s

With just the previous partial fix:

list all: 14s
list all, just 'id' field: 6s
list one: 0.6s
list one, just 'id' field: 0.2s

Now with this change:

list all: 14s
list all, just 'id' field: 0.04s
list one: 0.6s
list one, just 'id' field: 0.03s

Closes-Bug: #1810563
Change-Id: I15df276ba7dbcb3763ab20b63b26cddf2d594954
2019-03-14 16:23:53 -06:00
Zuul
04ecd43e38 Merge "Bump neutron-lib requirement to 1.25.0" 2019-03-02 06:40:55 +00:00
Ben Nemec
1cf30c552d Add oslo.privsep to config-generator list
We recently exposed the privsep opts for config generator use, so
projects that depend on oslo.privsep should include them in their
sample configs.

Change-Id: Ibaef2e2848855cd8ef987ec58457220911ad7c69
2019-03-01 16:54:20 +00:00
Doug Wiegley
58f9c96877 Bump neutron-lib requirement to 1.25.0
Also requires bumping oslo.db, which was bumped by neutron-lib.

Change-Id: Ia9d99ea6b38268560e35d4db97cc541ed0a956ed
2019-02-28 20:37:48 -07:00
Rodolfo Alonso Hernandez
c6ae4fb8a2 Bump pbr version to 4.0.0
"tox-lower-constrains" tests are failing because of some old
dependencies in lowest "pbr" version (2.0.0). Those dependencies
were removed in [1]. pbr==4.0.0 contains this commit.

[1] 32c90ba598

Change-Id: I7551644ccf65fae19b34eee49151fdafacf29843
Closes-Bug: #1817541
2019-02-25 11:45:38 +00:00
Rodolfo Alonso Hernandez
5fff6e3b94 Bump pyroute2 version to 0.5.3
Bump pyroute2 version to 0.5.3 in order to retrieve the latest updates
and features.

A code refactor and reorganization was done between version 0.5.1 and
0.5.2. In order to enforce the new code structure, the version should
be bumped to the last stable one.

Change-Id: Ia75186570e7a320a3fbdf35bd01ec43dc071f6e8
Closes-Bug: #1814143
2019-02-15 18:28:33 +00:00
Bence Romsics
84b30849c1 bump neutron-lib to 1.24.0
This patch bumps the neutron-lib version to 1.24.0 in both the
requirements and lower-constraints.

Change-Id: I8fc7834780f2cf13914b50ac08eddbf3a392c9b2
Depends-On: https://review.openstack.org/636407
2019-02-13 15:37:04 +01:00
Ryan Tidwell
defdc64a9b
Bump neutron-lib to 1.23.0
Bumps neutron-lib version to 1.23.0 in requirements
and lower-constraints.

Change-Id: I869d650945b915b9272fcd805826e3c40266bcc2
2019-01-31 09:13:17 -06:00
Hamdy Khader
d519934c77 bump neutron-lib to 1.22.0
Bumps neutron-lib version to 1.22.0 in requirements
and lower-constraints.

Change-Id: I7d5b91f2ec5301848c85a430be2d20648dad0990
2019-01-24 14:27:56 +00:00
Brian Haley
b3416f5baf Cleanup pecan required version
Today the requirement for pecan has extraneous version specifiers
predating 1.3.2. This patch cleans up the pecan version specifiers
in requirements.txt.

Change-Id: Ic197b4149a299c545de5e7987b34cf8f1a2a289c
2019-01-09 18:56:16 +00:00
Boden R
b110264f5d cleanup SQLAlchemy required version
Today the requirement for SQLAlchemy has extraneous version specifiers
predating 1.2.0. This patch cleans up the SQLAlchemy version specifiers
in requirements.txt.

Change-Id: I9ddef79d91dba662fef58bc8ee8c0face9f0fab2
2018-12-31 14:24:53 -07:00
Hongbin Lu
7a2b4dcff1 Replace ryu with os_ken
Implements: blueprint ryu-framework-maintenace-transition
Change-Id: Ic721efc7cd0066be0ea7b6239b273e656643e9c1
2018-12-13 10:00:17 +00:00
Boden R
fb506298b8 bump neutron-lib to 1.21.0
This patch bumps the neutron-lib version to 1.21.0 in both the
requirements and lower-constraints.

Change-Id: I4489d98e7fa1ad1504132bd0a049903737b34547
2018-12-05 07:08:22 -07:00
Zuul
348509b3ca Merge "Update lower-constraints to meet neutron-lib" 2018-11-11 12:19:07 +00:00
Hongbin Lu
cf0b461836 Bump neutron-lib to version 1.20.0
Depends-On: https://review.openstack.org/#/c/615894/
Change-Id: I6625c5099828ee6e5df1f07f0cc8179f3ebabdb1
2018-11-06 23:27:25 +00:00
Slawek Kaplonski
a000fb0855 Update lower-constraints to meet neutron-lib
This patch updates minimal required versions of

oslo.concurrency
oslo.config

to be same as in neutron-lib.

Change-Id: I2a2f68731445634b2599f27b3146c1bff31cb0c9
2018-11-05 22:52:17 +01:00
Slawek Kaplonski
152364dbc8 Add neutron-status upgrade check command framework
This adds basic framework for neutron-status upgrade check commands.

For now it has only "check_nothing" check implemented.
Real checks can be added to this tool in the future.

Depends-On: https://review.openstack.org/#/c/610061/

Change-Id: Ib08119e1bb8de80856edb6a39769d4bc9d98c587
Story: 2003657
Task: 26144
2018-10-25 12:11:27 +02:00
Zuul
22e8228dd4 Merge "Fix best_match() deprecation warning" 2018-10-04 23:33:23 +00:00
Brian Haley
bc4f93c232 Fix best_match() deprecation warning
wsgi call to best_match() generates the following warning:

DeprecationWarning: The behavior of AcceptValidHeader.best_match
is currently being maintained for backward compatibility, but it
will be deprecated in the future, as it does not conform to the RFC.

Change to use acceptable_offers() as was done in nova code.

Simlar changes in the wsgi best language code as well, except
new call is to lookup().

Required bump to get WebOb 1.8.2.

Trivialfix

Change-Id: I45a222c098658eef6a49adcc168b0f5625ea49db
2018-10-03 19:30:40 +00:00
Bence Romsics
3d5bed139c bump neutron-lib version to 1.19.0
This patch bumps the requirements and lower constraints to pick up
neutron-lib 1.19.0 so we can consume it.

Change-Id: Ib0e3d19c18e6688f274c0573331a4595f7dbdaf0
2018-10-03 12:01:56 +00:00
Slawek Kaplonski
40ba4ebe6a Bump pecan version to 1.3.2
In version 1.3.2 there is fix for issue which caused
failure of start neutron-server process.
Same issue was also reported in [1]

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1597622

Change-Id: Iafe10b13ee729d781a79fcfa328521acfecdaec1
Closes-Bug: #1794259
2018-09-25 11:58:13 +02:00
James Page
7e0dd2f18d metadata: use requests for comms with nova api
httplib2 makes use of the ssl module provided by Python; under Python 2,
the ssl module does not support IP addresses as subject alternate names
(SAN's) which although an optional part of the associated RFC, is awkward
to work with in environments where certificate management approaches
rely on use of IP addresses in SAN's.

The requests module is more than happy to deal with this scenario; switch
to requests in preference of httplib2 for metadata proxy calls.

httplib2 is retained as its used elsewhere in the codebase.

Change-Id: Ife4adf09ddbf7116da2f8596c80aed53fb6790df
2018-08-22 10:16:30 +01:00
Boden R
02e9f270e9 bump neutron-lib requirements to 1.18.0
This patch updates the requirements.txt and lower-constraints.txt to
use neutron-lib 1.18.0 that will be our Rocky GM candidate (assuming no
problems crop up).

Change-Id: I4ed5de9238800c59a8c505e8d94ee508fe193882
2018-07-19 06:29:48 -06:00
Manjeet Singh Bhatia
216b7f569e Bump neutron-lib version to 1.17.0
Since neutron-lib 1.17.0 has been released and available as pypyi
[1]. There are some features in neutron which may need newer-lib.

[1]. https://pypi.org/project/neutron-lib/

Change-Id: I5c28c7d2560c4caf5cf35633eaaaf99f9455f96f
2018-07-02 15:46:25 +00:00
Boden R
bc38ad6df9 bump neutron-lib version to 1.14.0
This patch bumps the requirements and lower constraints to pick up
neutron-lib 1.14.0 so we can consume it.

Change-Id: Ie8fa868f7ccb58b2d646be0778d40faa62b201d2
2018-05-04 06:48:36 -06:00
Brian Haley
9c1a5d5c4a Change minimum pecan version to 1.1.1
pecan 1.1.1 was release on June 3, 2016, so it should be
safe to move forward to it.  Should clean-up a lot of
these warnings:

DeprecationWarning: inspect.getargspec() is deprecated,
use inspect.signature() instead

Change-Id: I948cbc537123b6a0bcc781d1d7b5ac09895c3851
2018-05-01 21:01:46 +00:00
Ihar Hrachyshka
f69389004a Revert "Revert "Automatically expire obsolete relationships""
This reverts commit a75014792aeda0851510531919d040090e1aec15.

This is the second attempt to merge the patch after the previous one resulted
in revert due to multiple gate breakages in dependent projects (neutron-lbaas,
vmware-nsx, heat, networking-odl). This second attempt is validated with a set
of depends-on patches for all projects that were affected during the first
failed attempt.

The original commit message for the patch is included below for context.

===

Listen for foreign key changes and expire related relationships.

With this, we can remove OVO code that refreshes / detaches models on
each fetch. The patch also removes a bunch of expunge calls in plugin
code.

writer.using context manager is added to _get_subnets so that segment
plugin's _notify_subnet_updated handler that calls to _get_subnets
doesn't use the facade-less context.session that in specific cases may
cache old models from previous sessions when used in mixed
facade/facade-less environment.

This patch bumps SQLAlchemy minimal requirement to >= 1.2.0 because
pending_to_persistent event didn't exist before this version. It could be >=
1.1.0 if not for the fact that all 1.1.x releases have a bug that results in
breakage of test_update_with_none_and_own_mac_for_duplicate_ip due to obscure
import ordering issue in the library.

(The issue is fixed by https://github.com/zzzeek/sqlalchemy/commit/
63ff0140705207198545e3a0d7868a5ba8486e93)

Partially-Implements: blueprint enginefacade-switch
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db

Co-Authored-By: Michael Bayer <mike_mp@zzzcomputing.com>
Depends-On: If4b28110f460f6ac77ace1bbb02967ea986d4cab
Depends-On: I9f1e76cb24838533572b5fbe269ff96a24ce4af1
Change-Id: I0d65d19204da8ce30addfa5faff68544534b7853
2018-04-26 22:04:07 +00:00
Rabi Mishra
a75014792a Revert "Automatically expire obsolete relationships"
This reverts commit 90ede813b06eb46472824a7090354c31cf43791f.

Closes-Bug: #1766267
Change-Id: Ia491a2a404bcbd9e108d20b2d9393aff1bb48c8e
2018-04-23 14:30:32 +00:00
Ihar Hrachyshka
90ede813b0 Automatically expire obsolete relationships
Listen for foreign key changes and expire related relationships.

With this, we can remove OVO code that refreshes / detaches models on
each fetch. The patch also removes a bunch of expunge calls in plugin
code.

writer.using context manager is added to _get_subnets so that segment
plugin's _notify_subnet_updated handler that calls to _get_subnets
doesn't use the facade-less context.session that in specific cases may
cache old models from previous sessions when used in mixed
facade/facade-less environment.

This patch bumps SQLAlchemy minimal requirement to >= 1.2.0 because
pending_to_persistent event didn't exist before this version. It could be >=
1.1.0 if not for the fact that all 1.1.x releases have a bug that results in
breakage of test_update_with_none_and_own_mac_for_duplicate_ip due to obscure
import ordering issue in the library.

(The issue is fixed by https://github.com/zzzeek/sqlalchemy/commit/
63ff0140705207198545e3a0d7868a5ba8486e93)

Partially-Implements: blueprint enginefacade-switch
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db

Co-Authored-By: Michael Bayer <mike_mp@zzzcomputing.com>
Change-Id: I18c6794f99d2847c208dfd6e9eb187d53b657a05
2018-04-20 15:33:59 -05:00
Sławek Kapłoński
fb75ce0319 Update RYU to be 4.24 to sort out issues with pip 10
This version of RYU doesn't import from pip which causes
problems with pip 10.

Change-Id: I3edc85ebbb1c23f970a44393a6439403fdc38bcf
2018-04-16 15:49:46 +00:00
Doug Hellmann
787cab55ce uncap eventlet
We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Change-Id: I6faaf54f43345979245545acff9051c6f1465a58
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-11 11:52:26 -04:00
OpenStack Proposal Bot
6c50a12c3c Updated from global requirements
Change-Id: I5a68d0b181e59ecd5d8c0d1876fc962027922152
2018-03-10 13:27:26 +00:00
OpenStack Proposal Bot
6c2f3ede36 Updated from global requirements
Change-Id: I2dbdd2904b682d33872e2e1ec051bdf9bbd4ed8d
2018-02-17 09:48:10 +00:00
OpenStack Proposal Bot
b8b043ada5 Updated from global requirements
Change-Id: I40151d3a87f40249b4393937631531bcec6d14eb
2018-02-01 07:17:59 +00:00