Bug #7282 ยป 0001-rbd-prevent-blocking-when-cluster-is-non-responsive.patch
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,
|