Project

General

Profile

Actions

Bug #4631

closed

ceph-deploy: install failed on debian system

Added by Tamilarasi muthamizhan about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
-
Category:
ceph-deploy
Target version:
-
% Done:

0%

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

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

Actions #1

Updated by Tamilarasi muthamizhan about 11 years ago

  • Category set to ceph-deploy
Actions #2

Updated by Tamilarasi muthamizhan about 11 years ago

  • Priority changed from Normal to High
Actions #3

Updated by Tamilarasi muthamizhan about 11 years ago

  • Priority changed from High to Urgent
Actions #4

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

Actions #5

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.

Actions #6

Updated by Anonymous about 11 years ago

  • Status changed from Fix Under Review to Resolved

Merged into master:

commit e226757b64a15b3ed237dda34e212863bbcea85a
Author: Gary Lowell <>
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  &lt;&gt;
Actions

Also available in: Atom PDF