On Tue, Sep 24, 2013 at 6:44 AM, bernhard glomm <bernhard.gl...@ecologic.eu>wrote:
> > > *From: *bernhard glomm <bernhard.gl...@ecologic.eu> > *Subject: **Re: [ceph-users] ceph-deploy again* > *Date: *September 24, 2013 11:47:00 AM GMT+02:00 > *To: *"Fuchs, Andreas (SwissTXT)" <andreas.fu...@swisstxt.ch> > > Andi thnx, > > but as I said, ssh is not the problem. > since the first command (nt.) that needs privileges to sync the clock > works flawless. > ssh is not the problem, > sudo is not the problem, > ceph-deploy doesn't want to use sudo anymore as it seems? > > bernhard > > > ------------------------------ > [image: *Ecologic Institute*] *Bernhard Glomm* > IT Administration > > Phone: +49 (30) 86880 134 Fax: +49 (30) 86880 100 Skype: > bernhard.glomm.ecologic [image: > Website:] <http://ecologic.eu/> [image: | > Video:]<http://www.youtube.com/v/hZtiK04A9Yo> [image: > | Newsletter:] <http://ecologic.eu/newsletter/subscribe> [image: | > Facebook:] <http://www.facebook.com/Ecologic.Institute> [image: | > Linkedin:]<http://www.linkedin.com/company/ecologic-institute-berlin-germany> > [image: > | Twitter:] <http://twitter.com/EcologicBerlin> [image: | > YouTube:]<http://www.youtube.com/user/EcologicInstitute> [image: > | Google+:] <http://plus.google.com/113756356645020994482> Ecologic > Institut gemeinnützige GmbH | Pfalzburger Str. 43/44 | 10717 Berlin | > Germany > GF: R. Andreas Kraemer | AG: Charlottenburg HRB 57947 | USt/VAT-IdNr.: > DE811963464 > Ecologic™ is a Trade Mark (TM) of Ecologic Institut gemeinnützige GmbH > ------------------------------ > > On Sep 24, 2013, at 10:52 AM, "Fuchs, Andreas (SwissTXT)" < > andreas.fu...@swisstxt.ch> wrote: > > Make shure that you:**** > - On the same host and as the same user you run ceph-deploy**** > - Ssh to the host you wan’t to install > > Actually this answer is on par with the expectations of ceph-deploy, specially the "same user you run ceph-deploy". So it is a combination of using sudo (no need for ceph-deploy to use sudo) and an ssh config that is changing the user you are connecting with. > there must be no password needed !**** > - Sudo –I after you connected above**** > Again to do this there must be no password needed!**** > > If this is successfully ceph-deploy will be able todo his work**** > Otherwise follow the instructions to setup passwordless ssh and sudo**** > > Regards**** > Andi**** > > *From:* ceph-users-boun...@lists.ceph.com [mailto:ceph- > users-boun...@lists.ceph.com] *On Behalf Of *Bernhard Glomm > *Sent:* Dienstag, 24. September 2013 09:28 > *To:* alfredo.d...@inktank.com > *Cc:* ceph-us...@ceph.com > *Subject:* Re: [ceph-users] ceph-deploy again**** > ** ** > Am 23.09.2013 21:56:56, schrieb Alfredo Deza:**** > ** ** > > ** ** > On Mon, Sep 23, 2013 at 11:23 AM, Bernhard Glomm < > bernhard.gl...@ecologic.eu> wrote:**** > > Hi all, > > something with ceph-deploy doesen't work at all anymore. > After an upgrade ceph-depoly failed to roll out a new monitor > with "permission denied. are you root?" > (obviously there shouldn't be a root login so I had another user > for ceph-deploy before which worked perfectly, why not now?) > > ceph_deploy.install][DEBUG ] Purging host ping ... > Traceback (most recent call last): > E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission > denied) > E: Unable to lock the administration directory (/var/lib/dpkg/), are you > root? > > Does this mean I have to let root log into my Cluster with a passwordless > key? > I would rather like to use another log in, like so far, if possible.**** > Can you paste here the exact command you are running (and with what user) ? > **** > > ** ** > > **** > > well I used to run this script**** > > ** ** > > ##############################################################**** > > #!/bin/bash > # initialize the ceph cluster > > # our csgstems > ceph_osds="ping pong" > ceph_mons="ping pong nuke36" > options="-v" > > cd /tmp > > for i in $ceph_mons; do > ssh $i "sudo service ntp stop && sudo ntpdate-debian && sudo service > ntp start && date";echo -e "\n\n" > done**** > ** ** > > ceph-deploy $options purge $ceph_mons > ceph-deploy $options purgedata $ceph_mons > > mkdir /etc/ceph > cd /etc/ceph > > # install ceph > ceph-deploy $options install --stable dumpling $ceph_mons**** > > ** ** > > # create cluster > ceph-deploy $options new $ceph_mons > > # inject your extra configuration options here > # switch on debugging > echo -e "debug ms = 1 > debug mon = 20" >> /etc/ceph/ceph.conf > > # create the monitors > ceph-deploy $options --overwrite-conf mon create $ceph_mons > > sleep 10 > # get the keys > for host in $ceph_mons; do > ceph-deploy $options gatherkeys $host > done > > for host in $ceph_osds;do > ceph-deploy disk zap $host:/dev/sdb > ceph-deploy $options osd create $host:/dev/sdb > done > > # check > ceph status > > exit 0**** > > ** ** > > ##############################################################**** > > ** ** > > I ran this script as root**** > > with a .ssh/config to switch**** > > to the user I can log into the cluuster nodes.**** > > there is no problem with the ssh nor the sudo**** > > since the ntp commands in the beginning are working fine**** > > ** ** > > ** ** > > ** ** > **** > > The howto on ceph.com doesn't say anything about it, > the changelog.Debian.gz isn't very helpful either and > another changelog isn't (provided nor a README) > > ceph-deploy is version 1.2.6 > system is freshly installed raring > > got this both lines in my sources.list > deb http://192.168.242.91:3142/ceph.com/debian/ raring main > deb http://192.168.242.91:3142/ceph.com/packages/ceph-extras/debian/ raring > main > > since this both didn't work > #deb http://gitbuilder.ceph.com/ceph-deb-raring-x86_64-basic/ref/dumpling/ > raring main > #deb http://gitbuilder.ceph.com/cdep-deb-raring-x86_64-basic/ref/master/ > raring main > (couldn't find the python-pushy version ceph-deploy depends on) > > TIA > > Bernhard**** > > > > --**** > ------------------------------ > [image: *Ecologic Institute*]**** > > *Bernhard Glomm* > IT Administration**** > Phone:**** > +49 (30) 86880 134**** > Fax:**** > +49 (30) 86880 100**** > Skype:**** > bernhard.glomm.ecologic**** > [image: Website:] <http://ecologic.eu/>[image: | > Video:]<http://www.youtube.com/v/hZtiK04A9Yo>[image: > | Newsletter:] <http://ecologic.eu/newsletter/subscribe>[image: | > Facebook:] <http://www.facebook.com/Ecologic.Institute>[image: | > Linkedin:]<http://www.linkedin.com/company/ecologic-institute-berlin-germany>[image: > | Twitter:] <http://twitter.com/EcologicBerlin>[image: | > YouTube:]<http://www.youtube.com/user/EcologicInstitute>[image: > | Google+:] <http://plus.google.com/113756356645020994482>**** > Ecologic Institut gemeinnützige GmbH | Pfalzburger Str. 43/44 | 10717 > Berlin | Germany > GF: R. Andreas Kraemer | AG: Charlottenburg HRB 57947 | USt/VAT-IdNr.: > DE811963464 > Ecologic™ is a Trade Mark (TM) of Ecologic Institut gemeinnützige GmbH**** > ------------------------------ > > > > > _______________________________________________ > 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