All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ken Dreyer <kdreyer@redhat.com>
To: ceph-maintainers@ceph.com
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: debian packaging for wip-10587-split-servers
Date: Thu, 9 Jul 2015 09:57:12 -0600	[thread overview]
Message-ID: <559E99D8.9060208@redhat.com> (raw)

I need some Debian packaging help :)

For http://tracker.ceph.com/issues/10587 I'm working to split out the
"ceph-mon" and "ceph-osd" servers from the main "ceph" package. The goal
is to allow someone to "apt-get install" only a monitor or an OSD
without having to install the binaries for both. (ceph-mds is already
split out in this fashion.)

Here's what I'd like the process to look like for users:

1) User installs a Hammer MON/OSD with "apt-get install ceph".
2) User adjusts the sources.list to point to a newer Ceph version with
   the server split.
3) User runs "apt-get update"
4) Apt installs all three packages onto the user's system: "ceph",
   "ceph-mon", and "ceph-osd".
5) User then has the freedom to uninstall "ceph-mon" or "ceph-osd" as
   appropriate.

I've gotten about 90% of the way there with the Debian changes, but I
can't make "apt-get upgrade" do what I want in step 4. The only way I
can make Apt pull in all three (ceph/ceph-mon/ceph-osd) during an
"upgrade" operation is to make the "ceph" package depend on the -mon and
-osd sub-packages. That option means that step 5 above doesn't work.

I must be missing something in ./debian/control to make this work.

For the RPMs, I was able to make this work by introducing a
"ceph-compat" metapackage that used RPM's "Obsoletes" to replace the old
"ceph" and require "ceph-mon" and "ceph-osd" (which in turn required the
new "ceph"). But I'm not sure how to do that with Debian.

Should I use a ceph-compat package? Something else?

My WIP branch in GitHub is
https://github.com/ceph/ceph/tree/wip-10587-split-servers . Any tips
appreciated!

- Ken

             reply	other threads:[~2015-07-09 15:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-09 15:57 Ken Dreyer [this message]
2015-07-10 14:21 ` debian packaging for wip-10587-split-servers kefu chai
2015-07-10 22:54   ` Ken Dreyer
2015-07-10 22:56     ` Ken Dreyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559E99D8.9060208@redhat.com \
    --to=kdreyer@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=ceph-maintainers@ceph.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.