Bug 1065619
Summary: | gluster peer probe on localhost should fail with appropriate return value | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | ssamanta | |
Component: | cli | Assignee: | bugs <bugs> | |
Status: | CLOSED DUPLICATE | QA Contact: | ||
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | pre-release | CC: | bugs, ggarg, gluster-bugs, mzywusko, sasundar | |
Target Milestone: | --- | Keywords: | Reopened | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1244098 (view as bug list) | Environment: | ||
Last Closed: | 2015-07-17 13:26:23 UTC | Type: | Bug | |
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: | 1244098 |
Description
ssamanta
2014-02-15 07:30:56 UTC
The same thing happens with local IPv4 address as well. [root@desktop8 /]# gluster peer probe 192.168.0.8 peer probe: success. Probe on localhost not needed [root@desktop8 /]# gluster peer status Number of Peers: 0 [root@desktop8 /]# This is not true with IPV6 addresses and it hols true for IPV4 too. The issue is when you probe a localhost, 1. The probe shows success and warning together 2. The return value is not appripriate So, changing the summary accordingly Hi, By definition, a "peer" is not the system itself. It refers to the system in the same pool, but not itself. So, localhost will be always missing and it is the expected behaviour. Instead, one can use "gluster pool list" to see all the systems in the trusted pool" (In reply to Manikandan from comment #4) > Hi, > By definition, a "peer" is not the system itself. It refers to the system in > the same pool, but not itself. So, localhost will be always missing and it > is the expected behaviour. > Instead, one can use "gluster pool list" to see all the systems in the > trusted pool" I agree that this is the expected behaviour. But if you look at it more closer, you can realize the problem. When a user tries to probe a same host ( say, by mistake ), gluster cli returns the error messages as follows : "peer probe: success. Probe on localhost not needed" Note: gluster cli says, 'peer probe success' When you check the return value. <snip> # echo $? 0 </snip> Note: return value 0 means success. Ideal expected behaviour should be : 1. When you probe a localhost, gluster cli should throw error message - "Probe on localhost not needed" 2. Return value should not be 0 With this information, I re-open this bug *** This bug has been marked as a duplicate of bug 1167714 *** |