On Fri, Sep 13, 2013 at 5:06 PM, Gruher, Joseph R <joseph.r.gru...@intel.com> wrote: > Actually, after further analysis, I think the problem is different from what > I originally suspected. Let me restate the issue from the top. When I run > ceph-deploy it hangs on the last line shown here and just sits there > indefinitely, that’s the top level symptom: > > > > 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 – > > > > > > If I run the last command shown myself (via SSH to the target system from my > admin system) I get this error which I assume is causing the ceph-deploy > hang: > > > > 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) ? > > > > > If I run just the wget to see what it is returning I get something that > doesn’t look like a key (piped through html2text for readability) which I > assume is the cause of the “no valid OpenPGP data” error? > > > > root@cephtest01:~# ssh cephtest02 wget -q -O- > 'https://ceph.com/git/?p=cea=blob_plain;f=keys/release.asc' | html2text > > <?xml version="1.0" encoding="utf-8"?> > > > > [git]projects / ceph.git / summary > > [One of: commit/grep/author/committer/pickaxe]? search: [s > > ] â°re > > summary | shortlog | log | commit | commitdiff | tree > > > > Â > > description ceph.git > > owner Sage Weil > > last change Fri, 13 Sep 2013 15:57:16 +0000 > > URL git://ceph.newdream.net/git/ceph.git > > shortlog > > Merge_pull_request_#594 > > 5 hours ago Sage_Weil from_ceph/fix-no- commit | commitdiff | > > tcmalloc-build master tree | snapshot > > sagemirror/master > > make:_add_tmalloc_lib_dep > > in_tcmalloc_guard fix- commit | commitdiff | > > 5 hours ago Noah_Watkins no-tcmalloc-build 594/ tree | snapshot > > head sagemirror/fix-no- > > tcmalloc-build > > 26 hours ago David_Zafman Merge_branch_'wip-6226' commit | commitdiff | > > tree | snapshot > > osd/ReplicatedPG.cc: commit | commitdiff | > > 26 hours ago David_Zafman Verify_that_recovery_is tree | snapshot > > truly... > > osd/OSD.cc:_Use_MIN()_so commit | commitdiff | > > 26 hours ago David_Zafman that_we_don't_exceed tree | snapshot > > osd_recov... > > 27 hours ago Gregory_Farnum Merge_pull_request_#589 commit | commitdiff | > > from_ceph/wip-6279 tree | snapshot > > mon/MDSMonitor:_don't commit | commitdiff | > > 37 hours ago Yan,_Zheng reset_incarnation_when tree | snapshot > > creating... 589/head > > 2 days ago Yehuda_Sadeh Merge_pull_request_#587 commit | commitdiff | > > from_kri5/master tree | snapshot > > rgw-admin:_Adds_-- commit | commitdiff | > > 2 days ago Christophe... metadata-key_option_to tree | snapshot > > help 587/head > > osd:_bind_objecter commit | commitdiff | > > 2 days ago Greg_Farnum messenger_to_cluster tree | snapshot > > address > > osd:_name_the_objecter's > > 2 days ago Greg_Farnum messenger commit | commitdiff | > > "ms_objecter" tree | snapshot > > instea... > > Objecter:_rename commit | commitdiff | > > 2 days ago Greg_Farnum cancel_op_- tree | snapshot > > >_cancel_linger_op > > Merge_pull_request_#580 commit | commitdiff | > > 2 days ago Gregory_Farnum from_ceph/wip-6033- tree | snapshot > > redirects > > test:_update_cache_test commit | commitdiff | > > 2 days ago Greg_Farnum since_OSDs_support tree | snapshot > > redirects 580/head > > osd:_implement_basic commit | commitdiff | > > 2 days ago Greg_Farnum caching_policies_in tree | snapshot > > ReplicatedPG > > 2 days ago Greg_Farnum Objecter:_follow_redirect commit | commitdiff | > > replies_from_the_OSD tree | snapshot > > ... > > tags > > 4 days ago v0.67.3 v0.67.3 tag | commit | shortlog | log > > 9 days ago v0.68 v0.68 tag | commit | shortlog | log > > 2 weeks ago v0.56.7 v0.56.7 tag | commit | shortlog | log > > 3 weeks ago v0.67.2 v0.67.2 tag | commit | shortlog | log > > 3 weeks ago v0.61.8 v0.61.8 tag | commit | shortlog | log > > 3 weeks ago v0.67.1 v0.67.1 tag | commit | shortlog | log > > 4 weeks ago v0.67 v0.67 tag | commit | shortlog | log > > 6 weeks ago v0.67-rc3 v0.67-rc3 tag | commit | shortlog | log > > 7 weeks ago v0.61.7 v0.61.7 tag | commit | shortlog | log > > 7 weeks ago v0.67-rc2 v0.67-rc2 tag | commit | shortlog | log > > 7 weeks ago v0.61.6 v0.61.6 tag | commit | shortlog | log > > 7 weeks ago v0.67-rc1 v0.67-rc1 tag | commit | shortlog | log > > 8 weeks ago v0.61.5 v0.61.5 tag | commit | shortlog | log > > 2 months ago v0.66 v0.66 tag | commit | shortlog | log > > 2 months ago v0.65 v0.65 tag | commit | shortlog | log > > 2 months ago v0.61.4 v0.61.4 tag | commit | shortlog | log > > ... > > heads > > 22 min ago remove-hadoop-shim shortlog | log | tree > > 3 hours ago wip-5862 shortlog | log | tree > > 3 hours ago next shortlog | log | tree > > 4 hours ago wip-6147 shortlog | log | tree > > 5 hours ago master shortlog | log | tree > > 5 hours ago fix-no-tcmalloc-build shortlog | log | tree > > 6 hours ago wip-5857-3 shortlog | log | tree > > 23 hours ago wip-build-fixes shortlog | log | tree > > 23 hours ago wip-6294 shortlog | log | tree > > 24 hours ago wip-centos-java shortlog | log | tree > > 26 hours ago wip-remove-old-hadoop shortlog | log | tree > > 27 hours ago wip-6286-dumpling shortlog | log | tree > > 30 hours ago wip-6287 shortlog | log | tree > > 39 hours ago wip-6286 shortlog | log | tree > > 39 hours ago wip-misc shortlog | log | tree > > 41 hours ago wip-6284 shortlog | log | tree > > ... > > ceph.git > > RSS Atom > > root@cephtest01:~# > > > > Is this URL wrong, or is the data at the URL incorrect? I am not entirely sure what is causing this for you, I just did the same command in a Ubuntu 12.04 machine and it worked correctly (I see a gpg key). This is part of what I get: wget -q -O- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.11 (GNU/Linux) mQINBE+5bugBEADP31ZaQNvhOOQxjDwL/VYDLhtaGq4Q74FCY23uSQAMboKwo4JB Te2JTSwBwU/RAPuWTrlKaQBPS30VF5SJN9t16llmoBWqhtBVf/lhQonC/28dTB6D KR7Ahiz4Nv2g9m1sLau86JblQuODo8vWHXxahYSLQSyyxIXnlE4K3c1k0S4feLqu ZxFtc2cFrQ/bUX9zXg6PXjDVAfY2R+x1JKGkVO/iwP+cjS1tCbvzdKcnQJEXpBwd yHvDBuF3IjuR9JgrBhb1ALqexhFKHzG1kHFfOZ3DLVohig68lfyjCepGgo0BPOyy ..... Try with curl (with the right flags) and attempt to get the same output > > > > Thanks, > > Joe > > > > From: Gruher, Joseph R > Sent: Friday, September 13, 2013 1:17 PM > To: ceph-users@lists.ceph.com > Cc: Gruher, Joseph R > Subject: problem with ceph user > > > > Hello all- > > > > I’m setting up a new Ceph cluster (my first time – just a lab experiment, > not for production) by following the docs on the ceph.com website. The > preflight checklist went fine, I installed and updated Ubuntu 12.04.2, set > up my user and set up passwordless SSH, etc. I ran “ceph-deploy new” > without any apparent issues. However, when I run “ceph-deploy install” it > hangs at this point: > > > > [cephtest02][INFO ] Running command: wget -q -O- > 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key > add - > > > > It looks to me like it is failing on the “apt-key add” command. If I log > directly into the cephtest02 host as my ceph user and try to run “apt-key > add” it fails: > > > > $ apt-key add > > ERROR: This command can only be used by root. > > > > It works if I include a “sudo”: > > > > $ sudo apt-key add > > gpg: can't open `': No such file or directory > > > > So I assume the problem is my ceph user doesn’t have the right permissions? > I set up the ceph user by following the instructions in the preflight > checklist (http://ceph.com/docs/master/start/quick-start-preflight/): > > > > root@cephtest02:/# cat /etc/sudoers.d/ceph > > ceph ALL = (root) NOPASSWD:ALL > > > > root@cephtest02:/# ls -l /etc/sudoers.d/ceph > > -r--r----- 1 root root 31 Sep 12 15:45 /etc/sudoers.d/ceph > > > > $ sudo -l > > Matching Defaults entries for ceph on this host: > > env_reset, > > > secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin > > > > User ceph may run the following commands on this host: > > (root) NOPASSWD: ALL > > > > Can anyone tell me where I’m going wrong here, or in general how to give the > ceph user the appropriate permissions? Or is this a ceph-deploy problem > that it is not including the “sudo”? > > > > Thanks, > > Joe > > > _______________________________________________ > 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