]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Sat, 15 Jun 2013 04:05:18 +0000 (21:05 -0700)]
Merge remote-tracking branch 'gh/next'

12 years agoceph: pass --format=foo to old monitors
Sage Weil [Sat, 15 Jun 2013 00:30:02 +0000 (17:30 -0700)]
ceph: pass --format=foo to old monitors

And --threshold too, although.. really.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviwed-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: add newline when using old monitors
Sage Weil [Sat, 15 Jun 2013 00:30:44 +0000 (17:30 -0700)]
ceph: add newline when using old monitors

The old tool would print a newline after outs, e.g. from 'ceph osd create'.
Do the same when we are talking to old monitors.  Also, put outs at the
top, not the bottom!

Tweak the json code to not add the newline again if we already did so
above.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agodoc: Added index tags.
John Wilkins [Fri, 14 Jun 2013 23:58:29 +0000 (16:58 -0700)]
doc: Added index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added index tags.
John Wilkins [Fri, 14 Jun 2013 23:58:04 +0000 (16:58 -0700)]
doc: Added index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added index tags.
John Wilkins [Fri, 14 Jun 2013 23:57:48 +0000 (16:57 -0700)]
doc: Added index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added index tag.
John Wilkins [Fri, 14 Jun 2013 23:57:31 +0000 (16:57 -0700)]
doc: Added index tag.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated usage and index tags.
John Wilkins [Fri, 14 Jun 2013 23:57:15 +0000 (16:57 -0700)]
doc: Updated usage and index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated usage and index tags.
John Wilkins [Fri, 14 Jun 2013 23:56:58 +0000 (16:56 -0700)]
doc: Updated usage and index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added introductory section. Updated usage. Index tags.
John Wilkins [Fri, 14 Jun 2013 23:56:39 +0000 (16:56 -0700)]
doc: Added introductory section. Updated usage. Index tags.

fixes: #3220

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Index tags.
John Wilkins [Fri, 14 Jun 2013 23:54:52 +0000 (16:54 -0700)]
doc: Index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Update for usage and index tags.
John Wilkins [Fri, 14 Jun 2013 23:54:36 +0000 (16:54 -0700)]
doc: Update for usage and index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Update for usage. Index tags.
John Wilkins [Fri, 14 Jun 2013 23:54:14 +0000 (16:54 -0700)]
doc: Update for usage. Index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated for glossary usage. Index tags.
John Wilkins [Fri, 14 Jun 2013 23:53:56 +0000 (16:53 -0700)]
doc: Updated for glossary usage. Index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated index tags.
John Wilkins [Fri, 14 Jun 2013 23:53:20 +0000 (16:53 -0700)]
doc: Updated index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated index tags.
John Wilkins [Fri, 14 Jun 2013 23:52:46 +0000 (16:52 -0700)]
doc: Updated index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoceph.in: zero-arg invocation was broken (check array length)
Dan Mick [Fri, 14 Jun 2013 23:51:40 +0000 (16:51 -0700)]
ceph.in: zero-arg invocation was broken (check array length)

Also remove stray comment char

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agodoc: Updated index tags.
John Wilkins [Fri, 14 Jun 2013 23:52:25 +0000 (16:52 -0700)]
doc: Updated index tags.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Minor updates.
John Wilkins [Fri, 14 Jun 2013 23:06:59 +0000 (16:06 -0700)]
doc: Minor updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Minor updates for usage.
John Wilkins [Fri, 14 Jun 2013 23:06:06 +0000 (16:06 -0700)]
doc: Minor updates for usage.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agorules: Don't disable tcmalloc on ARM (and other non-intel)
Gary Lowell [Thu, 13 Jun 2013 23:38:26 +0000 (16:38 -0700)]
rules:  Don't disable tcmalloc on ARM (and other non-intel)

