Bug 753579

Summary: Error if I add node
Product: [Fedora] Fedora Reporter: cr
Component: hekafsAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jdarcy, kkeithle
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-13 16:24:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description cr 2011-11-13 15:14:31 UTC
Description of problem:
If I want add a node via web I get following error:

Error 500: Internal Server Error

Sorry, the requested URL http://192.168.0.22:8080/cluster/add_node caused an error:

Unhandled exception
Exception:

KeyError('ssh',)
Traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bottle.py", line 499, in handle
    return handler(**args)
  File "/usr/lib/python2.7/site-packages/hekafsd.py", line 77, in add_node
    return hfs_add_node.run_www()
  File "/usr/lib/python2.7/site-packages/hfs_add_node.py", line 60, in run_www
    return run_common(node_name)
  File "/usr/lib/python2.7/site-packages/hfs_add_node.py", line 50, in run_common
    hfs_utils.run_cmd("/sbin/chkconfig", "--add glusterd", can_node_addr)
  File "/usr/lib/python2.7/site-packages/hfs_utils.py", line 65, in run_cmd
    cmd = make_remote(host,cmd)
  File "/usr/lib/python2.7/site-packages/hfs_utils.py", line 56, in make_remote
    return "%s %s %s" % (get_path("ssh"), host, cmd)
  File "/usr/lib/python2.7/site-packages/hfs_utils.py", line 51, in get_path
    return class_cache[program]
KeyError: 'ssh'

Version-Release number of selected component (if applicable):
hekafs-0.7-17.fc16.x86_64.rpm

How reproducible:
I installed minimal Fedora 16 and followed this how to:

http://fedoraproject.org/wiki/Test_Day:2011-10-20_HekaFS

Steps to Reproduce:
1. Install DVD 64 bit Fedora image with minimal
2. after reboot:  yum -y install glusterfs glusterfs-server glusterfs-fuse hekafs
3.  service glistered start 
4.  service hekafsd start
5. iptables -F to configure
6. add 2nd node

Comment 1 cr 2011-11-13 16:24:36 UTC
just yum install openssh-clients fixed that "problem"