]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge PR #20288 into master
Patrick Donnelly [Wed, 7 Feb 2018 04:38:14 +0000 (20:38 -0800)]
Merge PR #20288 into master

* refs/pull/20288/head:
ptl-tool: open githubmap with utf-8 code

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #20313 from guzhongyan/fix-22350
Sage Weil [Tue, 6 Feb 2018 20:01:41 +0000 (14:01 -0600)]
Merge pull request #20313 from guzhongyan/fix-22350

osd/OSDMap: misleading message in print_oneline_summary()

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20317 from liewegas/wip-pg-scrub-priority
Sage Weil [Tue, 6 Feb 2018 20:01:19 +0000 (14:01 -0600)]
Merge pull request #20317 from liewegas/wip-pg-scrub-priority

osd/PG: pass scrub priority to replica

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20319 from tchaikov/wip-ops_blocked_by_scrub-cleanup
Sage Weil [Tue, 6 Feb 2018 20:00:53 +0000 (14:00 -0600)]
Merge pull request #20319 from tchaikov/wip-ops_blocked_by_scrub-cleanup

osd: pass ops_blocked_by_scrub() to requeue_scrub()

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20279 from liewegas/wip-idempotent-sequence
Sage Weil [Tue, 6 Feb 2018 16:53:35 +0000 (10:53 -0600)]
Merge pull request #20279 from liewegas/wip-idempotent-sequence

ceph_test_filestore_idempotent_sequence: many fixes

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20267 from liewegas/wip-22847
Kefu Chai [Tue, 6 Feb 2018 06:49:35 +0000 (14:49 +0800)]
Merge pull request #20267 from liewegas/wip-22847

mon/OSDMonitor: filter out pgs that shouldn't exist from force-create-pg

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20259 from guzhongyan/rados-cleanup
Kefu Chai [Tue, 6 Feb 2018 06:48:42 +0000 (14:48 +0800)]
Merge pull request #20259 from guzhongyan/rados-cleanup

rados: clean up rados_getxattrs() and rados_striper_getxattrs()

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20260 from guzhongyan/fix-22042
Kefu Chai [Tue, 6 Feb 2018 06:45:03 +0000 (14:45 +0800)]
Merge pull request #20260 from guzhongyan/fix-22042

librados: invalid free() in rados_getxattrs_next()

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20255 from david-z/wip-fix-kv-max-option
Kefu Chai [Tue, 6 Feb 2018 06:41:11 +0000 (14:41 +0800)]
Merge pull request #20255 from david-z/wip-fix-kv-max-option

config: Change bluestore_cache_kv_max to type INT64

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20301 from bigclouds/wip-fix-declaration-of-rados-striper-trunc
Kefu Chai [Tue, 6 Feb 2018 06:40:28 +0000 (14:40 +0800)]
Merge pull request #20301 from bigclouds/wip-fix-declaration-of-rados-striper-trunc

libradosstriper: fix the function declaration of rados_striper_trunc

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20233 from cbodley/wip-test-log-nullptr
Kefu Chai [Tue, 6 Feb 2018 06:35:18 +0000 (14:35 +0800)]
Merge pull request #20233 from cbodley/wip-test-log-nullptr

test/log: fix for crash with libc++

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20223 from Yan-waller/wip-walle-180124cephosd
Kefu Chai [Tue, 6 Feb 2018 06:31:52 +0000 (14:31 +0800)]
Merge pull request #20223 from Yan-waller/wip-walle-180124cephosd

osd: use existing osd_required variable for messenger policy

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20201 from majianpeng/mosdrepop-encode-log
Kefu Chai [Tue, 6 Feb 2018 06:29:34 +0000 (14:29 +0800)]
Merge pull request #20201 from majianpeng/mosdrepop-encode-log

osd: avoid encoding the same log entries repeatedly for different peers

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoos/filestore: add replay guards for omap operations 20279/head
Sage Weil [Mon, 5 Feb 2018 15:08:44 +0000 (09:08 -0600)]
os/filestore: add replay guards for omap operations