Fixes #5342

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agoudev: drop useless --mount argument to ceph-disk
Sage Weil [Fri, 14 Jun 2013 05:02:03 +0000 (22:02 -0700)]
udev: drop useless --mount argument to ceph-disk

It doesn't mean anything anymore; drop it.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-disk-udev: activate-journal
Sage Weil [Fri, 14 Jun 2013 05:01:34 +0000 (22:01 -0700)]
ceph-disk-udev: activate-journal

Trigger 'ceph-disk activate-journal' from the alt udev rules.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-disk: do not use mount --move (or --bind)
Sage Weil [Fri, 14 Jun 2013 04:56:23 +0000 (21:56 -0700)]
ceph-disk: do not use mount --move (or --bind)

The kernel does not let you mount --move when the parent mount is
shared (see, e.g., https://bugzilla.redhat.com/show_bug.cgi?id=917008
for another person this also confused).  We can't use --bind either
since that (on RHEL at least) screws up /etc/mtab so that the final
result looks like

 /var/lib/ceph/tmp/mnt.HNHoXU /var/lib/ceph/osd/ceph-0 none rw,bind 0 0

Instead, mount the original dev in the final location and then umount
from the old location.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph.spec: include by-partuuid udev workaround rules
Sage Weil [Fri, 14 Jun 2013 04:22:53 +0000 (21:22 -0700)]
ceph.spec: include by-partuuid udev workaround rules

These are need for old or buggy udev.  Having them for new and unbroken
udev is harmless.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph.spec: add missing ceph_test_rados_api_cmd to package
Sage Weil [Fri, 14 Jun 2013 04:21:28 +0000 (21:21 -0700)]
ceph.spec: add missing ceph_test_rados_api_cmd to package

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph: flush stderr, stdout for sane output; add prefix
Sage Weil [Fri, 14 Jun 2013 19:35:46 +0000 (12:35 -0700)]
ceph: flush stderr, stdout for sane output; add prefix

Aie.

e.g., ceph tell mon.* injectargs '--debug-ms 1'

 mon.a: injectargs:debug_ms=1/1
 mon.b: injectargs:debug_ms=1/1
 mon.c: injectargs:debug_ms=1/1

or

 osd.0: debug_ms=1/1
 osd.1: debug_ms=1/1
 osd.2: Problem getting command descriptions from ('osd', '2'), ENXIO
 osd.3: Problem getting command descriptions from ('osd', '3'), ENXIO
 osd.4: Problem getting command descriptions from ('osd', '4'), ENXIO
 osd.5: Problem getting command descriptions from ('osd', '5'), ENXIO

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph-disk: work around buggy rhel/centos parted
Sage Weil [Fri, 14 Jun 2013 19:10:49 +0000 (12:10 -0700)]
ceph-disk: work around buggy rhel/centos parted

parted on RHEL/Centos prefixes the *machine readable output* with

 1b 5b 3f 31 30 33 34 68

Note that the same thing happens when you 'import readline' in python.

Work around it!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: OSDMonitor: don't ignore apply_incremental()'s return on UfP [1]
Joao Eduardo Luis [Fri, 14 Jun 2013 16:11:43 +0000 (17:11 +0100)]
mon: OSDMonitor: don't ignore apply_incremental()'s return on UfP [1]

apply_incremental() may return -EINVAL.  Don't ignore it.

[1] UfP = Update from Paxos

Fixes: #5343
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoupstart: start ceph-all on runlevel [2345]
Sage Weil [Fri, 14 Jun 2013 18:21:25 +0000 (11:21 -0700)]
upstart: start ceph-all on runlevel [2345]

Starting when only one network interface has started breaks machines with
multiple nics in very problematic ways.

There may be an earlier trigger that we can use for cases where other
services on the local machine depend on ceph, but for now this is better
than the existing behavior.

