Trying out the "quick" installation instructions, using four Ubuntu Server 12.04 VMs, ceph-deploy aborts with the following error:

brian@ceph-admin:~/my-cluster$ ceph-deploy install node1 node2 node3
[ceph_deploy.cli][INFO ] Invoked (1.4.0): /usr/bin/ceph-deploy install node1 node2 node3 [ceph_deploy.install][DEBUG ] Installing stable version emperor on cluster ceph hosts node1 node2 node3
[ceph_deploy.install][DEBUG ] Detecting platform for host node1 ...
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
[node1][DEBUG ] connected to host: node1
Traceback (most recent call last):
  File "/usr/bin/ceph-deploy", line 21, in <module>
    sys.exit(main())
File "/usr/lib/python2.7/dist-packages/ceph_deploy/util/decorators.py", line 62, in newfunc
    return f(*a, **kw)
File "/usr/lib/python2.7/dist-packages/ceph_deploy/cli.py", line 136, in main
    return args.func(args)
File "/usr/lib/python2.7/dist-packages/ceph_deploy/install.py", line 37, in install
    distro = hosts.get(hostname, username=args.username)
File "/usr/lib/python2.7/dist-packages/ceph_deploy/hosts/__init__.py", line 37, in get
    conn.import_module(remotes)
File "/usr/lib/python2.7/dist-packages/ceph_deploy/lib/remoto/connection.py", line 47, in import_module
    self.remote_module =

I tried putting my ssh key on node1/2/3, and ssh'ing into the admin node with agent forwarding enabled. No joy.

There is a warning in the instructions which says:

Do not callceph-deploywithsudoor run it asrootif you are logged in as a different user, because it will not issuesudocommands needed on the remote host

Also all the instructions show "sudo" wherever needed, so it seems you're supposed to run all this as a normal user.

However so far the only way I've been able to get this script to work is to "sudo -s", and then run it ceph-deploy as root (after setting a root password on node1/node2/node3)

Something missing from the instructions perhaps?

Thanks,

Brian.

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to