Bug #5078
closedDebian missing sudo results in unclear error
0%
Description
Due to the missing 'sudo' command in debian the install.py fails while resolving the hostnames.
Perhaps a 'you need sudo for this script to work' is in place :)
Traceback (most recent call last):
File "./ceph-deploy", line 9, in <module>
load_entry_point('ceph-deploy==0.1', 'console_scripts', 'ceph-deploy')()
File "/root/ceph-deploy/ceph_deploy/cli.py", line 112, in main
return args.func(args)
File "/root/ceph-deploy/ceph_deploy/install.py", line 201, in install
sudo = args.pushy(get_transport(hostname))
File "/root/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 "/root/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 352, in init
self.server = transport.Popen(command, **kwargs)
File "/root/ceph-deploy/ceph_deploy/sudo_pushy.py", line 33, in Popen
return Local_Popen(command, *a, **kw)
File "/root/ceph-deploy/ceph_deploy/sudo_pushy.py", line 13, in init
bufsize=65535)
File "/usr/lib/python2.7/subprocess.py", line 679, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1259, in execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Exception AttributeError: "Local_Popen instance has no attribute 'stdin'" in <bound method Local_Popen._del__ of <ceph_deploy.sudo_pushy.Local_Popen instance at 0x2a8e200>> ignored