Comment 0 for bug 1900780

Revision history for this message
liujinxin (scilla) wrote : RetryError in kuryr-daemon

        @retrying.retry(stop_max_delay=timeout * 1000, wait_fixed=RETRY_DELAY,
                        retry_on_result=utils.any_vif_inactive)
        def wait_for_active(kp_name):
            return self.registry[kp_name]['vifs']

        vifs = wait_for_active(kp_name)

#Does it make sense to process the following lines of code? If retry timeout, has returned retrieving.RetryError, the following code will never return an exception

        for vif in vifs.values():
            if not vif.active:
                LOG.error("Timed out waiting for vifs to become active")
                raise exceptions.ResourceNotReady(kp_name)