]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agorgw: cleanup repeated assignment to need_zone_update in zone modify command 18817/head
Enming Zhang [Wed, 8 Nov 2017 12:38:18 +0000 (20:38 +0800)]
rgw: cleanup repeated assignment to need_zone_update in zone modify command

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
7 years agorgw: cleanup some unnecessary function called in RGWZoneGroup::add_zone
Enming Zhang [Mon, 6 Nov 2017 08:38:18 +0000 (16:38 +0800)]
rgw: cleanup some unnecessary function called in RGWZoneGroup::add_zone

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
7 years agoMerge pull request #18729 from iliul/fix-vstart-typo
Kefu Chai [Sun, 5 Nov 2017 04:37:25 +0000 (12:37 +0800)]
Merge pull request #18729 from iliul/fix-vstart-typo

vstart.sh: fix a typo

Reviewed-By: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18693 from XinzeChi/wip-dup-async-read-stat
Kefu Chai [Sun, 5 Nov 2017 04:33:19 +0000 (12:33 +0800)]
Merge pull request #18693 from XinzeChi/wip-dup-async-read-stat

osd/PrimaryLogPG: fix dup stat for async read

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-By: Kefu Chai <kchai@redhat.com>
7 years agovstart.sh: fix a spelling mistake 18729/head
iliul [Sat, 4 Nov 2017 12:17:58 +0000 (12:17 +0000)]
vstart.sh: fix a spelling mistake

Signed-off-by: iliul <liul124@chinaunicom.cn>
7 years agoMerge pull request #18724 from iliul/add-missing-blank-line
Kefu Chai [Sat, 4 Nov 2017 11:27:41 +0000 (19:27 +0800)]
Merge pull request #18724 from iliul/add-missing-blank-line

doc: add missing blank line

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18708 from dillaman/wip-22036
Mykola Golub [Sat, 4 Nov 2017 10:31:57 +0000 (12:31 +0200)]
Merge pull request #18708 from dillaman/wip-22036

librbd: added preprocessor macro for detecting compare-and-write support

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agoMerge pull request #18704 from dillaman/wip-rbd-iscsi-win
Mykola Golub [Sat, 4 Nov 2017 10:29:38 +0000 (12:29 +0200)]
Merge pull request #18704 from dillaman/wip-rbd-iscsi-win

doc/rbd: tweaks to the Windows iSCSI initiator directions

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agoMerge pull request #18712 from liu-chunmei/rm_redundant_dpdksource
Kefu Chai [Sat, 4 Nov 2017 08:05:00 +0000 (16:05 +0800)]
Merge pull request #18712 from liu-chunmei/rm_redundant_dpdksource

dpdk: remove redundant dpdk submodule

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18711 from adamemerson/wip-system-includes
Kefu Chai [Sat, 4 Nov 2017 08:03:37 +0000 (16:03 +0800)]
Merge pull request #18711 from adamemerson/wip-system-includes

cmake: System Includes to silence warnings from submodules and libraries!

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18701 from tchaikov/wip-denc
Kefu Chai [Sat, 4 Nov 2017 08:01:52 +0000 (16:01 +0800)]
Merge pull request #18701 from tchaikov/wip-denc

denc: support enum with underlying type

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #18597 from tchaikov/wip-cmake-cleanup
Kefu Chai [Sat, 4 Nov 2017 08:00:47 +0000 (16:00 +0800)]
Merge pull request #18597 from tchaikov/wip-cmake-cleanup

cmake: cleanups

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
7 years agodoc: Add missing blank line 18724/head
iliul [Sat, 4 Nov 2017 06:53:58 +0000 (14:53 +0800)]
doc: Add missing blank line

Signed-off-by: iliul <liul124@chinaunicom.cn>
7 years agobuild: Merge wip-system-includes from upstream 18711/head
Adam C. Emerson [Sat, 4 Nov 2017 04:03:14 +0000 (00:03 -0400)]
build: Merge wip-system-includes from upstream

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoSquashed 'src/dmclock/' changes from 1bbd42b8fe..d1ff03b667
Adam C. Emerson [Sat, 4 Nov 2017 04:03:13 +0000 (00:03 -0400)]
Squashed 'src/dmclock/' changes from 1bbd42b8fe..d1ff03b667

