sorry. that was the wrong log. there was some issue with ceph user while doing yum remotely. So I tried to install ceph using root user. Below is the log [root at ceph-admin ~]# ceph-deploy install ceph-osd [ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf [ceph_deploy.cli][INFO ] Invoked (1.5.14): /usr/bin/ceph-deploy install ceph-osd [ceph_deploy.install][DEBUG ] Installing stable version firefly on cluster ceph hosts ceph-osd [ceph_deploy.install][DEBUG ] Detecting platform for host ceph-osd ... [ceph-osd][DEBUG ] connected to host: ceph-osd [ceph-osd][DEBUG ] detect platform information from remote host [ceph-osd][DEBUG ] detect machine type [ceph_deploy.install][INFO ] Distro info: CentOS 6.4 Final [ceph-osd][INFO ] installing ceph on ceph-osd [ceph-osd][INFO ] Running command: yum clean all [ceph-osd][DEBUG ] Loaded plugins: fastestmirror, security [ceph-osd][DEBUG ] Cleaning repos: base extras updates [ceph-osd][DEBUG ] Cleaning up Everything [ceph-osd][INFO ] Running command: yum -y install wget [ceph-osd][DEBUG ] Loaded plugins: fastestmirror, security [ceph-osd][WARNIN] You need to be root to perform this command. [ceph-osd][ERROR ] RuntimeError: command returned non-zero exit status: 1 [ceph_deploy][ERROR ] RuntimeError: Failed to execute command: yum -y install wget Regards, Subhadip 9741779086 ------------------------------------------------------------------------------------------------------------------- On Fri, Sep 12, 2014 at 6:54 PM, Alfredo Deza <alfredo.deza at inktank.com> wrote: > The issue is right there in the logs :) Somehow it couldn't reach that > fedora URL? > > > > On Fri, Sep 12, 2014 at 8:34 AM, Subhadip Bagui <i.bagui at gmail.com> wrote: > > Hi, > > > > As you suggested in 2nd option, I created the ssh keys as root user and > > copied the ssh key with other ceph nodes like osd, mon and mds, using > below > > command. > > > > > > [root at ceph-admin ~]# ssh -keygen > > > > [root at ceph-admin ~]# ssh-copy-id root at ceph-osd > > [root at ceph-admin ~]# ssh-copy-id root at ceph-mds > > [root at ceph-admin ~]# ssh-copy-id root at ceph-monitor > > > > And I'm trying to install ceph using below command. But getting error. > > Please let me know what is the issue. > > > > [ceph at ceph-admin ~]$ ceph-deploy install ceph-osd > > > > [ceph_deploy.conf][DEBUG ] found configuration file at: > > /home/ceph/.cephdeploy.conf > > [ceph_deploy.cli][INFO ] Invoked (1.5.14): /usr/bin/ceph-deploy install > > ceph-osd > > [ceph_deploy.install][DEBUG ] Installing stable version firefly on > cluster > > ceph hosts ceph-osd > > [ceph_deploy.install][DEBUG ] Detecting platform for host ceph-osd ... > > [ceph-osd][DEBUG ] connected to host: ceph-osd > > [ceph-osd][DEBUG ] detect platform information from remote host > > [ceph-osd][DEBUG ] detect machine type > > [ceph_deploy.install][INFO ] Distro info: CentOS 6.4 Final > > [ceph-osd][INFO ] installing ceph on ceph-osd > > [ceph-osd][INFO ] Running command: sudo yum clean all > > [ceph-osd][DEBUG ] Loaded plugins: fastestmirror, security > > [ceph-osd][DEBUG ] Cleaning repos: base extras updates > > [ceph-osd][DEBUG ] Cleaning up Everything > > [ceph-osd][DEBUG ] Cleaning up list of fastest mirrors > > [ceph-osd][INFO ] Running command: sudo yum -y install wget > > [ceph-osd][DEBUG ] Loaded plugins: fastestmirror, security > > [ceph-osd][DEBUG ] Determining fastest mirrors > > [ceph-osd][DEBUG ] * base: centos.excellmedia.net > > [ceph-osd][DEBUG ] * extras: centos.excellmedia.net > > [ceph-osd][DEBUG ] * updates: centos.excellmedia.net > > [ceph-osd][DEBUG ] Setting up Install Process > > [ceph-osd][DEBUG ] Package wget-1.12-1.11.el6_5.x86_64 already installed > and > > latest version > > [ceph-osd][DEBUG ] Nothing to do > > [ceph-osd][INFO ] adding EPEL repository > > [ceph-osd][INFO ] Running command: sudo wget > > > http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm > > [ceph-osd][WARNIN] No data was received after 300 seconds, > disconnecting... > > [ceph-osd][INFO ] Running command: sudo rpm -Uvh --replacepkgs > > epel-release-6*.rpm > > [ceph-osd][WARNIN] error: File not found by glob: epel-release-6*.rpm > > [ceph-osd][ERROR ] RuntimeError: command returned non-zero exit status: 1 > > [ceph_deploy][ERROR ] RuntimeError: Failed to execute command: rpm -Uvh > > --replacepkgs epel-release-6*.rpm > > > > > > Regards, > > Subhadip > > > > > ------------------------------------------------------------------------------------------------------------------- > > > > On Thu, Sep 11, 2014 at 6:29 PM, Alfredo Deza <alfredo.deza at inktank.com> > > wrote: > >> > >> We discourage users from using `root` to call ceph-deploy or to call > >> it with `sudo` for this reason. > >> > >> We have a warning in the docs about it if you are getting started in > >> the Ceph Node Setup section: > >> > >> > http://ceph.com/docs/v0.80.5/start/quick-start-preflight/#ceph-deploy-setup > >> > >> The reason for this is that if you configure ssh to login to the > >> remote server as a non-root user (say user "ceph") there is no way for > >> ceph-deploy to know that you need to call sudo > >> on the remote server because it detected you were root. > >> > >> ceph-deploy does this detection to prevent calling sudo if you are > >> root on the remote server. > >> > >> So, to fix this situation, where you are executing as root but login > >> into the remote server as a non-root user you can use either of these > >> two options: > >> > >> * don't execute ceph-deploy as root > >> * don't configure ssh to login as a non-root user > >> > >> On Thu, Sep 11, 2014 at 12:16 AM, Subhadip Bagui <i.bagui at gmail.com> > >> wrote: > >> > Hi, > >> > > >> > I'm getting the below error while installing ceph on node using > >> > ceph-deploy. > >> > I'm executing the command in admin node as > >> > > >> > [root at ceph-admin ~]$ ceph-deploy install ceph-mds > >> > > >> > [ceph-mds][DEBUG ] Loaded plugins: fastestmirror, security > >> > [ceph-mds][WARNIN] You need to be root to perform this command. > >> > [ceph-mds][ERROR ] RuntimeError: command returned non-zero exit > status: > >> > 1 > >> > [ceph_deploy][ERROR ] RuntimeError: Failed to execute command: yum -y > >> > install wget > >> > > >> > I have changed the Defaults requiretty setting to Defaults:ceph > >> > !requiretty > >> > in /etc/sudoers file and also put ceph as sudo user same as root in > node > >> > ceph-mds. added root privilege on node ceph-mds using command--- echo > >> > "ceph > >> > ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers sudo chmod 0440 > >> > /etc/sudoers as mentioned in the doc > >> > > >> > All servers are on centOS 6.5 > >> > > >> > Please let me know what can be the issue here? > >> > > >> > > >> > Regards, > >> > Subhadip > >> > > >> > > ------------------------------------------------------------------------------------------------------------------- > >> > > >> > _______________________________________________ > >> > ceph-users mailing list > >> > ceph-users at lists.ceph.com > >> > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20140913/3641be9e/attachment.htm>