Commit Graph

2661 Commits

Author SHA1 Message Date
Ghanshyam Mann 1c1009af2b Moving IRC network reference to OFTC
Change-Id: Ia208ee2433c94a1b111f9d8f67105da7b4746dea
2021-07-08 18:55:13 -05:00
Adam Harwell f8d023fbfe Retiring neutron-lbaas
Depends-On: https://review.opendev.org/#/c/658493/
Change-Id: Ia4f4b335295c0e6add79fe0db5dd31b4327fdb54
2019-05-11 03:18:03 -07:00
OpenDev Sysadmins a486af8f70 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:45:20 +00:00
Zuul dd1c96c5c0 Merge "Remove the references to oslosphinx" 2019-04-15 20:28:17 +00:00
Ian Wienand 9a4f47625c Merge "Replace openstack.org git:// URLs with https://" 2019-04-10 00:45:44 +00:00
Michael Johnson da74ad0428 Remove the references to oslosphinx
oslosphinx is deprecated, fails with sphinx 2, and is going away.
This updates neutron-lbaas to use a basic openstackdocstheme.

Change-Id: Iffc66fecd1b94a2cd94ec7da27bb273784644c0b
2019-04-01 11:56:44 -07:00
Zuul 1912abd444 Merge "Feature correction: L7Policy/Rule for A10Networks" 2019-03-25 05:39:14 +00:00
Zuul f10ee8e9cf Merge "neutron-lbaas haproxy agent prevent vif unplug when failover occurs" 2019-03-25 05:39:12 +00:00
Ian Wienand a8b49d92e5 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I8696556400725f54111378820531eb9cfc64d03c
2019-03-24 20:34:39 +00:00
OpenStack Release Bot a2315e3ae1 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I3924910340e72099426968fd6e25e2d592830cda
Sem-Ver: feature
2019-03-22 01:24:34 +00:00
Michael Johnson a4c4944d56 Update neutron-lbaas for gate changes
The gates are now testing with python3 and we needed to update some
requirements.

Change-Id: I6e48becf2f1267e7059baeb12b5f0a137205fcff
2019-03-21 13:41:45 -07:00
Swaminathan Vasudevan 72399374b2 neutron-lbaas haproxy agent prevent vif unplug when failover occurs
When lbaas fails over after an agent is unresponsive, the dead
agent on coming up should not unplug the vif port, if the lbaas
is active on other agent and when failover is configured.

This patch fixes the problem.

Story: #2003672
Change-Id: I76c38b20eb72c1dba0a0a2a140bbe77053aa3ed0
2019-03-20 20:46:50 +00:00
omkartelee01 6fa73b9197 Feature correction: L7Policy/Rule for A10Networks
Adding correction required for A10Networks driver.
Added class L7PolicyManager and L7RuleManager in
previous commit but initialization was missing.
Added 2 lines to initialize the code properly.
These changes are specific to A10Networks driver
only.

Change-Id: I02dc7d5f194c374f88ffbb9c7cfe868633aa7f0b
2019-03-20 20:46:35 +00:00
Zuul 2552fb1e5d Merge "Update neutron quota_driver path" 2019-03-01 07:05:36 +00:00
Zuul 5617616416 Merge "Revert "Updated "create_pool" method in plugin"" 2019-02-28 22:46:29 +00:00
Brian Haley 2676ae227a Update neutron quota_driver path
It is now at neutron.db.quota.driver.DbQuotaDriver

Change-Id: I10154fffc141b72e0fd10923e57b0410dc58bf49
2019-02-27 16:12:50 -05:00
Zuul 0c8a451a9d Merge "stop using common db mixin" 2019-02-25 11:28:39 +00:00
Michael Johnson bd0b903292 Fix the neutron-lbaas-to-octavia-migration job
It appears we missed the placement project in the required-projects
block for this periodic job. This patch corrects that.

A patch[1] changed the behavior for the VIP port security group migration.
This patch updates the test job to reflect that change.

[1] https://review.openstack.org/#/c/592471/

Change-Id: I6a097822f60e41c5265a2eb8bc53509fa46400e5
2019-02-14 16:16:49 -08:00
Boden R c800a90f2f stop using common db mixin
All of the methods of common db mixin are available via neutron-lib
and the mixin will be removed before long.
This patch switches the code over to use neutron-lib's APIs rather
than those of the mixin and stops using common_db_mix for parent
classes.

Change-Id: I767b88d3a70d744e4170325a9f2c2dc36163756b
2019-02-11 07:56:13 -07:00
Erik Olof Gunnar Andersson 0295eccea6 Improve performance on get and create/update/delete requests
This change follows up on the previous performance improvements
and does the same for crud requests.
I9d67f0966561baaefb50ae97b943ff6593e194eb
I32328c5206b9cd6fb8d8764c079f22b6ea8bfa9e

