Skip to contentSkip to conversation

sync Ceph packaging efforts for Debian/Ubuntu

PATCH Laszlo Boszormenyi (GCS) 3 participants 6 messages Jun 16, 2012 – Jun 28, 2012

lore
Share & tools
lore
#0 lore raw

Hi all parties,

Ceph is packaged at three places: in Ubuntu, at upstream and in Debian. Its first 'stable' release, 0.48 is coming. At least as Sage wrote some days ago: "It looks like 0.48 will also be the basis for one of our first 'stable' releases.".

Hereby I would like to sync our Debian related packaging efforts, not only for the mentioned stable release. The OpenStack packaging team would like to add Ceph to their stack. Howtos, helping hands on forums needs it as well.
I'm not subscribed to the lists, please keep me in the loop with Cc-s.

First patch, 0002-Add-support-PPC.patch is for upstream. Would help the in tree leveldb to build on PowerPC architectures as well. Second patch reflect the homepage and git tree changes for Ubuntu. Third patch is from them, noted as "Switch from libcryptopp to libnss as libcryptopp is not seeded.". So libnss3-dev is used as build-dependency instead. Sage, would you commit it?
I've separated gceph out, if someone needs the CLI only, then s/he can do that without the GTK+ libraries. See below.

Ben, James, can you please share in some sentences why ceph-fuse is dropped in Ubuntu? Do you need it Sage? If it's feasible, you may drop that as well.
As I see, you still ship d/librgw1.install , d/librgw1.postrm , d/librgw1.postinst and librgw-dev.install . They are not needed anymore. Maybe the biggest change is that ceph-mds was separated out and such, ceph-fs-common created for cephfs and mount.ceph .
Please move the configure call to its target, as you can check in git. Add var/lib/ceph/mon , var/lib/ceph/osd and var/lib/ceph/mds to d/ceph.dirs .

git patch is for Sage, upstream and contains what needed for the new packages. May I get commit rights to debian/ or should I go with git forks and you'll merge the changes?

Also it seems that limit the architectures to build on is not allowed[1]. I'll write an email to this issue, how to go with failing leveldb build-dependency on some archs.

Loic, do you need anything or do you have any objections with these changes?

Regards,
Laszlo/GCS
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677626

From 6805877f8913935071fb97c1b76e4f0ce992d8a6 Mon Sep 17 00:00:00 2001
From: Nobuhiro Iwamatsu <[email protected]>
Date: Wed, 28 Sep 2011 12:27:19 +0900
Subject: [PATCH 2/9] Add support PPC

---
 port/atomic_pointer.h |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
port/atomic_pointer.h +18 -0
@@ -36,6 +36,8 @@
 #define ARCH_CPU_X86_FAMILY 1
 #elif defined(__ARMEL__)
 #define ARCH_CPU_ARM_FAMILY 1
+#elif defined(__powerpc__) || defined(__powerpc64__) || defined(__ppc__)
+#define ARCH_CPU_PPC_FAMILY 1
 #endif
 
 namespace leveldb {
@@ -102,6 +104,21 @@ inline void WriteMemoryBarrier() {
 }
 #define LEVELDB_HAVE_MEMORY_BARRIER
 
+// PPC
+#elif defined(ARCH_CPU_PPC_FAMILY)
+
+inline void ReadMemoryBarrier() {
+#ifdef __powerpc64__
+  __asm__ __volatile__ ("lwsync" : : : "memory");
+#else
+  __asm__ __volatile__ ("sync" : : : "memory");
+#endif
+}
+inline void WriteMemoryBarrier() {
+  __asm__ __volatile__ ("sync" : : : "memory");
+}
+#define LEVELDB_HAVE_MEMORY_BARRIER
+
 #endif
 
 // AtomicPointer built using platform-specific MemoryBarrier()
@@ -156,6 +173,7 @@ class AtomicPointer {
 #undef LEVELDB_HAVE_MEMORY_BARRIER
 #undef ARCH_CPU_X86_FAMILY
 #undef ARCH_CPU_ARM_FAMILY
+#undef ARCH_CPU_PPC_FAMILY
 
 }  // namespace port
 }  // namespace leveldb
debian/control +3 -3
diff -Nur ceph-0.47.2.orig/debian/control ceph-0.47.2/debian/control
@@ -1,9 +1,9 @@
 Source: ceph
 Section: admin
 Priority: optional
