]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agomon/MonCap: fix setting of text in parse()
Sage Weil [Sat, 1 Jun 2013 00:45:21 +0000 (17:45 -0700)]
mon/MonCap: fix setting of text in parse()

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon/MonCap: set text in set_allow_all()
Sage Weil [Sat, 1 Jun 2013 00:18:12 +0000 (17:18 -0700)]
mon/MonCap: set text in set_allow_all()

This will let the cap encode/decode to the same value.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph: various cleanups
Dan Mick [Fri, 31 May 2013 04:58:46 +0000 (21:58 -0700)]
ceph: various cleanups
 - make base class valid() do useful work
 - remove valid from CephPoolname; pool need not exist for create
 - add --user as alias for --id
 - remove vestige of special --keyring handing
 - be sure childargs is an empty list rather than None
 - remove -- from childargs if present (to stop interpreting -- args)
 - handle connection timeout cleanly

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoPGMonitor: fix pg dump and dump_stuck
Dan Mick [Fri, 31 May 2013 04:54:41 +0000 (21:54 -0700)]
PGMonitor: fix pg dump and dump_stuck

dump needed to default to format plain, not json
dump_stuck was not doing format = plain correctly (coredumping)

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agocmdparse, mon: add cmd_vartype_stringify for _allowed_command
Dan Mick [Tue, 4 Jun 2013 04:06:34 +0000 (21:06 -0700)]
cmdparse, mon: add cmd_vartype_stringify for _allowed_command

cmd_vartype are not all strings, and need a type-variant function
to turn them into strings for authorization against caps.  Use
boost::apply_visitor to get this behavior.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agocmdparse: add handle_bad_get(), ceph:: qualifiers, cmdmap_t
Dan Mick [Tue, 4 Jun 2013 04:05:12 +0000 (21:05 -0700)]
cmdparse: add handle_bad_get(), ceph:: qualifiers, cmdmap_t

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: remove global declarations, declare verbose and cluster near top
Dan Mick [Thu, 30 May 2013 23:47:48 +0000 (16:47 -0700)]
ceph: remove global declarations, declare verbose and cluster near top

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: use conf_parse_argv to deal with nonspecial Ceph args
Dan Mick [Fri, 31 May 2013 00:03:13 +0000 (17:03 -0700)]
ceph: use conf_parse_argv to deal with nonspecial Ceph args

This means parsing argv only once now, so pass arg lists to
new_style_command().  A little cleanup/commenting too.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agolibrados, rados.py: add conf_parse_argv_remainder()
Dan Mick [Thu, 30 May 2013 23:32:30 +0000 (16:32 -0700)]
librados, rados.py: add conf_parse_argv_remainder()

New parsing function to extract any known arguments from a vector
and return any unknowns; useful for ceph CLI to allow librados
first dibs on arguments so it doesn't have to reproduce the
argument recognition

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: make ceph -w output 'ceph status' first
Dan Mick [Thu, 30 May 2013 00:36:28 +0000 (17:36 -0700)]
ceph: make ceph -w output 'ceph status' first

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agomon: include cluster fsid/uuid in status output
Sage Weil [Wed, 29 May 2013 23:36:34 +0000 (16:36 -0700)]
mon: include cluster fsid/uuid in status output

Implements: #5147
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon/MonCap: allow osd, mds to write to cluster log
Sage Weil [Wed, 29 May 2013 22:29:55 +0000 (15:29 -0700)]
mon/MonCap: allow osd, mds to write to cluster log

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph: move admin-daemon command before connect()
Dan Mick [Wed, 29 May 2013 02:07:54 +0000 (19:07 -0700)]
ceph: move admin-daemon command before connect()

Allow admin-daemon commands to work even if we can't connect()

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: finish changing bestsigs to bestcmds
Dan Mick [Wed, 29 May 2013 02:07:14 +0000 (19:07 -0700)]
ceph: finish changing bestsigs to bestcmds

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agocephtool/test.sh: fix "expect failure"
Dan Mick [Fri, 31 May 2013 04:50:02 +0000 (21:50 -0700)]
cephtool/test.sh: fix "expect failure"

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoMDSMonitor, cmdparse: increase resiliency of bad cmd_getval()
Dan Mick [Wed, 29 May 2013 01:38:16 +0000 (18:38 -0700)]
MDSMonitor, cmdparse: increase resiliency of bad cmd_getval()