See #5248

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph: fix mon.*
Sage Weil [Fri, 14 Jun 2013 18:00:46 +0000 (11:00 -0700)]
ceph: fix mon.*

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrados: add tests for too-large objects
Sage Weil [Fri, 14 Jun 2013 17:17:31 +0000 (10:17 -0700)]
librados: add tests for too-large objects

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: fix types for size checks
Sage Weil [Fri, 14 Jun 2013 17:14:54 +0000 (10:14 -0700)]
osd: fix types for size checks

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoremove RELEASE_CHECKLIST
Sage Weil [Fri, 14 Jun 2013 16:42:08 +0000 (09:42 -0700)]
remove RELEASE_CHECKLIST

This ancient document has long since been replaced by
doc/dev/release-process.rst.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: EINVAL from truncate causes osd to crash
David Zafman [Fri, 14 Jun 2013 01:15:39 +0000 (18:15 -0700)]
osd: EINVAL from truncate causes osd to crash

Maximum object size is 100GB configurable with osd_max_object_size
Error EFBIG if attempt to WRITE/WRITEFULL/TRUNCATE beyond osd_max_object_size
Error EINVAL if length < 1 for WRITE/WRITEFULL/ZERO
Make ZERO beyond existing size a no-op

Fixes: #5252
Fixes: #5340
Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoceph_test_rados: add --pool <name> arg
Sage Weil [Fri, 14 Jun 2013 05:08:36 +0000 (22:08 -0700)]
ceph_test_rados: add --pool <name> arg

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Fri, 14 Jun 2013 04:33:25 +0000 (21:33 -0700)]
Merge remote-tracking branch 'gh/next'

12 years agoMerge pull request #362 from ceph/wip-4984
Dan Mick [Fri, 14 Jun 2013 02:37:37 +0000 (19:37 -0700)]
Merge pull request #362 from ceph/wip-4984

ceph-disk: udev/partprobe redo, zap command, activate-journal command

12 years agoceph-fuse: fix uninitialized variable
Sage Weil [Fri, 14 Jun 2013 01:13:34 +0000 (18:13 -0700)]
ceph-fuse: fix uninitialized variable

There is a delete call in the out_mc_start_failed path.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-disk: implement 'activate-journal' 362/head
Sage Weil [Thu, 13 Jun 2013 22:54:58 +0000 (15:54 -0700)]
ceph-disk: implement 'activate-journal'

Activate an osd via its journal device.  udev populates its symlinks and
triggers events in an order that is not related to whether the device is
an osd data partition or a journal.  That means that triggering
'ceph-disk activate' can happen before the journal (or journal symlink)
is present and then fail.

Similarly, it may be that they are on different disks that are hotplugged
with the journal second.

This can be wired up to the journal partition type to ensure that osds are
started when the journal appears second.

Include the udev rules to trigger this.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-disk: call partprobe outside of the prepare lock; drop udevadm settle
Sage Weil [Wed, 12 Jun 2013 01:35:01 +0000 (18:35 -0700)]
ceph-disk: call partprobe outside of the prepare lock; drop udevadm settle

After we change the final partition type, sgdisk may or may not trigger a
udev event, depending on how well udev is behaving (it varies between
distros, it seems).  The old code would often settle and wait for udev to
activate the device, and then partprobe would uselessly fail because it
was already mounted.

Call partprobe only at the very end, after prepare is done.  This ensures
that if partprobe calls udevadm settle (which is sometimes does) we do not
get stuck.

Drop the udevadm settle.  I'm not sure what this accomplishes; take it out,
at least until we determine we need it.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-disk: add 'zap' command
Sage Weil [Thu, 13 Jun 2013 18:03:37 +0000 (11:03 -0700)]
ceph-disk: add 'zap' command

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #363 from dmick/wip-cli-help
Sage Weil [Fri, 14 Jun 2013 00:47:41 +0000 (17:47 -0700)]
Merge pull request #363 from dmick/wip-cli-help

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoceph.in: allow args with -h to limit help to cmds that match partially 363/head
Dan Mick [Fri, 14 Jun 2013 00:40:02 +0000 (17:40 -0700)]
ceph.in: allow args with -h to limit help to cmds that match partially

