Found it.
Ubuntu has a misfeature where it lists hostname and FQDN in
/etc/hosts using the loopback address. This makes it impossible to
determine the real internet address which confuses many services
including ceph_deploy.util.get_nonlocal_ip which tosses all the
127.x addresses and then complains that it has no addresses left.
The fix is simple. Remove the line from /etc/hosts. Afaik, it's
only purpose is to support stand alone, no-network machines. This
misfeature has bitten me a number of times.
I think this should go into the quick start documentation.
--rich
On 11/30/14 13:30 , K Richard Pixley
wrote:
Hm. Seems like the problem might be deeper than I thought. It
doesn't seem to resolve FQDNs either, although it appears to be
connected remotely, which would have required some sort of
name resolution.
--rich
ceph@adriatic:~/my-cluster$ ceph-deploy new adriatic.noir.com
[ceph_deploy.conf][DEBUG ] found configuration file at:
/home/ceph/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.20): /usr/bin/ceph-deploy
new adriatic.noir.com
[ceph_deploy.new][DEBUG ] Creating new cluster named ceph
[ceph_deploy.new][INFO ] making sure passwordless SSH succeeds
[adriatic.noir.com][DEBUG ] connection detected need for sudo
[adriatic.noir.com][DEBUG ] connected to host: adriatic.noir.com
[adriatic.noir.com][DEBUG ] detect platform information from
remote host
[adriatic.noir.com][DEBUG ] detect machine type
[adriatic.noir.com][DEBUG ] find the location of an executable
[adriatic.noir.com][INFO ] Running command: sudo /bin/ip link
show
[adriatic.noir.com][INFO ] Running command: sudo /bin/ip addr
show
[adriatic.noir.com][DEBUG ] IP addresses found: ['192.168.1.76']
[ceph_deploy.new][DEBUG ] Resolving host adriatic.noir.com
[ceph_deploy][ERROR ] UnableToResolveError: Unable to resolve
host: adriatic.noir.com
On 11/30/14 12:53 , K Richard Pixley
wrote:
My
initial attempt at ceph-deploy is failing on name resolution.
Yet ping, ssh, etc, all work.
What is the name resolution test my machine needs to pass in
order for ceph-deploy to work?
--rich
ceph@adriatic:~/my-cluster$ ceph-deploy new adriatic
[ceph_deploy.conf][DEBUG ] found configuration file at:
/home/ceph/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.20): /usr/bin/ceph-deploy
new adriatic
[ceph_deploy.new][DEBUG ] Creating new cluster named ceph
[ceph_deploy.new][INFO ] making sure passwordless SSH succeeds
[adriatic][DEBUG ] connection detected need for sudo
[adriatic][DEBUG ] connected to host: adriatic
[adriatic][DEBUG ] detect platform information from remote host
[adriatic][DEBUG ] detect machine type
[adriatic][DEBUG ] find the location of an executable
[adriatic][INFO ] Running command: sudo /bin/ip link show
[adriatic][INFO ] Running command: sudo /bin/ip addr show
[adriatic][DEBUG ] IP addresses found: ['192.168.1.76']
[ceph_deploy.new][DEBUG ] Resolving host adriatic
[ceph_deploy][ERROR ] UnableToResolveError: Unable to resolve
host: adriatic
ceph@adriatic:~/my-cluster$ ping -c 2 adriatic
PING adriatic.noir.com (127.0.1.1) 56(84) bytes of data.
64 bytes from adriatic.noir.com (127.0.1.1): icmp_seq=1 ttl=64
time=0.043 ms
64 bytes from adriatic.noir.com (127.0.1.1): icmp_seq=2 ttl=64
time=0.059 ms
--- adriatic.noir.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.043/0.051/0.059/0.008 ms
ceph@adriatic:~/my-cluster$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by
resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE
OVERWRITTEN
nameserver 192.168.1.13
nameserver 198.144.192.2
nameserver 198.144.192.4
search noir.com
domain noir.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
|
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com