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

Also available in: Atom PDF