]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoMerge pull request #3003 from dachary/wip-10185-neon 3017/head
Loic Dachary [Tue, 25 Nov 2014 13:14:20 +0000 (14:14 +0100)]
Merge pull request #3003 from dachary/wip-10185-neon

arch: fix neon feature detection

Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
10 years agoarch: fix neon feature detection 3003/head
Loic Dachary [Tue, 25 Nov 2014 09:39:21 +0000 (10:39 +0100)]
arch: fix neon feature detection

The fread function returns the number of elements read, not the number
of bytes.

Introduced by 1cef8339f7a2a503327c20c014e696c91d36281e , after giant.

Add tests for protection against similar regressions.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3002 from thesues/fix-init
Loic Dachary [Tue, 25 Nov 2014 11:07:37 +0000 (12:07 +0100)]
Merge pull request #3002 from thesues/fix-init

Remove pidfile and asok after stopping ceph

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoRemove pidfile and asok after stopping ceph 3002/head
Dongmao Zhang [Tue, 25 Nov 2014 07:34:46 +0000 (15:34 +0800)]
Remove pidfile and asok after stopping ceph

Signed-off-by: Dongmao Zhang <deanraccoon@gmail.com>
10 years agoMerge pull request #2872 from dachary/wip-10018-primary-erasure-code-hinfo
David Zafman [Mon, 24 Nov 2014 21:26:21 +0000 (13:26 -0800)]
Merge pull request #2872 from dachary/wip-10018-primary-erasure-code-hinfo

osd: erasure code deep scrub must not abort if hinfo is missing

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #2984 from stiopaa1/includeFix
Sage Weil [Mon, 24 Nov 2014 20:47:43 +0000 (12:47 -0800)]
Merge pull request #2984 from stiopaa1/includeFix

remove unneeded include file

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoremove unneeded include file 2984/head
Michal Jarzabek [Sun, 23 Nov 2014 20:42:20 +0000 (20:42 +0000)]
remove unneeded include file

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
10 years agoMerge pull request #2998 from theanalyst/doc/rgw-s3-bucket-loc
John Wilkins [Mon, 24 Nov 2014 19:35:26 +0000 (11:35 -0800)]
Merge pull request #2998 from theanalyst/doc/rgw-s3-bucket-loc

doc: rgw document s3 bucket location features.

Reviewed-by: John Wilkins <jowilkin@redhat.com>
10 years agodoc: rgw document s3 bucket location features 2998/head
Abhishek Lekshmanan [Mon, 24 Nov 2014 17:27:44 +0000 (22:57 +0530)]
doc: rgw document s3 bucket location features

Fixes: #10142
Reported-by: Neil Levine <nlevine@redhat.com>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agoMerge pull request #2992 from dachary/wip-10173-autogen
Sage Weil [Mon, 24 Nov 2014 15:33:59 +0000 (07:33 -0800)]
Merge pull request #2992 from dachary/wip-10173-autogen

autogen.sh: git submodule sync

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoautogen.sh: git submodule sync 2992/head
Loic Dachary [Mon, 24 Nov 2014 11:35:50 +0000 (12:35 +0100)]
autogen.sh: git submodule sync

It is not enough to git submodule update on a existing git clone: if the
URL of the repository has been changed, the

   git submodule sync

command must be called to synchronizes submodules' remote URL
configuration setting to the value specified in .gitmodules.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #2936 from ceph/wip-mailmap
Loic Dachary [Mon, 24 Nov 2014 07:27:51 +0000 (08:27 +0100)]
Merge pull request #2936 from ceph/wip-mailmap

