Commit Graph

15 Commits

Author SHA1 Message Date
Adit Sarfaty f6b0643782 NSX|V+V3: Preparations for Octavia support
Create internal drivers for each object that will use dictionaries
instead of objects, and will use a generic fail/success notifiers.
The LBaaS nsx-v/v3 drivers will translate the objects to dictionaries
and use the LBaaS callbacks for successful_completion and failed_completion.
Later we can add drivers for Octavia that will use the same internal
drivers.

Change-Id: I5f99f979bd5333ccfc781217379d217d611cb015
2018-06-06 09:17:51 +03:00
Gary Kotton 54a809c4fa Fix typo
Change-Id: I4ffc65ce89ea0cd894ef28804e98f4291daddeca
2017-10-04 06:55:11 +03:00
Kobi Samoray 9088cb2b31 NSXv: LB pool delete failure while binding missing
When pool binding is missing, LBaaS call shouldn't fail, but
exit gracefully.

Change-Id: I6174880f38f8ebbe4def931053ee47880a89426c
2017-06-26 16:47:27 +03:00
Adit Sarfaty 35ae3206c5 NSX|V: Keep existing members when updating LBaaS pool
Change-Id: I92dc082e38c5c38261a15ababb0877d2e0ec257d
2017-06-18 09:49:34 +03:00
Tong Liu 315c135431 LBaaS: Share lb_const module for nsxv and nsxv3
Since nsxv and nsxv3 LBaaS driver use most of the same constant
definitions, move the lb_const module under base lbaas directory
to share between nsxv and nsxv3 driver.

Change-Id: I314939675ebbed8a0bd571514c0075f1cf6af999
2017-05-28 00:58:19 +00:00
Tong Liu 931c5a89f1 LBaaS: Share base_mgr between nsxv and nsxv3
In vmware-nsx lbaas service folder, the base_mgr module can be
shared between nsxv and nsxv3. Thus move it under lbaas folder so
it can be use by nsxv3 as well. To have minimum impact on nsxv
side, rename base to LoadbalancerBaseManager and subclass
EdgeLoadbalancerBaseManager from it.

Also, this patch fixes a few pep8 error.

Change-Id: I994d39a5dbdb38e1b7805b2eec97e8ef7719f556
2017-05-23 04:27:42 -07:00
Gary Kotton 091cb5a148 NSX|V: ensure that monitor ID is persisted with LB alg update
Ensures that the monitor ID is persisted. The existing edge will be
read to get the configured monitoring ID and that will be used.

Change-Id: I6f7951520faa42380087f7d3f421ebff595782ff
2017-04-24 07:22:51 +03:00
Adit Sarfaty 4c49c9c390 NSX|v: Fix LBaaS session persistence
Session persistense of the pool should be configured in the relevant
listener backend application profile.
This should happen both when the user configures the pool before the listener,
and when the user configured the listener first.
It should also be updated/deleted if the pool definition is changed.

Change-Id: I727c83056af861bdd18e7e4bcc2929c47ae78293
2017-05-22 10:53:05 +03:00
Gary Kotton 6228a06399 Drop log translations
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: I9d37ae28a3fecbe910e60dc7f22e229a7b65940c
2017-03-26 05:09:02 -07:00
Adit Sarfaty 2256459aa1 NSX-v| LBAAS L7 support
Supporting L7 policies and rules in LBAAS-v2
Including a new db table nsxv_lbaas_l7policy_bindings
for mapping between the lbaas policy ID and the nsx application rules.

Depends-on: I3b14d107dbe0a72a6e24239f06bd6c3ac597cfbb
Change-Id: Ic760be8956cea00b972b5f11f6acff294630892d
2017-02-07 11:33:17 +02:00
Kobi Samoray 9e4bc9296f NSXv: Fix pool logging calls
LBaaSv2 pool is and object and not a dict.
Log calls should use object attribute to get pool id.

Change-Id: I1b5650b8bb655d3b0a92681138f79169de388a62
2017-01-25 19:52:04 +02:00
Kobi Samoray 4383b9d391 NSXv: LBaaSv2 shared pools
Support shared pool fuctionality of LBaaSv2 for NSXv driver.

Change-Id: If3368b341658fe0f6073d19e6d2ca2eadb2222d3
2016-08-22 10:09:30 +03:00
Kobi Samoray 34475f4fc4 Reorganize locking for NSXv
Do the following for NSXv locking:
- Drop external=True from get_lock() calls: this is redundant as
 locking wrapper appends this anyway.
- Add locking for distributed router module.
- Use edge-id as lock id when locking various edge attributes.
- Drop the use of lock_file_prefix as it is not supported by
 distributed locking.

Change-Id: I13115f65a89d5fae507f87f7fb1ac096089e385a
2016-02-18 11:35:43 +02:00
Gary Kotton 4afa13c3c4 Switch to internal _i18n pattern, as per oslo_i18n guidelines
- Guidelines referenced from:
  http://docs.openstack.org/developer/oslo.i18n/usage.html

Change-Id: I938919958525b2db0c8a517b951a23f974a7762e
2015-12-02 06:59:23 -08:00
Kobi Samoray 9b6d3b1b47 LBaaSv2 driver
Implement LBaaSv2 driver for NSXv Edge appliance load balancer.
Includes TLS support for Edge appliance, and certificate management
For SSL termination.

Change-Id: I60093c0186cce3e99fb26e1fc6bd5175cbd1a560
2015-10-27 07:42:47 +02:00