def wrap_xmlrpc_call(func, args, kwargs, timeout):
    import time, xmlrpclib
    for i in xrange(timeout):
        try:
            r = func(*args, **kwargs)
            return r
        except xmlrpclib.Fault:
            raise
        except:
            logger.debug("     Trying to call func for the {%s}th again." % (i+1,))
            time.sleep(1)
            pass
    return func(*args, **kwargs)
Validate if deployment tasks are present in db
dataset/ETHPy150Open fp7-ofelia/ocf/optin_manager/src/python/openflow/common/tests/utils.py/wrap_xmlrpc_call--crossover with--dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/api/v1/validators/base.py/BasicValidator.validate_release