Re: ceph-deploy again

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

 



Am 23.09.2013 21:56:56, schrieb Alfredo Deza:



On Mon, Sep 23, 2013 at 11:23 AM, Bernhard Glomm <bernhard.glomm@xxxxxxxxxxx> 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


--

*Ecologic Institute* Bernhard Glomm
IT Administration

Phone: +49 (30) 86880 134
Fax: +49 (30) 86880 100
Skype: bernhard.glomm.ecologic
Website: | Video: | Newsletter: | Facebook: | Linkedin: | Twitter: | YouTube: | Google+:
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@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