Project

General

Profile

Bug #7282 ยป 0001-rbd-prevent-blocking-when-cluster-is-non-responsive.patch

Josh Durgin, 02/11/2014 06:27 PM

View differences:

src/storage/storage_backend_rbd.c
goto cleanup;
}
/*
* Ignore the return value for these settings since older versions
* of librados which do not support them will return -ENOENT.
*/
rados_conf_set(ptr->cluster, "client_mount_timeout", "30");
rados_conf_set(ptr->cluster, "rados_mon_op_timeout", "30");
rados_conf_set(ptr->cluster, "rados_osd_op_timeout", "30");
ptr->starttime = time(0);
if (rados_connect(ptr->cluster) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
    (1-1/1)