Bug #4631
closedceph-deploy: install failed on debian system
0%
Description
ceph branch: master
tamil@ubuntu:~/ceph-deploy-debian/ceph-deploy$ ./ceph-deploy install --dev=master plana05 plana21
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/tamil/ceph-deploy-debian/ceph-deploy/ceph_deploy/cli.py", line 112, in main
return args.func(args)
File "/home/tamil/ceph-deploy-debian/ceph-deploy/ceph_deploy/install.py", line 199, in install
(distro, release, codename) = lsb_release_r()
File "/home/tamil/ceph-deploy-debian/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/proxy.py", line 255, in <lambda>
(conn.operator(type_, self, args, kwargs))
File "/home/tamil/ceph-deploy-debian/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/connection.py", line 66, in operator
return self.send_request(type_, (object, args, kwargs))
File "/home/tamil/ceph-deploy-debian/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 323, in send_request
return self.__handle(m)
File "/home/tamil/ceph-deploy-debian/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 639, in __handle
raise e
pushy.protocol.proxy.ExceptionProxy: lsb_release not found on host
Updated by Tamilarasi muthamizhan about 11 years ago
- Category set to ceph-deploy
Updated by Tamilarasi muthamizhan about 11 years ago
- Priority changed from Normal to High
Updated by Tamilarasi muthamizhan about 11 years ago
- Priority changed from High to Urgent
Updated by Sage Weil about 11 years ago
I think here we should just exit with a clean error message, with a suggestion to install the appropriate deb or rpm
Updated by Anonymous about 11 years ago
- Status changed from New to Fix Under Review
Proposed fix is in the ceph-deploy wip-4631 branch.
The fix creates a get_lsb_release() function that checks for the lsb_release command on the remote system and raises a RuntimeError exception if not present. get_lsb_release() in turn will raise a new MissingPackageError exception which displays the error message and exists without a stack backtrace. Since we don't know the platform, we can't determine if an rpm or debian package needs to be installed, so we just
say lsb-release package.
glowell@gary-ubuntu-01:~/wip-4631/ceph-deploy$ ./ceph-deploy install gary-ubuntu-01
ceph-deploy: The lsb_release command was not found on remote host. Please install the lsb-release package.
Updated by Anonymous about 11 years ago
- Status changed from Fix Under Review to Resolved
Merged into master:
commit e226757b64a15b3ed237dda34e212863bbcea85a
Author: Gary Lowell <gary.lowell@inktank.com>
Date: Tue Apr 9 19:03:49 2013 +0000
ceph-deploy: detect missing lsb_release.
If the lsb_release command is not available on the remote host,
issue an error message and exit. (Bug #4631)
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>