d1ff03b667 Merge pull request #44 from adamemerson/wip-system-includes
4cc4b949ca build: Mark dependency includes as SYSTEM in dmclock
05096c1756 Merge pull request #43 from TaewoongKim/anticipation_conf
f356c45461 Add missing anticipation_timeout argument for PullPriorityQueue constructor
9896448ec5 Merge pull request #42 from tchaikov/wip-cmake
979899ef86 add travis CI on gnu/linux
8a3dabdbee cmake: the built archives are located in ${binary_dir}
ee15ced3e9 cmake: check for include in /usr/include also

git-subtree-dir: src/dmclock
git-subtree-split: d1ff03b667d9551478b2803ea533fc356ca441a9

7 years agobuild: Mark dependency includes as SYSTEM
Adam C. Emerson [Fri, 3 Nov 2017 19:14:35 +0000 (15:14 -0400)]
build: Mark dependency includes as SYSTEM

It is not really our business to debug python, boost, or our other
dependencies. Mark them as system includes.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoMerge pull request #18672 from jcsp/wip-21999
Sage Weil [Sat, 4 Nov 2017 02:55:22 +0000 (21:55 -0500)]
Merge pull request #18672 from jcsp/wip-21999

mgr: emit cluster log message on serve() exception

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18691 from liewegas/wip-fix-balancer
Sage Weil [Sat, 4 Nov 2017 02:54:58 +0000 (21:54 -0500)]
Merge pull request #18691 from liewegas/wip-fix-balancer

mgr/balancer: fix upmap; default balancer module enabled

7 years agoMerge PR #18538 into master
Patrick Donnelly [Fri, 3 Nov 2017 21:37:26 +0000 (14:37 -0700)]
Merge PR #18538 into master

* refs/pull/18538/head:
mds: clean up clog damage message when repairing
mds: flush after scrub repairs
mds: don't report repaired backtraces in damagetable
mds: cleaner scrub complete log msg

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18555 into master
Patrick Donnelly [Fri, 3 Nov 2017 21:36:55 +0000 (14:36 -0700)]
Merge PR #18555 into master

* refs/pull/18555/head:
mds: fix inode count check in MDCache::check_memory_usage()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18612 into master
Patrick Donnelly [Fri, 3 Nov 2017 21:36:23 +0000 (14:36 -0700)]
Merge PR #18612 into master

* refs/pull/18612/head:
mds: fix race in PurgeQueue::wait_for_recovery()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18624 into master
Patrick Donnelly [Fri, 3 Nov 2017 21:35:52 +0000 (14:35 -0700)]
Merge PR #18624 into master

* refs/pull/18624/head:
mds: trim 'N' log segments according to how many log segments are there

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18646 into master
Patrick Donnelly [Fri, 3 Nov 2017 21:35:07 +0000 (14:35 -0700)]
Merge PR #18646 into master

* refs/pull/18646/head:
mds: fix MDS_FEATURE_INCOMPAT_FILE_LAYOUT_V2 definition
mds: remove useless incompat feature definination in FSMap.h

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18654 into master
Patrick Donnelly [Fri, 3 Nov 2017 21:34:28 +0000 (14:34 -0700)]
Merge PR #18654 into master

* refs/pull/18654/head:
ceph.in: pass RADOS inst to LibCephFS

Reviewed-by: Kefu Chai <kchai@redhat.com>
Tested-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #18686 from xiexingguo/wip-bf-retry-interval
Yuri Weinstein [Fri, 3 Nov 2017 19:59:30 +0000 (12:59 -0700)]
Merge pull request #18686 from xiexingguo/wip-bf-retry-interval

osd/PG: use osd_backfill_retry_interval for schedule_backfill_retry()

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoremove redundant dpdk source folder, this one is not maintained since last Nov.2016, 18712/head
chunmei [Fri, 3 Nov 2017 19:32:32 +0000 (12:32 -0700)]
remove redundant dpdk source folder, this one is not maintained since last Nov.2016,
the other one is located in src/spdk/dpdk, which is alwasy maintained and used by spdk.
so remove this src/dpdk folder, we only need maintain one copy.

Signed-off-by: chunmei <chunmei.liu@intel.com>
7 years agolibrbd: added preprocessor macro for detecting compare-and-write support 18708/head
Jason Dillaman [Fri, 3 Nov 2017 16:03:49 +0000 (12:03 -0400)]
librbd: added preprocessor macro for detecting compare-and-write support