These were not guarded, meaning they could get replayed onto an object
that was cloned or renamed.  Eek!

Fixes: http://tracker.ceph.com/issues/22920
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/objectstore/run_seed_to_range: stop on first error
Sage Weil [Mon, 5 Feb 2018 15:09:04 +0000 (09:09 -0600)]
test/objectstore/run_seed_to_range: stop on first error

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_test_idempotent_sequence: use coll_entry_t
Sage Weil [Sun, 4 Feb 2018 16:51:37 +0000 (10:51 -0600)]
ceph_test_idempotent_sequence: use coll_entry_t

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_filestore_idempotent_sequence: fix up clone, move ops; cleanup
Sage Weil [Sun, 4 Feb 2018 16:34:25 +0000 (10:34 -0600)]
ceph_filestore_idempotent_sequence: fix up clone, move ops; cleanup

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/tasks/filestore_idempotent: run failure tests later in sequence
Sage Weil [Sat, 3 Feb 2018 15:29:44 +0000 (09:29 -0600)]
qa/tasks/filestore_idempotent: run failure tests later in sequence

We want to get past the initial colleciton and object creation steps,
which don't include interesting ops.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20016 from cbodley/wip-18885
Casey Bodley [Mon, 5 Feb 2018 21:44:37 +0000 (16:44 -0500)]
Merge pull request #20016 from cbodley/wip-18885

rgw: log unlink_instance mtime as object's mtime

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #20145 from linuxbox2/rgwf-deref-readdir-off
Matt Benjamin [Mon, 5 Feb 2018 19:22:48 +0000 (14:22 -0500)]
Merge pull request #20145 from linuxbox2/rgwf-deref-readdir-off

rgw_file: avoid evaluating nullptr for readdir offset

7 years agoMerge pull request #20188 from cbodley/wip-rgw-frontend-multimap
Casey Bodley [Mon, 5 Feb 2018 18:52:04 +0000 (13:52 -0500)]
Merge pull request #20188 from cbodley/wip-rgw-frontend-multimap

rgw: beast frontend can listen on multiple endpoints

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #20013 from cbodley/wip-rgw-auth-skew
Casey Bodley [Mon, 5 Feb 2018 18:51:43 +0000 (13:51 -0500)]
Merge pull request #20013 from cbodley/wip-rgw-auth-skew

rgw: share time skew check between v2 and v4 auth

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #20017 from cbodley/wip-22248
Casey Bodley [Mon, 5 Feb 2018 18:50:48 +0000 (13:50 -0500)]
Merge pull request #20017 from cbodley/wip-22248

rgw: unlink deleted bucket from bucket's owner

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #20120 from cbodley/wip-22797
Casey Bodley [Mon, 5 Feb 2018 18:49:13 +0000 (13:49 -0500)]
Merge pull request #20120 from cbodley/wip-22797

rgw: fix for empty query string in beast frontend

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #20038 from oritwas/wip-rgw-22742
Orit Wasserman [Mon, 5 Feb 2018 18:02:06 +0000 (20:02 +0200)]
Merge pull request #20038 from oritwas/wip-rgw-22742

rgw: bucket resharding should not update bucket ACL or user stats
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20295 from trociny/wip-test_deep_copy_clone
Jason Dillaman [Mon, 5 Feb 2018 17:26:44 +0000 (12:26 -0500)]
Merge pull request #20295 from trociny/wip-test_deep_copy_clone

test/pybind/rbd: skip test_deep_copy_clone if layering not enabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20309 from pritha-srivastava/wip-rgw-roles-error-codes
Casey Bodley [Mon, 5 Feb 2018 15:03:54 +0000 (10:03 -0500)]
Merge pull request #20309 from pritha-srivastava/wip-rgw-roles-error-codes

