]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agolibcephfs.h libcephfs.cc : Defined error codes for the mount function 2704/head
BJ Lougee [Sat, 11 Oct 2014 07:44:17 +0000 (02:44 -0500)]
libcephfs.h libcephfs.cc : Defined error codes for the mount function
Used new error codes from libcephfs.h to replace the magic numbers in the mount functon found in libcephfs.cc.

Signed-off-by: BJ Lougee <almightybeeij@gmail.com>
10 years agoMerge pull request #2675 from ceph/wip-coverity-20141003
Sage Weil [Fri, 10 Oct 2014 16:13:02 +0000 (09:13 -0700)]
Merge pull request #2675 from ceph/wip-coverity-20141003

Fix issues from SCA and Coverity

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2685 from hejiantao5/patch-1
Loic Dachary [Fri, 10 Oct 2014 12:56:27 +0000 (14:56 +0200)]
Merge pull request #2685 from hejiantao5/patch-1

Check the pointer before deleting

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2688 from leseb/fix-warning-message-img-format
Loic Dachary [Fri, 10 Oct 2014 12:50:35 +0000 (14:50 +0200)]
Merge pull request #2688 from leseb/fix-warning-message-img-format

Fix error message when stripping with format 1

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoFix error message when stripping with format 1 2688/head
Sébastien Han [Fri, 10 Oct 2014 12:14:22 +0000 (14:14 +0200)]
Fix error message when stripping with format 1

Since the option '--format' for specifying the rbd image format is
deprecated, we should recommend '--image-format' instead.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
10 years agoCheck pointer before deleting 2685/head
hejiantao5 [Fri, 10 Oct 2014 07:57:05 +0000 (15:57 +0800)]
Check pointer before deleting

Here I think should check the pointer, to avoid potential risk

Signed-off-by: Jiantao He <hejiantao5@gmail.com>
10 years agoceph_erasure_code_benchmark: fix parameter handling 2675/head
Danny Al-Gaaf [Thu, 9 Oct 2014 16:09:41 +0000 (18:09 +0200)]
ceph_erasure_code_benchmark: fix parameter handling

Make sure k and m paramter are valid to prevent crash. Fix typo.

Fix for the following CID and other possible invalid combinations
of k/m parameter:

CID 1219466 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)
 divide_by_zero: In expression rand() % (k + m), modulo by expression
 k + m which may be zero has undefined behavior.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2686 from dachary/wip-client-dout
John Spray [Fri, 10 Oct 2014 09:05:44 +0000 (10:05 +0100)]
Merge pull request #2686 from dachary/wip-client-dout

client: add missing dendl and s/dout/ldout/

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoclient: add missing dendl and s/dout/ldout/ 2686/head
Loic Dachary [Fri, 10 Oct 2014 08:43:44 +0000 (10:43 +0200)]
client: add missing dendl and s/dout/ldout/

Introduced in ce4436c9d4206ff4a4af7fdc16e571dcc77cd8b4

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2671 from ceph/wip-da-fix-make_check
Loic Dachary [Fri, 10 Oct 2014 05:57:19 +0000 (07:57 +0200)]
Merge pull request #2671 from ceph/wip-da-fix-make_check

Makefile.am: make sure everything was build before make check

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2669 from ceph/wip-9692
Loic Dachary [Fri, 10 Oct 2014 05:54:22 +0000 (07:54 +0200)]
Merge pull request #2669 from ceph/wip-9692

qa/workunits/fs/misc: fix syntax error

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2676 from ceph/wip-print-mode
Yan, Zheng [Fri, 10 Oct 2014 01:36:59 +0000 (09:36 +0800)]
Merge pull request #2676 from ceph/wip-print-mode

client: print out mode, uid, gid if they are changed

10 years agoqa/workunits/fs/misc: fix syntax error 2669/head
Yan, Zheng [Wed, 8 Oct 2014 12:38:33 +0000 (20:38 +0800)]
qa/workunits/fs/misc: fix syntax error

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #2677 from ceph/wip-mds-coverity
Yan, Zheng [Fri, 10 Oct 2014 01:16:58 +0000 (09:16 +0800)]
Merge pull request #2677 from ceph/wip-mds-coverity

