def wait_ready(self, name, timeout=5.0, sleep_interval=0.2):
        end = time() + timeout
        while True:
            try:
                info = self.bucket_info(name).value
                for node in info['nodes']:
                    if node['status'] != 'healthy':
                        raise NotReadyError.pyexc('Not all nodes are healthy')
                return  # No error and all OK
            except E.CouchbaseError:
                if time() + sleep_interval > end:
                    raise
                sleep(sleep_interval)
Wait for a newly created bucket to be ready.
dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/admin.py/Admin.wait_ready