def wait_for_cluster_validation(self, validation_section, validation_id, statuses, timeout=consts.VALIDATION_TIMEOUT, interval=2):
    log.info('Wait until cluster %s validation %s is in status %s', self.id, validation_id, statuses)
    try:
        waiting.wait((lambda : self.is_cluster_validation_in_status(validation_section=validation_section, validation_id=validation_id, statuses=statuses)), timeout_seconds=timeout, sleep_seconds=interval, waiting_for=f'Cluster validation to be in status {statuses}')
    except BaseException:
        log.error('Cluster validation status is: %s', utils.get_cluster_validation_value(self.api_client.cluster_get(self.id), validation_section, validation_id))
        raise
def wait_for_cluster_validation(self, validation_section, validation_id, statuses, timeout=consts.VALIDATION_TIMEOUT, interval=2):
    log.info('Wait until cluster %s validation %s is in status %s', self.id, validation_id, statuses)
    try:
        waiting.wait((lambda : self.is_cluster_validation_in_status(validation_section=validation_section, validation_id=validation_id, statuses=statuses)), timeout_seconds=timeout, sleep_seconds=interval, waiting_for=f'Cluster validation to be in status {statuses}')
    except BaseException:
        log.error('Cluster validation status is: %s', utils.get_cluster_validation_value(self.api_client.cluster_get(self.id), validation_section, validation_id))
        raise