Wip mds coverity

10 years agomds: MDirUpdate: initialize discover count to 0 if we're not discovering 2677/head
Greg Farnum [Thu, 9 Oct 2014 17:41:45 +0000 (10:41 -0700)]
mds: MDirUpdate: initialize discover count to 0 if we're not discovering

Otherwise it's left uninitialized and could do who-knows-what!

CID 1244229:  Uninitialized scalar field  (UNINIT_CTOR)
/messages/MDirUpdate.h: 55 in MDirUpdate::MDirUpdate(mds_rank_t, dirfrag_t,
int, std::set<int, std::less<int>, std::allocator<int>> &, filepath &, bool)()

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agomds: MDSAuthCaps: init "read" param in default constructor
Greg Farnum [Thu, 9 Oct 2014 17:37:21 +0000 (10:37 -0700)]
mds: MDSAuthCaps: init "read" param in default constructor

CID 1244228:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/MDSAuthCaps.h: 29 in MDSCapSpec::MDSCapSpec()()

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoclient: print out mode, uid, gid if they are changed 2676/head
Greg Farnum [Thu, 9 Oct 2014 16:47:29 +0000 (09:47 -0700)]
client: print out mode, uid, gid if they are changed

These values can be printed by MClientRequest message output, but if
they're flushed out via cap updates we don't even get that. These
are important values that generally don't change often; so print
them out in debug logging.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agotest_rgw_admin_log.cc: refactor to use calloc()
Danny Al-Gaaf [Thu, 9 Oct 2014 15:14:37 +0000 (17:14 +0200)]
test_rgw_admin_log.cc: refactor to use calloc()

Refactor code to use calloc() instead of malloc() to make
sure the char* TEST_BUCKET_OBJECT_SIZE memory is set to
zero before call put_bucket_obj().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_rgw_admin_log.cc: fix use-after-free
Danny Al-Gaaf [Thu, 9 Oct 2014 13:55:30 +0000 (15:55 +0200)]
test_rgw_admin_log.cc: fix use-after-free

Fix for:

CID 1054876 (#1 of 1): Use after free (USE_AFTER_FREE)
 pass_freed_arg: Passing freed pointer bucket_obj as an
 argument to put_bucket_obj

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/librados/c_write_operations.cc: free ressources
Danny Al-Gaaf [Thu, 9 Oct 2014 13:29:45 +0000 (15:29 +0200)]
test/librados/c_write_operations.cc: free ressources

Release completion as soon as no longer needed.

Fix for:

CID 1219593 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable completion going out of scope
 leaks the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2511 from dachary/wip-catch-options-errors
Loic Dachary [Thu, 9 Oct 2014 07:41:38 +0000 (09:41 +0200)]
Merge pull request #2511 from dachary/wip-catch-options-errors

test,tools: catch option parsing exceptions

Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
10 years agoMerge pull request #2629 from dachary/wip-heap-profiler
Loic Dachary [Thu, 9 Oct 2014 06:17:12 +0000 (08:17 +0200)]
Merge pull request #2629 from dachary/wip-heap-profiler

perfglue: minors heap profiler updates and documentation

Reviewed-by: Jianpeng Ma <majianpeng@gmail.com>
10 years agorados_list_parallel.cc: cleanup before return from run()
Danny Al-Gaaf [Mon, 6 Oct 2014 10:43:59 +0000 (12:43 +0200)]
rados_list_parallel.cc: cleanup before return from run()

Fix for another case of:

CID 717112 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable io_ctx going out of scope leaks
 the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/librbd/fsx.c: fix potential unterminated string handling
Danny Al-Gaaf [Mon, 6 Oct 2014 10:20:09 +0000 (12:20 +0200)]
test/librbd/fsx.c: fix potential unterminated string handling

In case of strncpy() make sure string is '\0' terminated. Before
usage of strcat() check if the destination has enough free space
to concat the char and to terminate the string to prevent illegal
memory access.

Fix for:

CID 1219459 (2 of 2): Buffer not null terminated (BUFFER_SIZE_WARNING)
 buffer_size_warning: Calling strncpy with a maximum size argument of
 1024 bytes on destination array goodfile of size 1024 bytes might
 leave the destination string unterminated.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoErasureCodeIsa.cc: reduce scope of variables
Danny Al-Gaaf [Fri, 3 Oct 2014 16:16:56 +0000 (18:16 +0200)]
ErasureCodeIsa.cc: reduce scope of variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoSyntheticClient.cc: reduce scope of variables
Danny Al-Gaaf [Fri, 3 Oct 2014 14:10:20 +0000 (16:10 +0200)]
SyntheticClient.cc: reduce scope of variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomds/flock.cc: reduce scope of some variables
Danny Al-Gaaf [Thu, 2 Oct 2014 16:27:51 +0000 (18:27 +0200)]
mds/flock.cc: reduce scope of some variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoosd/ReplicatedBackend.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Thu, 2 Oct 2014 16:18:55 +0000 (18:18 +0200)]
osd/ReplicatedBackend.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoosd/OSDMap.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Thu, 2 Oct 2014 16:17:15 +0000 (18:17 +0200)]
osd/OSDMap.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomount.ceph.c: ensure '\0' terminated string
Danny Al-Gaaf [Thu, 2 Oct 2014 08:48:25 +0000 (10:48 +0200)]
mount.ceph.c: ensure '\0' terminated string

