Project

General

Profile

Actions

Documentation #8536

closed

Ceph-deploy install on Centos and RHEL

Added by Anonymous almost 10 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

When one first runs ceph-deploy by following either of the following documents:

http://ceph.com/docs/firefly/start/quick-ceph-deploy/
http://ceph.com/docs/dumpling/start/quick-ceph-deploy/

the install can fail as follows:

[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ubuntu/cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.3): /usr/bin/ceph-deploy install vpm063
[ceph_deploy.install][DEBUG ] Installing stable version firefly on cluster ceph hosts vpm063
[ceph_deploy.install][DEBUG ] Detecting platform for host vpm063 ...
sudo: sorry, you must have a tty to run sudo
[vpm063][DEBUG ] connected to host: vpm063 
/usr/lib/python2.6/site-packages/ceph_deploy/hosts/__init__.py:40: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  if 'already closed' in getattr(error, 'message', ''):
[ceph_deploy][ERROR ] RuntimeError: remote connection got closed, ensure ``requiretty`` is disabled for vpm063

The problem is that on the machine being installed (vpm063 in this case), /etc/suoders contains the following line:

Defaults    requiretty

That line should be commented out in order for this to work.

This is probably a minor gotcha that most people could figure out, but we probably should mention it anyway.

Actions #1

Updated by Dan Mick almost 10 years ago

That is mentioned in the preflight checklist, which is referred to by the quickstart docs. It's easy to miss, but it's there.

Actions #2

Updated by John Wilkins almost 10 years ago

Actually, these comments are reasonably prominent in the master branch in both the preflight and in the quick start, but didn't make it into the dumpling or firefly branches. I'll look into getting those sections into the the dumpling and firefly branches.

Actions #3

Updated by John Wilkins almost 10 years ago

  • Status changed from New to Resolved
  • Assignee set to John Wilkins

There were comments on the master branch, but not on Firefly or Dumpling. I've added the comments there too.

Actions #4

Updated by breno leitao over 8 years ago

On my case, I found that the problem was related to the user. I found that my user on the remote note (mon0) was not able to sudo without password.

I just logged into the remote node (mon0) and enabled sudo without passwd. Everything went fine then:

Here is the initial problem and how it went after allowing sudo without passwd: 

~  ceph-deploy install mon0
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ubuntu/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.20): /usr/bin/ceph-deploy install mon0
[ceph_deploy.install][DEBUG ] Installing stable version firefly on cluster ceph hosts mon0
[ceph_deploy.install][DEBUG ] Detecting platform for host mon0 ...
[mon0][DEBUG ] connection detected need for sudo
sudo: no tty present and no askpass program specified
[mon0][DEBUG ] connected to host: mon0 
[ceph_deploy][ERROR ] RuntimeError: remote connection got closed, ensure ``requiretty`` is disabled for mon0

➜  ~  ceph-deploy install mon0
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ubuntu/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.20): /usr/bin/ceph-deploy install mon0
[ceph_deploy.install][DEBUG ] Installing stable version firefly on cluster ceph hosts mon0
[ceph_deploy.install][DEBUG ] Detecting platform for host mon0 ...
[mon0][DEBUG ] connection detected need for sudo
[mon0][DEBUG ] connected to host: mon0 
[mon0][DEBUG ] detect platform information from remote host
[mon0][DEBUG ] detect machine type
[ceph_deploy.install][INFO  ] Distro info: Ubuntu 15.10 wily
[mon0][INFO  ] installing ceph on mon0
[mon0][INFO  ] Running command: sudo env DEBIAN_FRONTEND=noninteractive apt-get -q install --assume-yes ca-certificates
[mon0][DEBUG ] Reading package lists...
[mon0][DEBUG ] Building dependency tree...
[mon0][DEBUG ] Reading state information...
...
Actions

Also available in: Atom PDF