Project

General

Profile

Actions

Bug #6482

closed

ceph-deploy install on Centos: can't find wget?

Added by karan singh over 10 years ago. Updated over 10 years ago.

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

0%

Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[ceph@ceph-client ~]$ ceph-deploy install ceph-node1
[ceph_deploy.install][DEBUG ] Installing stable version dumpling on cluster ceph hosts ceph-node1
[ceph_deploy.install][DEBUG ] Detecting platform for host ceph-node1 ...
[ceph_deploy.sudo_pushy][DEBUG ] will use a remote connection with sudo
[ceph_deploy.lsb][WARNIN] lsb_release was not found - inferring OS details
[ceph_deploy.install][INFO ] Distro info: CentOS 6.4 Final
[ceph-node1][INFO ] installing ceph on ceph-node1
[ceph-node1][INFO ] adding EPEL repository
[ceph-node1][INFO ] Running command: wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[ceph-node1][ERROR ] Traceback (most recent call last):
[ceph-node1][ERROR ] File "/usr/lib/python2.6/site-packages/ceph_deploy/hosts/centos/install.py", line 77, in install_epel
[ceph-node1][ERROR ] File "/usr/lib/python2.6/site-packages/ceph_deploy/util/decorators.py", line 10, in inner
[ceph-node1][ERROR ] def inner(args, **kwargs):
[ceph-node1][ERROR ] File "/usr/lib/python2.6/site-packages/ceph_deploy/util/wrappers.py", line 6, in remote_call
[ceph-node1][ERROR ] This allows us to only remote-execute the actual calls, not whole functions.
[ceph-node1][ERROR ] File "/usr/lib64/python2.6/subprocess.py", line 497, in check_call
[ceph-node1][ERROR ] retcode = call(*popenargs, **kwargs)
[ceph-node1][ERROR ] File "/usr/lib64/python2.6/subprocess.py", line 478, in call
[ceph-node1][ERROR ] p = Popen(*popenargs, **kwargs)
[ceph-node1][ERROR ] File "/usr/lib64/python2.6/subprocess.py", line 639, in init
[ceph-node1][ERROR ] errread, errwrite)
[ceph-node1][ERROR ] File "/usr/lib64/python2.6/subprocess.py", line 1228, in _execute_child
[ceph-node1][ERROR ] raise child_exception
[ceph-node1][ERROR ] OSError: [Errno 2] No such file or directory
[ceph-node1][INFO ] Running command: rpm -Uvh --replacepkgs epel-release-6
.rpm
[ceph-node1][ERROR ] Traceback (most recent call last):
[ceph-node1][ERROR ] File "/usr/lib/python2.6/site-packages/ceph_deploy/util/pkg_managers.py", line 69, in rpm
[ceph-node1][ERROR ] File "/usr/lib/python2.6/site-packages/ceph_deploy/util/decorators.py", line 10, in inner
[ceph-node1][ERROR ] def inner(args, **kwargs):
[ceph-node1][ERROR ] File "/usr/lib/python2.6/site-packages/ceph_deploy/util/wrappers.py", line 6, in remote_call
[ceph-node1][ERROR ] This allows us to only remote-execute the actual calls, not whole functions.
[ceph-node1][ERROR ] File "/usr/lib64/python2.6/subprocess.py", line 502, in check_call
[ceph-node1][ERROR ] raise CalledProcessError(retcode, cmd)
[ceph-node1][ERROR ] CalledProcessError: Command '['rpm', '-Uvh', '--replacepkgs', 'epel-release-6
.rpm']' returned non-zero exit status 1
[ceph-node1][ERROR ] error: File not found by glob: epel-release-6*.rpm
[ceph-node1][INFO ] Running command: su -c 'rpm --import "https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc"'
[ceph-node1][INFO ] Running command: rpm -Uvh --replacepkgs http://ceph.com/rpm-dumpling/el6/noarch/ceph-release-1-0.el6.noarch.rpm
[ceph-node1][INFO ] Retrieving http://ceph.com/rpm-dumpling/el6/noarch/ceph-release-1-0.el6.noarch.rpm
[ceph-node1][INFO ] Preparing... ##################################################
[ceph-node1][INFO ] ceph-release ##################################################
[ceph-node1][INFO ] Running command: yum -y -q install ceph
[ceph-node1][INFO ] Package ceph-0.67.4-0.el6.x86_64 already installed and latest version
[ceph-node1][INFO ] Running command: ceph --version
[ceph-node1][INFO ] ceph version 0.67.4 (ad85b8bfafea6232d64cb7ba76a8b6e8252fa0c7)
[ceph@ceph-client ~]$

Actions #1

Updated by Dan Mick over 10 years ago

  • Subject changed from Traceback (most recent call last) to ceph-deploy install on Centos: can't find wget?
Actions #2

Updated by Sage Weil over 10 years ago

  • Assignee changed from Sage Weil to Alfredo Deza
  • Source changed from other to Community (user)
Actions #3

Updated by Alfredo Deza over 10 years ago

  • Status changed from New to Need More Info

Karan could you please confirm that `wget` is actually installed/available in that host?

I want to rule out that this is not a problem of `wget` not being installed (would be odd) or that is located in a path
that is not in one of the ones that ceph-deploy uses for remote execution.

Could you run a `which wget` and add that to the description of the ticket?

Actions #4

Updated by Michael Potter over 10 years ago

Alfredo Deza wrote:

I want to rule out that this is not a problem of `wget` not being installed (would be odd) or that is located in a path

Wouldn't be odd for a CentOS install, the minimal comes without it.

Actions #5

Updated by karan singh over 10 years ago

Hi Alfredo

You can close this this is now fixed

Actions #6

Updated by Sage Weil over 10 years ago

  • Priority changed from Urgent to High
Actions #7

Updated by Alfredo Deza over 10 years ago

  • Status changed from Need More Info to 12

After discussing with ksingh, I can confirm this is still a bug and ceph-deploy should install wget before it attempts to do anything on CentOS.

This is a fairly straight forward fix as we already make sure other libraries are installed for this distro.

Actions #8

Updated by Alfredo Deza over 10 years ago

  • Status changed from 12 to Fix Under Review
Actions #9

Updated by Alfredo Deza over 10 years ago

  • Status changed from Fix Under Review to Resolved

Merged into ceph-deploy's master branch with hash: 91618ba

Actions

Also available in: Atom PDF