Reserve last char in array for '\0' to ensure termination
of the string.

Fix for:

CID 1128383 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)
 buffer_size_warning: Calling strncpy with a maximum size argument
 of 1000 bytes on destination array secret of size 1000 bytes might
 leave the destination string unterminated.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2586 from ceph/wip-mon-status
Sage Weil [Wed, 8 Oct 2014 19:39:01 +0000 (12:39 -0700)]
Merge pull request #2586 from ceph/wip-mon-status

mon: make health portion of ceph -s readable (multiple lines)

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
10 years agoMerge pull request #2673 from dachary/wip-ceph-erasure-code-corpus
Loic Dachary [Wed, 8 Oct 2014 19:26:11 +0000 (21:26 +0200)]
Merge pull request #2673 from dachary/wip-ceph-erasure-code-corpus

build: add ceph-erasure-code-corpus to gitmodule_mirrors

Reviewed-by: Sandon Van Ness <sandon@inktank.com>
10 years agobuild: add ceph-erasure-code-corpus to gitmodule_mirrors 2673/head
Loic Dachary [Wed, 8 Oct 2014 19:22:02 +0000 (21:22 +0200)]
build: add ceph-erasure-code-corpus to gitmodule_mirrors

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMakefile.am: make sure everything was build before make check 2671/head
Danny Al-Gaaf [Wed, 8 Oct 2014 18:19:07 +0000 (20:19 +0200)]
Makefile.am: make sure everything was build before make check

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge remote-tracking branch 'upstream/giant'
Samuel Just [Wed, 8 Oct 2014 18:18:13 +0000 (11:18 -0700)]
Merge remote-tracking branch 'upstream/giant'

10 years agoMerge pull request #2616 from guangyy/wip-giant-9614
Samuel Just [Wed, 8 Oct 2014 18:08:35 +0000 (11:08 -0700)]
Merge pull request #2616 from guangyy/wip-giant-9614

PG::actingset should be used when checking the number of acting OSDs for a given PG.

Backport: firefly
Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2663 from ceph/wip-9496
Samuel Just [Wed, 8 Oct 2014 18:07:06 +0000 (11:07 -0700)]
Merge pull request #2663 from ceph/wip-9496

mon: PGMonitor: populate scrub timestamps with 'now' on pg creation

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2650 from ceph/wip-9128
Samuel Just [Wed, 8 Oct 2014 18:04:42 +0000 (11:04 -0700)]
Merge pull request #2650 from ceph/wip-9128

Add reset_tp_timeout in long loop in add_source_info for suicide timeout

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2543 from ceph/wip-9419
Samuel Just [Wed, 8 Oct 2014 18:01:26 +0000 (11:01 -0700)]
Merge pull request #2543 from ceph/wip-9419

