Re: [ceph-users] Ceph deployment issue in physical hosts
On Wed, Sep 25, 2013 at 9:31 AM, Guang wrote: > Thanks for the reply! > > I don't know the reason, but I work-around this issue by add a new entry in > the /etc/hosts with something like 'web2 {id_address_of_web2}' and it can > work. > > I am not sure if that is due to some mis-config by my end of the deployment > script, will further investigate. > That is certainly not ideal, but still very curious if you were able to ssh to the 'web2' host normally without doing anything to /etc/hosts. Hope you can find what was missing so we can fix it on our end :) > Thanks all for the help! > > Guang > > On Sep 25, 2013, at 8:38 PM, Alfredo Deza wrote: > >> On Wed, Sep 25, 2013 at 5:08 AM, Guang wrote: >>> Thanks Wolfgang. >>> >>> -bash-4.1$ ping web2 >>> PING web2 (10.193.244.209) 56(84) bytes of data. >>> 64 bytes from web2 (10.193.244.209): icmp_seq=1 ttl=64 time=0.505 ms >>> 64 bytes from web2 (10.193.244.209): icmp_seq=2 ttl=64 time=0.194 ms >>> ... >>> >>> [I omit part of the host name]. >>> >>> It can ping to the host and I actually used ceph-deploy to install ceph onto >>> the web2 remote host… >>> >> >> This is very unexpected, it most definitely sounds like at some point >> web2 is not resolvable (as the >> error says) but you are also right in that you initiate the deployment >> correctly with ceph-deploy doing work >> on the remote end. >> >> Are you able to SSH directly to this host from where you are executing >> ceph-deploy? (same user/login) >> >> >> >>> Thanks, >>> Guang >>> >>> >>> Date: Wed, 25 Sep 2013 10:29:14 +0200 >>> From: Wolfgang Hennerbichler >>> To: >>> Subject: Re: [ceph-users] Ceph deployment issue in physical hosts >>> Message-ID: <52429eda.8070...@risc-software.at> >>> Content-Type: text/plain; charset="ISO-8859-1" >>> >>> >>> >>> >>> On 09/25/2013 10:03 AM, Guang wrote: >>> >>> Hi ceph-users, >>> >>> I deployed a cluster successfully in VMs, and today I tried to deploy a >>> cluster in physical nodes. However, I came across a problem when I started >>> creating a monitor. >>> >>> >>> -bash-4.1$ ceph-deploy mon create x >>> >>> >>> >>> ssh: Could not resolve hostname web2: Name or service not known >>> >>> Does anyone come across the same issue? Looks like I mis-configured the >>> network environment? >>> >>> >>> The machine you run ceph-deploy on doesn't know "who" web2 is. If this >>> command succeeds: "ping web2" then ceph deploy will at least be able to >>> contact that host. >>> >>> hint: look at your /etc/hosts file. >>> >>> Thanks, >>> >>> Guang >>> >>> >>> Wolfgang >>> >>> ___ >>> ceph-users mailing list >>> ceph-users@lists.ceph.com >>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >>> > ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] Ceph deployment issue in physical hosts
Thanks for the reply! I don't know the reason, but I work-around this issue by add a new entry in the /etc/hosts with something like 'web2 {id_address_of_web2}' and it can work. I am not sure if that is due to some mis-config by my end of the deployment script, will further investigate. Thanks all for the help! Guang On Sep 25, 2013, at 8:38 PM, Alfredo Deza wrote: > On Wed, Sep 25, 2013 at 5:08 AM, Guang wrote: >> Thanks Wolfgang. >> >> -bash-4.1$ ping web2 >> PING web2 (10.193.244.209) 56(84) bytes of data. >> 64 bytes from web2 (10.193.244.209): icmp_seq=1 ttl=64 time=0.505 ms >> 64 bytes from web2 (10.193.244.209): icmp_seq=2 ttl=64 time=0.194 ms >> ... >> >> [I omit part of the host name]. >> >> It can ping to the host and I actually used ceph-deploy to install ceph onto >> the web2 remote host… >> > > This is very unexpected, it most definitely sounds like at some point > web2 is not resolvable (as the > error says) but you are also right in that you initiate the deployment > correctly with ceph-deploy doing work > on the remote end. > > Are you able to SSH directly to this host from where you are executing > ceph-deploy? (same user/login) > > > >> Thanks, >> Guang >> >> >> Date: Wed, 25 Sep 2013 10:29:14 +0200 >> From: Wolfgang Hennerbichler >> To: >> Subject: Re: [ceph-users] Ceph deployment issue in physical hosts >> Message-ID: <52429eda.8070...@risc-software.at> >> Content-Type: text/plain; charset="ISO-8859-1" >> >> >> >> >> On 09/25/2013 10:03 AM, Guang wrote: >> >> Hi ceph-users, >> >> I deployed a cluster successfully in VMs, and today I tried to deploy a >> cluster in physical nodes. However, I came across a problem when I started >> creating a monitor. >> >> >> -bash-4.1$ ceph-deploy mon create x >> >> >> >> ssh: Could not resolve hostname web2: Name or service not known >> >> Does anyone come across the same issue? Looks like I mis-configured the >> network environment? >> >> >> The machine you run ceph-deploy on doesn't know "who" web2 is. If this >> command succeeds: "ping web2" then ceph deploy will at least be able to >> contact that host. >> >> hint: look at your /etc/hosts file. >> >> Thanks, >> >> Guang >> >> >> Wolfgang >> >> ___ >> ceph-users mailing list >> ceph-users@lists.ceph.com >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >> ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] Ceph deployment issue in physical hosts
On Wed, Sep 25, 2013 at 5:08 AM, Guang wrote: > Thanks Wolfgang. > > -bash-4.1$ ping web2 > PING web2 (10.193.244.209) 56(84) bytes of data. > 64 bytes from web2 (10.193.244.209): icmp_seq=1 ttl=64 time=0.505 ms > 64 bytes from web2 (10.193.244.209): icmp_seq=2 ttl=64 time=0.194 ms > ... > > [I omit part of the host name]. > > It can ping to the host and I actually used ceph-deploy to install ceph onto > the web2 remote host… > This is very unexpected, it most definitely sounds like at some point web2 is not resolvable (as the error says) but you are also right in that you initiate the deployment correctly with ceph-deploy doing work on the remote end. Are you able to SSH directly to this host from where you are executing ceph-deploy? (same user/login) > Thanks, > Guang > > > Date: Wed, 25 Sep 2013 10:29:14 +0200 > From: Wolfgang Hennerbichler > To: > Subject: Re: [ceph-users] Ceph deployment issue in physical hosts > Message-ID: <52429eda.8070...@risc-software.at> > Content-Type: text/plain; charset="ISO-8859-1" > > > > > On 09/25/2013 10:03 AM, Guang wrote: > > Hi ceph-users, > > I deployed a cluster successfully in VMs, and today I tried to deploy a > cluster in physical nodes. However, I came across a problem when I started > creating a monitor. > > > -bash-4.1$ ceph-deploy mon create x > > > > ssh: Could not resolve hostname web2: Name or service not known > > Does anyone come across the same issue? Looks like I mis-configured the > network environment? > > > The machine you run ceph-deploy on doesn't know "who" web2 is. If this > command succeeds: "ping web2" then ceph deploy will at least be able to > contact that host. > > hint: look at your /etc/hosts file. > > Thanks, > > Guang > > > Wolfgang > > ___ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] Ceph deployment issue in physical hosts
Thanks Wolfgang. -bash-4.1$ ping web2 PING web2 (10.193.244.209) 56(84) bytes of data. 64 bytes from web2 (10.193.244.209): icmp_seq=1 ttl=64 time=0.505 ms 64 bytes from web2 (10.193.244.209): icmp_seq=2 ttl=64 time=0.194 ms ... [I omit part of the host name]. It can ping to the host and I actually used ceph-deploy to install ceph onto the web2 remote host… Thanks, Guang Date: Wed, 25 Sep 2013 10:29:14 +0200 From: Wolfgang Hennerbichler To: Subject: Re: [ceph-users] Ceph deployment issue in physical hosts Message-ID: <52429eda.8070...@risc-software.at> Content-Type: text/plain; charset="ISO-8859-1" On 09/25/2013 10:03 AM, Guang wrote: > Hi ceph-users, > I deployed a cluster successfully in VMs, and today I tried to deploy a > cluster in physical nodes. However, I came across a problem when I started > creating a monitor. > > -bash-4.1$ ceph-deploy mon create x > ssh: Could not resolve hostname web2: Name or service not known > Does anyone come across the same issue? Looks like I mis-configured the > network environment? The machine you run ceph-deploy on doesn't know "who" web2 is. If this command succeeds: "ping web2" then ceph deploy will at least be able to contact that host. hint: look at your /etc/hosts file. > Thanks, > Guang Wolfgang ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] Ceph deployment issue in physical hosts
On 09/25/2013 10:03 AM, Guang wrote: > Hi ceph-users, > I deployed a cluster successfully in VMs, and today I tried to deploy a > cluster in physical nodes. However, I came across a problem when I started > creating a monitor. > > -bash-4.1$ ceph-deploy mon create x > ssh: Could not resolve hostname web2: Name or service not known > Does anyone come across the same issue? Looks like I mis-configured the > network environment? The machine you run ceph-deploy on doesn't know "who" web2 is. If this command succeeds: "ping web2" then ceph deploy will at least be able to contact that host. hint: look at your /etc/hosts file. > Thanks, > Guang Wolfgang > __ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- DI (FH) Wolfgang Hennerbichler Software Development Unit Advanced Computing Technologies RISC Software GmbH A company of the Johannes Kepler University Linz IT-Center Softwarepark 35 4232 Hagenberg Austria Phone: +43 7236 3343 245 Fax: +43 7236 3343 250 wolfgang.hennerbich...@risc-software.at http://www.risc-software.at ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
[ceph-users] Ceph deployment issue in physical hosts
Hi ceph-users, I deployed a cluster successfully in VMs, and today I tried to deploy a cluster in physical nodes. However, I came across a problem when I started creating a monitor. -bash-4.1$ ceph-deploy mon create x [ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts [ceph_deploy.mon][DEBUG ] detecting platform for host web2 ... [ceph_deploy.sudo_pushy][DEBUG ] will use a remote connection with sudo [ceph_deploy.mon][INFO ] distro info: RedHatEnterpriseServer 6.4 Santiago [web2][DEBUG ] determining if provided host has same hostname in remote [web2][DEBUG ] deploying mon to web2 [web2][DEBUG ] remote hostname: web2 [web2][INFO ] write cluster configuration to /etc/ceph/{cluster}.conf [web2][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-web2/done [web2][INFO ] create a done file to avoid re-doing the mon deployment [web2][INFO ] create the init path if it does not exist [web2][INFO ] locating `service` executable... [web2][INFO ] found `service` executable: /sbin/service ssh: Could not resolve hostname web2: Name or service not known Traceback (most recent call last): File "/usr/bin/ceph-deploy", line 21, in sys.exit(main()) File "/usr/lib/python2.6/site-packages/ceph_deploy/util/decorators.py", line 83, in newfunc return f(*a, **kw) File "/usr/lib/python2.6/site-packages/ceph_deploy/cli.py", line 147, in main return args.func(args) File "/usr/lib/python2.6/site-packages/ceph_deploy/mon.py", line 246, in mon mon_create(args) File "/usr/lib/python2.6/site-packages/ceph_deploy/mon.py", line 105, in mon_create distro.mon.create(distro, rlogger, args, monitor_keyring) File "/usr/lib/python2.6/site-packages/ceph_deploy/hosts/centos/mon/create.py", line 15, in create rconn = get_connection(hostname, logger) File "/usr/lib/python2.6/site-packages/ceph_deploy/connection.py", line 13, in get_connection sudo=needs_sudo(), File "/usr/lib/python2.6/site-packages/ceph_deploy/lib/remoto/connection.py", line 12, in __init__ self.gateway = execnet.makegateway('ssh=%s' % hostname) File "/usr/lib/python2.6/site-packages/ceph_deploy/lib/remoto/lib/execnet/multi.py", line 89, in makegateway gw = gateway_bootstrap.bootstrap(io, spec) File "/usr/lib/python2.6/site-packages/ceph_deploy/lib/remoto/lib/execnet/gateway_bootstrap.py", line 70, in bootstrap bootstrap_ssh(io, spec) File "/usr/lib/python2.6/site-packages/ceph_deploy/lib/remoto/lib/execnet/gateway_bootstrap.py", line 42, in bootstrap_ssh raise HostNotFound(io.remoteaddress) execnet.gateway_bootstrap.HostNotFound: web2 Does anyone come across the same issue? Looks like I mis-configured the network environment? Thanks, Guang ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com