-Homepage: http://ceph.newdream.net/
-Vcs-Git: git://github.com/NewDreamNetwork/ceph.git
-Vcs-Browser: https://github.com/NewDreamNetwork/ceph
+Homepage: http://ceph.com/
+Vcs-Git: git://github.com/ceph/ceph.git
+Vcs-Browser: https://github.com/ceph/ceph
 Maintainer: Ubuntu Developers <[email protected]>
 XSBC-Original-Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
 Uploaders: Sage Weil <[email protected]>
debian/control +1 -1
index 023e134..927d2bd 100644
@@ -6,7 +6,7 @@ Vcs-Git: git://github.com/ceph/ceph.git
 Vcs-Browser: https://github.com/ceph/ceph
 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, libcurl4-gnutls-dev, libkeyutils-dev, uuid-dev, libaio-dev, python (>= 2.6.6-3~), libxml2-dev
+Build-Depends: debhelper (>= 6.0.7~), autotools-dev, autoconf, automake, libfuse-dev, libboost-dev (>= 1.34), libedit-dev, libnss3-dev, libtool, libexpat1-dev, libfcgi-dev, libatomic-ops-dev, libgoogle-perftools-dev [i386 amd64], pkg-config, libcurl4-gnutls-dev, libkeyutils-dev, uuid-dev, libaio-dev, python (>= 2.6.6-3~), libxml2-dev
 Standards-Version: 3.9.3
 
 Package: ceph
debian/ceph-common.install +0 -4
index 4772663..ffc4675 100644
@@ -1,6 +1,4 @@
-sbin/mount.ceph
 usr/bin/ceph
-usr/bin/cephfs
 usr/bin/ceph-conf
 usr/bin/ceph-syn
 usr/bin/ceph-authtool
@@ -14,7 +12,5 @@ usr/share/man/man8/ceph-conf.8
 usr/share/man/man8/ceph-dencoder.8
 usr/share/man/man8/rados.8
 usr/share/man/man8/rbd.8
-usr/share/man/man8/mount.ceph.8
-usr/share/man/man8/cephfs.8
 etc/bash_completion.d/rados
 etc/bash_completion.d/rbd
debian/ceph-fs-common.install new file +4 -0
new file mode 100644
index 0000000..9a50360
@@ -0,0 +1,4 @@
+sbin/mount.ceph
+usr/bin/cephfs
+usr/share/man/man8/mount.ceph.8
+usr/share/man/man8/cephfs.8
debian/ceph-mds.install new file +2 -0
new file mode 100644
index 0000000..8a5d74e
@@ -0,0 +1,2 @@
+usr/bin/ceph-mds
+usr/share/man/man8/ceph-mds.8
debian/ceph.install +0 -4
index 51fb311..0a975aa 100644
@@ -4,18 +4,14 @@ usr/bin/monmaptool
 usr/bin/osdmaptool
 usr/bin/ceph-run
 usr/bin/ceph-mon
-usr/bin/ceph-mds
 usr/bin/ceph-osd
 usr/bin/ceph-debugpack