Wip 9419

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2670 from dachary/wip-9700-cephtool-mon-osd
John Spray [Wed, 8 Oct 2014 14:45:29 +0000 (15:45 +0100)]
Merge pull request #2670 from dachary/wip-9700-cephtool-mon-osd

qa: move mon_mds tests last

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoqa: move mon_mds tests last 2670/head
Loic Dachary [Wed, 8 Oct 2014 14:27:47 +0000 (16:27 +0200)]
qa: move mon_mds tests last

Assuming they are more likely than others to leave OSD/MON in an
unstable state that could have undefined side effects on the tests
following it. A cleaner solution would be to run them in a separate
script that is run on an independent cluster.

http://tracker.ceph.com/issues/9700 Fixes: #9700

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2569 from ceph/wip-9437
John Spray [Wed, 8 Oct 2014 14:28:01 +0000 (15:28 +0100)]
Merge pull request #2569 from ceph/wip-9437

Implement `tell` in MDS

Reviewed-by: Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoqa: cephtool tests for `tell mds.X` 2569/head
John Spray [Tue, 30 Sep 2014 13:45:42 +0000 (14:45 +0100)]
qa: cephtool tests for `tell mds.X`

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoqa: fixup cephtool test when MDS exists
John Spray [Mon, 6 Oct 2014 18:06:20 +0000 (19:06 +0100)]
qa: fixup cephtool test when MDS exists

We added MDS resetting code here a while back,
but the order of operations was such that a
"cluster up" was being run between a fail_all_mds
and the point at which we needed the map not to
be interfered with (testing setmap).

Also the new fs create/destroy cycles for testing
EC pool handling were missing calls to stop the
daemons before fs rm.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotest: unit tests for MDSAuthCaps
John Spray [Mon, 29 Sep 2014 12:43:16 +0000 (13:43 +0100)]
test: unit tests for MDSAuthCaps

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agovstart: create fewer pgs for fs pools
John Spray [Fri, 26 Sep 2014 16:24:12 +0000 (17:24 +0100)]
vstart: create fewer pgs for fs pools

Just so that dev clusters come up more
quickly.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agovstart: mds * auth caps
John Spray [Thu, 25 Sep 2014 17:05:18 +0000 (18:05 +0100)]
vstart: mds * auth caps

...so that the default client.admin identity
can call 'tell mds' things.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: fix MDSAuthCap when cephx is disabled
John Spray [Tue, 7 Oct 2014 20:39:52 +0000 (21:39 +0100)]
mds: fix MDSAuthCap when cephx is disabled

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agopybind/ceph_argparse: implement 'tell mds'
John Spray [Mon, 22 Sep 2014 09:40:19 +0000 (10:40 +0100)]
pybind/ceph_argparse: implement 'tell mds'

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agopybind/cephfs: implement mds_command
John Spray [Mon, 22 Sep 2014 09:39:52 +0000 (10:39 +0100)]
pybind/cephfs: implement mds_command

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agopybind/cephfs: implement conf_parse_argv
John Spray [Tue, 23 Sep 2014 11:20:42 +0000 (12:20 +0100)]
pybind/cephfs: implement conf_parse_argv

So that when using `ceph` we can pass through
--debug-x args etc.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agopybind/rados: add conf/conf_defaults attributes
John Spray [Mon, 22 Sep 2014 09:38:53 +0000 (10:38 +0100)]
pybind/rados: add conf/conf_defaults attributes

Store these from initialization so that given a Rados
object, we can read back config to initialize a
LibCephFS object.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agolibcephfs: add ceph_mds_command
John Spray [Thu, 18 Sep 2014 17:57:11 +0000 (18:57 +0100)]
libcephfs: add ceph_mds_command

Wraps the equivalent fn in Client.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: add mds_command operation
John Spray [Thu, 18 Sep 2014 17:56:42 +0000 (18:56 +0100)]
client: add mds_command operation

akin to Objecter::osd_command

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoosdc/Objecter: don't consume non-osd cmd replies
John Spray [Fri, 19 Sep 2014 18:34:17 +0000 (19:34 +0100)]
osdc/Objecter: don't consume non-osd cmd replies