Enables "ceph -h pg" to see just the pg commands

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph.in: better global description of tool
Dan Mick [Fri, 14 Jun 2013 00:38:50 +0000 (17:38 -0700)]
ceph.in: better global description of tool

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph.in: less verbosity on error
Dan Mick [Fri, 14 Jun 2013 00:38:26 +0000 (17:38 -0700)]
ceph.in: less verbosity on error

Only show 'did you mean?' when in verbose mode
Only show first ten closest matches on error

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agolibrados: add missing #include
Sage Weil [Fri, 14 Jun 2013 00:38:02 +0000 (17:38 -0700)]
librados: add missing #include

librados/librados.cc: In function 'int rados_mon_command_target(void*, const char*, const char**, size_t, const char*, size_t, char**, size_t*, char**, size_t*)':
error: librados/librados.cc:1877: 'LONG_MAX' was not declared in this scope
error: librados/librados.cc:1877: 'LONG_MIN' was not declared in this scope

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrados: wait for osdmap for commands that need it
Sage Weil [Thu, 13 Jun 2013 23:39:30 +0000 (16:39 -0700)]
librados: wait for osdmap for commands that need it

In commit 7e1cf87b5158c870e2a118ed6d316be8cb9818ce we stopped waiting for
the osdmap on start because the Objecter will normally wait, but for some
commands we assume the osdmap is recent(ish).

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorules: Don't disable tcmalloc on ARM (and other non-intel)
Gary Lowell [Thu, 13 Jun 2013 23:38:26 +0000 (16:38 -0700)]
rules:  Don't disable tcmalloc on ARM (and other non-intel)

Fixes #5342

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agoMerge pull request #356 from ceph/wip-leaks
Sage Weil [Thu, 13 Jun 2013 23:21:21 +0000 (16:21 -0700)]
Merge pull request #356 from ceph/wip-leaks

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agoMerge branch 'wip-objecter' into next
Sage Weil [Thu, 13 Jun 2013 23:15:44 +0000 (16:15 -0700)]
Merge branch 'wip-objecter' into next

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoosdc/Objecter: dump command ops
Sage Weil [Thu, 13 Jun 2013 23:01:31 +0000 (16:01 -0700)]
osdc/Objecter: dump command ops

Dump command_ops along with everything else.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosdc/Objecter: ping osds for which we have pending commands
Sage Weil [Thu, 13 Jun 2013 22:57:57 +0000 (15:57 -0700)]
osdc/Objecter: ping osds for which we have pending commands

As with ops and linger_ops, this ensures we detect connection resets.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph.in: refuse 'ceph <type> tell' commands; suggest 'ceph tell <type>'
Dan Mick [Thu, 13 Jun 2013 22:48:32 +0000 (15:48 -0700)]
ceph.in: refuse 'ceph <type> tell' commands; suggest 'ceph tell <type>'

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoceph.in: argparsing cleanup: suppress --completion, add help
Dan Mick [Thu, 13 Jun 2013 22:30:38 +0000 (15:30 -0700)]
ceph.in: argparsing cleanup: suppress --completion, add help

Options -v, --verbose, --concise didn't have helpstrings
Option --completion doesn't quite work yet, and should be hidden anyway

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Thu, 13 Jun 2013 22:17:05 +0000 (15:17 -0700)]
Merge remote-tracking branch 'gh/next'

12 years agoosdc/Objecter: kick command ops on osd con resets
Sage Weil [Thu, 13 Jun 2013 22:13:47 +0000 (15:13 -0700)]
osdc/Objecter: kick command ops on osd con resets

