Project

General

Profile

Actions

Bug #4651

closed

ceph-deploy: unfriendly error message

Added by John Wilkins about 11 years ago. Updated almost 11 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
ceph-deploy
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Actions #1

Updated by Tamilarasi muthamizhan about 11 years ago

  • Project changed from Ceph to devops
  • Category set to ceph-deploy
  • Assignee set to Sage Weil
Actions #2

Updated by Tamilarasi muthamizhan about 11 years ago

  • Assignee changed from Sage Weil to Dan Mick
Actions #3

Updated by Tamilarasi muthamizhan almost 11 years ago

  • Assignee deleted (Dan Mick)
Actions #4

Updated by Sage Weil almost 11 years ago

john do you remember what os this was?

Actions #5

Updated by Sage Weil almost 11 years ago

  • Status changed from New to Can't reproduce
Actions

Also available in: Atom PDF