2 lovelycornflower LovelyCornflower 于 2017.09.06 14:41 提问

Ubuntu16 安装ceph报错 ensure requiretty is disabled 100C

Ubuntu14安装ceph正常,
但是采用do-release-upgrade升级到16之后,执行ceph-deploy new node1 报错

cephd@user19-group1-334:~$ cd cephinstall/
cephd@user19-group1-334:~/cephinstall$ ceph-deploy new node1
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/cephd/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.32): /usr/bin/ceph-deploy new node1
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf :
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] ssh_copykey : True
[ceph_deploy.cli][INFO ] mon : ['node1']
[ceph_deploy.cli][INFO ] func :
[ceph_deploy.cli][INFO ] public_network : None
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] cluster_network : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] fsid : None
[ceph_deploy.new][DEBUG ] Creating new cluster named ceph
[ceph_deploy.new][INFO ] making sure passwordless SSH succeeds
[node1][DEBUG ] connected to host: user19-group1-334
[node1][INFO ] Running command: ssh -CT -o BatchMode=yes node1
[node1][DEBUG ] connection detected need for sudo
sudo: no tty present and no askpass program specified
[node1][DEBUG ] connected to host: node1
[ceph_deploy][ERROR ] RuntimeError: remote connection got closed, ensure requiretty is disabled for node1

我是按照TonyBai 的文章部署的 使用Ceph RBD为Kubernetes集群提供存储卷
http://tonybai.com/2016/11/07/integrate-kubernetes-with-ceph-rbd/?utm_source=tuicool&utm_medium=referral
创建了cephd账号 免密登陆node1 node2成功
执行 ceph-deploy new node1
报错。

网上给的都是CentOs的解决方案,但我的是Ubuntu,也报错了

1个回答

zhoucheng05_13
zhoucheng05_13   2017.09.06 15:00

报错的第一句“connection detected need for sudo”翻译成中文是:检测到连接需要sudo,sudo是Ubuntu中的超级权限。
所以你可以试试在安装命令前加上sudo命令,如“sudo apt -get ceph”,第一次使用sudo会要求输入密码。

LovelyCornflower
LovelyCornflower 不是这个原因,成功的里面也有这一句
3 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片