MDSMonitor: check for and handle bad maxmds get
cmdparse.h: Use gcc demangler to print bad boost::variant typenames,
add backtrace in case of bad boost::variant get

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoMerge branch 'master' into merge
Dan Mick [Wed, 29 May 2013 00:51:58 +0000 (17:51 -0700)]
Merge branch 'master' into merge

12 years agoMerge pull request #326 from dalgaaf/wip-da-CID-727978
Sage Weil [Tue, 28 May 2013 22:48:11 +0000 (15:48 -0700)]
Merge pull request #326 from dalgaaf/wip-da-CID-727978

kv_flat_btree_async.cc: fix AioCompletion resource leak

12 years agoceph: first cut at --completion
Dan Mick [Tue, 28 May 2013 20:00:26 +0000 (13:00 -0700)]
ceph: first cut at --completion

Factor out parsing JSON to sigdict; use from both main and completion
Currently invoking from bash completion with

        n=${#COMP_WORDS} # length
        # invoke with all but first word
        COMPREPLY=( $(ceph --completion "${COMP_WORDS[@]:1:$n}") )

Not handling --arg and not dealing correctly with cursor-on-last-letter
vs. cursor-on-space

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph, MonCommands.h: code format/help format tweaks
Dan Mick [Tue, 28 May 2013 19:57:10 +0000 (12:57 -0700)]
ceph, MonCommands.h:  code format/help format tweaks

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoMerge pull request #325 from dalgaaf/wip-da-CID-727980
Sage Weil [Tue, 28 May 2013 17:27:56 +0000 (10:27 -0700)]
Merge pull request #325 from dalgaaf/wip-da-CID-727980

kv_flat_btree_async.cc: fix AioCompletion resource leak

12 years agoMerge pull request #324 from dalgaaf/wip-da-CID-727979
Sage Weil [Tue, 28 May 2013 17:27:25 +0000 (10:27 -0700)]
Merge pull request #324 from dalgaaf/wip-da-CID-727979

kv_flat_btree_async.cc: fix AioCompletion resource leak

12 years agoosd/OSDMap: fix Incremental dump
Sage Weil [Tue, 28 May 2013 16:16:17 +0000 (09:16 -0700)]
osd/OSDMap: fix Incremental dump

The front hb addr entry may not be present.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #322 from guilhem/patch-1
Sage Weil [Tue, 28 May 2013 15:43:10 +0000 (08:43 -0700)]
Merge pull request #322 from guilhem/patch-1

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agokv_flat_btree_async.cc: fix AioCompletion resource leak 326/head
Danny Al-Gaaf [Tue, 28 May 2013 10:43:12 +0000 (12:43 +0200)]
kv_flat_btree_async.cc: fix AioCompletion resource leak

Call AioCompletion::release() if the completion is no longer needed.

CID 727978 (#1-2 of 2): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "obj_aioc" going out of scope leaks the
  storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agokv_flat_btree_async.cc: fix AioCompletion resource leak 324/head
Danny Al-Gaaf [Tue, 28 May 2013 10:38:57 +0000 (12:38 +0200)]
kv_flat_btree_async.cc: fix AioCompletion resource leak

Call AioCompletion::release() if the completion is no longer needed.

CID 727979 (#1-2 of 2): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "a" going out of scope leaks the storage
  it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agokv_flat_btree_async.cc: fix AioCompletion resource leak 325/head
Danny Al-Gaaf [Tue, 28 May 2013 10:27:37 +0000 (12:27 +0200)]
kv_flat_btree_async.cc: fix AioCompletion resource leak

Call AioCompletion::release() if the completion is no longer
needed.

CID 727980 (#1-4 of 4): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "aioc" going out of scope leaks
  the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoRemove mon socket in post-stop 322/head
Guilhem Lettron [Mon, 27 May 2013 10:41:53 +0000 (12:41 +0200)]
Remove mon socket in post-stop

If ceph-mon segfault, socket file isn't removed.

By adding a remove in post-stop, upstart clean run directory properly.

Signed-off-by: Guilhem Lettron <guilhem@lettron.fr>
12 years agoPendingReleaseNotes: notes about enabling HASHPSPOOL
Sage Weil [Tue, 28 May 2013 04:16:46 +0000 (21:16 -0700)]
PendingReleaseNotes: notes about enabling HASHPSPOOL

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosdmaptool: fix cli tests
Sage Weil [Tue, 28 May 2013 04:12:29 +0000 (21:12 -0700)]
osdmaptool: fix cli tests

Now that the default pool flags have changed.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #321 from dalgaaf/wip-da-CID-727981
Sage Weil [Mon, 27 May 2013 20:55:54 +0000 (13:55 -0700)]
Merge pull request #321 from dalgaaf/wip-da-CID-727981

kv_flat_btree_async.cc: fix AioCompletion resource leak

12 years agoMerge pull request #320 from dalgaaf/wip-da-CID-727983
Sage Weil [Mon, 27 May 2013 20:55:24 +0000 (13:55 -0700)]
Merge pull request #320 from dalgaaf/wip-da-CID-727983

kv_flat_btree_async.cc: fix resource leak

12 years agodoc: Updated rgw.conf example.
John Wilkins [Sat, 25 May 2013 22:13:01 +0000 (15:13 -0700)]
doc: Updated rgw.conf example.

fixes: #4608

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated RGW Quickstart.
John Wilkins [Sat, 25 May 2013 22:11:49 +0000 (15:11 -0700)]
doc: Updated RGW Quickstart.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated index for newer terms.
John Wilkins [Sat, 25 May 2013 22:11:06 +0000 (15:11 -0700)]
doc: Updated index for newer terms.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoceph: --help-all
Dan Mick [Sat, 25 May 2013 03:36:15 +0000 (20:36 -0700)]
ceph: --help-all

Ask first extant daemon of each for its command descriptions and
daemon command descriptions.  Suppress commands with no help string.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: fix format strings for Py2.6 compatibility
Dan Mick [Sat, 25 May 2013 03:01:15 +0000 (20:01 -0700)]
ceph: fix format strings for Py2.6 compatibility

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: print parameter name for CephString in concise_sig
Dan Mick [Sat, 25 May 2013 02:03:45 +0000 (19:03 -0700)]
ceph: print parameter name for CephString in concise_sig

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: Clean up/add missing docstrings
Dan Mick [Sat, 25 May 2013 02:03:17 +0000 (19:03 -0700)]
ceph: Clean up/add missing docstrings

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agomon: Refactor
Dan Mick [Sat, 25 May 2013 01:21:24 +0000 (18:21 -0700)]
mon: Refactor

Move some common code into JSON-command-description functions;
switch from char * to string & args

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agopg_pool_t: enable FLAG_HASHPSPOOL by default
Samuel Just [Fri, 24 May 2013 23:20:38 +0000 (16:20 -0700)]
pg_pool_t: enable FLAG_HASHPSPOOL by default

Fixes: #5160
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agorados.py: don't access returned buffers if error/SIGINT
Dan Mick [Fri, 24 May 2013 20:57:56 +0000 (13:57 -0700)]
rados.py: don't access returned buffers if error/SIGINT

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoPGMonitor: dead code removal
Dan Mick [Fri, 24 May 2013 20:57:32 +0000 (13:57 -0700)]
PGMonitor: dead code removal

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoMonCap: add pg r/w to osd capability profile
Dan Mick [Fri, 24 May 2013 20:56:56 +0000 (13:56 -0700)]
MonCap: add pg r/w to osd capability profile

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agokv_flat_btree_async.cc: fix AioCompletion resource leak 321/head
Danny Al-Gaaf [Fri, 24 May 2013 12:47:49 +0000 (14:47 +0200)]
kv_flat_btree_async.cc: fix AioCompletion resource leak

Call AioCompletion::release() if the completion is no longer
needed to free the resources.

CID 727981 (#3 of 3): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "top_aioc" going out of scope leaks the
  storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agokv_flat_btree_async.cc: fix resource leak 320/head
Danny Al-Gaaf [Fri, 24 May 2013 12:29:14 +0000 (14:29 +0200)]
kv_flat_btree_async.cc: fix resource leak

Call AioCompletion::release() if the completion is no longer
needed to free the resources.

CID 727983 : Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "aioc" going out of scope leaks the
  storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agodoc: Updated Ceph FS Quick Start.
John Wilkins [Fri, 24 May 2013 00:02:17 +0000 (17:02 -0700)]
doc: Updated Ceph FS Quick Start.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added troubleshooting to Ceph FS index.
John Wilkins [Fri, 24 May 2013 00:01:51 +0000 (17:01 -0700)]
doc: Added troubleshooting to Ceph FS index.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added separate troubleshooting for MDS and Ceph FS.
John Wilkins [Fri, 24 May 2013 00:01:29 +0000 (17:01 -0700)]
doc: Added separate troubleshooting for MDS and Ceph FS.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updates for ceph-deploy and cuttlefish.
John Wilkins [Thu, 23 May 2013 18:45:14 +0000 (11:45 -0700)]
doc: Updates for ceph-deploy and cuttlefish.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge pull request #312 from ceph/wip-osd-hb
Sage Weil [Thu, 23 May 2013 17:17:14 +0000 (10:17 -0700)]
Merge pull request #312 from ceph/wip-osd-hb

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agoMerge branch 'next'
Sage Weil [Thu, 23 May 2013 15:49:10 +0000 (08:49 -0700)]
Merge branch 'next'

12 years agomodified: src/init-ceph.in
Xiaoxi Chen [Thu, 23 May 2013 01:33:27 +0000 (09:33 +0800)]
modified:   src/init-ceph.in
fixed bug in init script, the "df" should be run on remote host by do_cmd,
and use $host instead of "hostname -s"

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
(cherry picked from commit 1dd99f0fc91ee6d417325689f24601aa335b94c2)

Conflicts:

src/init-ceph.in

12 years agomsgr: increase port range to 6900-7300 (from -7100)
Sage Weil [Thu, 23 May 2013 15:40:23 +0000 (08:40 -0700)]
msgr: increase port range to 6900-7300 (from -7100)

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #307 from xiaoxichen/master
Sage Weil [Thu, 23 May 2013 15:45:55 +0000 (08:45 -0700)]
Merge pull request #307 from xiaoxichen/master

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agomodified: src/init-ceph.in 307/head
Xiaoxi Chen [Thu, 23 May 2013 01:33:27 +0000 (09:33 +0800)]
modified:   src/init-ceph.in
fixed bug in init script, the "df" should be run on remote host by do_cmd,
and use $host instead of "hostname -s"

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
12 years agoosd: ping both front and back interfaces 312/head
Sage Weil [Wed, 22 May 2013 15:44:52 +0000 (08:44 -0700)]
osd: ping both front and back interfaces

Send ping requests to both the front and back hb addrs for peer osds.  If
the front hb addr is not present, do not send it and interpret a reply
as coming from both.  This handles the transition from old to new OSDs
seamlessly.

Note both the front and back rx times.  Both need to be up to date in order
for the peer to be healthy.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsgr: add Messenger reference to Connection
Sage Weil [Wed, 22 May 2013 15:13:21 +0000 (08:13 -0700)]
msgr: add Messenger reference to Connection

This allows us to get the messenger associated with a connection.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsgr: take an arbitrary set of ports to avoid binding to
Sage Weil [Wed, 22 May 2013 00:20:45 +0000 (17:20 -0700)]
msgr: take an arbitrary set of ports to avoid binding to

We used to only need to avoid 2 ports; now we need 3.  Make it a set so we
don't have this problem later.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: bind front heartbeat messenger to public_addr
Sage Weil [Wed, 22 May 2013 00:10:01 +0000 (17:10 -0700)]
osd: bind front heartbeat messenger to public_addr

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: send hb front addr to monitor at boot
Sage Weil [Tue, 21 May 2013 23:44:00 +0000 (16:44 -0700)]
osd: send hb front addr to monitor at boot

We still aren't binding it to anything yet, or putting it in the OSDMap.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: create front and back hb messenger instances
Sage Weil [Tue, 21 May 2013 23:43:24 +0000 (16:43 -0700)]
osd: create front and back hb messenger instances

The hb_front messenger is not used yet.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd/OSDMap: encode front heartbeat addr
Sage Weil [Tue, 21 May 2013 23:48:43 +0000 (16:48 -0700)]
osd/OSDMap: encode front heartbeat addr

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd/OSDMap: hb_addr -> hb_back_addr
Sage Weil [Tue, 21 May 2013 23:39:00 +0000 (16:39 -0700)]
osd/OSDMap: hb_addr -> hb_back_addr

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd/OSDMap: new_hb_up -> new_hb_back_up
Sage Weil [Tue, 21 May 2013 22:41:46 +0000 (15:41 -0700)]
osd/OSDMap: new_hb_up -> new_hb_back_up

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd/OSDMap: new_up_internal -> new_up_cluster
Sage Weil [Wed, 22 May 2013 23:03:36 +0000 (16:03 -0700)]
osd/OSDMap: new_up_internal -> new_up_cluster

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: Add asserts for seg faults caused by corrupt OSDs
David Zafman [Wed, 22 May 2013 05:10:41 +0000 (22:10 -0700)]
osd: Add asserts for seg faults caused by corrupt OSDs

fixes: #5139

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoOSDMonitor: fix osd dump (need enclosing section)
Dan Mick [Wed, 22 May 2013 22:17:24 +0000 (15:17 -0700)]
OSDMonitor: fix osd dump (need enclosing section)

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoosd: skip mark-me-down message if osd is not up
Sage Weil [Wed, 22 May 2013 22:03:50 +0000 (15:03 -0700)]
osd: skip mark-me-down message if osd is not up

Fixes crash when the OSD has not successfully booted and gets a
SIGINT or SIGTERM.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd, mds: shut down async signal handler on exit
Sage Weil [Wed, 22 May 2013 21:56:24 +0000 (14:56 -0700)]
osd, mds: shut down async signal handler on exit

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorbd image_read.sh: ensure rbd is loaded
Alex Elder [Wed, 22 May 2013 21:50:19 +0000 (16:50 -0500)]
rbd image_read.sh: ensure rbd is loaded

Make sure rbd is loaded before proceeding with the script.

Signed-off-by: Alex Elder <elder@inktank.com>
12 years agomessages/MOSDMarkMeDown: fix uninit field
Sage Weil [Wed, 22 May 2013 21:29:37 +0000 (14:29 -0700)]
messages/MOSDMarkMeDown: fix uninit field

Fixes valgrind warning:
==14803== Use of uninitialised value of size 8
==14803==    at 0x12E7614: sctp_crc32c_sb8_64_bit (sctp_crc32.c:567)
==14803==    by 0x12E76F8: update_crc32 (sctp_crc32.c:609)
==14803==    by 0x12E7720: ceph_crc32c_le (sctp_crc32.c:733)
==14803==    by 0x105085F: ceph::buffer::list::crc32c(unsigned int) (buffer.h:427)
==14803==    by 0x115D7B2: Message::calc_front_crc() (Message.h:441)
==14803==    by 0x1159BB0: Message::encode(unsigned long, bool) (Message.cc:170)
==14803==    by 0x1323934: Pipe::writer() (Pipe.cc:1524)
==14803==    by 0x13293D9: Pipe::Writer::entry() (Pipe.h:59)
==14803==    by 0x120A398: Thread::_entry_func(void*) (Thread.cc:41)
==14803==    by 0x503BE99: start_thread (pthread_create.c:308)
==14803==    by 0x6C6E4BC: clone (clone.S:112)

Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomds: weaken reconnect assertion
Sage Weil [Wed, 22 May 2013 21:11:40 +0000 (14:11 -0700)]
mds: weaken reconnect assertion

See #5031.  This appears to be populated with another mds's mdsdir; just
not asserting avoids the problem for the time being.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #316 from ceph/wip-sysvinit
Sage Weil [Wed, 22 May 2013 20:25:42 +0000 (13:25 -0700)]
Merge pull request #316 from ceph/wip-sysvinit

Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agocephtool/test.sh: add test for --verbose and --concise
Dan Mick [Wed, 22 May 2013 20:08:11 +0000 (13:08 -0700)]
cephtool/test.sh: add test for --verbose and --concise

12 years agoceph: fix --concise (set verbose to False)
Dan Mick [Wed, 22 May 2013 20:06:14 +0000 (13:06 -0700)]
ceph: fix --concise (set verbose to False)

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agosysvinit: fix osd weight calculation on remote hosts 316/head
Sage Weil [Wed, 22 May 2013 16:47:29 +0000 (09:47 -0700)]
sysvinit: fix osd weight calculation on remote hosts

We need to do df on the remote host, not locally.

Simlarly, the ceph command uses the osd key, which exists remotely; run it there.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agosysvinit: use known hostname $host instead of (incorrectly) recalculating
Sage Weil [Wed, 22 May 2013 16:47:03 +0000 (09:47 -0700)]
sysvinit: use known hostname $host instead of (incorrectly) recalculating

We would need to do hostname -s on the remote node, not the local one.
But we already have $host; use it!

Reported-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #314 from ceph/wip-4228
Sage Weil [Wed, 22 May 2013 17:33:35 +0000 (10:33 -0700)]
Merge pull request #314 from ceph/wip-4228

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoOSDMonitor: skip new pools in update_pools_status() and get_pools_health()
Samuel Just [Tue, 21 May 2013 22:22:56 +0000 (15:22 -0700)]
OSDMonitor: skip new pools in update_pools_status() and get_pools_health()

New pools won't be full.  mon->pgmon()->pg_map.pg_pool_sum[poolid] will
implicitly create an entry for poolid causing register_new_pgs() to assume that
the newly created pgs in the new pool are in fact a result of a split
preventing MOSDPGCreate messages from being sent out.

Fixes: #4813
Backport: cuttlefish
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoceph-syn: specify which types of addresses to pick 314/head
Joao Eduardo Luis [Wed, 22 May 2013 16:52:27 +0000 (17:52 +0100)]
ceph-syn: specify which types of addresses to pick

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoceph-mds: specify which types of addresses to pick
Joao Eduardo Luis [Wed, 22 May 2013 16:52:15 +0000 (17:52 +0100)]
ceph-mds: specify which types of addresses to pick

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoMerge pull request #315 from ceph/wip-4507
Sage Weil [Wed, 22 May 2013 17:15:51 +0000 (10:15 -0700)]
Merge pull request #315 from ceph/wip-4507

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agomon: PaxosService: drop atomic_t on 'proposing' 315/head
Joao Eduardo Luis [Mon, 6 May 2013 16:10:15 +0000 (17:10 +0100)]
mon: PaxosService: drop atomic_t on 'proposing'

We don't need this to be atomic -- a simple boolean is enough.

Fixes: #4507
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoceph-osd: specify which types of addresses to pick
Joao Eduardo Luis [Wed, 22 May 2013 16:52:03 +0000 (17:52 +0100)]
ceph-osd: specify which types of addresses to pick

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoceph-mon: only care about public addr during pick_addresses()
Joao Eduardo Luis [Mon, 6 May 2013 15:51:30 +0000 (16:51 +0100)]
ceph-mon: only care about public addr during pick_addresses()

Fixes: #4228
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agocommon: add mask argument to pick_addresses() to specify what we need
Joao Eduardo Luis [Mon, 6 May 2013 15:33:53 +0000 (16:33 +0100)]
common: add mask argument to pick_addresses() to specify what we need

Fixes: #4228
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoceph: remove cli test
Sage Weil [Wed, 22 May 2013 16:39:11 +0000 (09:39 -0700)]
ceph: remove cli test

This is about to be removed by wip-ceph-cli anyway.  And it broke in
commit 132d5bf7f9af7de9e2028e20c95ba91637da5875.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #297 from dalgaaf/wip-da-CID-727982
Sage Weil [Wed, 22 May 2013 15:54:56 +0000 (08:54 -0700)]
Merge pull request #297 from dalgaaf/wip-da-CID-727982

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #310 from dalgaaf/wip-da-CID-fixes-4
Sage Weil [Wed, 22 May 2013 15:37:09 +0000 (08:37 -0700)]
Merge pull request #310 from dalgaaf/wip-da-CID-fixes-4

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agomds/Migrator.cc: fix possible dereference NULL return value 310/head
Danny Al-Gaaf [Wed, 22 May 2013 15:28:06 +0000 (17:28 +0200)]
mds/Migrator.cc: fix possible dereference NULL return value

CID 716997 (#1 of 1): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "in" when
  calling "MDSCacheObject::is_auth() const".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Migrator.cc: fix possible dereference NULL return value
Danny Al-Gaaf [Wed, 22 May 2013 15:25:16 +0000 (17:25 +0200)]
mds/Migrator.cc: fix possible dereference NULL return value

ID 716998 (#1 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "in" when
  calling "operator <<(std::ostream &, CInode &)".

CID 716998 (#2 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "in" when
  calling "MDCache::add_replica_dir(ceph::buffer::list::iterator &,
  CInode *, int, std::list<Context *, std::allocator<Context *> > &)".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Migrator.cc: delete some empty lines at EOF
Danny Al-Gaaf [Wed, 22 May 2013 15:23:40 +0000 (17:23 +0200)]
mds/Migrator.cc: delete some empty lines at EOF

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Migrator.cc: fix possible dereference NULL return value
Danny Al-Gaaf [Wed, 22 May 2013 15:21:59 +0000 (17:21 +0200)]
mds/Migrator.cc: fix possible dereference NULL return value

CID 716999 (#1 of 1): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "in" when
  calling "CInode::put_stickydirs()".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoMerge pull request #309 from dalgaaf/wip-da-CID-fixes-3-v2
Sage Weil [Wed, 22 May 2013 15:20:49 +0000 (08:20 -0700)]
Merge pull request #309 from dalgaaf/wip-da-CID-fixes-3-v2

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agomds/Migrator.cc: fix dereference NULL return value
Danny Al-Gaaf [Wed, 22 May 2013 15:17:01 +0000 (17:17 +0200)]
mds/Migrator.cc: fix dereference NULL return value

CID 717000 (#1 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "dir" when
  calling "operator <<(std::ostream &, CDir &)".

CID 717000 (#2 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "dir" when
  calling "Migrator::import_reverse_unfreeze(CDir *)".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Migrator.cc: fix possible NULL pointer dereference
Danny Al-Gaaf [Wed, 22 May 2013 15:06:40 +0000 (17:06 +0200)]
mds/Migrator.cc: fix possible NULL pointer dereference

Move dout() calls behind the related asserts to prevent possible NULL
pointer dereference.

CID 717001 (#1 of 1): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "diri" when calling
  "operator <<(std::ostream &, CInode

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Server.cc: fix possible NULL pointer dereference 309/head
Danny Al-Gaaf [Fri, 17 May 2013 12:38:24 +0000 (14:38 +0200)]
mds/Server.cc: fix possible NULL pointer dereference

Add asserts to solve these CID issues:

CID 717002 (#1 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "dir"
  when calling "CDir::lookup(std::string const &, snapid_t)".
CID 717002 (#2 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "dir"
  when calling "CDir::lookup(std::string const &, snapid_t)".

CID 717003 (#1 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "dn" when
  calling "operator <<(std::ostream &, CDentry &)"
CID 717003 (#2 of 2): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "straydn"
  when calling "CDentry::push_projected_linkage()".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agosrc/rbd.cc: silence CID COPY_PASTE_ERROR warning
Danny Al-Gaaf [Fri, 17 May 2013 12:15:23 +0000 (14:15 +0200)]
src/rbd.cc: silence CID COPY_PASTE_ERROR warning

CID 1021212 (#1 of 1): Copy-paste error (COPY_PASTE_ERROR)
  copy_paste_error: "r" in "r = -*__errno_location()" looks like
  a copy-paste error. Should it say "fd" instead?

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDS.cc: fix dereference null return value
Danny Al-Gaaf [Wed, 22 May 2013 13:42:52 +0000 (15:42 +0200)]
mds/MDS.cc: fix dereference null return value

Fix for:

returned_null: Function "SessionMap::get_session(entity_name_t)" returns
  null (checked 12 out of 14 times)

CID 739601 (#1 of 1): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null
  "this->sessionmap.get_session(entity_name_t::CLIENT(client.v))" when
  calling "MDS::send_message_client_counted(Message *, Session *)"

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>