Bug 1404128
Summary: | Volume creation fails with error "host is not in 'Peer in Cluster' state" | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Ankit Rana <ankit9.7.91> |
Component: | glusterd | Assignee: | Raghavendra Talur <rtalur> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.8 | CC: | bugs, sasundar |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-12-20 09:13:50 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: |
Description
Ankit Rana
2016-12-13 07:06:01 UTC
Updating /etc/hosts on both nodes solved my problem: gnode-1: [root@localhost ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 gnode-1 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.213.156 gnode-2 gnode-2: [arana@localhost ~]$ cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 gnode-2 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.213.155 gnode-1 (In reply to Ankit Rana from comment #1) > Updating /etc/hosts on both nodes solved my problem: > gnode-1: > [root@localhost ~]# cat /etc/hosts > 127.0.0.1 localhost localhost.localdomain localhost4 > localhost4.localdomain4 gnode-1 > ::1 localhost localhost.localdomain localhost6 > localhost6.localdomain6 > 192.168.213.156 gnode-2 > > gnode-2: > [arana@localhost ~]$ cat /etc/hosts > 127.0.0.1 localhost localhost.localdomain localhost4 > localhost4.localdomain4 gnode-2 > ::1 localhost localhost.localdomain localhost6 > localhost6.localdomain6 > 192.168.213.155 gnode-1 This means that the hostnames are not resolvable from both the hosts. Gluster expects that the hostname should be resolvable from all the nodes of the cluster. This is the prerequisite. Also Gluster provides the firewall service named as 'glusterfs' which helps open all the required ports on CentOS 7 # firewall-cmd --add-service=glusterfs --permanent # firewall-cmd --add-service=glusterfs Since this is not a genuine issue, I am closing this bug. Feel free re-open the bug, if you again face the problems |