[StarCluster] Error while getting wrong path
Yiannis Yiakoumis
gyiakoumis at gmail.com
Tue Oct 16 19:46:50 EDT 2012
FYI :
Starcluster crashes when I mistype the path for a get operation.
Crash report follows.
Thanks for the great tool!
Y.
---------- CRASH DETAILS ----------
COMMAND: starcluster get smallcluster /opt//_r_links*.log .
2012-10-16 16:40:34,585 PID: 13516 config.py:551 - DEBUG - Loading config
2012-10-16 16:40:34,585 PID: 13516 config.py:118 - DEBUG - Loading
file: /home/yiannis/.starcluster/config
2012-10-16 16:40:34,587 PID: 13516 awsutils.py:54 - DEBUG - creating
self._conn w/ connection_authenticator kwargs = {'proxy_user': None,
'proxy_pass': None, 'proxy_port': None, 'proxy': None, 'is_secure':
Tru
e, 'path': '/', 'region': RegionInfo:us-west-1, 'port': None}
2012-10-16 16:40:35,022 PID: 13516 cluster.py:664 - DEBUG - existing nodes: {}
2012-10-16 16:40:35,023 PID: 13516 cluster.py:672 - DEBUG - adding
node i-e39660ba to self._nodes list
2012-10-16 16:40:35,023 PID: 13516 cluster.py:672 - DEBUG - adding
node i-e59660bc to self._nodes list
2012-10-16 16:40:35,023 PID: 13516 cluster.py:672 - DEBUG - adding
node i-e79660be to self._nodes list
2012-10-16 16:40:35,023 PID: 13516 cluster.py:672 - DEBUG - adding
node i-999660c0 to self._nodes list
2012-10-16 16:40:35,023 PID: 13516 cluster.py:680 - DEBUG - returning
self._nodes = [<Node: master (i-e39660ba)>, <Node: node001
(i-e59660bc)>, <Node: node002 (i-e79660be)>, <Node: node003
(i-999660c0)>]
2012-10-16 16:40:35,023 PID: 13516 __init__.py:75 - DEBUG - loading
private key /home/yiannis/.ssh/yiannis-thetida.pem
2012-10-16 16:40:35,024 PID: 13516 __init__.py:82 - DEBUG - specified
key does not end in either rsa or dsa, trying both
2012-10-16 16:40:35,025 PID: 13516 __init__.py:167 - DEBUG - Using
private key /home/yiannis/.ssh/yiannis-thetida.pem (rsa)
2012-10-16 16:40:35,025 PID: 13516 __init__.py:186 - DEBUG - creating
sftp connection
2012-10-16 16:40:35,025 PID: 13516 __init__.py:97 - DEBUG - connecting
to host ec2-184-169-192-192.us-west-1.compute.amazonaws.com on port 22
as user root
2012-10-16 16:40:35,172 PID: 13516 __init__.py:186 - DEBUG - creating
sftp connection
2012-10-16 16:40:35,537 PID: 13516 cli.py:287 - DEBUG - Traceback
(most recent call last):
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.93.3-py2.7.egg/starcluster/cli.py",
line 255, in main
sc.execute(args)
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.93.3-py2.7.egg/starcluster/commands/get.py",
line 51, in execute
node.ssh.get(rpaths, lpath)
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.93.3-py2.7.egg/starcluster/sshutils/__init__.py",
line 418, in get
globresults = [self.glob(g) for g in globs]
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.93.3-py2.7.egg/starcluster/sshutils/__init__.py",
line 345, in glob
return self._glob.glob(pattern)
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.93.3-py2.7.egg/starcluster/sshutils/__init__.py",
line 710, in glob
return list(self.iglob(pathname))
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.93.3-py2.7.egg/starcluster/sshutils/__init__.py",
line 735, in iglob
for name in glob_in_dir(dirname, basename):
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.93.3-py2.7.egg/starcluster/sshutils/__init__.py",
line 757, in glob1
names = [os.path.basename(n) for n in self.ssh.ls(dirname)]
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.93.3-py2.7.egg/starcluster/sshutils/__init__.py",
line 342, in ls
return [os.path.join(path, f) for f in self.sftp.listdir(path)]
File "/usr/local/lib/python2.7/dist-packages/ssh-1.7.13-py2.7.egg/ssh/sftp_client.py",
line 150, in listdir
return [f.filename for f in self.listdir_attr(path)]
File "/usr/local/lib/python2.7/dist-packages/ssh-1.7.13-py2.7.egg/ssh/sftp_client.py",
line 173, in listdir_attr
t, msg = self._request(CMD_OPENDIR, path)
File "/usr/local/lib/python2.7/dist-packages/ssh-1.7.13-py2.7.egg/ssh/sftp_client.py",
line 635, in _request
return self._read_response(num)
File "/usr/local/lib/python2.7/dist-packages/ssh-1.7.13-py2.7.egg/ssh/sftp_client.py",
line 682, in _read_response
self._convert_status(msg)
File "/usr/local/lib/python2.7/dist-packages/ssh-1.7.13-py2.7.egg/ssh/sftp_client.py",
line 708, in _convert_status
raise IOError(errno.ENOENT, text)
IOError: [Errno 2] No such file
---------- SYSTEM INFO ----------
StarCluster: 0.93.3
Python: 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2]
Platform: Linux-2.6.38-15-generic-x86_64-with-Ubuntu-11.04-natty
boto: 2.3.0
ssh: 1.7.13
Crypto: 2.1.0
jinja2: 2.6
decorator: 3.3.1
--
Yiannis .
More information about the StarCluster
mailing list