Fixes: http://tracker.ceph.com/issues/22036
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17923 from cbodley/wip-rgw-beast-update
Yehuda Sadeh [Fri, 3 Nov 2017 15:57:39 +0000 (08:57 -0700)]
Merge pull request #17923 from cbodley/wip-rgw-beast-update

rgw: pull up beast submodule and update frontend

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agodoc/rbd: tweaks to the Windows iSCSI initiator directions 18704/head
Jason Dillaman [Fri, 3 Nov 2017 14:09:38 +0000 (10:09 -0400)]
doc/rbd: tweaks to the Windows iSCSI initiator directions

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18522 from C2python/cleanup_to_string
Casey Bodley [Fri, 3 Nov 2017 15:01:28 +0000 (11:01 -0400)]
Merge pull request #18522 from C2python/cleanup_to_string

rgw: Delete to_string functions. stringify defined in include/stringify.h can provide the same feature.

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #18536 from ZVampirEM77/wip-fix-loadgen
Casey Bodley [Fri, 3 Nov 2017 14:11:27 +0000 (10:11 -0400)]
Merge pull request #18536 from ZVampirEM77/wip-fix-loadgen

rgw: loadgen fix generate random object name rgw crash issue

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18526 from tchaikov/wip-17454
Kefu Chai [Fri, 3 Nov 2017 12:10:37 +0000 (20:10 +0800)]
Merge pull request #18526 from tchaikov/wip-17454

mgr: In plugins 'module' classes need not to be called "Module" anymore.

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18678 from liu-chunmei/fix_dpdk_coremask
Kefu Chai [Fri, 3 Nov 2017 12:05:59 +0000 (20:05 +0800)]
Merge pull request #18678 from liu-chunmei/fix_dpdk_coremask

msg/async: fix ms_dpdk_coremask and ms_dpdk_coremask conflict

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18670 from liewegas/wip-min-in-4
Sage Weil [Fri, 3 Nov 2017 11:55:23 +0000 (06:55 -0500)]
Merge pull request #18670 from liewegas/wip-min-in-4

qa/tasks/thrashosds: set min_in default to 4

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18671 from ifed01/wip-ifed-bluefs-empty-reclaiming-fix
Sage Weil [Fri, 3 Nov 2017 11:55:00 +0000 (06:55 -0500)]
Merge pull request #18671 from ifed01/wip-ifed-bluefs-empty-reclaiming-fix

os/bluestore: do not release empty bluefs_extents_reclaiming.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #18653 from dillaman/wip-21391
Mykola Golub [Fri, 3 Nov 2017 09:27:56 +0000 (11:27 +0200)]
Merge pull request #18653 from dillaman/wip-21391

mgr/dashboard: added iSCSI IOPS/throughput metrics

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agodenc: support enum with underlying type 18701/head
Kefu Chai [Fri, 3 Nov 2017 08:10:07 +0000 (16:10 +0800)]
denc: support enum with underlying type

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake,deb: remove the last trace of atomic_ops 18597/head
Kefu Chai [Fri, 27 Oct 2017 17:50:44 +0000 (01:50 +0800)]
cmake,deb: remove the last trace of atomic_ops

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: fix indent
Kefu Chai [Fri, 27 Oct 2017 17:57:55 +0000 (01:57 +0800)]
cmake: fix indent

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: remove unused definitions
Kefu Chai [Fri, 27 Oct 2017 17:59:06 +0000 (01:59 +0800)]
cmake: remove unused definitions

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: do not link ${XIO_LIBRARY} if not necessary
Kefu Chai [Fri, 3 Nov 2017 08:13:34 +0000 (16:13 +0800)]
cmake: do not link ${XIO_LIBRARY} if not necessary

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoms_dpdk_coremask and ms_async_op_threads has some relationship, 18678/head
chunmei [Thu, 2 Nov 2017 03:37:53 +0000 (20:37 -0700)]
ms_dpdk_coremask and ms_async_op_threads has some relationship,
dpdk library will create threasds as many as bit 1 number in
ms_dpdk_coremask and the thredas num should be equal ms_async_op_threads+1,
by ceph default confiuration,ms_async_op_threads =3,ms_dpdk_coremask =1,
so dpdk library can't create enough threads for dpdk workers. the sytem
will stuck at NetworkStack::start().so set ms_dpdk_coremask default 0xF.
and add assert to comapre the two configurations.

