problem with ceph-deploy hanging

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

 



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.

 

 

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 |

                            &quot;ms_objecter&quot;   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?

 

Thanks,

Joe

 

From: Gruher, Joseph R
Sent: Friday, September 13, 2013 1:17 PM
To: ceph-users@xxxxxxxxxxxxxx
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@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