From a4c248f456a1aee3f6a5eb875714f4f68309b1e1 Mon Sep 17 00:00:00 2001 From: Kobi Samoray Date: Tue, 7 Jul 2020 13:14:09 +0300 Subject: [PATCH] NSXV: Support session persistence with Octavia Octavia breaks when listener is created before the pool, and session persistence is specified. Change-Id: I116871ce6fec12f099248e88ff560362f89c3d23 --- vmware_nsx/services/lbaas/nsx_v/implementation/pool_mgr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vmware_nsx/services/lbaas/nsx_v/implementation/pool_mgr.py b/vmware_nsx/services/lbaas/nsx_v/implementation/pool_mgr.py index 344f9f6b47..1643938e6f 100644 --- a/vmware_nsx/services/lbaas/nsx_v/implementation/pool_mgr.py +++ b/vmware_nsx/services/lbaas/nsx_v/implementation/pool_mgr.py @@ -80,6 +80,8 @@ class EdgePoolManagerFromDict(base_mgr.EdgeLoadbalancerBaseManager): # This action also set this pool as the default pool of the # listener, so the application profile may need to be updated if pool['session_persistence']: + if not pool['listener'].get('default_pool'): + pool['listener']['default_pool'] = pool listener_mgr.update_app_profile( self.vcns, context, pool['listener'], edge_id)