Description of problem: Remove brick operation is not working properly Version-Release number of selected component (if applicable): 3.3.0qa15 How reproducible: Always Steps to Reproduce: 1. Created a distribute volume with 2 bricks 2. Try to remove one of the brick using remove-brick command Actual results: Got the error message "Deleting all the bricks of the volume is not allowed" and could not remove the brick Expected results: Remove brick is supposed to succeed Additional info: LOG: ---- [2011-12-12 00:37:49.832864] I [glusterd-handler.c:1211:glusterd_op_lock_send_resp] 0-glusterd: Responded, ret: 0 [2011-12-12 00:37:49.833074] I [glusterd-handler.c:514:glusterd_req_ctx_create] 0-glusterd: Received op from uuid: 9e766670-dfd7-4a42-ab3a-6b755d51e511 [2011-12-12 00:37:49.833168] E [glusterd-op-sm.c:2045:glusterd_op_ac_stage_op] 0-: Validate failed: -1 [2011-12-12 00:37:49.833244] I [glusterd-handler.c:1304:glusterd_op_stage_send_resp] 0-glusterd: Responded to stage, ret: 0 [2011-12-12 00:37:49.833380] I [glusterd-handler.c:1254:glusterd_handle_cluster_unlock] 0-glusterd: Received UNLOCK from uuid: 9e766670-dfd7-4a42-ab3a-6b755d51e511 [2011-12-12 00:37:49.833427] I [glusterd-handler.c:1231:glusterd_op_unlock_send_resp] 0-glusterd: Responded to unlock, ret: 0 [2011-12-12 01:02:25.406553] I [glusterd-handler.c:476:glusterd_handle_cluster_lock] 0-glusterd: Received LOCK from uuid: 9e766670-dfd7-4a42-ab3a-6b755d51e511 [2011-12-12 01:02:25.407242] I [glusterd-utils.c:259:glusterd_lock] 0-glusterd: Cluster lock held by 9e766670-dfd7-4a42-ab3a-6b755d51e511 [2011-12-12 01:02:25.407337] I [glusterd-handler.c:1211:glusterd_op_lock_send_resp] 0-glusterd: Responded, ret: 0 [2011-12-12 01:02:25.407520] I [glusterd-handler.c:514:glusterd_req_ctx_create] 0-glusterd: Received op from uuid: 9e766670-dfd7-4a42-ab3a-6b755d51e511 [2011-12-12 01:02:25.407587] E [glusterd-op-sm.c:2045:glusterd_op_ac_stage_op] 0-: Validate failed: -1 [2011-12-12 01:02:25.407659] I [glusterd-handler.c:1304:glusterd_op_stage_send_resp] 0-glusterd: Responded to stage, ret: 0 [2011-12-12 01:02:25.407791] I [glusterd-handler.c:1254:glusterd_handle_cluster_unlock] 0-glusterd: Received UNLOCK from uuid: 9e766670-dfd7-4a42-ab3a-6b755d51e511 [2011-12-12 01:02:25.407835] I [glusterd-handler.c:1231:glusterd_op_unlock_send_resp] 0-glusterd: Responded to unlock, ret: 0