Update Inktank attribution to point to Red Hat

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agomailmap: Update Warren Usui's attribution to Red Hat 2936/head
Greg Farnum [Fri, 14 Nov 2014 22:17:38 +0000 (14:17 -0800)]
mailmap: Update Warren Usui's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Tyler Brekke's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:16:56 +0000 (14:16 -0800)]
mailmap: Update Tyler Brekke's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Tamil Muthamizhan's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:16:00 +0000 (14:16 -0800)]
mailmap: Update Tamil Muthamizhan's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Sandon Van Ness' attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:14:16 +0000 (14:14 -0800)]
mailmap: Update Sandon Van Ness' attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Samuel Just's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:12:00 +0000 (14:12 -0800)]
mailmap: Update Samuel Just's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Patrick McGarry's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:09:38 +0000 (14:09 -0800)]
mailmap: Update Patrick McGarry's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Noah Watkins' attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:07:07 +0000 (14:07 -0800)]
mailmap: Update Noah Watkins' attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Neil Levine's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:06:19 +0000 (14:06 -0800)]
mailmap: Update Neil Levine's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Mark Nelson's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:06:05 +0000 (14:06 -0800)]
mailmap: Update Mark Nelson's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Ken Dreyer's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:04:26 +0000 (14:04 -0800)]
mailmap: Update Ken Dreyer's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Josh Durgin's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:01:35 +0000 (14:01 -0800)]
mailmap: Update Josh Durgin's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update John Wilkins' attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 22:01:23 +0000 (14:01 -0800)]
mailmap: Update John Wilkins' attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Joao Luis' attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 21:57:53 +0000 (13:57 -0800)]
mailmap: Update Joao Luis' attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Ilya Dryomov's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 21:53:39 +0000 (13:53 -0800)]
mailmap: Update Ilya Dryomov's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Dan Mick's attribution
Greg Farnum [Fri, 14 Nov 2014 21:51:10 +0000 (13:51 -0800)]
mailmap: Update Dan Mick's attribution

Point his addresses at Red Hat now, but revert the Inktank->Redhat mappings
so we have more historical accuracy.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Alfredo Deza's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 21:50:22 +0000 (13:50 -0800)]
mailmap: Update Alfredo Deza's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agomailmap: Update Greg Farnum's attribution to Red Hat
Greg Farnum [Fri, 14 Nov 2014 21:41:20 +0000 (13:41 -0800)]
mailmap: Update Greg Farnum's attribution to Red Hat

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Mon, 24 Nov 2014 02:55:32 +0000 (18:55 -0800)]
Merge remote-tracking branch 'gh/next'

10 years agoMerge pull request #2983 from tchaikov/wip-fix-lock-dep
Sage Weil [Sun, 23 Nov 2014 20:59:42 +0000 (12:59 -0800)]
Merge pull request #2983 from tchaikov/wip-fix-lock-dep

lockdep: do not use $CEPH_LOCKDEP for g_lockdep

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agolockdep: do not use $CEPH_LOCKDEP for g_lockdep 2983/head
Kefu Chai [Sun, 23 Nov 2014 19:12:24 +0000 (03:12 +0800)]
lockdep: do not use $CEPH_LOCKDEP for g_lockdep

* a non-zero CEPH_LOCKDEP brings ceph down because g_lockdep_ceph_ctx
  is still being constructed when dout_impl() dereferences it.
* fix a typo in comment.
* remove dead code.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
10 years agorgw-admin: create subuser if needed when creating user
Yehuda Sadeh [Thu, 20 Nov 2014 18:36:05 +0000 (10:36 -0800)]
rgw-admin: create subuser if needed when creating user

Fixes: #10103
Backport: firefly, giant
This turned up after fixing #9973. Earlier we also didn't create the
subuser in this case, but we didn't really read the subuser info when it
was authenticating. Now we do that as required, so we end up failing the
authentication. This only applies to cases where a subuser was created
using 'user create', and not the 'subuser create' command.

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #2895 from yuyuyu101/wip-10022
Samuel Just [Sat, 22 Nov 2014 00:18:25 +0000 (16:18 -0800)]
Merge pull request #2895 from yuyuyu101/wip-10022

AsyncMessenger: Fix several problems

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2980 from ceph/wip-10123
Josh Durgin [Fri, 21 Nov 2014 22:35:24 +0000 (14:35 -0800)]
Merge pull request #2980 from ceph/wip-10123

librbd: protect list_children from invalid child pool IoCtxs

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #2981 from yuyuyu101/quick-fix
Haomai Wang [Fri, 21 Nov 2014 09:27:10 +0000 (17:27 +0800)]
Merge pull request #2981 from yuyuyu101/quick-fix

GenericObjectMap: Avoid master branch compile error

10 years agoGenericObjectMap: Fix typo 2981/head
Haomai Wang [Fri, 21 Nov 2014 09:25:06 +0000 (17:25 +0800)]
GenericObjectMap: Fix typo

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMerge pull request #2966 from yuyuyu101/wip-10119
Sage Weil [Fri, 21 Nov 2014 05:41:23 +0000 (21:41 -0800)]
Merge pull request #2966 from yuyuyu101/wip-10119

