Fix the issue that could not detach lbaas policy
Should set ignore_missing True when delete loadbalancer, or openstacksdk will raise NotFound exception, it will make the detach action fail. Change-Id: Ic7682c747397e2ce3a496be4de428b5b8427222d Closes-Bug: #1712516
This commit is contained in:
parent
f537e47efc
commit
f2c7368305
|
@ -54,7 +54,7 @@ class LoadBalancerDriver(base.DriverBase):
|
|||
waited = 0
|
||||
while waited < self.lb_status_timeout:
|
||||
try:
|
||||
lb = self.nc().loadbalancer_get(lb_id)
|
||||
lb = self.nc().loadbalancer_get(lb_id, ignore_missing=True)
|
||||
except exception.InternalError as ex:
|
||||
msg = ('Failed in getting loadbalancer: %s.'
|
||||
% six.text_type(ex))
|
||||
|
|
Loading…
Reference in New Issue