We remove from_sqlalchemy_model and the related object intermediary
representation from the get_loabalancer, get_pool, get_listener,
get_healthmonitor, get_l7policy, get_l7policy_rule,
get_pool_member.

Instead it more directly transforms from the SQLAlchemy model to the
required api dictionary format. Thus this entirely skips loading a few
relations that walking the intermediary object model triggered without
the target output needing them.

This is in particular important on calls like _get_driver_for_loadbalancer
as it previously would load the loadbalancer and all related objects
just to get the provider name for the loadbalancer.

Story: 2004949
Task: 29365

Change-Id: Ic268ea3cdcf809f62ba1ab3ebf8ab6d22f871404
2019-02-06 22:40:24 +00:00
Zuul 187f7fa85b Merge "use payloads for PORT BEFORE_DELETE callbacks" 2019-02-04 10:42:14 +00:00
omkartelee01 9e7b1156f8 Feature: Adding L7Policy/Rule for A10Networks
Added Manager classes for L7Policy and L7Rules.
A10Networks neutron-lbaas-driver have recently
added feature for L7Policy and L7Rules.
Adding specific classes to enable the features.
Added class L7PolicyManager and L7RuleManager
with specific create, update and delete functions.
These changes are specific to A10Networks driver
only.

Change-Id: I053cc520eafc829c5dd1192aa158c041b45486bb
2019-01-25 16:22:34 +05:30
Zuul 63a88f2f10 Merge "Change openstack-dev to openstack-discuss" 2018-12-26 15:19:37 +00:00
Michael Johnson 9a70a10446 Fix the scenario test gates
We currently use a gate hook that adds
a hardcoded image name which is cirros-0.3.5-x86_64-disk to work
around a devstack bug[2].

A recent patch[1] changed the deployed image to
cirros-0.3.6-x86_64-disk.

Now that the bug[2] has been resolved we no longer need to pin the
cirros image config in our gates.

[1] https://review.openstack.org/624716
[2] https://review.openstack.org/#/c/435106

Change-Id: Ia41577b38eca94617075f849a88ff3c126e407eb
2018-12-17 08:43:38 -08:00
Zuul c0b35976a9 Merge "use neutron-lib for _model_query" 2018-12-05 20:32:27 +00:00
Vieri c7ed37389b Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I6bf260ca368d7f0918d15bc010e7692f721e6523
2018-12-04 18:01:41 +00:00
Zuul a8b96e37ae Merge "Don't quote {posargs} in tox.ini" 2018-11-15 11:43:34 +00:00
Boden R 3fff6bb5f3 use neutron-lib for _model_query
The model_query module is in neutron-lib and the CommonDBMixin will
eventually be removed. This patch swiches use of the _model_query
method over to query_with_hooks from neutron-lib.

This patch also bumps the neutron-lib version up to 1.20.0

Change-Id: Ie8e9123cb2c58b4bde717648f2cfff7664da434e
2018-11-13 11:39:59 -07:00
YAMAMOTO Takashi 31dc1e3a0e Revert "Updated "create_pool" method in plugin"
This reverts commit c672b0d567.

Closes-Bug: #1802438
Change-Id: I21a068b73e366ea5c815ea14249cd3b3c6725315
2018-11-09 10:44:27 +00:00
Zuul 897906b4b2 Merge "use common rpc and exceptions from neutron-lib" 2018-11-08 19:48:56 +00:00
Zuul 022204f518 Merge "add local tox targets for pep8 and py3" 2018-11-08 19:48:55 +00:00
Zuul c5f4ae7c41 Merge "opt in for neutron-lib consumption patches" 2018-11-08 19:48:55 +00:00
98k 51a83d8d74 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I0b09424dd3cef244e8cec1ef87b5992ccb9d5b07
Closes-Bug:#1801823
2018-11-06 01:58:37 +00:00
Zuul c64c13f091 Merge "Increment versioning with pbr instruction" 2018-10-16 04:24:04 +00:00
Sean McGinnis 85fa4d2a62 Increment versioning with pbr instruction
With moving away from required milestone releases, the version numbers
calculated by PBR on the master branch will not work for those testing
upgrades from the last stable release. More details can be found in the
mailing list post here:

    http://lists.openstack.org/pipermail/openstack-dev/2018-October/135706.html

This is an empty commit that will cause PBR to increment its calculated
version to get around this.

PBR will see the following which will cause it to increment the version:

Sem-Ver: feature

Please merge this patch as soon as possible to support those testing
upgrades.

Change-Id: Ic8908b62412a608f6b3b4c4e69940871a812d3a4
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-12 13:10:16 -05:00
Rodolfo Alonso Hernandez c672b0d567 Updated "create_pool" method in plugin
Once the pool object is created in the DB and the listeners
are updated with the pool information, the updated listeners
are retrieved and populated into the pool object.

