Bug #4651
closedceph-deploy: unfriendly error message
0%
Description
We should have friendlier--perhaps instructive--error messages for ceph-deploy. I entered the following syntax, which was incorrect as I did not specify a branch:
john@osd-host:~/git-repos/ceph-deploy$ ./ceph-deploy install inktank1
I received this error message:
Traceback (most recent call last):
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 383, in init
self.modules = AutoImporter(self)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 236, in init
remote_compile = self.__client.eval("compile")
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 478, in eval
return self.remote.eval(code, globals, locals)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/connection.py", line 54, in eval
return self.send_request(MessageType.evaluate, args)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 311, in send_request
self.__send_message(message_type, args)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 560, in _send_message
self._ostream.send_message(m)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 97, in send_message
self.__file.write(bytes_)
IOError: [Errno 32] Broken pipe
[remote] sudo: no tty present and no askpass program specified
Traceback (most recent call last):
File "./ceph-deploy", line 9, in <module>
load_entry_point('ceph-deploy==0.0.1', 'console_scripts', 'ceph-deploy')()
File "/home/john/git-repos/ceph-deploy/ceph_deploy/cli.py", line 112, in main
return args.func(args)
File "/home/john/git-repos/ceph-deploy/ceph_deploy/install.py", line 197, in install
sudo = args.pushy('ssh+sudo:{hostname}'.format(hostname=hostname))
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 583, in connect
return PushyClient(target, **kwargs)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 383, in init
self.modules = AutoImporter(self)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 236, in init
remote_compile = self.__client.eval("compile")
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 478, in eval
return self.remote.eval(code, globals, locals)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/connection.py", line 54, in eval
return self.send_request(MessageType.evaluate, args)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 311, in send_request
self.__send_message(message_type, args)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 560, in _send_message
self._ostream.send_message(m)
File "/home/john/git-repos/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 97, in send_message
self.__file.write(bytes_)
IOError: [Errno 32] Broken pipe
Updated by Tamilarasi muthamizhan about 11 years ago
- Project changed from Ceph to devops
- Category set to ceph-deploy
- Assignee set to Sage Weil
Updated by Tamilarasi muthamizhan about 11 years ago
- Assignee changed from Sage Weil to Dan Mick
Updated by Tamilarasi muthamizhan almost 11 years ago
- Assignee deleted (
Dan Mick)
Updated by Sage Weil almost 11 years ago
- Status changed from New to Can't reproduce