Project

General

Profile

0001-rbd-prevent-blocking-when-cluster-is-non-responsive.patch

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

Download (1.53 KB)

View differences:

src/storage/storage_backend_rbd.c
197 197
        goto cleanup;
198 198
    }
199 199

  
200
    /*
201
     * Ignore the return value for these settings since older versions
202
     * of librados which do not support them will return -ENOENT.
203
     */
204
    rados_conf_set(ptr->cluster, "client_mount_timeout", "30");
205
    rados_conf_set(ptr->cluster, "rados_mon_op_timeout", "30");
206
    rados_conf_set(ptr->cluster, "rados_osd_op_timeout", "30");
207

  
200 208
    ptr->starttime = time(0);
201 209
    if (rados_connect(ptr->cluster) < 0) {
202 210
        virReportError(VIR_ERR_INTERNAL_ERROR,
203
-