Skip to content

Commit

Permalink
Merge pull request #1608 from Niklaus-xie/v9.8.21-branch-0106-update-lb
Browse files Browse the repository at this point in the history
modify lb operating_status accordingly
  • Loading branch information
Niklaus-xie authored Jan 6, 2021
2 parents 3fa9344 + 2de854f commit 419ac34
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -934,16 +934,18 @@ def update_loadbalancer(self, context, old_loadbalancer,
mgr = resource_manager.LoadBalancerManager(self.lbdriver)
mgr.update(old_loadbalancer, loadbalancer, service)
provision_status = constants_v2.F5_ACTIVE
operating_status = constants_v2.F5_ONLINE
LOG.debug("Finish to update loadbalancer %s", id)
except Exception as ex:
LOG.exception("Fail to update loadbalancer %s "
"Exception: %s", id, ex.message)
provision_status = constants_v2.F5_ERROR
operating_status = constants_v2.F5_OFFLINE
finally:
try:
self.plugin_rpc.update_loadbalancer_status(
id, provision_status,
loadbalancer['operating_status']
operating_status
)
LOG.debug("Finish to update status of loadbalancer %s", id)
except Exception as ex:
Expand Down

0 comments on commit 419ac34

Please sign in to comment.