Commit Graph

12 Commits

Author SHA1 Message Date
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
Rocky fc126428f0 Fix pep8 errors
Recent pep8 upgrade and corresponding pycodestyle(2.4.0) update break
neutron-lbaas pep8 job due to the new rules.

This commit fixes the following new errors:
- E501 line too long
- E402 module level import not at top of file
- W503 line break before binary operator

Story: 2001828
Task: 12584

Change-Id: Ifa5a75745bd03aba6af63422623c5cd9eef344e4
2018-04-12 14:58:11 +10:00
ZhaoBo 7fa6bb9030 Fix the wrong device_owner when recreate LBaas listener
Currently, lbaas agent refresh loadbalancer based on the number of active
listener, and will update the port with device_own='' if delete the last
listener in loadbalancer.

So the device_owner of the vip port of exist loadbalancer will never
update to the correct one.

This patch add port device_owner field to PUT to guarantee the field is
'neutron:LOADBALANCERV2'.

Change-Id: I2de5800f4a6b06f98174ef42390f0e2c91bf0cfd
Closes-Bug:#1692995
2017-05-24 17:52:14 +08:00
e e44ef6d95f Remove log translations from neutron-lbaas
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: Ia323fc58c66c645fca0254ace01a8849ce239525
2017-05-04 11:23:20 -07:00
reedip f99f4f8a6d Migrate Constants from neutron.plugin to neutron_lib
With the merge of [1], plugin constants are now available in
neutron_lib, so it makes sense to move there .

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

Change-Id: Ic6e5620d6d3ff33447d3804919cd63716d4a6894
2017-04-15 05:59:50 +00:00
Boden R 31a413d864 Use neutron-lib portbindings api-def
This patch refactors networking-lbaas to use portbindings
from neutron-lib. For more details see [1].

NeutronLibImpact

[1] https://review.openstack.org/422210/

Change-Id: Ic8ae6d9ab9fdc5c9c4dcd7b085ac72dcc648b7b0
2017-01-19 12:10:58 -07:00
Kevin Benton b77c0ce0e0 Pass network MTU into namespace driver
Closes-Bug: #1640265
Co-Authored-By: Brandon Logan <brandon.logan@rackspace.com>

Change-Id: I6c29cf8dd4164d2024b64a86108b1e22a66f966a
2016-12-01 14:41:01 -06:00
Doug Wiegley 2a74aa29d4 Migrate some stuff to neutron-lib
Partially-Implements: blueprint neutron-lib
Depends-On: If183b7a6797834e29c377937fc06261aa3b00249
Change-Id: Ic03ebb10a53b5d96a9472d4ba4cc4ef11983b229
2016-02-11 04:29:05 +00:00
Gary Kotton e3029a51fd Use the correct _ method from neutron_lbaas._i18n
Make use of the correct translations method.

TrivialFix

Change-Id: Icc43f5b514fee16a146827d11beb45e5e49d4fed
2016-01-13 06:46:59 -08:00
Doug Wiegley c6aa58f673 Switch to internal _i18n pattern, as per oslo_i18n guidelines
- Guidelines referenced from:
  http://docs.openstack.org/developer/oslo.i18n/usage.html

Change-Id: Iac380e55ee0e21f40d14acdd1bcba2cb8cc8c826
Partially-Closes-Bug: #1519493
2015-12-01 19:23:33 -07:00
Divya ChanneGowda f9b93a3d74 Add device_id when a loadbalancer is created instead of at listener create
nova boot on lbaas_vip port is not blocked as nova throws PortInUse exception
only if the port device_id is set. Currently device_id is updated during
lbaas listener create.
This fix sets the device_id to loadbalancer id during the loadbalancer create.

Change-Id: I2dfce54322eff5f4830b94ac8424057780ebeb9d
Closes-Bug: #1482763
2015-09-15 11:47:41 -07:00
Phillip Toohill 80ac3d534d Added agent callbacks
Added the agent callbacks so that an agent can call back to
the neutron API server to retrieve information or perform
an action that an agent cannot do because it does not
have access to the same resources as the neutron API server
(such as DB access).

Also added from_dict methods in the data_models as callbacks
and the agent will need these.

Change-Id: I292415206b23731ea8197aeb91fc87ff148bc14c
Depends-On: Ic9179ef0a95b91d1b7662537fffeb0a949efc925
Partially-implements: blueprint lbaas-refactor-haproxy-namespace-driver-to-new-driver-interface
Co-Authored-By: Brandon Logan <brandon.logan@rackspace.com>
2015-03-03 16:53:36 -06:00