rgw: Reinstating error codes mapping for Roles.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20316 from smithfarm/wip-doc-log
Kefu Chai [Mon, 5 Feb 2018 14:53:34 +0000 (22:53 +0800)]
Merge pull request #20316 from smithfarm/wip-doc-log

doc: log-and-debug: fix default value of "log max recent"

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: pass ops_blocked_by_scrub() to requeue_scrub() 20319/head
Kefu Chai [Mon, 5 Feb 2018 14:14:37 +0000 (22:14 +0800)]
osd: pass ops_blocked_by_scrub() to requeue_scrub()

less nesting levels, and less repeatings.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd/PG: pass scrub priority to replica 20317/head
Sage Weil [Mon, 5 Feb 2018 13:10:54 +0000 (07:10 -0600)]
osd/PG: pass scrub priority to replica

If we are scrubbing with high priority on the primary, pass that along
to the replica so that it can schedule its scrub work accordingly.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agodoc: log-and-debug: fix default value of "log max recent" 20316/head
Nathan Cutler [Mon, 5 Feb 2018 12:53:05 +0000 (13:53 +0100)]
doc: log-and-debug: fix default value of "log max recent"

Doc says 1000000, but the real figure is two orders of magnitude less:

    Option("log_max_recent", Option::TYPE_INT, Option::LEVEL_ADVANCED)
      .set_default(500)
      .set_daemon_default(10000)

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #20229 from zhsj/fix-dashboard-prefix
John Spray [Mon, 5 Feb 2018 12:07:33 +0000 (13:07 +0100)]
Merge pull request #20229 from zhsj/fix-dashboard-prefix

pybind/mgr/dashboard: fix duplicated slash in html href

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoosd/OSDMap: misleading message in print_oneline_summary() 20313/head
Gu Zhongyan [Mon, 5 Feb 2018 10:45:54 +0000 (18:45 +0800)]
osd/OSDMap: misleading message in print_oneline_summary()
The output scared people as showing so many osds were full/nearfull

Improve the output to make the message clearer

Fixes: http://tracker.ceph.com/issues/22350
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agorgw: Reinstating error codes mapping for Roles. 20309/head
Pritha Srivastava [Mon, 5 Feb 2018 09:50:10 +0000 (15:20 +0530)]
rgw: Reinstating error codes mapping for Roles.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
7 years agoMerge pull request #20114 from cethikdata/ceph-disk-lock
Kefu Chai [Mon, 5 Feb 2018 06:10:49 +0000 (14:10 +0800)]
Merge pull request #20114 from cethikdata/ceph-disk-lock

ceph-disk: reduce the scope of activate_lock.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agotest/pybind/test_rados.py: expand test_xattrs/test_obj_xattrs 20260/head
Gu Zhongyan [Mon, 5 Feb 2018 04:14:42 +0000 (12:14 +0800)]
test/pybind/test_rados.py: expand test_xattrs/test_obj_xattrs
to cover attribute with empty value case.

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agolibrados: invalid free() in rados_getxattrs_next()
Gu Zhongyan [Fri, 2 Feb 2018 10:01:05 +0000 (18:01 +0800)]
librados: invalid free() in rados_getxattrs_next()

Invalid free() can cause corruption when getting an object
attribute with empty value.

Check the validity of the pointer before free(). Also move
the free() call at the start of rados_getxattrs_next() to
avoid memory leak.

Fixes: http://tracker.ceph.com/issues/22042
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agolibradosstriper: fix the function declaration of rados_striper_trunc 20301/head
yuelongguang [Mon, 5 Feb 2018 02:29:26 +0000 (10:29 +0800)]
libradosstriper: fix the function declaration of rados_striper_trunc
change the type of first parameter from rados_ioctx_t to rados_striper_t

Signed-off-by: yuelongguang <yuelongguang@gmail.com>
7 years agoMerge pull request #20270 from ivancich/wip-fix-bad-dmclock-sim-change
Kefu Chai [Mon, 5 Feb 2018 03:05:35 +0000 (11:05 +0800)]
Merge pull request #20270 from ivancich/wip-fix-bad-dmclock-sim-change