The DB method to create the pool now flushes the context to
retrieve an updated pool DB object at the end of the method,
instead of retrieving again the same object from the DB.

This is needed to make solve the Queens backport of
I32328c5206b9cd6fb8d8764c079f22b6ea8bfa9e.

Story: 2001962

Change-Id: Icf43952f6e5c5004a5c4d8d541b6efcb5d3ec50c
2018-10-12 16:12:46 +01:00
Boden R 51251b54a7 use common rpc and exceptions from neutron-lib
The neutron.common.rpc and exceptions were rehomed into neutron-lib and
are currently shimmed in neutron [1]

This patch consumes those modules from neutron-lib by using lib's
modules rather than neutrons.

[1] https://review.openstack.org/#/c/586525/

Change-Id: Ic6849eb2282ed39193a46421a6079d3dcb918442
2018-09-26 10:02:21 -06:00
Boden R 331f1b508d add local tox targets for pep8 and py3
This patch adds local tox targets for pep8 and python 3 as per [1]
that will install dependencies in editable mode.
To run them use the pep8-dev and py3-dev targets respectively.

[1] https://etherpad.openstack.org/p/neutron-sibling-setup

Change-Id: If70b6e746af5bb578f9257dfef0c2f33333b5524
2018-09-26 09:53:38 -06:00
Boden R c80b21fca7 opt in for neutron-lib consumption patches
As part of the Denver PTG [1] we decided networking related projects
that are "current" and want to receive neutron-lib consumption patches
on an on-going basis should indicate such with a well defined comment
in their requirements.txt. This allows us to easily find the list of
project to receive neutron-lib consumption patches [2] by searching for
the string.

In addition, projects opting-in for these patches are also attesting
they will stay up to date with TC and infra initiatives to ensure
consumption patches can flow freely.

This patch adds the "neutron-lib-current" string to requirements.txt
opting in for neutron-lib consumption patches.

[1] https://etherpad.openstack.org/p/neutron-stein-ptg
[2] https://docs.openstack.org/neutron-lib/latest/contributor/contributing.html#phase-4-consume

Change-Id: I567f30fd5f91fe6d7c35f0d657ac6aec4a1ff689
2018-09-25 13:22:50 -06:00
Carlos Goncalves 111d0b2852 Fix memory leak in the haproxy provider driver
The haproxy provider driver uses a dict for caching load balancer
resources (including children resources). That alone already increases
memory consumption. A neutron-server restart solves this.

But the real issue is that the driver leaves some data behind when a LB
is deleted without freeing it up (unless neutron-server is restart)
hence the memory leak.

Story: 2003802
Task: 26534

Change-Id: I7c79271998d839c6afbeb6d92f888f6acd67704e
2018-09-18 21:28:15 +02:00
Adam Harwell 28ede08e8c Update L7-proxy gate to allow new Octavia features
Specifically: UDP is now a valid protocol, and session_persistence has
some new fields.

Change-Id: I6f2ab6cad89714773655481a17a88348900261ad
2018-09-14 12:23:03 -06:00
Kobi Samoray eb47e20e87 nlbaas2octavia: improve member error log message
While NLBaaS member is an invalid state, the shown error message doesn't
give enough info to resolve the problem.

Change-Id: Ia18958d6f7126b46eae33ee615a18b34e3b76357
2018-08-30 12:49:31 +00:00
Kobi Samoray aba049283e nlbaas2octavia: do not change SG owned by user
When a user associated a VIP to his own security group, the migration
should not change its ownership.

Change-Id: I74648fc016f490c83890568fdd482ef0fdd8fa61
2018-08-30 12:49:25 +00:00
Kobi Samoray 10c5c2b940 nlbaas2octavia: Script fails when no members found
The migration script breaks when there are no members in the nlbaas table.

Change-Id: Ia3a57adfe41dad9e87f5278317180ae7a6adb592
2018-08-30 12:49:20 +00:00
Kobi Samoray 82032ec987 nlbaas2octavia: Escape 'key' field calls
The word "key" is reserved in SQL. lbaas_l7rules table has a field
name "key" which using it unescaped raises a mysql exception.

Change-Id: Ic0ddc86fe361014972f2a728beb3e8a3ed20e785
2018-08-30 08:24:06 +00:00
Zuul 0f9dc4f0a2 Merge "Gate API test for the lbaasv2-proxy plugin" 2018-08-28 23:45:45 +00:00
Zuul adb8c4aba2 Merge "use setup_extension in unit tests" 2018-08-25 02:20:47 +00:00
Zuul 72b1e5a40f Merge "switch documentation job to new PTI" 2018-08-25 02:20:45 +00:00
Zuul 403bd0aae4 Merge "import zuul job settings from project-config" 2018-08-25 02:16:12 +00:00
Zuul d6b6029784 Merge "Do not run dsvm tests if locales change" 2018-08-24 19:37:17 +00:00