Merge "Fix quota readiness check"

This commit is contained in:
Zuul 2018-11-30 17:35:33 +00:00 committed by Gerrit Code Review
commit 7ba64a87da
3 changed files with 3 additions and 1 deletions

View File

@ -68,3 +68,4 @@ class NetworkPolicyHandler(k8s_base.ResourceEventHandler):
sg_func = neutron.list_security_groups
if utils.has_limit(sg_quota):
return utils.is_available('security_groups', sg_quota, sg_func)
return True

View File

@ -152,6 +152,7 @@ class VIFHandler(k8s_base.ResourceEventHandler):
port_func = neutron.list_ports
if utils.has_limit(port_quota):
return utils.is_available('ports', port_quota, port_func)
return True
@staticmethod
def _is_host_network(pod):

View File

@ -66,7 +66,7 @@ class HealthServer(object):
for component in self._registry:
if not component.is_ready(quota):
LOG.debug('Controller components are not ready.')
LOG.debug('Controller component not ready: %s.' % component)
return False
return True