osd,dmclock: fix dmclock test simulator change

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20258 from tchaikov/wip-balancer-cleanup
Kefu Chai [Mon, 5 Feb 2018 02:01:11 +0000 (10:01 +0800)]
Merge pull request #20258 from tchaikov/wip-balancer-cleanup

 mgr/balancer: replace magic value of -1 for DEFAULT_CHOOSE_ARGS

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20230 from ifed01/wip-ifed-store-test-improve
Kefu Chai [Mon, 5 Feb 2018 01:59:39 +0000 (09:59 +0800)]
Merge pull request #20230 from ifed01/wip-ifed-store-test-improve

test/store_test: update Many4KWritesTest* test cases to finalize with…

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20221 from fangyuxiangGL/max
Kefu Chai [Mon, 5 Feb 2018 01:57:59 +0000 (09:57 +0800)]
Merge pull request #20221 from fangyuxiangGL/max

osd/ReplicatedBackend: 'osd_deep_scrub_keys' doesn't work

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20217 from rzarzynski/wip-osd-legacy-conf-for-perf
Kefu Chai [Mon, 5 Feb 2018 01:54:55 +0000 (09:54 +0800)]
Merge pull request #20217 from rzarzynski/wip-osd-legacy-conf-for-perf

osd: avoid the config's get_val() overhead on the read path.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20169 from liewegas/wip-22668-revert
Kefu Chai [Mon, 5 Feb 2018 01:41:00 +0000 (09:41 +0800)]
Merge pull request #20169 from liewegas/wip-22668-revert

os/bluestore: disable on_applied sync_complete

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoosd: use defined osd_required features for messenger policy 20223/head
Yan Jun [Sun, 4 Feb 2018 15:10:07 +0000 (23:10 +0800)]
osd: use defined osd_required features for messenger policy

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
7 years agorgw: bucket resharding should not update bucket ACL or user stats 20038/head
Orit Wasserman [Sun, 21 Jan 2018 08:12:43 +0000 (10:12 +0200)]
rgw: bucket resharding should not update bucket ACL or user stats

bucket link op resets bucket ACL using rgw_link_bucket instead

Fixes: http://tracker.ceph.com/issues/22124
Fixes: http://tracker.ceph.com/issues/22742
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
7 years agopybind/mgr/dashboard: fix duplicated slash in html href 20229/head
Shengjing Zhu [Thu, 1 Feb 2018 08:47:26 +0000 (16:47 +0800)]
pybind/mgr/dashboard: fix duplicated slash in html href

The url_prefix val in html templates is expected not containing '/'
in the end. Otherwise the href will be rendered as '//static/', which
causes browser treating it as http://static/.

Fixes: http://tracker.ceph.com/issues/22851
Signed-off-by: Shengjing Zhu <zhsj@umcloud.com>
7 years agotest/pybind/rbd: skip test_deep_copy_clone if layering not enabled 20295/head
Mykola Golub [Sun, 4 Feb 2018 08:13:18 +0000 (10:13 +0200)]
test/pybind/rbd: skip test_deep_copy_clone if layering not enabled

(otherwise it will fail on protect snap)

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20184 from shun-s/wip-add-osdmap-epoch-show
Xie Xingguo [Sun, 4 Feb 2018 02:08:06 +0000 (10:08 +0800)]
Merge pull request #20184 from shun-s/wip-add-osdmap-epoch-show

osd/OSDMap: add osdmap epoch info when printing info summary

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20225 from xiexingguo/wip-balancer-pool-options
Xie Xingguo [Sun, 4 Feb 2018 02:06:16 +0000 (10:06 +0800)]
Merge pull request #20225 from xiexingguo/wip-balancer-pool-options

mgr/balancer: more pool-specific enhancements

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20224 from xiexingguo/wip-still-mgr-fixes
Xie Xingguo [Sun, 4 Feb 2018 02:05:34 +0000 (10:05 +0800)]
Merge pull request #20224 from xiexingguo/wip-still-mgr-fixes