KeyValueStore: Fix EC+ KV OSDs crashing

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2978 from majianpeng/fix4
Sage Weil [Fri, 21 Nov 2014 04:51:38 +0000 (20:51 -0800)]
Merge pull request #2978 from majianpeng/fix4

blkdev: using strncpy instead of strcpy.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoblkdev: using strncpy instead of strcpy. 2978/head
Jianpeng Ma [Fri, 21 Nov 2014 01:55:02 +0000 (09:55 +0800)]
blkdev: using strncpy instead of strcpy.

Coverity Scan reported this bug:
> New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s)
> *** CID 1255369:  Copy into fixed size buffer  (STRING_OVERFLOW)
> /common/blkdev.cc: 34 in block_device_support_discard(const char *)()
> 28     bool block_device_support_discard(const char *devname)
> 29     {
> 30       bool can_trim = false;
> 31       char *p = strstr((char *)devname, "sd");
> 32       char name[32] = {0};
> 33
> >>>     CID 1255369:  Copy into fixed size buffer  (STRING_OVERFLOW)
> >>>     You might overrun the 32 byte fixed-size string "name" by
> >>>     copying "p" without checking the length.
> 34       strcpy(name, p);
> 35       for (unsigned int i = 0; i < strlen(name); i++) {
> 36         if(isdigit(name[i])) {
> 37           name[i] = 0;
> 38           break;
> 39         }
>

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #2974 from ceph/wip-sepia-update
Sage Weil [Thu, 20 Nov 2014 19:34:36 +0000 (11:34 -0800)]
Merge pull request #2974 from ceph/wip-sepia-update

Updated sepia hardware list.

10 years agoUpdated sepia hardware list. 2974/head
Sandon Van Ness [Thu, 20 Nov 2014 19:13:38 +0000 (11:13 -0800)]
Updated sepia hardware list.

Added missing details and additional list of hardware.

Signed-off-by: Sandon Van Ness <sandon@redhat.com>
10 years agoMerge pull request #2752 from dachary/wip-9817-deep-scrub-start
Samuel Just [Thu, 20 Nov 2014 17:45:33 +0000 (09:45 -0800)]
Merge pull request #2752 from dachary/wip-9817-deep-scrub-start

osd: log when scrub,deep scrub, repair starts

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #2891 from XinzeChi/master
Samuel Just [Thu, 20 Nov 2014 17:44:09 +0000 (09:44 -0800)]
Merge pull request #2891 from XinzeChi/master

OSD: batch trim for pg_log

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2885 from ceph/wip-flush-snaps
Samuel Just [Thu, 20 Nov 2014 17:42:47 +0000 (09:42 -0800)]
Merge pull request #2885 from ceph/wip-flush-snaps

osd/ReplicatedPG: flush snaps immediately

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #2973 from wonzhq/unused-parm
Loic Dachary [Thu, 20 Nov 2014 10:19:37 +0000 (11:19 +0100)]
Merge pull request #2973 from wonzhq/unused-parm

ReplicatedPG: remove unused parameter in function write_update_size_and_usage

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoReplicatedPG: remove unused parameter in function write_update_size_and_usage 2973/head
Zhiqiang Wang [Thu, 20 Nov 2014 08:26:32 +0000 (16:26 +0800)]
ReplicatedPG: remove unused parameter in function write_update_size_and_usage

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
10 years agoKeyValueStore: Fix parse_header_key 2966/head
Haomai Wang [Thu, 20 Nov 2014 03:03:17 +0000 (11:03 +0800)]
KeyValueStore: Fix parse_header_key

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoosd: deep scrub must not abort if hinfo is missing 2872/head
Loic Dachary [Thu, 6 Nov 2014 16:11:20 +0000 (17:11 +0100)]
osd: deep scrub must not abort if hinfo is missing

Instead it should set read_error.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2926 from ceph/wip-10052
Samuel Just [Wed, 19 Nov 2014 19:49:07 +0000 (11:49 -0800)]
Merge pull request #2926 from ceph/wip-10052

ceph_test_rados_api_tier: fix whiteout cleanup (10052)

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #2967 from ceph/wip-10077
David Zafman [Wed, 19 Nov 2014 19:37:22 +0000 (11:37 -0800)]
Merge pull request #2967 from ceph/wip-10077

ceph_objectstore_tool shard feature handling

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #2971 from dachary/wip-mailmap
Loic Dachary [Wed, 19 Nov 2014 19:30:38 +0000 (20:30 +0100)]
Merge pull request #2971 from dachary/wip-mailmap

mailmap: Loic Dachary name normalization

10 years agomailmap: Loic Dachary name normalization 2971/head
Loic Dachary [Wed, 19 Nov 2014 19:25:24 +0000 (20:25 +0100)]
mailmap: Loic Dachary name normalization

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #2962 from ceph/wip-9439
Loic Dachary [Wed, 19 Nov 2014 18:27:15 +0000 (19:27 +0100)]
Merge pull request #2962 from ceph/wip-9439

osd: Check filter ops for pgls and pgnls

Reviewed-by: Loic Dachary <ldachary@dachary.org>
10 years agoMerge pull request #2969 from dachary/wip-erasure-code-documentation
Loic Dachary [Wed, 19 Nov 2014 10:24:01 +0000 (11:24 +0100)]
Merge pull request #2969 from dachary/wip-erasure-code-documentation

doc: erasure-code developer documentation typo

Reviewed-by: Pavan Rallabhandi <Pavan.Rallabhandi@sandisk.com>
10 years agodoc: erasure-code developer documentation typo 2969/head
Loic Dachary [Wed, 19 Nov 2014 10:06:31 +0000 (11:06 +0100)]
doc: erasure-code developer documentation typo

Reported-by: Pavan Rallabhandi <Pavan.Rallabhandi@sandisk.com>
Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoStoreTest: Add scrub situation to tests
Haomai Wang [Wed, 19 Nov 2014 06:42:39 +0000 (14:42 +0800)]
StoreTest: Add scrub situation to tests

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoKeyValueStore: Add KEY_ENDING sign to the end of key
Haomai Wang [Wed, 19 Nov 2014 06:34:52 +0000 (14:34 +0800)]
KeyValueStore: Add KEY_ENDING sign to the end of key

Keys stored in alphabetical order and need to follow ghobject_t comparison
rule. "generation" and "shard_id" are optional fields for object key, but
a default ghobject with UINT64_MAX generation(by default) will larger than
the same ghobject with other generation. GenericObjectMap rejects to store
generation if generation is UINT64_MAX in order to reduce too much words
in key. So we need to add a MAX sign to the end of key to make ordering
is same with ghobject's comparison rule.

For example:

_GHOBJTOSEQ_:1%e1ds0_head!D168A7E8!!1!!benchmark_last_metadata!head
_GHOBJTOSEQ_:1%e1ds0_head!D168A7E8!!1!!benchmark_last_metadata!head!78!0

The first key should larger than the second in ghobject_t ordering because
of generation. But the first key less than the second in GenericObjectMap.

_GHOBJTOSEQ_:1%e1ds0_head!D168A7E8!!1!!benchmark_last_metadata!head
_GHOBJTOSEQ_:1%e1ds0_head!D168A7E8!!1!!benchmark_last_metadata!head!78!0

After we add KEY_ENDING, '!' is (21) in hexadecimal:

_GHOBJTOSEQ_:1%e1ds0_head!D168A7E8!!1!!benchmark_last_metadata!head(21)78!0(FF)
_GHOBJTOSEQ_:1%e1ds0_head!D168A7E8!!1!!benchmark_last_metadata!head(FF)

Fix bug #10119
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMerge pull request #2953 from yuyuyu101/fix-keyvaluestore-remove-col-attr
Sage Weil [Wed, 19 Nov 2014 05:49:31 +0000 (21:49 -0800)]
Merge pull request #2953 from yuyuyu101/fix-keyvaluestore-remove-col-attr

KeyValueStore: Remove assert for collection_getattr method

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoStoreTest: Clean up warning 2953/head
Haomai Wang [Wed, 19 Nov 2014 04:04:53 +0000 (12:04 +0800)]
StoreTest: Clean up warning

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMemStore: Return -ENODATA when collection_getattr hit nonexist attr
Haomai Wang [Wed, 19 Nov 2014 04:04:22 +0000 (12:04 +0800)]
MemStore: Return -ENODATA when collection_getattr hit nonexist attr

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoKeyValueStore: Fix collection_getattrs problem when zero-length attr
Haomai Wang [Wed, 19 Nov 2014 04:02:43 +0000 (12:02 +0800)]
KeyValueStore: Fix collection_getattrs problem when zero-length attr

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoKeyValueStore: Return -ENODATA if collection_getattr is nonexist
Haomai Wang [Wed, 19 Nov 2014 02:48:28 +0000 (10:48 +0800)]
KeyValueStore: Return -ENODATA if collection_getattr is nonexist

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoStoreTest: Add collection_getattr(s) tests
Haomai Wang [Wed, 19 Nov 2014 03:52:52 +0000 (11:52 +0800)]
StoreTest: Add collection_getattr(s) tests

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoKeyValueStore: Remove assert for collection_getattr method
Haomai Wang [Wed, 19 Nov 2014 03:52:33 +0000 (11:52 +0800)]
KeyValueStore: Remove assert for collection_getattr method

Merge 22b6c1a5317504e87042ffeff2b2d0d0b71cac5e introduce
5dc990c1ca821620993417ef4acc51a2b0a34606 commit which will lookup "remove"
attr. It shouldn't exist for most of cases but KeyValueStore will crash
if attr isn't exist. It seemed that this assert isn't correct.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoceph_objectstore_tool: Add feature called set-allow-sharded-objects 2967/head
David Zafman [Tue, 18 Nov 2014 21:00:15 +0000 (13:00 -0800)]
ceph_objectstore_tool: Add feature called set-allow-sharded-objects

Uses --op set-allow-sharded-objects option
This operation will be rejected if on the target OSD's osdmap there is
    at least one OSD which does not support ERASURE CODES.
Prompt the user that they could import if sharded state allowed
Prompt the user to use new feature if sharded state found inconsistent

Fixes: #10077
Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_objectstore_tool: Add utility routine get_osdmap()
David Zafman [Tue, 18 Nov 2014 19:59:18 +0000 (11:59 -0800)]
ceph_objectstore_tool: Add utility routine get_osdmap()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_objectstore_tool: Clear ...INCOMPAT_SHARDS from feature if exporting replicated pg
David Zafman [Thu, 13 Nov 2014 05:14:11 +0000 (21:14 -0800)]
ceph_objectstore_tool: Clear ...INCOMPAT_SHARDS from feature if exporting replicated pg

Don't require importing OSD to have shards feature for replicated pg

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

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #2648 from dachary/wip-9665-ceph-disk-partprobe
Loic Dachary [Wed, 19 Nov 2014 01:54:10 +0000 (02:54 +0100)]
Merge pull request #2648 from dachary/wip-9665-ceph-disk-partprobe

ceph-disk: run partprobe/partx after zap and data partition creation

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoFileJournal: add journal_discard to control ssd whether support discard
Jianpeng Ma [Thu, 13 Nov 2014 05:21:32 +0000 (13:21 +0800)]
FileJournal: add journal_discard to control ssd whether support discard

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoFileJournal: Add ssd discard for journal which using ssd disk as journal.
Jianpeng Ma [Thu, 13 Nov 2014 03:32:57 +0000 (11:32 +0800)]
FileJournal: Add ssd discard for journal which using ssd disk as journal.

Journal is like a ring buffer. After data wrote to media disk, journal
can overwrite. But for those data, ssd dont't know it's nouse and can
remove. So add discard to tell ssd to remove those data.
This maybe not increase the performance. But it can increase the
lifetime of ssd.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #2960 from ceph/wip-10114-fix-warning
Sage Weil [Tue, 18 Nov 2014 23:31:32 +0000 (15:31 -0800)]
Merge pull request #2960 from ceph/wip-10114-fix-warning

erasure-code isa-l: remove duplicated lines (fix warning)

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code isa-l: remove duplicated lines (fix warning) 2960/head
Dan Mick [Tue, 18 Nov 2014 23:21:30 +0000 (15:21 -0800)]
erasure-code isa-l: remove duplicated lines (fix warning)

06a245a added a section def to assembly files; I added it twice to
this file.  There's no damage, but a compiler warning (on machines with
yasm installed)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #2951 from sponce/master
Loic Dachary [Tue, 18 Nov 2014 12:46:10 +0000 (13:46 +0100)]
Merge pull request #2951 from sponce/master

Fixed trivial locking issue in the trunc method of libradosstriper

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoautotools: add --enable-docker 2648/head
Loic Dachary [Tue, 7 Oct 2014 19:18:00 +0000 (21:18 +0200)]
autotools: add --enable-docker

Docker based tests should be explicit instead of auto-detected. It is
good that they do not run if docker is not available. It would be bad if
they run when the developer does not expect them to create docker
containers.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoceph-disk: test prepare / activate on a device
Loic Dachary [Tue, 7 Oct 2014 17:02:45 +0000 (19:02 +0200)]
ceph-disk: test prepare / activate on a device

This indirectly tests that partprobe is called after zap because it
would fail to map the partitions to /dev/disk/by-partuuid otherwise.

It also indirectly test the implementation of init=none when using a
block device because the test would fail to put an object into the rbd
pool using the device otherwise.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotests: helper to run unit / function tests in docker
Loic Dachary [Tue, 7 Oct 2014 16:40:54 +0000 (18:40 +0200)]
tests: helper to run unit / function tests in docker

For instance

   test/docker-test.sh --os-type ubuntu --os-version 14.04 \
        test/ceph-disk.sh

runs test/ceph-disk.sh in a ubuntu 14.04 docker container. Once the
container is populated and ceph compiled, running a test script roughly
requires entering the container and running make TESTS=tests/foo.sh check

* docker build ceph-ubuntu-14.04 using ubuntu.dockerfile as a Dockerfile
* it will run apt-get install ceph compilation / run dependencies
* git clone the-local-clone ceph-ubuntu-14.04
* docker run ceph-ubuntu-14.04 make -j4 in the ceph-ubuntu-14.04 clone
* docker run test/ceph-disk.sh

test/docker-test.sh is the command line interface for
test/docker-test-helper.sh which can be invoked from shell scripts.
test/ubuntu.dockerfile and test/ubuntu.dockerfile are regular
Dockerfiles which allow substitution of environment variables.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoceph-disk: implement init=none for block devices
Loic Dachary [Mon, 6 Oct 2014 15:58:46 +0000 (17:58 +0200)]
ceph-disk: implement init=none for block devices

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoceph-disk: run partprobe after zap
Loic Dachary [Thu, 9 Oct 2014 16:52:17 +0000 (18:52 +0200)]
ceph-disk: run partprobe after zap

Not running partprobe after zapping a device can lead to the following:

* ceph-disk prepare /dev/loop2
* links are created in /dev/disk/by-partuuid
* ceph-disk zap /dev/loop2
* links are not removed from /dev/disk/by-partuuid
* ceph-disk prepare /dev/loop2
* some links are not created in /dev/disk/by-partuuid

This is assuming there is a bug in the way udev events are handled by
the operating system.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoceph-disk: use update_partition in prepare_dev and main_prepare
Loic Dachary [Fri, 10 Oct 2014 08:26:31 +0000 (10:26 +0200)]
ceph-disk: use update_partition in prepare_dev and main_prepare

In the case of prepare_dev the partx alternative was missing and is not
added because update_partition does it.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoceph-disk: encapsulate partprobe / partx calls
Loic Dachary [Fri, 10 Oct 2014 08:23:34 +0000 (10:23 +0200)]
ceph-disk: encapsulate partprobe / partx calls

Add the update_partition function to reduce code duplication.
The action is made an argument although it always is -a because it will
be -d when deleting a partition.

Use the update_partition function in prepare_journal_dev

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agodoc: update debian compilation dependencies
Loic Dachary [Sun, 5 Oct 2014 20:14:02 +0000 (22:14 +0200)]
doc: update debian compilation dependencies

Using the content of debian/control.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2910 from swamireddy/wip-organizationmap
Loic Dachary [Tue, 18 Nov 2014 11:17:00 +0000 (12:17 +0100)]
Merge pull request #2910 from swamireddy/wip-organizationmap

mailmap updates

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #2907 from xuechendi/update_organizationmap
Loic Dachary [Tue, 18 Nov 2014 11:15:58 +0000 (12:15 +0100)]
Merge pull request #2907 from xuechendi/update_organizationmap

Add myself to <contact@intel.com>

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoFixed locking issue in the trun method of libradosstriper leading to potential race... 2951/head
Sebastien Ponce [Tue, 18 Nov 2014 09:30:36 +0000 (10:30 +0100)]
Fixed locking issue in the trun method of libradosstriper leading to potential race conditions - Fixes: #10129

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoMerge pull request #2917 from leseb/rbd-update-glance-config
Loic Dachary [Tue, 18 Nov 2014 10:12:59 +0000 (11:12 +0100)]
Merge pull request #2917 from leseb/rbd-update-glance-config

doc: update the OpenStack glance configuration

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #2950 from ceph/wip-10128
Loic Dachary [Tue, 18 Nov 2014 09:40:55 +0000 (10:40 +0100)]
Merge pull request #2950 from ceph/wip-10128

Wip 10128

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: ceph_objectstore_tool.py test all variants of export/import 2950/head
David Zafman [Tue, 18 Nov 2014 08:10:41 +0000 (00:10 -0800)]
tests: ceph_objectstore_tool.py test all variants of export/import

Handle change of error message text

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_objectstore_tool: Make --file option consistent by treating "-" as stdout/stdin
David Zafman [Tue, 18 Nov 2014 07:23:40 +0000 (23:23 -0800)]
ceph_objectstore_tool: Make --file option consistent by treating "-" as stdout/stdin

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_objectstore_tool: When exporting to stdout, don't cout messages
David Zafman [Tue, 18 Nov 2014 07:02:50 +0000 (23:02 -0800)]
ceph_objectstore_tool: When exporting to stdout, don't cout messages

Fixes: #10128
Caused by a2bd2aa7

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #2946 from ceph/wip-execstack
Sage Weil [Tue, 18 Nov 2014 06:33:41 +0000 (22:33 -0800)]
Merge pull request #2946 from ceph/wip-execstack

Add annotation to all assembly files to turn off stack-execute bit

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agolibrbd: protect list_children from invalid child pool IoCtxs 2980/head
Jason Dillaman [Tue, 18 Nov 2014 02:49:26 +0000 (21:49 -0500)]
librbd: protect list_children from invalid child pool IoCtxs

While listing child images, don't ignore error codes returned
from librados when creating an IoCtx. This will prevent seg
faults from occurring when an invalid IoCtx is used.

Fixes: #10123
Backport: giant, firefly, dumpling
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #2933 from ceph/wip-librbd-symbols
Josh Durgin [Tue, 18 Nov 2014 02:23:27 +0000 (18:23 -0800)]
Merge pull request #2933 from ceph/wip-librbd-symbols

librbd: Only public API symbols from the shared library

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #2947 from HP-Scale-out-Storage/wip-10096
Sage Weil [Mon, 17 Nov 2014 23:44:38 +0000 (15:44 -0800)]
Merge pull request #2947 from HP-Scale-out-Storage/wip-10096

Wip 10096 (ceph-disk umount race condition)

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoFix bug #10096 (ceph-disk umount race condition) 2947/head
Blaine Gardner [Mon, 17 Nov 2014 23:17:15 +0000 (17:17 -0600)]
Fix bug #10096 (ceph-disk umount race condition)

Bug: http://tracker.ceph.com/issues/10096

Brief: Unmounting temporary mount point failed due to file being 'busy'.
Root cause could not be easily determined due to timing variances caused
by debug attempts. Race condition exists.

Solution: Implement a retry with incremental backoff as a viable
workaround. This workaround is okay because (1) Finding the root cause
would take a not insignificant amount of time/effort. (2) The workaround
is a more general fix for any process that might cause the exhibited
behavior.

Signed-off-by: Blaine Gardner <blaine.gardner@hp.com>
10 years agoMerge pull request #2914 from dachary/wip-10093-monstore-tool
João Eduardo Luís [Mon, 17 Nov 2014 18:03:35 +0000 (18:03 +0000)]
Merge pull request #2914 from dachary/wip-10093-monstore-tool

mon: ceph-monstore-tool must close()

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2944 from ceph/wip-9913
Sage Weil [Mon, 17 Nov 2014 16:06:00 +0000 (08:06 -0800)]
Merge pull request #2944 from ceph/wip-9913

mon: auth entity name for forwarded messages

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomon: Monitor: use session's entity name for audit log 2944/head
Joao Eduardo Luis [Fri, 14 Nov 2014 21:10:28 +0000 (21:10 +0000)]
mon: Monitor: use session's entity name for audit log

Fixes: #9913
Backport: giant

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: Monitor: forward session entity name to leader
Joao Eduardo Luis [Fri, 14 Nov 2014 21:09:27 +0000 (21:09 +0000)]
mon: Monitor: forward session entity name to leader

And populate mock session (for forwarded request) with forwarded entity
name.

Backport: giant

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: Monitor: stash auth entity name in session
Joao Eduardo Luis [Fri, 14 Nov 2014 21:03:54 +0000 (21:03 +0000)]
mon: Monitor: stash auth entity name in session

Backport: giant

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>