Resend osd/pg commands on the OSDSession, just as we do with other request
types.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosdc/Objecter: add perfcounters for commands
Sage Weil [Thu, 13 Jun 2013 22:13:18 +0000 (15:13 -0700)]
osdc/Objecter: add perfcounters for commands

This matches the other counters we maintain for other kinds of ops.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: fix idempotency of 'osd crush add'
Sage Weil [Thu, 13 Jun 2013 21:01:01 +0000 (14:01 -0700)]
mon: fix idempotency of 'osd crush add'

If we add an item that already exists in particular position, we should
update instead of inserting it; the CrushWrapper methods are not
idempotent.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrados: do not wait for osdmap on start
Sage Weil [Thu, 13 Jun 2013 21:42:03 +0000 (14:42 -0700)]
librados: do not wait for osdmap on start

If we abort while waiting, we incorrect clean up (we switch the state value
incorrectly, and also fail to clean up the initialized objecter).

Intead, skip this wait.. it's useless!

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agodoc: Updated with glossary terms.
John Wilkins [Thu, 13 Jun 2013 21:09:35 +0000 (14:09 -0700)]
doc: Updated with glossary terms.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agomon/MonmapMonitor: remove unused label
Sage Weil [Thu, 13 Jun 2013 18:27:49 +0000 (11:27 -0700)]
mon/MonmapMonitor: remove unused label

mon/MonmapMonitor.cc: In member function 'bool MonmapMonitor::preprocess_command(MMonCommand*)':
mon/MonmapMonitor.cc:273:2: warning: label 'out' defined but not used [-Wunused-label]

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon/MonCap: bootstrap-* need to subscribe to osdmap, monmap
Sage Weil [Thu, 13 Jun 2013 18:27:23 +0000 (11:27 -0700)]
mon/MonCap: bootstrap-* need to subscribe to osdmap, monmap

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon/MonClient: mark_down during get_monmap_privately() shutdown 356/head
Sage Weil [Thu, 13 Jun 2013 14:39:02 +0000 (07:39 -0700)]
mon/MonClient: mark_down during get_monmap_privately() shutdown

We explicitly mark_down() and clear cur_con when shutting down; do the same
for get_monmap_privately() to ensure that the reset event doesn't make us
do something silly (like, in this case, call _reopen_session() again).

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon/MonClient: mark_down connection on shutdown
Sage Weil [Thu, 13 Jun 2013 04:35:39 +0000 (21:35 -0700)]
mon/MonClient: mark_down connection on shutdown

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsgr: queue reset when marking down pipes on shutdown
Sage Weil [Thu, 13 Jun 2013 00:58:36 +0000 (17:58 -0700)]
msgr: queue reset when marking down pipes on shutdown

This lets the callbacks clean up ref cycles.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsg/DispatchQueue: do not discard queued events on stop
Sage Weil [Wed, 12 Jun 2013 02:27:01 +0000 (19:27 -0700)]
msg/DispatchQueue: do not discard queued events on stop

When the shutdown/stop flag is set, continue to work through the queue.
Process events, but discard messages.  This avoids the loss of reset events
on shutdown that are necessary to clean up ref cycles.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsgr: queue reset exactly once on any connection
Sage Weil [Tue, 11 Jun 2013 23:44:05 +0000 (16:44 -0700)]
msgr: queue reset exactly once on any connection

Use the atomic pipe link removal as a signal that we are the one failing
the con and use that to queue the reset event.

This fixes the case where we have an open, the session gets set up via the
handle_accept callback, and then race with another connection and go into
wait + close, or just close.  In that case, fault() needs to queue a reset
event to match the accept.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsg/Pipe: include con reef in debug prestring
Sage Weil [Tue, 11 Jun 2013 18:51:14 +0000 (11:51 -0700)]
msg/Pipe: include con reef in debug prestring

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsg/Pipe: reset replaced pipes
Sage Weil [Tue, 11 Jun 2013 18:38:44 +0000 (11:38 -0700)]
msg/Pipe: reset replaced pipes

