Bug 1304383 - pcs cluster setup fails for nfs-ganesha
pcs cluster setup fails for nfs-ganesha
Status: CLOSED CURRENTRELEASE
Product: GlusterFS
Classification: Community
Component: ganesha-nfs (Show other bugs)
mainline
All Linux
medium Severity medium
: ---
: ---
Assigned To: Kaleb KEITHLEY
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-03 08:07 EST by Jiffin
Modified: 2017-03-06 12:53 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-03-06 12:53:48 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jiffin 2016-02-03 08:07:59 EST
Description of problem:
The pcs cluster set up fails due to a python exception error while running "gluster nfs-ganesha enable" on a fedora22 machine. Both seslinux and firewalld were disabled.

Version-Release number of selected component (if applicable):
pcs-0.9.139-7.fc22.x86_64
glusterfs 3.7.7
nfs-ganesha V2.4-dev-6

How reproducible:
always

Steps to Reproduce:
1. start required service for HA cluster
2. write ha config file
3. gluster nfs-ganesha enable 


Actual results:
gluster nfs-ganesha enable fails

Expected results:
gluster nfs-ganesha enable should succeed 

Additional info:
tail from /var/log messages
---------------------------- 
Feb  3 18:24:37 localhost root: setting up ganesha-ha-360
Feb  3 18:24:37 localhost root: setting up cluster ganesha-ha-360 with the following dhcp9 dhcp81
Feb  3 18:24:38 localhost python: detected unhandled Python exception in '/usr/sbin/pcs'
Feb  3 18:24:38 localhost dbus[633]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Feb  3 18:24:38 localhost dbus[633]: [system] Successfully activated service 'org.freedesktop.problems'
Feb  3 18:24:38 localhost root: pcs cluster setup  ganesha-ha-360 dhcp9 dhcp81 failed

bt of the core
---------------
cluster.py:191:auth_nodes:EOFError: EOF when reading a line

Traceback (most recent call last):
  File "/usr/sbin/pcs", line 155, in <module>
    main(sys.argv[1:])
  File "/usr/sbin/pcs", line 137, in main
    cluster.cluster_cmd(argv)
  File "/usr/lib/python2.7/site-packages/pcs/cluster.py", line 53, in cluster_cmd
    cluster_auth(argv)
  File "/usr/lib/python2.7/site-packages/pcs/cluster.py", line 144, in cluster_auth
    auth_nodes(argv)
  File "/usr/lib/python2.7/site-packages/pcs/cluster.py", line 191, in auth_nodes
    username = raw_input("")
EOFError: EOF when reading a line

Local variables in innermost frame:
need_auth: False
status: (0, '{"success":true,"node_list":["dhcp43-81","dhcp43-9","dhcp43-9.lab.eng.blr.redhat.com","dhcp81","dhcp9"]}')
failed_count: 0
node: 'dhcp9'
mutually_authorized: False
username: None
nodes: ['dhcp9', 'dhcp81']
password: None
auth_status: {u'node_list': [u'dhcp43-81', u'dhcp43-9', u'dhcp43-9.lab.eng.blr.redhat.com', u'dhcp81', u'dhcp9'], u'success': True}
set_nodes: set(['dhcp81', 'dhcp9'])

ha conf file
-------------
HA_NAME="ganesha-ha-360"
#
# The gluster server from which to mount the shared data volume.
HA_VOL_SERVER="dhcp81"
#
# N.B. you may use short names or long names; you may not use IP addrs.
# Once you select one, stay with it as it will be mildly unpleasant to
# clean up if you switch later on. Ensure that all names - short and/or
# long - are in DNS or /etc/hosts on all machines in the cluster.
#
# The subset of nodes of the Gluster Trusted Pool that form the ganesha
# HA cluster. Hostname is specified.
HA_CLUSTER_NODES="dhcp9,dhcp81"
#HA_CLUSTER_NODES="server1.lab.redhat.com,server2.lab.redhat.com,..."
#
# Virtual IPs for each of the nodes specified above.
VIP_dhcp9="10.70.40.183"
VIP_dhcp81="10.70.40.184"


tail from /var/log/pcsd/pcsd.log
----------------------------------
Feb  3 18:24:37 localhost root: setting up ganesha-ha-360
Feb  3 18:24:37 localhost root: setting up cluster ganesha-ha-360 with the following dhcp9 dhcp81
Feb  3 18:24:38 localhost python: detected unhandled Python exception in '/usr/sbin/pcs'
Feb  3 18:24:38 localhost dbus[633]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Feb  3 18:24:38 localhost dbus[633]: [system] Successfully activated service 'org.freedesktop.problems'
Feb  3 18:24:38 localhost root: pcs cluster setup  ganesha-ha-360 dhcp9 dhcp81 failed

Note You need to log in before you can comment on or make changes to this bug.