Allow updates to be issued to degraded LB

An LB goes into DEGRADED status when some but not all of its members are
in ERROR.

Updates should still be allowed in a DEGRADED state lest LB policy
becomes unable to operate on any partially operational cluster.

Change-Id: If7a9d2edf8b95ce8f153777a7240b8040c4bd484
This commit is contained in:
Jacob Estelle 2019-05-01 11:21:50 -07:00
parent 1a3e61aeab
commit 4764595ac7
1 changed files with 2 additions and 5 deletions

View File

@ -62,8 +62,7 @@ class LoadBalancerDriver(base.DriverBase):
"""Keep waiting until loadbalancer is ready
This method will keep waiting until loadbalancer resource specified
by lb_id becomes ready, i.e. its provisioning_status is ACTIVE and
its operating_status is ONLINE.
by lb_id becomes ready, i.e. its provisioning_status is ACTIVE.
:param lb_id: ID of the load-balancer to check.
:param ignore_not_found: if set to True, nonexistent loadbalancer
@ -79,9 +78,7 @@ class LoadBalancerDriver(base.DriverBase):
if lb is None:
lb_ready = ignore_not_found
else:
lb_ready = ((lb.provisioning_status == 'ACTIVE') and
(lb.operating_status == 'ONLINE'))
lb_ready = lb.provisioning_status == 'ACTIVE'
if lb_ready is True:
return True