This gives the ms_handle_reset call a chance to clean up (for example, by
breaking a con->priv <-> session reference cycle).

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsgr: use ConnectionRef throughout
Sage Weil [Mon, 10 Jun 2013 03:21:49 +0000 (20:21 -0700)]
msgr: use ConnectionRef throughout

Make RefCountedObject a private parent of Connection so that users are
forced to use ConnectionRef whenever references are taken.

Many methods can still take a raw Connection* when they are using the
caller's reference but not taking their own; this is cheaper than
twiddling the reference count, and the lifetime is still well defined.
Local variables generally use ConnectionRef, though.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon/MonClient: tear down version requests on shutdown
Sage Weil [Mon, 10 Jun 2013 17:31:22 +0000 (10:31 -0700)]
mon/MonClient: tear down version requests on shutdown

Make sure all callers can handle ECANCELED.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon/PaxosService: discard messages during shutdown
Sage Weil [Tue, 11 Jun 2013 00:34:24 +0000 (17:34 -0700)]
mon/PaxosService: discard messages during shutdown

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: add is_shutdown() state helper/accessor
Sage Weil [Tue, 11 Jun 2013 00:34:12 +0000 (17:34 -0700)]
mon: add is_shutdown() state helper/accessor

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: shut down Paxos on shutdown
Sage Weil [Tue, 11 Jun 2013 00:28:51 +0000 (17:28 -0700)]
mon: shut down Paxos on shutdown

This cleans up the completions for any paxos waiters.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: break con <-> session cycle on reset
Sage Weil [Tue, 11 Jun 2013 18:59:24 +0000 (11:59 -0700)]
osd: break con <-> session cycle on reset

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: do not leak HeartbeatSession on shutdown
Sage Weil [Tue, 11 Jun 2013 18:51:05 +0000 (11:51 -0700)]
osd: do not leak HeartbeatSession on shutdown

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: close classes on shutdown
Sage Weil [Mon, 10 Jun 2013 18:55:16 +0000 (11:55 -0700)]
osd: close classes on shutdown

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: do not leak MOSDPings on shutdown
Sage Weil [Mon, 10 Jun 2013 18:51:37 +0000 (11:51 -0700)]
osd: do not leak MOSDPings on shutdown

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd/ReplicatedPG: don't leak Session refs in do_osd_op_effects()
Sage Weil [Sun, 9 Jun 2013 04:50:53 +0000 (21:50 -0700)]
osd/ReplicatedPG: don't leak Session refs in do_osd_op_effects()

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomessages/MMonSync: initialize crc in ctor
Sage Weil [Tue, 11 Jun 2013 00:28:22 +0000 (17:28 -0700)]
messages/MMonSync: initialize crc in ctor

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agovstart.sh: put exports at top
Sage Weil [Thu, 13 Jun 2013 17:52:00 +0000 (10:52 -0700)]
vstart.sh: put exports at top

Where I can 'head vstart.sh' to find them quickly.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoPendingReleaseNotes: notes on CLI changes
Sage Weil [Thu, 13 Jun 2013 17:46:45 +0000 (10:46 -0700)]
PendingReleaseNotes: notes on CLI changes

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoPendingReleaseNotes: cli changes, and ceph tell ...
Sage Weil [Thu, 13 Jun 2013 17:21:59 +0000 (10:21 -0700)]
PendingReleaseNotes: cli changes, and ceph tell ...

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc/release-notes: add missed notes for 0.63 and 0.64
Sage Weil [Thu, 13 Jun 2013 17:19:39 +0000 (10:19 -0700)]
doc/release-notes: add missed notes for 0.63 and 0.64

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'wip-tell' into next
Sage Weil [Thu, 13 Jun 2013 16:27:15 +0000 (09:27 -0700)]
Merge branch 'wip-tell' into next

Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agomon: remove support for 'mon tell ...' and 'osd tell ...'
Sage Weil [Wed, 12 Jun 2013 23:56:45 +0000 (16:56 -0700)]
mon: remove support for 'mon tell ...' and 'osd tell ...'