pybind/mgr/balancer: remove optimization plan properly

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20278 from xiexingguo/wip-null-ws-check
Xie Xingguo [Sun, 4 Feb 2018 02:03:19 +0000 (10:03 +0800)]
Merge pull request #20278 from xiexingguo/wip-null-ws-check

pybind/mgr/balancer: fix sanity check against empty weight-set

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoptl-tool: open githubmap with utf-8 code 20288/head
Patrick Donnelly [Sat, 3 Feb 2018 21:35:22 +0000 (13:35 -0800)]
ptl-tool: open githubmap with utf-8 code

This resolves a decode error:

    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 8: ordinal not in range(128)

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20261 into master
Patrick Donnelly [Sat, 3 Feb 2018 20:23:30 +0000 (12:23 -0800)]
Merge PR #20261 into master

* refs/pull/20261/head:
doc: Fix path in ceph-fuse.rst

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomgr/mgr_module: do not offer empty default value for choose_args 20258/head
Kefu Chai [Fri, 2 Feb 2018 08:25:26 +0000 (16:25 +0800)]
mgr/mgr_module: do not offer empty default value for choose_args

as it should be always available. this also silence a pep8 warning.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomgr/balancer: introduce CRUSHMap.DEFAULT_CHOOSE_ARGS and use it
Kefu Chai [Fri, 2 Feb 2018 08:23:31 +0000 (16:23 +0800)]
mgr/balancer: introduce CRUSHMap.DEFAULT_CHOOSE_ARGS and use it

avoid using '-1' as a magic variable.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotest/objectstore/run_seed_to_range.sh: objects
Sage Weil [Sat, 3 Feb 2018 15:22:51 +0000 (09:22 -0600)]
test/objectstore/run_seed_to_range.sh: objects

We need some initial objects for this to work.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/objectstore/run_seed_to.sh: make output readable
Sage Weil [Sat, 3 Feb 2018 15:21:53 +0000 (09:21 -0600)]
test/objectstore/run_seed_to.sh: make output readable

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_test_filestore_idempotent_sequence: fix clone check
Sage Weil [Sat, 3 Feb 2018 15:21:28 +0000 (09:21 -0600)]
ceph_test_filestore_idempotent_sequence: fix clone check

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_test_filestore_idempotent_sequence: fix do_coll_create
Sage Weil [Sat, 3 Feb 2018 15:21:09 +0000 (09:21 -0600)]
ceph_test_filestore_idempotent_sequence: fix do_coll_create

The old code made no sense whatsoever!

- create one colletion, not a zillion
- inform the model in the parent class

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_test_filestore_idempotent_sequence: fix gap in ops
Sage Weil [Sat, 3 Feb 2018 15:20:21 +0000 (09:20 -0600)]
ceph_test_filestore_idempotent_sequence: fix gap in ops

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_test_filestore_idempotent_sequence: start poolid at 2
Sage Weil [Sat, 3 Feb 2018 15:19:58 +0000 (09:19 -0600)]
ceph_test_filestore_idempotent_sequence: start poolid at 2

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/objectstore/FilestoreDiff: write to stdout
Sage Weil [Sat, 3 Feb 2018 14:42:11 +0000 (08:42 -0600)]
test/objectstore/FilestoreDiff: write to stdout

This keeps our output separate from the filestore log, which we send to
a file so that the terminal output is readable.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agopybind/mgr/balancer: fix sanity check against empty weight-set 20278/head
xie xingguo [Sat, 3 Feb 2018 14:05:02 +0000 (22:05 +0800)]
pybind/mgr/balancer: fix sanity check against empty weight-set