-sbin/ceph-disk-prepare usr/sbin/
-sbin/ceph-disk-activate usr/sbin/
 sbin/mkcephfs
 usr/lib/ceph/ceph_common.sh
 usr/lib/rados-classes/*
 usr/share/doc/ceph/sample.ceph.conf
 usr/share/doc/ceph/sample.fetch_config
 usr/share/man/man8/ceph-mon.8
-usr/share/man/man8/ceph-mds.8
 usr/share/man/man8/ceph-osd.8
 usr/share/man/man8/mkcephfs.8
 usr/share/man/man8/ceph-run.8
debian/control +101 -26

262 lines not on this page · raw message

debian/gceph.install new file +2 -0
new file mode 100644
index 0000000..143f837
@@ -0,0 +1,2 @@
+usr/bin/gceph
+usr/share/ceph_tool/gui_resources/*
debian/librados2.install +0 -1
index 8ba139a..8d989d4 100644
@@ -1,2 +1 @@
 usr/lib/librados.so.*
-
debian/rules +3 -0
index 941f309..4e6c373 100755
@@ -115,8 +115,11 @@ binary-arch: build install
 	dh_link
 
 	dh_strip -pceph --dbg-package=ceph-dbg -k --exclude=libcls_
+	dh_strip -pgceph --dbg-package=gceph-dbg
 	dh_strip -pceph-fuse --dbg-package=ceph-fuse-dbg
+	dh_strip -pceph-mds --dbg-package=ceph-mds-dbg -k --exclude=libcls_
 	dh_strip -pceph-common --dbg-package=ceph-common-dbg
+	dh_strip -pceph-fs-common --dbg-package=ceph-fs-common-dbg
 	dh_strip -plibrados2 --dbg-package=librados2-dbg
 	dh_strip -plibrbd1 --dbg-package=librbd1-dbg
 	dh_strip -plibcephfs1 --dbg-package=libcephfs1-dbg
#1 lore raw

Hi Laszlo!

Quoted 13 lines · Laszlo Boszormenyi (GCS)

Hi all parties,

Ceph is packaged at three places: in Ubuntu, at upstream and in Debian. Its first 'stable' release, 0.48 is coming. At least as Sage wrote some days ago: "It looks like 0.48 will also be the basis for one of our first 'stable' releases.".

Hereby I would like to sync our Debian related packaging efforts, not only for the mentioned stable release. The OpenStack packaging team would like to add Ceph to their stack. Howtos, helping hands on forums needs it as well.
I'm not subscribed to the lists, please keep me in the loop with Cc-s.

Quoted 6 lines

First patch, 0002-Add-support-PPC.patch is for upstream. Would help the in tree leveldb to build on PowerPC architectures as well. Second patch reflect the homepage and git tree changes for Ubuntu. Third patch is from them, noted as "Switch from libcryptopp to libnss as libcryptopp is not seeded.". So libnss3-dev is used as build-dependency instead. Sage, would you commit it?

I haven't looked closely yet, but these should be fine.

Quoted 2 lines

I've separated gceph out, if someone needs the CLI only, then s/he can do that without the GTK+ libraries. See below.

gceph is already gone from the 'next' branch.

Quoted 3 lines

Ben, James, can you please share in some sentences why ceph-fuse is dropped in Ubuntu? Do you need it Sage? If it's feasible, you may drop that as well.

We could package it separately, if necessary, but it should be packaged.

Quoted 2 lines

As I see, you still ship d/librgw1.install , d/librgw1.postrm , d/librgw1.postinst and librgw-dev.install . They are not needed anymore.

These are already gone from the 'next' branch as well.

Quoted 2 lines

Maybe the biggest change is that ceph-mds was separated out and such, ceph-fs-common created for cephfs and mount.ceph.

We can do this as well, but I would prefer not to. Opinions?

Quoted 3 lines

Please move the configure call to its target, as you can check in git. Add var/lib/ceph/mon , var/lib/ceph/osd and var/lib/ceph/mds to d/ceph.dirs .

This should be done in 'next'.

Quoted 3 lines

git patch is for Sage, upstream and contains what needed for the new packages. May I get commit rights to debian/ or should I go with git forks and you'll merge the changes?

Patches or a git merge request are best as they allow for review.

Thanks, Laszlo! Looking forward to seeing this in wheezy, and easing the burden on you and the Ubuntu guys.

sage

Quoted 11 lines

Also it seems that limit the architectures to build on is not allowed[1]. I'll write an email to this issue, how to go with failing leveldb build-dependency on some archs.

Loic, do you need anything or do you have any objections with these changes?

Regards,
Laszlo/GCS
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677626

#2 lore raw
In reply to Laszlo Boszormenyi (GCS)

Hi Laszlo,

I've take a closer look at these patches, and have a few questions.

- The URL change and nss patches I've applied; they are in the ceph.git 'debian' branch.

- Has the leveldb patch been sent upstream? Once it is committed to the upstream git, we can update ceph to use it; that's nicer than carrying the patch. However, I thought you needed to link against the existing libleveldb1 package... which means we shouldn't do anything on our side, right?

- I'm not sure how useful it is to break mount.ceph and cephfs into a separate ceph-fs-common package, but we can do it. Same goes for a separate package for ceph-mds. That was originally motivated by ubuntu not wanting the mds in main, but in the end only the libraries went in, so it's a moot point. I'd rather hear from them what their intentions are for 12.10 before complicating things...

- That same patch also switched all the Architecture: lines back to linux-any. Was that intentional? I just changed them from that last week.

- I did apply the python-ceph Depends: portion of that patch.

The result so far is in the 'debian' branch of ceph.git. Please take a look.

Thanks!
sage

Quoted 48 lines · Laszlo Boszormenyi (GCS)

Hi all parties,

Ceph is packaged at three places: in Ubuntu, at upstream and in Debian. Its first 'stable' release, 0.48 is coming. At least as Sage wrote some days ago: "It looks like 0.48 will also be the basis for one of our first 'stable' releases.".

Hereby I would like to sync our Debian related packaging efforts, not only for the mentioned stable release. The OpenStack packaging team would like to add Ceph to their stack. Howtos, helping hands on forums needs it as well.
I'm not subscribed to the lists, please keep me in the loop with Cc-s.

First patch, 0002-Add-support-PPC.patch is for upstream. Would help the in tree leveldb to build on PowerPC architectures as well. Second patch reflect the homepage and git tree changes for Ubuntu. Third patch is from them, noted as "Switch from libcryptopp to libnss as libcryptopp is not seeded.". So libnss3-dev is used as build-dependency instead. Sage, would you commit it?
I've separated gceph out, if someone needs the CLI only, then s/he can do that without the GTK+ libraries. See below.

Ben, James, can you please share in some sentences why ceph-fuse is dropped in Ubuntu? Do you need it Sage? If it's feasible, you may drop that as well.
As I see, you still ship d/librgw1.install , d/librgw1.postrm , d/librgw1.postinst and librgw-dev.install . They are not needed anymore. Maybe the biggest change is that ceph-mds was separated out and such, ceph-fs-common created for cephfs and mount.ceph .
Please move the configure call to its target, as you can check in git. Add var/lib/ceph/mon , var/lib/ceph/osd and var/lib/ceph/mds to d/ceph.dirs .

git patch is for Sage, upstream and contains what needed for the new packages. May I get commit rights to debian/ or should I go with git forks and you'll merge the changes?

Also it seems that limit the architectures to build on is not allowed[1]. I'll write an email to this issue, how to go with failing leveldb build-dependency on some archs.

Loic, do you need anything or do you have any objections with these changes?

Regards,
Laszlo/GCS
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677626

#3 lore raw

Hi Sage/Laszlo

Laszlo - thanks for sending the original email - I'd like to get everything as closely in-sync as possible between the three packaging sources as well.

Quoted 4 lines · Sage Weil

I've take a closer look at these patches, and have a few questions.

- The URL change and nss patches I've applied; they are in the ceph.git 'debian' branch.

Great!

Quoted 7 lines

- Has the leveldb patch been sent upstream? Once it is committed to the upstream git, we can update ceph to use it; that's nicer than carrying the patch. However, I thought you needed to link against the existing libleveldb1 package... which means we shouldn't do anything on our side,
right?

I can't see any evidence that this has been sent upstream; ideally we would be building against libleveldb1 rather than using the embedded copy - I'm not familiar with the reason that this has not happened already (if there is one). This package would also need to be reviewed for inclusion in main if that was the case.

Quoted 6 lines

- I'm not sure how useful it is to break mount.ceph and cephfs into a separate ceph-fs-common package, but we can do it. Same goes for a separate package for ceph-mds. That was originally motivated by ubuntu not wanting the mds in main, but in the end only the libraries went in, so it's a moot point. I'd rather hear from them what their intentions are for 12.10 before complicating things...

ceph-fs-common is in Ubuntu main; so I think the original motivation still stands IMHO.

For the Ubuntu quantal cycle we still have the same primary objective as we had during 12.04; namely ensuring that Ceph RBD can be used as a block store for qemu-kvm which ties nicely into the Ubuntu OpenStack story through Cinder; In addition we will be looking at Ceph RADOS as a backend for Glance (see [0] for more details).

The MIR for Ceph occurred quite late in the 12.04 cycle so we had to trim the scope to actually get it done; We will be looking at libfcgi and google-perftools this cycle for main inclusion to re-enable the components that are currently disabled in the Ubuntu packaging.

Quoted 3 lines

- That same patch also switched all the Architecture: lines back to linux-any. Was that intentional? I just changed them from that last week.

I think linux-any is correct - the change you have made would exclude the PPC architecture in Ubuntu and Debian.

[...]

Quoted 3 lines
Quoted 3 lines

Ben, James, can you please share in some sentences why ceph-fuse is dropped in Ubuntu? Do you need it Sage? If it's feasible, you may drop that as well.

There is an outstanding question on the 12.04 MIR as to whether this package could still be built but not promoted to main - I'll follow up with the MIR reviewer as to whether that's possible as I don't think it requires any additional build dependencies.

[...]

I hope that explains the Ubuntu position on Ceph and what plans we have this development cycle.

I expect Clint will chip in if I have missed anything.

Cheers

James

[0]
https://blueprints.launchpad.net/ubuntu/+spec/servercloud-q-ceph-object-integration

Signature · 4 lines
James Page
Ubuntu Core Developer
Debian Maintainer
[email protected]
#4 lore raw
Quoted 22 lines · James Page

Hi Sage/Laszlo

Laszlo - thanks for sending the original email - I'd like to get everything as closely in-sync as possible between the three packaging sources as well.

Quoted 4 lines · Sage Weil

I've take a closer look at these patches, and have a few questions.

- The URL change and nss patches I've applied; they are in the ceph.git 'debian' branch.

Great!

Quoted 7 lines

- Has the leveldb patch been sent upstream? Once it is committed to the upstream git, we can update ceph to use it; that's nicer than carrying the patch. However, I thought you needed to link against the existing libleveldb1 package... which means we shouldn't do anything on our side,
right?

Quoted 5 lines

I can't see any evidence that this has been sent upstream; ideally we would be building against libleveldb1 rather than using the embedded copy - I'm not familiar with the reason that this has not happened already (if there is one). This package would also need to be reviewed for inclusion in main if that was the case.

We bundled it for expediency, that's all. I just send the patch off to the leveldb mailing list (in case that hadn't happened yet); we'll see if they apply it.

Quoted 9 lines
Quoted 6 lines

- I'm not sure how useful it is to break mount.ceph and cephfs into a separate ceph-fs-common package, but we can do it. Same goes for a separate package for ceph-mds. That was originally motivated by ubuntu not wanting the mds in main, but in the end only the libraries went in, so it's a moot point. I'd rather hear from them what their intentions are for 12.10 before complicating things...

ceph-fs-common is in Ubuntu main; so I think the original motivation still stands IMHO.

Okay, split that part.

Quoted 5 lines

For the Ubuntu quantal cycle we still have the same primary objective as we had during 12.04; namely ensuring that Ceph RBD can be used as a block store for qemu-kvm which ties nicely into the Ubuntu OpenStack story through Cinder; In addition we will be looking at Ceph RADOS as a backend for Glance (see [0] for more details).

I'm reading this to meant hat you still want the mds separated out; did that too.

Quoted 4 lines

The MIR for Ceph occurred quite late in the 12.04 cycle so we had to trim the scope to actually get it done; We will be looking at libfcgi and google-perftools this cycle for main inclusion to re-enable the components that are currently disabled in the Ubuntu packaging.

Including those (and libleveldb1) would be ideal.

Quoted 18 lines
Quoted 3 lines

- That same patch also switched all the Architecture: lines back to linux-any. Was that intentional? I just changed them from that last week.

I think linux-any is correct - the change you have made would exclude the PPC architecture in Ubuntu and Debian.

[...]

Quoted 3 lines
Quoted 3 lines

Ben, James, can you please share in some sentences why ceph-fuse is dropped in Ubuntu? Do you need it Sage? If it's feasible, you may drop that as well.

There is an outstanding question on the 12.04 MIR as to whether this package could still be built but not promoted to main - I'll follow up with the MIR reviewer as to whether that's possible as I don't think it requires any additional build dependencies.

Quoted 4 lines

[...]

I hope that explains the Ubuntu position on Ceph and what plans we have this development cycle.

Okay, keep us posted!

I pushed a new 'debian' branch with those changes; please take a look and let me know if it loks okay.

Thanks-
sage

#5 lore raw

Hi all,

Quoted 4 lines · Sage Weil
Quoted 3 lines · James Page

Laszlo - thanks for sending the original email - I'd like to get everything as closely in-sync as possible between the three packaging sources as well.

It seems I could sync with Ubuntu a bit, but you need to get libs3 and
sync that with me if appreciated.

Quoted 7 lines
Quoted 7 lines · Sage Weil
Quoted 6 lines

- Has the leveldb patch been sent upstream? Once it is committed to the upstream git, we can update ceph to use it; that's nicer than carrying the patch. However, I thought you needed to link against the existing libleveldb1 package... which means we shouldn't do anything on our side,
right?

Yes, the leveldb maintainer tries to port it to all architectures. It
would be better to join efforts on this topic.
Especially that Ceph is unbuildable on mips, powerpc, s390, s390x and sparc architectures (where previously it was built) due to leveldb is unbuildable on them. This means Ceph looses a lot of and big users. :(

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

- That same patch also switched all the Architecture: lines back to linux-any. Was that intentional? I just changed them from that last week.

Well, mostly. My step that Ceph and later leveldb should be limited to
the archs where it's buildable is not accepted. Porting is going on for leveldb, but I still don't see that it will support all archs for Wheezy. Sorry for the extra work it caused.

Quoted 1 line

Okay, keep us posted!

To ones whom it may concerns, Ceph 0.47.2 is passed the new queue and
accepted for Wheezy. This means that adding it to OpenStack can start.

Quoted 2 lines

I pushed a new 'debian' branch with those changes; please take a look and let me know if it loks okay.

Will do. Now I've to run.

Regards,
Laszlo/GCS