def __init__(self, timeouts=None, transport=Transport, allow_non_master=None):
    cl.AbstractStubClient.__init__(self,
                                   timeouts=timeouts,
                                   transport=transport,
                                   allow_non_master=allow_non_master)
    stub.ClientRpcStub.__init__(self)

    retries = 12
    for try_no in range(0, retries):
      try:
        self._InitTransport()
        return
      except errors.TimeoutError:
        logging.debug("Timout trying to connect to WConfD")
        if try_no == retries -1:
          raise
        logging.debug("Will retry")
        time.sleep(try_no * 10 + 10 * random.random())
Constructor for the Client class.
dataset/ETHPy150Open ganeti/ganeti/lib/wconfd.py/Client.__init__