Signed-off-by: chunmei <chunmei.liu@intel.com>
7 years agoMerge pull request #18695 from cooboos/wip-doc-wrongspell
Kefu Chai [Fri, 3 Nov 2017 05:21:07 +0000 (13:21 +0800)]
Merge pull request #18695 from cooboos/wip-doc-wrongspell

doc/release-notes: fix typo 'psd' to 'osd'

Reviewed-By: Kefu Chai <kchai@redhat.com>
7 years agodoc: correct wrong spell 'psd' to 'osd' 18695/head
wangsongbo [Fri, 3 Nov 2017 04:49:11 +0000 (12:49 +0800)]
doc: correct wrong spell 'psd' to 'osd'

Signed-off-by: wangsongbo wangsongbo@cloudin.cn
7 years agoosd/PrimaryLogPG: fix dup stat for async read 18693/head
Xinze Chi [Fri, 3 Nov 2017 03:12:52 +0000 (11:12 +0800)]
osd/PrimaryLogPG: fix dup stat for async read

The async read would call do_osd_ops twice.

Signed-off-by: Xinze Chi <xinze@xsky.com>
7 years agopybind/mgr/mgr_module: fix calc_pg_upmaps 18691/head
Sage Weil [Thu, 2 Nov 2017 21:18:03 +0000 (16:18 -0500)]
pybind/mgr/mgr_module: fix calc_pg_upmaps

This was fixed in the object cleanup.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: enable module by default
Sage Weil [Thu, 2 Nov 2017 21:11:26 +0000 (16:11 -0500)]
mgr/balancer: enable module by default

It will still be "off".

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agorgw: loadgen fix rgw crash issue 18536/head
Enming Zhang [Wed, 25 Oct 2017 13:10:56 +0000 (21:10 +0800)]
rgw: loadgen fix rgw crash issue

When generating random bucket name and object name during
loadgen processing, RGW will crash. The reason is calling
"gen_rand_alphanumeric" with "cct = NULL".

Fixes: http://tracker.ceph.com/issues/22006
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
7 years agoMerge pull request #13992 from dreamhost/wip-19264
Yuri Weinstein [Thu, 2 Nov 2017 16:47:31 +0000 (09:47 -0700)]
Merge pull request #13992 from dreamhost/wip-19264

rgw: fix Swift container naming rules.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #18606 from adamemerson/wip-op-perm-refactor
Yuri Weinstein [Thu, 2 Nov 2017 16:46:20 +0000 (09:46 -0700)]
Merge pull request #18606 from adamemerson/wip-op-perm-refactor

rgw: Small refactor and two bug fixes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
7 years agoMerge pull request #14955 from aclamk/fix-civetweb-cryptopp
Kefu Chai [Thu, 2 Nov 2017 15:59:03 +0000 (23:59 +0800)]
Merge pull request #14955 from aclamk/fix-civetweb-cryptopp

radosgw: Make compilation with CryptoPP possible.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18664 from oritwas/wip-rgw-21996
Orit Wasserman [Thu, 2 Nov 2017 14:31:08 +0000 (16:31 +0200)]
Merge pull request #18664 from oritwas/wip-rgw-21996

rgw: init oldest period after setting run_sync_thread
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18680 from tchaikov/wip-doc-mgr
Kefu Chai [Thu, 2 Nov 2017 12:39:25 +0000 (20:39 +0800)]
Merge pull request #18680 from tchaikov/wip-doc-mgr

doc/mgr: document facilities methods using `automethod` directive

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18685 from jcsp/wip-mgr-load-module
Kefu Chai [Thu, 2 Nov 2017 12:20:52 +0000 (20:20 +0800)]
Merge pull request #18685 from jcsp/wip-mgr-load-module

qa: fix mgr _load_module helper

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoosd/PG: use osd_backfill_retry_interval for schedule_backfill_retry() 18686/head
xie xingguo [Thu, 2 Nov 2017 12:17:22 +0000 (20:17 +0800)]
osd/PG: use osd_backfill_retry_interval for schedule_backfill_retry()

