[Bug 1227370] [NEW] ceph osd weight get reset to 1 on daemon restart

James Troup james.troup at canonical.com
Wed Sep 18 21:24:10 UTC 2013


Public bug reported:

AFAIK, the documented¹ way to set weights for an OSD is with:

  ceph osd crush reweight {osd-id} {weight}

And this works... but only for as long as the ceph-osd daemon is
running.  Because, with ceph 0.48.3-0ubuntu1~cloud0 from the Folsom
pocket of the Ubuntu Cloud Archive on Ubuntu 12.04 LTS, the weight
gets reset to 1 every time the daemon is (re)started by the upstart
job.

The problem is the upstart job does this:

    weight="$(ceph-conf --cluster="$cluster" --name="osd.$id" --lookup
osd_crush_weight || :)"

i.e. it expects to find something like this:

   [osd.38]
    osd_crush_weight = 2.0

in /etc/ceph/ceph.conf.  However that file is managed by juju, and if
I edit it in-situ, it'll get overwritten.  As it stands, I'm unable to
reweight an OSD and make it stick with ceph deployed by juju.

¹ e.g. http://ceph.com/docs/master/rados/operations/add-or-rm-osds/

** Affects: ceph (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: ceph (Juju Charms Collection)
     Importance: Undecided
         Status: New

** Also affects: ceph (Juju Charms Collection)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/1227370

Title:
  ceph osd weight get reset to 1 on daemon restart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1227370/+subscriptions



More information about the Ubuntu-server-bugs mailing list