...so that Client can get command replies from MDSs.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: introduce MDS auth caps
John Spray [Wed, 24 Sep 2014 10:37:34 +0000 (11:37 +0100)]
mds: introduce MDS auth caps

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: handle MCommand (mds tell)
John Spray [Mon, 22 Sep 2014 09:37:36 +0000 (10:37 +0100)]
mds: handle MCommand (mds tell)

Separate path to legacy MMonCommand, because MCommand
from the CLI sends JSON-style commands.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: deprecation-warn on numeric mds names
John Spray [Mon, 6 Oct 2014 10:18:51 +0000 (11:18 +0100)]
mds: deprecation-warn on numeric mds names

To be turned into strict check in post-hammer
release, so that we can always unambiguously
discriminate a string into one of name, rank, gid.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agocommon: fix cmd_getval constness
John Spray [Tue, 23 Sep 2014 11:21:14 +0000 (12:21 +0100)]
common: fix cmd_getval constness

...so that one can pass in a const cmdmap.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomessages: fix constness in MCommand constructor
John Spray [Thu, 18 Sep 2014 16:58:48 +0000 (17:58 +0100)]
messages: fix constness in MCommand constructor

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: typedefs for rank and gid in MDSMap
John Spray [Thu, 18 Sep 2014 18:31:43 +0000 (19:31 +0100)]
mds: typedefs for rank and gid in MDSMap

Make it clearer what these numbers are where they appear.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2668 from theanalyst/fix/mailmap-again
Loic Dachary [Wed, 8 Oct 2014 10:11:02 +0000 (12:11 +0200)]
Merge pull request #2668 from theanalyst/fix/mailmap-again

Fix/mailmap again

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: João Eduardo Luís name normalization 2668/head
Abhishek Lekshmanan [Wed, 8 Oct 2014 08:53:30 +0000 (14:23 +0530)]
mailmap: João Eduardo Luís name normalization

Reported-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Yongyue sun affiliation
Abhishek Lekshmanan [Wed, 8 Oct 2014 08:52:08 +0000 (14:22 +0530)]
mailmap: Yongyue sun affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Andreas Peters name normalization
Abhishek Lekshmanan [Wed, 8 Oct 2014 08:50:34 +0000 (14:20 +0530)]
mailmap: Andreas Peters name normalization

Reported-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agoMerge pull request #2665 from yuyuyu101/update-mailmap
Loic Dachary [Wed, 8 Oct 2014 08:18:54 +0000 (10:18 +0200)]
Merge pull request #2665 from yuyuyu101/update-mailmap

mailmap: add yuandong to organizationmap

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agodoc: update memory-profiling with examples 2629/head
Loic Dachary [Thu, 2 Oct 2014 13:16:28 +0000 (15:16 +0200)]
doc: update memory-profiling with examples

* Update the ceph tell from ceph daemon tell id to the new
  ceph tell deamon.id form

* Add usages examples for easier copy / paste

* Add MON to the list of daemons that can be profiled

* Document CEPH_HEAP_PROFILER_INIT=true

* Remove trailing empty lines

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomon,mds: call ceph_heap_profiler_init() at boot time
Loic Dachary [Thu, 2 Oct 2014 13:14:21 +0000 (15:14 +0200)]
mon,mds: call ceph_heap_profiler_init() at boot time

So that the CEPH_HEAP_PROFILER_INIT environment variable can be used to
start profiling.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoperfglue: profiler stats need more than 1024 bytes
Loic Dachary [Thu, 2 Oct 2014 13:12:30 +0000 (15:12 +0200)]
perfglue: profiler stats need more than 1024 bytes

With a 1024 bytes buffer to display the stats, the end is truncated.
Use an array on the stack instead of leaking the buffer.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: add yuandong to organizationmap 2665/head
Haomai Wang [Wed, 8 Oct 2014 07:23:47 +0000 (15:23 +0800)]
mailmap: add yuandong to organizationmap

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agotest,tools: indentation, whitespace only 2511/head
Loic Dachary [Wed, 17 Sep 2014 13:57:25 +0000 (15:57 +0200)]
test,tools: indentation, whitespace only

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotools: allow_unregistered() options
Loic Dachary [Wed, 17 Sep 2014 13:47:41 +0000 (15:47 +0200)]
tools: allow_unregistered() options

