From 6cd9e55d69e90ea73219abced4e9a3f2372b204e Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Wed, 14 Aug 2019 08:47:10 +0300 Subject: [PATCH] Fix member update in octavia The new member object did not have the lb id so the lb status was not updated. Change-Id: I7966fdc2b4e7be924056e3483e6a7609c640b9af --- vmware_nsx/services/lbaas/octavia/octavia_driver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/services/lbaas/octavia/octavia_driver.py b/vmware_nsx/services/lbaas/octavia/octavia_driver.py index ea057316dd..a7d2937910 100644 --- a/vmware_nsx/services/lbaas/octavia/octavia_driver.py +++ b/vmware_nsx/services/lbaas/octavia/octavia_driver.py @@ -344,7 +344,9 @@ class NSXOctaviaDriver(driver_base.ProviderDriver): # Use the parent vip_subnet_id instead obj_dict['subnet_id'] = obj_dict['loadbalancer'][ 'vip_subnet_id'] - else: + elif not is_update: + # Do not set pool & LB if in update situation, as we want to + # use the original data of this member obj_dict['pool'] = None obj_dict['loadbalancer'] = None