These two options currently share the same value and I have no particular
preference, but using osd_backfill_retry_interval for the specific scenario
gives us more flexible choices.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoqa: fix mgr _load_module helper 18685/head
John Spray [Thu, 2 Nov 2017 11:42:56 +0000 (07:42 -0400)]
qa: fix mgr _load_module helper

I inadvertently broke this with the latest change
to the module ls output.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18656 from ceph/ceph-volume-bluestore-tests
Alfredo Deza [Thu, 2 Nov 2017 11:30:39 +0000 (07:30 -0400)]
Merge pull request #18656 from ceph/ceph-volume-bluestore-tests

ceph-volume: adds functional testing for bluestore

7 years agoMerge pull request #18399 from jcsp/wip-20950
John Spray [Thu, 2 Nov 2017 10:37:09 +0000 (10:37 +0000)]
Merge pull request #18399 from jcsp/wip-20950

mon: don't blow away bootstrap-mgr on upgrades

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18681 from tchaikov/wip-msg-async-popcnt
Haomai Wang [Thu, 2 Nov 2017 09:54:48 +0000 (04:54 -0500)]
Merge pull request #18681 from tchaikov/wip-msg-async-popcnt

msg/async: use bitset<> to do the popcnt

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #18652 from idryomov/wip-qa-krbd-blkroset
Ilya Dryomov [Thu, 2 Nov 2017 09:10:39 +0000 (10:10 +0100)]
Merge pull request #18652 from idryomov/wip-qa-krbd-blkroset

qa/suites/krbd: add krbd BLKROSET test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agomsg/async: use bitset<> to do the popcnt 18681/head
Kefu Chai [Thu, 2 Nov 2017 07:20:24 +0000 (15:20 +0800)]
msg/async: use bitset<> to do the popcnt

libstdc++ uses popcnt to count the bits. it's faster and simpler.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agodoc/mgr: document mgr/plugin using automethod 18680/head
Kefu Chai [Thu, 2 Nov 2017 04:19:33 +0000 (12:19 +0800)]
doc/mgr: document mgr/plugin using automethod

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agopybind/mgr: sync the docstring with the doc/mgr
Kefu Chai [Thu, 2 Nov 2017 06:29:46 +0000 (14:29 +0800)]
pybind/mgr: sync the docstring with the doc/mgr

also update the docstring to confirm to
http://www.sphinx-doc.org/en/stable/domains.html#info-field-lists.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomgr: In plugins 'module' classes need not to be called "Module" anymore. 18526/head
bhavishyagopesh [Mon, 9 Oct 2017 05:40:41 +0000 (11:10 +0530)]
mgr: In plugins 'module' classes need not to be called "Module" anymore.

Fixes: http://tracker.ceph.com/issues/17454
Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: bhavishyagopesh <bhavishyagopesh@gmail.com>
7 years agoMerge pull request #18619 from trociny/wip-qa-mirror-remove
Jason Dillaman [Thu, 2 Nov 2017 01:34:35 +0000 (21:34 -0400)]
Merge pull request #18619 from trociny/wip-qa-mirror-remove

qa/workunits/rbd: unnecessary sleep after failed remove

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17983 from liewegas/wip-balancer
Sage Weil [Wed, 1 Nov 2017 19:46:07 +0000 (14:46 -0500)]
Merge pull request #17983 from liewegas/wip-balancer

mgr/balancer: make crush-compat mode work

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agomgr: emit cluster log message on serve() exception 18672/head
John Spray [Wed, 1 Nov 2017 16:08:03 +0000 (12:08 -0400)]
mgr: emit cluster log message on serve() exception

Fixes: http://tracker.ceph.com/issues/21999
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agorgw: add missing current_history initialization 18664/head
Orit Wasserman [Wed, 1 Nov 2017 15:49:46 +0000 (17:49 +0200)]
rgw: add missing current_history initialization

Fixes: http://tracker.ceph.com/issues/21996
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: init oldest period after setting run_sync_thread
Orit Wasserman [Wed, 1 Nov 2017 10:15:35 +0000 (12:15 +0200)]
rgw: init oldest period after setting run_sync_thread

Fixes: http://tracker.ceph.com/issues/21996
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #18657 from cbodley/wip-21990
Matt Benjamin [Wed, 1 Nov 2017 15:47:24 +0000 (11:47 -0400)]
Merge pull request #18657 from cbodley/wip-21990

rgw: remove placement_rule from rgw_link_bucket()

