Re: problem with ceph-deploy hanging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 15, 2013 at 3:07 PM, Gruher, Joseph R
<joseph.r.gruher@xxxxxxxxx> wrote:
>
>>From: Gruher, Joseph R
>>>From: Alfredo Deza [mailto:alfredo.deza@xxxxxxxxxxx]
>>>On Fri, Sep 13, 2013 at 5:06 PM, Gruher, Joseph R
>>><joseph.r.gruher@xxxxxxxxx> wrote:
>>>
>>>> root@cephtest01:~# ssh cephtest02 wget -q -O-
>>>> 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' |
>>>> apt-key add -
>>>>
>>>> gpg: no valid OpenPGP data found.
>>>>
>>>
>>>This is clearly part of the problem. Can you try getting to this with
>>>something other than wget (e.g. curl) ?
>>
>>OK, I am seeing the problem here after turning off quiet mode on wget.  You
>>can see in the wget output that part of the URL is lost when executing the
>>command over SSH.  However, I'm still unsure how to fix this, I've tried a
>>number of ways of enclosing the command and this keeps happening.
>>
>>SSH command leads to incomplete URL and returns web page (note URL
>>truncated at ceph.git):
>>
>>root@cephtest01:~# ssh cephtest02 sudo wget -O-
>>'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc'
>>--2013-09-13 16:37:06--  https://ceph.com/git/?p=ceph.git
>>
>>When run locally complete URL returns PGP key:
>>
>>root@cephtest02:/# wget -O-
>>'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc'
>>--2013-09-13 16:37:30--
>>https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
>
> I was able to show the wget command does succeed if properly formatted (have to double-enclose in quotes as SSH strips the outer set) as does the "apt-key add" if prefaced with a "sudo".

ceph-deploy inserts sudo for all commands on the remote host

>
> So, I'm still stuck on the problem of ceph deploy hanging at the point shown below.  Any tips on how to debug further?  Has anyone else experienced a similar problem?  Is it possible to enable any additional output from ceph-deploy?

ceph-deploy is currently set to output logging at the DEBUG level, I
don't think there is anything more (regarding output) that you can
change for more verbosity here.

 Is there any documentation on how to deploy without using
"ceph-deploy install"?  Thanks!

We are about to make a release with a couple of flags to avoid
changing the source repos, this would allow you to have your own
repositories
set before running ceph-deploy and the tool would just install ceph
from that (without the need to grab keys)

But certainly, I am worried about why is it hanging for you here, this
is a problem and I really want to make sure this is either fixed or
confirmed it was some kind of misconfiguration.

I believe that the problem is coming from using `sudo` + `root`. This
is a problem that is certainly fixed in the upcoming version.


Can you try with a different user (for now) ?

>
> Here's where it hangs:
>
> root@cephtest01:~# ceph-deploy install cephtest02 cephtest03 cephtest04
> [ceph_deploy.install][DEBUG ] Installing stable version dumpling on cluster ceph hosts cephtest02 cephtest03 cephtest04
> [ceph_deploy.install][DEBUG ] Detecting platform for host cephtest02 ...
> [ceph_deploy.install][INFO  ] Distro info: Ubuntu 12.04 precise
> [cephtest02][INFO  ] installing ceph on cephtest02
> [cephtest02][INFO  ] Running command: env DEBIAN_FRONTEND=noninteractive apt-get -q install --assume-yes ca-certificates
> [cephtest02][INFO  ] Reading package lists...
> [cephtest02][INFO  ] Building dependency tree...
> [cephtest02][INFO  ] Reading state information...
> [cephtest02][INFO  ] ca-certificates is already the newest version.
> [cephtest02][INFO  ] 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
> [cephtest02][INFO  ] Running command: wget -q -O- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key add -
>
> Here's the command it seems to be hanging on succeeding when manually run on the command line:
>
> root@cephtest01:~# ssh cephtest02 wget -q -O- "'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | sudo apt-key add -"
> OK
> root@cephtest01:~#
>
> Thanks,
> Joe
> _______________________________________________
> 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




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux