Bug 781251
Summary: | cli exits 0 if command fails due to connection issues | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Csaba Henk <csaba> |
Component: | cli | Assignee: | Csaba Henk <csaba> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Vijaykumar Koppad <vkoppad> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | mainline | CC: | amarts, bbandari, gluster-bugs, kaushal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.4.0 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-07-24 17:14:04 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 817967 |
Description
Csaba Henk
2012-01-13 04:49:41 UTC
Csaba, this bug is fixed with http://review.gluster.com/2640 right? If yes, please mark it for ON_QA Verified on v3.3.0qa44. With steps as described above, get proper non-zero return value. As root, -!- ~ » glusterd --xlator-option=management.rpc-auth-allow-insecure=off As a normal-user, --- ~ » gluster --log-file=- volume info [2012-05-31 15:43:52.058710] W [rpc-transport.c:174:rpc_transport_load] 0-rpc-transport: missing 'option transport-type'. defaulting to "socket" [2012-05-31 15:43:52.127289] W [socket.c:1512:__socket_proto_state_machine] 0-glusterfs: reading from socket failed. Error (Transport endpoint is not connected), peer (::1:24007) [2012-05-31 15:43:52.127535] E [rpc-clnt.c:373:saved_frames_unwind] (-->/usr/local/lib/libgfrpc.so.0(rpc_clnt_notify+0xd0) [0x7fdd4c272020] (-->/usr/local/lib/libgfrpc.so.0(rpc_clnt_connection_cleanup+0xb0) [0x7fdd4c271c90] (-->/usr/local/lib/libgfrpc.so.0(saved_frames_destroy+0xe) [0x7fdd4c271bbe]))) 0-glusterfs: forced unwinding frame type(Gluster CLI) op(--(5)) called at 2012-05-31 15:43:52.127079 (xid=0x1x) No volumes present [2012-05-31 15:43:52.127579] I [cli-rpc-ops.c:732:gf_cli3_1_get_volume_cbk] 0-cli: Returning: -1 Connection failed. Please check if gluster daemon is operational. [2012-05-31 15:43:52.127613] I [input.c:46:cli_batch] 0-: Exiting with: -1 --- ~ » echo $? 255 --- ~ » |