It doesn't work.  The commands the ceph cli sends are vector<string>, and
the mon expects json.

Leave the MDS on in place since ceph-mds still takes strings.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph: add support for 'tell mon.X ...'
Sage Weil [Wed, 12 Jun 2013 23:55:03 +0000 (16:55 -0700)]
ceph: add support for 'tell mon.X ...'

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrados: new rados_mon_command_target to talk to a specific monitor
Sage Weil [Wed, 12 Jun 2013 23:36:39 +0000 (16:36 -0700)]
librados: new rados_mon_command_target to talk to a specific monitor

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #360 from dachary/master
Sage Weil [Thu, 13 Jun 2013 15:23:00 +0000 (08:23 -0700)]
Merge pull request #360 from dachary/master

add apt-get update to installation instructions

12 years agoadd apt-get update to installation instructions 360/head
Loic Dachary [Thu, 13 Jun 2013 06:53:26 +0000 (08:53 +0200)]
add apt-get update to installation instructions

Without apt-get update the repository added to the sources.list is not taken into consideration and an older version of ceph-deploy is going to be installed.

Signed-off-by: Loic Dachary <loic@dachary.org>
12 years agoUpdate README dependency lists
Dan Mick [Thu, 13 Jun 2013 05:25:04 +0000 (22:25 -0700)]
Update README dependency lists

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph-disk: extra dash in error message
Dan Mick [Thu, 13 Jun 2013 05:22:42 +0000 (22:22 -0700)]
ceph-disk: extra dash in error message

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoClean up CrushWrapper methods that take string: no c_str() necessary
Dan Mick [Thu, 13 Jun 2013 03:59:49 +0000 (20:59 -0700)]
Clean up CrushWrapper methods that take string: no c_str() necessary

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoOSDMonitor: osd id when id already exists needs to come to stdout too
Dan Mick [Thu, 13 Jun 2013 03:59:08 +0000 (20:59 -0700)]
OSDMonitor: osd id when id already exists needs to come to stdout too

Found by qa/workunits/mon/osd.sh

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoceph, mon/OSDMonitor: fix up osd crush commands for <osd.N> or <N>
Dan Mick [Thu, 13 Jun 2013 01:08:17 +0000 (18:08 -0700)]
ceph, mon/OSDMonitor: fix up osd crush commands for <osd.N> or <N>

The new parsing code had been trying to allow flexibility for the
'old form' commands (where id could be different from N in osd.N),
but also accept 'new form' commands.  The new rule is that where
there's an OSD specified in the osd crush command, it is of type
CephOsdName, which can be an id *or* 'osd.<id>', but not both.

Pass CephOsdName as int64_t 'id' for convenience in mon code

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoconfig: fix run_dir typo
Sage Weil [Thu, 13 Jun 2013 04:47:09 +0000 (21:47 -0700)]
config: fix run_dir typo

From 654299108bfb11e7dce45f54946d1505f71d2de8.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon/MonClient: send commands to a specific monitor
Sage Weil [Wed, 12 Jun 2013 23:36:21 +0000 (16:36 -0700)]
mon/MonClient: send commands to a specific monitor

This implementation is limited: we direct our command by reopening
a session with the specific monitor.  If there is more than one of these
queued we will fail to reach either.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph: implement 'ceph tell osd.* ...'
Sage Weil [Wed, 12 Jun 2013 21:55:15 +0000 (14:55 -0700)]
ceph: implement 'ceph tell osd.* ...'

Send the command to each target.  Do this in series, for now.  Error out if
any one fails.

Later, we should do them in parallel.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Thu, 13 Jun 2013 04:26:17 +0000 (21:26 -0700)]
Merge remote-tracking branch 'gh/next'