So that --debug-mon etc. can be parsed afterwards.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotools: move po::collect_unrecognized in the try block
Loic Dachary [Wed, 17 Sep 2014 13:46:54 +0000 (15:46 +0200)]
tools: move po::collect_unrecognized in the try block

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotools: display boost::program_options errors
Loic Dachary [Wed, 17 Sep 2014 13:43:17 +0000 (15:43 +0200)]
tools: display boost::program_options errors

Instead of silently discarding them. Do not display the usage on error
as it will probably hide the error message that shows before it.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotest: catch boost::program_options errors
Loic Dachary [Wed, 17 Sep 2014 13:37:01 +0000 (15:37 +0200)]
test: catch boost::program_options errors

And display it before returning on error.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotest,tools: capture boost::program_options in a try
Loic Dachary [Wed, 17 Sep 2014 13:34:01 +0000 (15:34 +0200)]
test,tools: capture boost::program_options in a try

When something fails boost::program_options throws an exception that
needs to be caught.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2661 from dachary/wip-9677-ioprio-class-giant
Loic Dachary [Wed, 8 Oct 2014 06:44:08 +0000 (08:44 +0200)]
Merge pull request #2661 from dachary/wip-9677-ioprio-class-giant

common: ceph_ioprio_string_to_class always returns -EINVAL

10 years agoMerge pull request #2617 from ceph/wip-9628
Gregory Farnum [Wed, 8 Oct 2014 02:26:20 +0000 (19:26 -0700)]
Merge pull request #2617 from ceph/wip-9628

mds: Add session to sessionmap when its state becomes opening

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agomon: PGMonitor: populate scrub timestamps with 'now' on pg creation 2663/head
Joao Eduardo Luis [Tue, 7 Oct 2014 23:13:49 +0000 (00:13 +0100)]
mon: PGMonitor: populate scrub timestamps with 'now' on pg creation

Fixes: #9496
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: PGMonitor: prettify access to pg_stats_t in register_pg
Joao Eduardo Luis [Tue, 7 Oct 2014 23:12:29 +0000 (00:12 +0100)]
mon: PGMonitor: prettify access to pg_stats_t in register_pg

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2660 from athanatos/wip-9203
Sage Weil [Tue, 7 Oct 2014 21:08:39 +0000 (14:08 -0700)]
Merge pull request #2660 from athanatos/wip-9203

test/osd/Object: don't generate length of 0

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2659 from athanatos/wip-9113
Sage Weil [Tue, 7 Oct 2014 21:06:38 +0000 (14:06 -0700)]
Merge pull request #2659 from athanatos/wip-9113

Wip 9113

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2658 from athanatos/wip-9625
Sage Weil [Tue, 7 Oct 2014 21:03:55 +0000 (14:03 -0700)]
Merge pull request #2658 from athanatos/wip-9625

PG: release backfill reservations if a backfill peer rejects

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoosd: Return EOPNOTSUPP if a set-alloc-hint occurs with OSDs that don't support 2543/head
David Zafman [Wed, 24 Sep 2014 23:02:21 +0000 (16:02 -0700)]
osd: Return EOPNOTSUPP if a set-alloc-hint occurs with OSDs that don't support

Add CEPH_FEATURE_OSD_SET_ALLOC_HINT feature bit
Collect the intersection of all peer feature bits during peering
When handling CEPH_OSD_OP_SETALLOCHINT check that all OSDs support it
by checking for CEPH_FEATURE_OSD_SET_ALLOC_HINT feature bit.

Fixes: #9419
Backport: firefly

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: Remove unused PG functions queue_notify(), queue_info(), queue_log()
David Zafman [Fri, 19 Sep 2014 22:12:55 +0000 (15:12 -0700)]
osd: Remove unused PG functions queue_notify(), queue_info(), queue_log()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Tue, 7 Oct 2014 19:40:45 +0000 (12:40 -0700)]
Merge remote-tracking branch 'gh/giant'

Conflicts:
src/osdc/Objecter.cc

10 years agoMerge tag 'v0.86' into giant
Sage Weil [Tue, 7 Oct 2014 19:34:10 +0000 (12:34 -0700)]
Merge tag 'v0.86' into giant

