For everyone who still runs LNST on RHEL5.
Besides the python-ctypes requirement I've hit another issue:
<cut>
27/06 12:18:50| (127.0.0.1) NetTestSlave:0095| ERROR:
Traceback (most recent call last):
File "/root/lnst/NetTest/NetTestSlave.py", line 91, in run_command
return NetTestCommand(command).run()
File "/root/lnst/NetTest/NetTestCommand.py", line 224, in __init__
self._command_class = get_command_class(command)
File "/root/lnst/NetTest/NetTestCommand.py", line 209, in
get_command_class
return NetTestCommandTest(command)
File "/root/lnst/NetTest/NetTestCommand.py", line 65, in
NetTestCommandTest
fp, pathname, description)
File "/root/lnst/Tests/TestIperf.py", line 86
except OSError as e:
^
SyntaxError: invalid syntax
</cut>
The reason is that RHEL5 comes with python version 2.4 and 'as' keyword
is not known to python2.4.
I was able to workaround it with following steps:
1. install python2.6 from epel [1]
2. run nettestslave with following command line:
# PYTHON_PATH=/usr/lib64/python2.6 /usr/bin/python26 ./nettestslave.py -d
Or another way is to modify TestIperf code to use:
except OSError, e:
Hth, Jan
[1]
http://fedoraproject.org/wiki/EPEL