There are paths get_compat_weight_set_weights() will return a
empty dict, not None.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoRevert change from commit 8c5fea68cb9e0c2e6cc2352e64c4f3f46e29c58f 20270/head
J. Eric Ivancich [Fri, 2 Feb 2018 19:56:36 +0000 (14:56 -0500)]
Revert change from commit 8c5fea68cb9e0c2e6cc2352e64c4f3f46e29c58f
that introduced a compilation error that was not noticed since the
dmclock support/testing simulators are not built by ceph.

Also, changes below the src/dmclock tree should be made in the dmclock
library and then pulled into ceph.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agoMerge pull request #19711 from trociny/wip-20762
Jason Dillaman [Fri, 2 Feb 2018 18:56:13 +0000 (13:56 -0500)]
Merge pull request #19711 from trociny/wip-20762

rbd: unified way to map images using different drivers

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agomon/OSDMonitor: ignore and/or remove pgs that shouldn't exist 20267/head
Sage Weil [Fri, 2 Feb 2018 18:07:58 +0000 (12:07 -0600)]
mon/OSDMonitor: ignore and/or remove pgs that shouldn't exist

The update_creating_pgs() change is there mainly for clusters that already
have an invalid pg in the map; going forward they hopefully shouldn't
appear!

Fixes: https://tracker.ceph.com/issues/22847
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon/OSDMonitor: reject force-create-pg on pgids that shouldn't exist
Sage Weil [Fri, 2 Feb 2018 17:59:29 +0000 (11:59 -0600)]
mon/OSDMonitor: reject force-create-pg on pgids that shouldn't exist

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19902 from linuxbox2/wip-rgw-mploc
Matt Benjamin [Fri, 2 Feb 2018 16:37:01 +0000 (11:37 -0500)]
Merge pull request #19902 from linuxbox2/wip-rgw-mploc

rgw: return valid Location element, CompleteMultipartUpload

7 years agoosd/ReplicatedBackend: only do once encode log_entries for multi MOSDRepOp 20201/head
Jianpeng Ma [Fri, 2 Feb 2018 16:35:15 +0000 (00:35 +0800)]
osd/ReplicatedBackend: only do once encode log_entries  for multi MOSDRepOp

Encode log_entries is the same work for multi MOSDRepOp and encode is
heavy load.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agoMerge pull request #20199 from Songweibin/wip-group-cleanup
Jason Dillaman [Fri, 2 Feb 2018 15:25:50 +0000 (10:25 -0500)]
Merge pull request #20199 from Songweibin/wip-group-cleanup

rbd: group misc cleanup and update rbd man page

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20002 from malc0lm/fix-copypart
Matt Benjamin [Fri, 2 Feb 2018 14:35:14 +0000 (09:35 -0500)]
Merge pull request #20002 from malc0lm/fix-copypart

rgw: fix 'copy part' without 'x-amz-copy-source-range'

7 years agoMerge pull request #20222 from trociny/wip-deep-copy-default-format
Jason Dillaman [Fri, 2 Feb 2018 13:32:52 +0000 (08:32 -0500)]
Merge pull request #20222 from trociny/wip-deep-copy-default-format

librbd: by default use new format for deep copy destination

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20170 from trociny/wip-22803
Jason Dillaman [Fri, 2 Feb 2018 13:32:36 +0000 (08:32 -0500)]
Merge pull request #20170 from trociny/wip-22803

qa/workunits/rbd: remove "trash purge --threshold" test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20099 from Songweibin/wip-fix-deep-cp
Jason Dillaman [Fri, 2 Feb 2018 13:32:20 +0000 (08:32 -0500)]
Merge pull request #20099 from Songweibin/wip-fix-deep-cp

librbd: fix deep copy a child-image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agodoc: Fix path in ceph-fuse.rst 20261/head
Jos Collin [Fri, 2 Feb 2018 10:48:26 +0000 (16:18 +0530)]
doc: Fix path in ceph-fuse.rst

