Hi Gary,
after a bit of searching on the list I was able to resolve this by "aptitude install python-setuptools".
seems it's a missing dependency on wheezy "ceph-deploy" install.
thanks for your help
-Matt
On Sat, May 18, 2013 at 6:54 AM, Gary Lowell <glowell@xxxxxxxxx> wrote:
Hi Matt -Sorry, I just spotted at the end of your message that you are using python 2.7.3. But the modules are installing into the python2.6 directories. I don't know why that would be happening, and we'll have to dig into more. Python is tripping over incompatible syntax for some reason.Cheers,GaryOn May 17, 2013, at 1:41 PM, Gary Lowell wrote:Hi Matt -_______________________________________________I see in the message below that you are using python 2.6. Ceph-deploy may have some syntax that is incompatible with that version of python. On wheezy we tested with the default python 2.7.3 interpreter. You might try using the newer interpreter, we will also do so more testing to see if we can get ceph-deploy working with python 2.6.Cheers,GaryOn May 17, 2013, at 6:23 AM, Matt Chipman wrote:Thanks Gary,after you throwing me those clues I got furthur but it still isnt working. It seems there are no i386 deb "python-pushy" packages in either of those ceph repo's. I also attempted using PIP and got pushy installed but the ceph-deploy debs still refused to install.I built another VM with 64bit Debian 7 and the packages were found and installed however there is an error on compiling during install.any ideas?cheers-Mattadministrator@ceph-admin:~$ sudo aptitude install ceph-deployThe following NEW packages will be installed:ceph-deploy python-pushy{a}0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.Need to get 53.3 kB of archives. After unpacking 328 kB will be used.Do you want to continue? [Y/n/?]Get: 1 http://ceph.com/debian-cuttlefish/ wheezy/main python-pushy amd64 0.5.1-1 [30.9 kB]Get: 2 http://ceph.com/debian-cuttlefish/ wheezy/main ceph-deploy all 0.1-1 [22.4 kB]Fetched 53.3 kB in 1s (33.2 kB/s)Selecting previously unselected package python-pushy.(Reading database ... 38969 files and directories currently installed.)Unpacking python-pushy (from .../python-pushy_0.5.1-1_amd64.deb) ...Selecting previously unselected package ceph-deploy.Unpacking ceph-deploy (from .../ceph-deploy_0.1-1_all.deb) ...Setting up python-pushy (0.5.1-1) ...Setting up ceph-deploy (0.1-1) ...Processing triggers for python-support ...Compiling /usr/lib/pymodules/python2.6/ceph_deploy/test/test_cli.py ...SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/ceph_deploy/test/test_cli.py', 44, 26, ' assert {p.basename for p in tmpdir.listdir()} == set()\n'))Compiling /usr/lib/pymodules/python2.6/ceph_deploy/test/test_cli_new.py ...SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/ceph_deploy/test/test_cli_new.py', 33, 26, " assert {p.basename for p in tmpdir.listdir()} == {'ceph.conf'}\n"))administrator@ceph-admin:~$ ceph-deployTraceback (most recent call last):File "/usr/bin/ceph-deploy", line 19, in <module>from ceph_deploy.cli import mainFile "/usr/lib/pymodules/python2.7/ceph_deploy/cli.py", line 1, in <module>import pkg_resourcesImportError: No module named pkg_resourcesadministrator@ceph-admin:~$ pythonPython 2.7.3 (default, Jan 2 2013, 13:56:14)[GCC 4.7.2] on linux2_______________________________________________On Fri, May 17, 2013 at 9:10 AM, Gary Lowell <glowell@xxxxxxxxx> wrote:
Hi Matt -Sounds like you installed ceph-deploy by downloading from github.com/ceph/ceph-deploy, then running the bootstrap script.We have debian packages for ceph-deploy and python-pushy that are included in the debian-cuttlefish repo, as well as http://ceph.com/packages/ceph-deploy/debian. You can install python-push from those locations with apt, or you can install via pip: sudo pip python-pushy.Let me know if you continue to have problems.Cheers,GaryOn May 16, 2013, at 3:51 PM, Matt Chipman wrote:hi,_______________________________________________I used ceph-deploy successfully a few days ago but recently reinstalled my admin machine from the same instructions http://ceph.com/docs/master/rados/deployment/preflight-checklist/now getting the error below. Then I figured I'd just use the debs but they are missing the python-pushy dependancy. Debian 7.0Is there any way to solve either issue?thanksadministrator@cephadmin:~$ ceph-deployusage: ceph-deploy [-h] [-v | -q] [-n] [--overwrite-conf] [--cluster NAME]COMMAND ...ceph-deploy: error: too few argumentsadministrator@cephadmin:~$ ceph-deploy install ceph00Traceback (most recent call last):File "/home/administrator/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/administrator/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/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 478, in evalreturn self.remote.eval(code, globals, locals)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/connection.py", line 54, in evalreturn self.send_request(MessageType.evaluate, args)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 315, in send_requestm = self.__waitForResponse(handler)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 420, in __waitForResponsem = self.__recv()File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 601, in __recvm = self.__istream.receive_message()File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 104, in receive_messagereturn Message.unpack(self.__file)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/message.py", line 96, in unpackheader = read(file, Message.PACKING_SIZE)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/message.py", line 60, in readraise IOError, "End of file"IOError: End of file[remote] sudo: no tty present and no askpass program specifiedTraceback (most recent call last):File "./ceph-deploy/ceph-deploy", line 9, in <module>load_entry_point('ceph-deploy==0.1', 'console_scripts', 'ceph-deploy')()File "/home/administrator/ceph-deploy/ceph_deploy/cli.py", line 112, in mainreturn args.func(args)File "/home/administrator/ceph-deploy/ceph_deploy/install.py", line 202, in installsudo = args.pushy(get_transport(hostname))File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 583, in connectreturn PushyClient(target, **kwargs)File "/home/administrator/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/administrator/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/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py", line 478, in evalreturn self.remote.eval(code, globals, locals)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/connection.py", line 54, in evalreturn self.send_request(MessageType.evaluate, args)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 315, in send_requestm = self.__waitForResponse(handler)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 420, in __waitForResponsem = self.__recv()File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 601, in __recvm = self.__istream.receive_message()File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 104, in receive_messagereturn Message.unpack(self.__file)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/message.py", line 96, in unpackheader = read(file, Message.PACKING_SIZE)File "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/message.py", line 60, in readraise IOError, "End of file"IOError: End of fileadministrator@cephadmin:~$
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com