Skip to contentSkip to conversation

ceph v0.42 sync

PATCH Applied Laszlo Boszormenyi 4 participants 7 messages Feb 26, 2012 – Feb 28, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

I send some patches to make the packaging difference smaller between us. The first, create_run_dir.patch to make /run/ceph created on every start. Yes, it's /run as /var/run is now a symbolic link to the former. The next is an update to control to reflect the new Standards-Version and to make hdparm optional to sdparm, which is for sATA discs. Then an update to rules. Adding build-arch and build-indep targets.

I ask for a clarification of version numbers. Homepage shows v0.42 as the latest downloadable as git contains v0.42.1 and v0.42.2 tags. Are they official and/or should I wait for v0.43 which is due to yesterday as I know?

Regards,
Laszlo/GCS

debian/control +2 -2
@@ -7,11 +7,11 @@
 Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
 Uploaders: Sage Weil <[email protected]>
 Build-Depends: debhelper (>= 6.0.7~), autotools-dev, autoconf, automake, libfuse-dev, libboost-dev (>= 1.34), libedit-dev, libcrypto++-dev, libtool, libexpat1-dev, libfcgi-dev, libatomic-ops-dev, libgoogle-perftools-dev [i386 amd64], pkg-config, libgtkmm-2.4-dev, python, python-support, libcurl4-gnutls-dev, libkeyutils-dev, uuid-dev, libaio-dev
-Standards-Version: 3.9.1
+Standards-Version: 3.9.3
 
 Package: ceph
 Architecture: linux-any
-Depends: ${shlibs:Depends}, ${misc:Depends}, hdparm, binutils, ceph-common
+Depends: ${shlibs:Depends}, ${misc:Depends}, sdparm | hdparm, binutils, ceph-common
 Recommends: ceph-fuse, libcephfs1, librados2, librbd1, btrfs-tools
 Description: distributed storage and file system
  Ceph is a distributed storage and network file system designed to provide
debian/rules +5 -2
@@ -42,20 +42,23 @@
   extraopts += --without-tcmalloc
 endif
 
-
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
 	touch $@
 
+build-arch: build
+build-indep: build
+
 build: build-stamp
 build-stamp: configure-stamp  
 	dh_testdir
 
 	./autogen.sh
 	./configure --prefix=/usr --sbindir=/sbin --localstatedir=/var \
-		--sysconfdir=/etc $(extraopts) $(confflags)
+	  --sysconfdir=/etc $(extraopts) $(confflags)
 	$(MAKE)
+
 	cp src/init-ceph debian/ceph.init
 	cp src/init-radosgw debian/radosgw.init
 	cp src/logrotate.conf debian/ceph.logrotate

Description: /run/ceph should exists for creating UNIX domain sockets
ceph uses UNIX domain sockets for internal communication. Create their directory on startup as /run is on a virtual filesystem.
.
Author: Laszlo Boszormenyi (GCS) <[email protected]>

Bug-Debian: http://bugs.debian.org/660238
Forwarded: <[email protected]>
Last-Update: <2012-02-26>

src/init-ceph.in +4 -1
@@ -12,6 +12,8 @@
 # Description:       Enable Ceph distributed file system services.
 ### END INIT INFO
 
+RUN_DIR=/run/ceph
+
 # if we start up as ./mkcephfs, assume everything else is in the
 # current directory too.
 if [ `dirname $0` = "." ] && [ $PWD != "/etc/init.d" ]; then
@@ -173,7 +175,7 @@ for name in $what; do
 
     check_host || continue
 
-    get_conf pid_file "/var/run/ceph/$type.$id.pid" "pid file"
+    get_conf pid_file "$RUN_DIR/$type.$id.pid" "pid file"
     [ -n "$pid_file" ] && do_cmd "mkdir -p "`dirname $pid_file`
 
     get_conf log_dir "" "log dir"
@@ -266,6 +268,7 @@ for name in $what; do
 		do_root_cmd "modprobe btrfs ; btrfs device scan || btrfsctl -a ; egrep -q '^[^ ]+ $btrfs_path' /proc/mounts || mount -t btrfs $btrfs_opt $first_dev $btrfs_path"
 	    fi
 	    echo Starting Ceph $name on $host...
+	    mkdir -p $RUN_DIR
 	    get_conf pre_start_eval "" "pre start eval"
 	    [ -n "$pre_start_eval" ] && $pre_start_eval
 	    get_conf pre_start "" "pre start command"
#1 lore raw
Quoted 4 lines · Laszlo Boszormenyi

I ask for a clarification of version numbers. Homepage shows v0.42 as the latest downloadable as git contains v0.42.1 and v0.42.2 tags. Are they official and/or should I wait for v0.43 which is due to yesterday as I know?

0.42.2 is official. 0.43 is still more than a week away.