This mistake was introduced in https://github.com/ceph/ceph/commit/9b6f9da3ce935ba1dcc28dfd6723ca46883ccb5e.

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agorados: clean up rados_getxattrs() and rados_striper_getxattrs() 20259/head
Gu Zhongyan [Fri, 2 Feb 2018 09:34:13 +0000 (17:34 +0800)]
rados: clean up rados_getxattrs() and rados_striper_getxattrs()

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agoMerge pull request #20178 from xiexingguo/wip-map-version
Xie Xingguo [Fri, 2 Feb 2018 08:37:00 +0000 (16:37 +0800)]
Merge pull request #20178 from xiexingguo/wip-map-version

crush, mon: bump up map version only if we truly created a weight-set

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoconfig: Change bluestore_cache_kv_max to type INT64 20255/head
Zhi Zhang [Fri, 2 Feb 2018 08:02:05 +0000 (16:02 +0800)]
config: Change bluestore_cache_kv_max to type INT64

If bluestore_cache_kv_max is negative, bluestore won't calculate meta
ratio and kv ratio automatically. So change the type from UINT to INT to
make this bluestore logic work.

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
7 years agoMerge pull request #20197 from xiexingguo/wip-load-ws-from-ms
Kefu Chai [Fri, 2 Feb 2018 07:57:14 +0000 (15:57 +0800)]
Merge pull request #20197 from xiexingguo/wip-load-ws-from-ms

pybind/mgr/balancer: load weight-set from ms

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20196 from yaozongyou/improve-straw2-readability
Kefu Chai [Fri, 2 Feb 2018 07:56:13 +0000 (15:56 +0800)]
Merge pull request #20196 from yaozongyou/improve-straw2-readability

crush: improve straw2 algorithm's readability

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20194 from xiexingguo/wip-badsteps
Kefu Chai [Fri, 2 Feb 2018 07:55:41 +0000 (15:55 +0800)]
Merge pull request #20194 from xiexingguo/wip-badsteps

pybind/mgr/balancer: increase bad_steps properly

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20189 from neha-ojha/wip-fix-update_calc_stats
Kefu Chai [Fri, 2 Feb 2018 07:55:02 +0000 (15:55 +0800)]
Merge pull request #20189 from neha-ojha/wip-fix-update_calc_stats

PG: primary should not be in the peer_info, skip if it is

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #20151 from badone/wip-run-tox-ceph-disk-deps-failure
Kefu Chai [Fri, 2 Feb 2018 07:35:59 +0000 (15:35 +0800)]
Merge pull request #20151 from badone/wip-run-tox-ceph-disk-deps-failure

tests: ceph-disk: Remove sitepackages=True

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #20140 from smithfarm/wip-python3-mopup
Kefu Chai [Fri, 2 Feb 2018 07:35:05 +0000 (15:35 +0800)]
Merge pull request #20140 from smithfarm/wip-python3-mopup

build/ops: rpm: Python 3-only ceph-disk and ceph-volume

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19953 from badone/wip-c_read_operations-tautological-compare...
Kefu Chai [Fri, 2 Feb 2018 07:29:33 +0000 (15:29 +0800)]
Merge pull request #19953 from badone/wip-c_read_operations-tautological-compare-warning

c_read_operations.cc: Silence tautological-compare compiler warning

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20071 from joscollin/wip-ceph-fuse-doc
Jos Collin [Fri, 2 Feb 2018 06:30:18 +0000 (12:00 +0530)]
Merge pull request #20071 from joscollin/wip-ceph-fuse-doc

doc: Specify mount details in ceph-fuse

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agodoc: Specify mount details in ceph-fuse 20071/head
Jos Collin [Tue, 23 Jan 2018 10:14:49 +0000 (15:44 +0530)]
doc: Specify mount details in ceph-fuse

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agoOSDMap: add osdmap epoch info when printing info summary 20184/head
shun-s [Tue, 30 Jan 2018 13:32:59 +0000 (21:32 +0800)]
OSDMap: add osdmap epoch info when printing info summary

  add osdmap epoch info when printing info summary