7 years agoMerge pull request #18534 from ZVampirEM77/wip-emlc-contentmd5
Yuri Weinstein [Wed, 1 Nov 2017 15:27:29 +0000 (08:27 -0700)]
Merge pull request #18534 from ZVampirEM77/wip-emlc-contentmd5

rgw: lc support Content-MD5 request header and fix a rgw crash bug

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
7 years agoMerge pull request #18610 from cbodley/wip-osd-subop-num
Yuri Weinstein [Wed, 1 Nov 2017 15:24:13 +0000 (08:24 -0700)]
Merge pull request #18610 from cbodley/wip-osd-subop-num

osd: add processed_subop_count for cls_cxx_subop_version()

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #18641 from joke-lee/rgw_modify_subuser_access_error
Yuri Weinstein [Wed, 1 Nov 2017 15:22:12 +0000 (08:22 -0700)]
Merge pull request #18641 from joke-lee/rgw_modify_subuser_access_error

rgw: modify s3 type subuser access permissions fail through admin rest api

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18659 from tchaikov/wip-21993
Kefu Chai [Wed, 1 Nov 2017 15:08:55 +0000 (23:08 +0800)]
Merge pull request #18659 from tchaikov/wip-21993

qa: stop testing deprecated "ceph osd create"

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #15193 from mynaramana/arraycode
Kefu Chai [Wed, 1 Nov 2017 14:50:24 +0000 (22:50 +0800)]
Merge pull request #15193 from mynaramana/arraycode

osd: introduce sub-chunks to erasure code plugin interface

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: do not release empty bluefs_extents_reclaiming. 18671/head
Igor Fedotov [Wed, 1 Nov 2017 14:14:25 +0000 (07:14 -0700)]
os/bluestore: do not release empty bluefs_extents_reclaiming.
This saves us one mutex lock attempt in Stupid Allocator.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #18637 from yaozongyou/fix-dashboard-bug
John Spray [Wed, 1 Nov 2017 14:07:36 +0000 (15:07 +0100)]
Merge pull request #18637 from yaozongyou/fix-dashboard-bug

osd: make stat_bytes and stat_bytes_used counters PRIO_USEFUL

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18347 from Synesis-LLC/fix-21773
Sage Weil [Wed, 1 Nov 2017 13:39:11 +0000 (08:39 -0500)]
Merge pull request #18347 from Synesis-LLC/fix-21773

mgr: skip first non-zero incremental in PGMap::apply_incremental()

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18453 from liewegas/wip-osd-devs
Sage Weil [Wed, 1 Nov 2017 13:36:59 +0000 (08:36 -0500)]
Merge pull request #18453 from liewegas/wip-osd-devs

osd: enumerate device names in a simple way

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18509 from tchaikov/wip-osd-cleanups
Sage Weil [Wed, 1 Nov 2017 13:36:37 +0000 (08:36 -0500)]
Merge pull request #18509 from tchaikov/wip-osd-cleanups

osd,mgrclient: pass daemon_status by rvalue ref and other cleanups

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoqa/tasks/thrashosds: set min_in default to 4 18670/head
Sage Weil [Wed, 1 Nov 2017 13:31:31 +0000 (08:31 -0500)]
qa/tasks/thrashosds: set min_in default to 4

We have EC tests with k=2,m=2, so we need a min of 4.

Fixes: http://tracker.ceph.com/issues/21997
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agorgw: remove placement_rule from cls_user_bucket_entry 18657/head
Casey Bodley [Tue, 31 Oct 2017 20:56:01 +0000 (16:56 -0400)]
rgw: remove placement_rule from cls_user_bucket_entry

placement_rule is no longer needed in cls_user_bucket_entry, because the
only time that it's needed, we can read it from the bucket instance in
RGWRados::update_containers_stats()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18504 from badone/wip-GroupSnapshotNamespace-group_pool-uninitialised
Jason Dillaman [Wed, 1 Nov 2017 13:08:33 +0000 (09:08 -0400)]
Merge pull request #18504 from badone/wip-GroupSnapshotNamespace-group_pool-uninitialised

cls/rbd: Silence gcc7 maybe-uninitialized warning

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agorgw: remove placement_rule from rgw_link_bucket()
Casey Bodley [Tue, 31 Oct 2017 20:29:31 +0000 (16:29 -0400)]
rgw: remove placement_rule from rgw_link_bucket()

