| Summary: | volfile generation error ignored | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Csaba Henk <csaba> |
| Component: | glusterd | Assignee: | Pranith Kumar K <pkarampu> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | mainline | CC: | fharshav, gluster-bugs, vijay |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
PATCH: http://patches.gluster.com/patch/6566 in master (mgmt/glusterd: fail create volume on create-volfiles failure) *** Bug 1924 has been marked as a duplicate of this bug. *** PATCH: http://patches.gluster.com/patch/6601 in master (mgmt/glusterd: Add the new volume only after all ops succeed) |
Apply the following patch: -------------- --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -1248,7 +1248,8 @@ glusterd_create_volfiles (glusterd_volinfo_t *volinfo) ret = glusterd_fetchspec_notify (THIS); out: - return ret; + gf_log ("", GF_LOG_ERROR, "I'm a loser baby"); + return -1; } void -------------- With this, you still get: # gluster volume create pop 192.168.2.10:/tmp/ex0 Creation of volume pop has been successful Glusterd just goes on happily. 2010-10-10 00:55:55.176990] E [glusterd-volgen.c:1251:glusterd_create_volfiles] : I'm a loser baby [2010-10-10 00:55:55.198101] D [glusterd-utils.c:1194:glusterd_volume_compute_cksum] : Returning with 0 [2010-10-10 00:55:55.198254] D [glusterd-op-sm.c:4931:glusterd_op_commit_perform] : Returning 0 [2010-10-10 00:55:55.198281] I [glusterd3_1-mops.c:1330:glusterd3_1_commit_op] glusterd: Sent op req to 0 peers [2010-10-10 00:55:55.198311] D [glusterd3_1-mops.c:1342:glusterd3_1_commit_op] glusterd: Returning 0 [2010-10-10 00:55:55.198327] I [glusterd-op-sm.c:5116:glusterd_op_sm_inject_event] glusterd: Enqueuing event: 'GD_OP_EVENT_ALL_ACC' etc.