Signed-off-by: shun-s <song.shun3@zte.com.cn>
7 years agoMerge PR #19856 into master
Patrick Donnelly [Thu, 1 Feb 2018 22:50:12 +0000 (14:50 -0800)]
Merge PR #19856 into master

* refs/pull/19856/head:
qa: synchronize kcephfs suites with fs/multimds

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agorgw: beast frontend can listen on multiple endpoints 20188/head
Casey Bodley [Tue, 23 Jan 2018 21:03:13 +0000 (16:03 -0500)]
rgw: beast frontend can listen on multiple endpoints

rgw_frontends options port= and endpoint= can be given multiple times,
and the beast frontend will listen on each endpoint

Fixes: http://tracker.ceph.com/issues/22779
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20203 from ceph/wip-rm22642
Alfredo Deza [Thu, 1 Feb 2018 16:13:21 +0000 (11:13 -0500)]
Merge pull request #20203 from ceph/wip-rm22642

ceph-volume: fix usage of the --osd-id flag

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoqa/workunits/rbd: remove "trash purge --threshold" test 20170/head
Mykola Golub [Mon, 29 Jan 2018 14:52:10 +0000 (16:52 +0200)]
qa/workunits/rbd: remove "trash purge --threshold" test

It is difficult to make it work reliably in different environments.

Fixes: http://tracker.ceph.com/issues/22803
Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20090 from liewegas/wip-bluestore-label
Sage Weil [Thu, 1 Feb 2018 14:51:01 +0000 (08:51 -0600)]
Merge pull request #20090 from liewegas/wip-bluestore-label

os/bluestore: make bdev label parsing error more meaningful and less noisy

Reviewed-by: Varada Kari <varada.kari@gmail.com>
7 years agotest/log: fix for crash with libc++ 20233/head
Casey Bodley [Thu, 1 Feb 2018 14:37:47 +0000 (09:37 -0500)]
test/log: fix for crash with libc++

the original issue reproduced with operator<<(const char*) in libstdc++,
but this actually crashes with libc++. test the std::basic_streambuf*
overload instead, which is called out explicitly in
http://en.cppreference.com/w/cpp/io/ios_base/iostate:

> The badbit is set by the following standard library functions:
> * basic_ostream::operator<<(basic_streambuf*) when a null pointer is passed as the argument.

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agotest/store_test: update Many4KWritesTest* test cases to finalize with fsck 20230/head
Igor Fedotov [Thu, 1 Feb 2018 11:54:29 +0000 (14:54 +0300)]
test/store_test: update Many4KWritesTest* test cases to finalize with fsck

Doing that when statfs report doesn't match our expectations will
provide more insight on the mismatch and helps to avoid races if any.
Maybe Fixes: https://tracker.ceph.com/issues/21312

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #20214 from dillaman/wip-22819
Mykola Golub [Thu, 1 Feb 2018 10:01:00 +0000 (12:01 +0200)]
Merge pull request #20214 from dillaman/wip-22819

librbd: potential crash if object map check encounters error

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoosd: avoid the config's get_val() overhead on the read path. 20217/head
Radoslaw Zarzynski [Wed, 31 Jan 2018 23:51:14 +0000 (00:51 +0100)]
osd: avoid the config's get_val() overhead on the read path.

Profiling shows the overhead of the md_config_t::get_val<T>
can be significant. Unfortunately, it is being used in two
critical places across the read path.

The patch resorts to the legacy config infrastructure to
mitigate the performance penalty. It is expected it will
be superseded with a solution that allows to use the new,
intended routines without hurting performance.
`
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agopybind/mgr/balancer: make 'eval' command can evaluate specific pool 20225/head
xie xingguo [Tue, 30 Jan 2018 12:00:33 +0000 (20:00 +0800)]
pybind/mgr/balancer: make 'eval' command can evaluate specific pool

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agomgr/balancer: pool-specific optimization for crush-compat
xie xingguo [Tue, 30 Jan 2018 03:31:39 +0000 (11:31 +0800)]
mgr/balancer: pool-specific optimization for crush-compat

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>