v0.86

10 years ago0.86
Jenkins [Tue, 7 Oct 2014 13:20:21 +0000 (06:20 -0700)]
0.86

10 years agoMerge remote-tracking branch 'guangyy/wip-9008' into giant
Samuel Just [Tue, 7 Oct 2014 18:42:14 +0000 (11:42 -0700)]
Merge remote-tracking branch 'guangyy/wip-9008' into giant

10 years agoMerge pull request #2631 from ceph/wip-rwtimer
Sage Weil [Tue, 7 Oct 2014 18:41:11 +0000 (11:41 -0700)]
Merge pull request #2631 from ceph/wip-rwtimer

DNM: osdc/Objecter: use SafeTimer; make callbacks race-tolerant

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocommon: ceph_ioprio_string_to_class always returns -EINVAL 2661/head
Loic Dachary [Tue, 7 Oct 2014 12:06:38 +0000 (14:06 +0200)]
common: ceph_ioprio_string_to_class always returns -EINVAL

The l string is always empty because std::transform needs a
pre-allocated string. Replace with the in-place version. Add unit tests.

http://tracker.ceph.com/issues/9677 Fixes: #9677

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 3535b7aba3df8b54fa5117b8a9c2f52b8f0f118b)

10 years agoosd: log error if set_ioprio fails to parse class
Loic Dachary [Tue, 7 Oct 2014 12:05:08 +0000 (14:05 +0200)]
osd: log error if set_ioprio fails to parse class

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 5088e0d49332d579ba7e33c2c9baee3d5f701a3e)

10 years agocommon: set_ioprio debug message including pid
Loic Dachary [Tue, 7 Oct 2014 12:03:39 +0000 (14:03 +0200)]
common: set_ioprio debug message including pid

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 33339c7754875eb7e513345ee6b26a9b2b4d2707)

10 years agocommon: do not set ioprio if pid is not set
Loic Dachary [Tue, 7 Oct 2014 12:02:09 +0000 (14:02 +0200)]
common: do not set ioprio if pid is not set

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit c7e4c0bfe70bf29d3b8fe4df4e4b934853e33d26)

10 years agodoc: missing osd prefix to ioprio config options
Loic Dachary [Tue, 7 Oct 2014 08:09:46 +0000 (10:09 +0200)]
doc: missing osd prefix to ioprio config options

http://tracker.ceph.com/issues/9676 Fixes: #9676

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 62235688c417ed19a472bc8a94bba005e03afbc6)

10 years agoMerge pull request #2489 from guangyy/wip-9008
Samuel Just [Tue, 7 Oct 2014 17:51:21 +0000 (10:51 -0700)]
Merge pull request #2489 from guangyy/wip-9008

For pgls OP, get/put budget on per list session basis, instead of per OP basis.

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2655 from ceph/wip-9635
João Eduardo Luís [Tue, 7 Oct 2014 15:54:50 +0000 (15:54 +0000)]
Merge pull request #2655 from ceph/wip-9635

mon: fix async write completion waits

Fixes: #9635
Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2654 from dachary/wip-9677-ioprio-class
Sage Weil [Tue, 7 Oct 2014 15:47:44 +0000 (08:47 -0700)]
Merge pull request #2654 from dachary/wip-9677-ioprio-class

common: ceph_ioprio_string_to_class always returns -EINVAL

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2626 from dachary/wip-rados-empty-file
Sage Weil [Tue, 7 Oct 2014 15:13:22 +0000 (08:13 -0700)]
Merge pull request #2626 from dachary/wip-rados-empty-file

tools: rados put /dev/null should write() and not create()

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2652 from ceph/wip-msgr
Gregory Farnum [Tue, 7 Oct 2014 14:23:54 +0000 (07:23 -0700)]
Merge pull request #2652 from ceph/wip-msgr

msgr: fix remaining direct references to "new SimpleMessenger" by replacing with the factory method

Reorganize the src/msg hierarchy to push SimpleMessenger down into a subfolder to make way for organizing new in-tree implementations.

Reviewed-by: Greg Farnum <greg@inktank.com>