with the fallback in RGWRados::update_containers_stats(), we no longer
need to pass placement_rule into the cls_user_bucket_entry

this removes the dependency between bucket entrypoint metadata and its
bucket instance metadata during multisite sync

Fixes: http://tracker.ceph.com/issues/21990
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: take placement_rule from bucket info in update_containers_stats
Casey Bodley [Tue, 31 Oct 2017 20:26:54 +0000 (16:26 -0400)]
rgw: take placement_rule from bucket info in update_containers_stats

in case the cls_user_bucket_entry doesn't contain a placement_rule, take
it from the bucket instance info

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agomgr/balancer: simplify pool_info tracking 17983/head
Sage Weil [Fri, 27 Oct 2017 17:53:52 +0000 (12:53 -0500)]
mgr/balancer: simplify pool_info tracking

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: less verbose on 'eval' by default; add 'eval-verbose'
Sage Weil [Thu, 26 Oct 2017 03:47:02 +0000 (22:47 -0500)]
mgr/balancer: less verbose on 'eval' by default; add 'eval-verbose'

The verbose output is helpful for debugging and understanding what is
being measured, but most of the time all that you care about is the score.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: fix pg vs object terminology
Sage Weil [Sat, 21 Oct 2017 15:46:27 +0000 (10:46 -0500)]
mgr/balancer: fix pg vs object terminology

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: restrict to time of day
Sage Weil [Tue, 24 Oct 2017 22:12:54 +0000 (17:12 -0500)]
mgr/balancer: restrict to time of day

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/module: adjust osd_weight min step to .005
Sage Weil [Thu, 5 Oct 2017 22:31:06 +0000 (17:31 -0500)]
mgr/module: adjust osd_weight min step to .005

That should be ~1 PG or less on average; no real sense it taking a
step smaller than that!

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: if score regresses, take a few more steps
Sage Weil [Thu, 5 Oct 2017 22:26:16 +0000 (17:26 -0500)]
mgr/balancer: if score regresses, take a few more steps

To avoid getting stuck in a local minima, take a few additional
steps if our score drops and see if it gets better.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: allow 5% misplaced
Sage Weil [Thu, 5 Oct 2017 22:25:19 +0000 (17:25 -0500)]
mgr/balancer: allow 5% misplaced

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: more aggressive steps
Sage Weil [Thu, 5 Oct 2017 22:25:06 +0000 (17:25 -0500)]
mgr/balancer: more aggressive steps

We are smart enough to back off if we misplace too much.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/rados/thrash/d-balancer: enable balancer in various modes
Sage Weil [Sun, 1 Oct 2017 21:00:06 +0000 (16:00 -0500)]
qa/suites/rados/thrash/d-balancer: enable balancer in various modes

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: crush-compat: phase out osd_weights
Sage Weil [Wed, 27 Sep 2017 21:05:05 +0000 (17:05 -0400)]
mgr/balancer: crush-compat: phase out osd_weights

Phase out the osd_weight values as we optimize the crush compat
weight set.  Allow a small regression in overall score if it means
we are taking a step to remove the osd_weight value.

Fix the 'osd reweightn' invocation.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: crush_compat: cope with 'out' osds
Sage Weil [Wed, 27 Sep 2017 19:12:54 +0000 (15:12 -0400)]
mgr/balancer: crush_compat: cope with 'out' osds

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: stop if we get a perfect score
Sage Weil [Wed, 27 Sep 2017 19:12:36 +0000 (15:12 -0400)]
mgr/balancer: stop if we get a perfect score

..and fix the 'worse' threshold (we're just working around floating
point imprecision; 1.01 was too coarse).

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: more dead code
Sage Weil [Wed, 27 Sep 2017 15:40:36 +0000 (11:40 -0400)]
mgr/balancer: more dead code

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: crush-compat: throttle changes based on max_misplaced
Sage Weil [Wed, 27 Sep 2017 15:27:42 +0000 (11:27 -0400)]
mgr/balancer: crush-compat: throttle changes based on max_misplaced

Take smaller steps if we overshoot max_misplaced.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: remove dead code
Sage Weil [Wed, 27 Sep 2017 15:19:30 +0000 (11:19 -0400)]
mgr/balancer: remove dead code

Signed-off-by: Sage Weil <sage@redhat.com>