Yehuda

Applied
#2 lore raw
In reply to Laszlo Boszormenyi
Quoted 8 lines · Laszlo Boszormenyi

Hi,

I send some patches to make the packaging difference smaller between us. The first, create_run_dir.patch to make /run/ceph created on every start. Yes, it's /run as /var/run is now a symbolic link to the former. The next is an update to control to reflect the new Standards-Version and to make hdparm optional to sdparm, which is for sATA discs. Then an update to rules. Adding build-arch and build-indep targets.

I've applied these to master, thanks! They'll be in v0.43.

Quoted 4 lines

I ask for a clarification of version numbers. Homepage shows v0.42 as the latest downloadable as git contains v0.42.1 and v0.42.2 tags. Are they official and/or should I wait for v0.43 which is due to yesterday as I know?

v0.42.2 for now.. v0.43 should be out either Friday or the following Monday.

sage

#3 lore raw
Quoted 11 lines · Sage Weil
Quoted 8 lines · Laszlo Boszormenyi

Hi,

I send some patches to make the packaging difference smaller between us. The first, create_run_dir.patch to make /run/ceph created on every start. Yes, it's /run as /var/run is now a symbolic link to the former. The next is an update to control to reflect the new Standards-Version and to make hdparm optional to sdparm, which is for sATA discs. Then an update to rules. Adding build-arch and build-indep targets.

I've applied these to master, thanks! They'll be in v0.43.

Hmm, actually it looks like /run isn't present on many of my machines (squeeze, oneiric). I'm inclined to stick with the /var/run symlink until the change is more pervasive.

Is this important enough to add an autoconf option to use the new path instead of the old?

sage

Quoted 16 lines
Quoted 5 lines

I ask for a clarification of version numbers. Homepage shows v0.42 as the latest downloadable as git contains v0.42.1 and v0.42.2 tags. Are they official and/or should I wait for v0.43 which is due to yesterday as I know?

v0.42.2 for now.. v0.43 should be out either Friday or the following Monday.

sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to Sage Weil
Quoted 2 lines · Sage Weil

v0.42.2 for now.. v0.43 should be out either Friday or the following Monday.

OK, will get v0.42.2 from git, as the homepage has only v0.42 for
download.

Quoted 3 lines · Sage Weil

Hmm, actually it looks like /run isn't present on many of my machines (squeeze, oneiric). I'm inclined to stick with the /var/run symlink until the change is more pervasive.

Yes, this change is for the new Debian and Ubuntu releases in
development. The others have /var/run only.

Quoted 2 lines

Is this important enough to add an autoconf option to use the new path instead of the old?

Not at all. Even now /run is the real directory, /var/run is now a
symlink to it. Everyone can still use /var/run for a while.

Laszlo/GCS

#5 lore raw
Quoted 5 lines · Laszlo Boszormenyi
Quoted 2 lines · Sage Weil

v0.42.2 for now.. v0.43 should be out either Friday or the following Monday.

OK, will get v0.42.2 from git, as the homepage has only v0.42 for
download.

Whoops, the tarballs are there now.

Thanks!
sage

Quoted 21 lines · Sage Weil
Quoted 3 lines

Hmm, actually it looks like /run isn't present on many of my machines (squeeze, oneiric). I'm inclined to stick with the /var/run symlink until the change is more pervasive.

Yes, this change is for the new Debian and Ubuntu releases in
development. The others have /var/run only.

Quoted 2 lines

Is this important enough to add an autoconf option to use the new path instead of the old?

Not at all. Even now /run is the real directory, /var/run is now a
symlink to it. Everyone can still use /var/run for a while.

Laszlo/GCS

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to Laszlo Boszormenyi

Hi,

Quoted 6 lines · Laszlo Boszormenyi
Quoted 2 lines · Sage Weil

v0.42.2 for now.. v0.43 should be out either Friday or the following Monday.

OK, will get v0.42.2 from git, as the homepage has only v0.42 for
download.

I've just submitted a patch to the ml with a fix for the auto_start setting.

My previous patch (my bad..) broke starting any daemon with the "auto start" set to false, no, disabled.

I don't know if 0.42.2 would be going into Ubuntu 12.04, but it might be useful to include this (small patch?)

Wido

Quoted 18 lines · Sage Weil
Quoted 3 lines

Hmm, actually it looks like /run isn't present on many of my machines (squeeze, oneiric). I'm inclined to stick with the /var/run symlink until the change is more pervasive.

Yes, this change is for the new Debian and Ubuntu releases in
development. The others have /var/run only.

Quoted 2 lines

Is this important enough to add an autoconf option to use the new path instead of the old?

Not at all. Even now /run is the real directory, /var/run is now a
symlink to it. Everyone can still use /var/run for a while.

Laszlo/GCS

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html