]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agorgw_file: add lock protection for readdir against gc 15329/head
Gui Hecheng [Sat, 27 May 2017 02:03:59 +0000 (10:03 +0800)]
rgw_file: add lock protection for readdir against gc

The state.mtx protects state.events accessed both from readdir and gc.
Fixes: http://tracker.ceph.com/issues/20121
Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
8 years agoMerge pull request #15275 from ktdreyer/wip-17396
Josh Durgin [Thu, 25 May 2017 00:05:10 +0000 (17:05 -0700)]
Merge pull request #15275 from ktdreyer/wip-17396

docs: document "osd recovery max single start" setting

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15276 from liewegas/wip-ext4-again
Sage Weil [Wed, 24 May 2017 22:09:25 +0000 (17:09 -0500)]
Merge pull request #15276 from liewegas/wip-ext4-again

qa/suites/rados/singleton-nomsgr: fix syntax

8 years agoMerge pull request #15252 from liewegas/wip-cleanup-tell
Sage Weil [Wed, 24 May 2017 22:05:32 +0000 (17:05 -0500)]
Merge pull request #15252 from liewegas/wip-cleanup-tell

qa/tasks/ceph_manager: 'ceph $service tell ...' is obsolete

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15250 from neha-ojha/wip-19989
Sage Weil [Wed, 24 May 2017 22:04:52 +0000 (17:04 -0500)]
Merge pull request #15250 from neha-ojha/wip-19989

osd/OSDMap.cc: check if osd is out in subtree_type_is_down

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14944 from yuyuyu101/wip-msgr-throttle-ops
Sage Weil [Wed, 24 May 2017 22:03:36 +0000 (17:03 -0500)]
Merge pull request #14944 from yuyuyu101/wip-msgr-throttle-ops

ceph_osd: remove client message cap limit

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14655 from chardan/jfw-wip-halflife_atomic_t-gojira
Sage Weil [Wed, 24 May 2017 22:03:13 +0000 (17:03 -0500)]
Merge pull request #14655 from chardan/jfw-wip-halflife_atomic_t-gojira

test: migrate atomic_t to std::atomic

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11966 from aclamk/wip-linear-zeros-crc
Sage Weil [Wed, 24 May 2017 22:02:28 +0000 (17:02 -0500)]
Merge pull request #11966 from aclamk/wip-linear-zeros-crc

common: Improved CRC calculation for zero buffers

8 years agoqa/suites/rados/singleton-nomsgr/health...: whitelist wrongly marked me down 15276/head
Sage Weil [Wed, 24 May 2017 21:58:12 +0000 (17:58 -0400)]
qa/suites/rados/singleton-nomsgr/health...: whitelist wrongly marked me down

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/rados/singleton-nomsgr: fix syntax
Sage Weil [Wed, 24 May 2017 20:46:00 +0000 (16:46 -0400)]
qa/suites/rados/singleton-nomsgr: fix syntax

This parsed out as

  tasks:
  - install: null
  - ceph:
      conf:
        osd: osd max object name len = 400 osd max object namespace len = 64
  - workunit:
      clients:
        all:
        - rados/test_health_warnings.sh

which is clearly not correct.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agodocs: document "osd recovery max single start" setting 15275/head
Ken Dreyer [Wed, 24 May 2017 20:39:55 +0000 (14:39 -0600)]
docs: document "osd recovery max single start" setting

Fixes: http://tracker.ceph.com/issues/17396
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
8 years agoMerge pull request #15028 from pritha-srivastava/wip-rgw-bucket-policy-test
Matt Benjamin [Wed, 24 May 2017 19:57:31 +0000 (15:57 -0400)]
Merge pull request #15028 from pritha-srivastava/wip-rgw-bucket-policy-test

rgw: Adding code to create tenanted user for s3 bucket policy tests.

8 years agoMerge pull request #15070 from ceph/wip-turn-off-fcgi-tserlin
Matt Benjamin [Wed, 24 May 2017 19:53:57 +0000 (15:53 -0400)]
Merge pull request #15070 from ceph/wip-turn-off-fcgi-tserlin

rgw: Turn off fcgi as a frontend

8 years agoMerge pull request #15175 from cloudbau/update-rgw-docs
Sage Weil [Wed, 24 May 2017 16:38:34 +0000 (11:38 -0500)]
Merge pull request #15175 from cloudbau/update-rgw-docs

doc: Update some RGW documentation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15213 from jcsp/wip-20040
John Spray [Wed, 24 May 2017 15:50:42 +0000 (16:50 +0100)]
Merge pull request #15213 from jcsp/wip-20040

mon: fix accesing pending_fsmap from peon

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #15130 from ukernel/wip-19946
John Spray [Wed, 24 May 2017 15:49:42 +0000 (16:49 +0100)]
Merge pull request #15130 from ukernel/wip-19946

mds: fix CDir::merge() for mds_debug_auth_pins

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15105 from ukernel/wip-19892
John Spray [Wed, 24 May 2017 15:41:45 +0000 (16:41 +0100)]
Merge pull request #15105 from ukernel/wip-19892

qa/cephfs: disable mds_bal_frag for TestStrays.test_purge_queue_op_rate

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15122 from batrick/test-fragment-error
John Spray [Wed, 24 May 2017 15:40:50 +0000 (16:40 +0100)]
Merge pull request #15122 from batrick/test-fragment-error

qa: fix float parse error in test_fragment

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15106 from ukernel/wip-export-pin-cleanup
John Spray [Wed, 24 May 2017 15:37:53 +0000 (16:37 +0100)]
Merge pull request #15106 from ukernel/wip-export-pin-cleanup

ceph: simplify CInode::maybe_export_pin()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #15129 from ukernel/wip-mds-standby-for-rank
John Spray [Wed, 24 May 2017 15:37:03 +0000 (16:37 +0100)]
Merge pull request #15129 from ukernel/wip-mds-standby-for-rank

mon/MDSMonitor: respect mds_standby_for_rank config

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #15131 from ukernel/wip-19955
John Spray [Wed, 24 May 2017 15:34:50 +0000 (16:34 +0100)]
Merge pull request #15131 from ukernel/wip-19955

mds: limit client writable range increment

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15198 from renhwztetecs/renhw-wip-client-inode
John Spray [Wed, 24 May 2017 15:13:53 +0000 (16:13 +0100)]
Merge pull request #15198 from renhwztetecs/renhw-wip-client-inode

client/inode: fix the dump type of Inode::dump()

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #15264 from xiexingguo/wip-kill-typo
Sage Weil [Wed, 24 May 2017 13:43:35 +0000 (08:43 -0500)]
Merge pull request #15264 from xiexingguo/wip-kill-typo

os/bluestore/KernelDevice: fix comments

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15266 from ztczll/master
Jos Collin [Wed, 24 May 2017 10:41:48 +0000 (16:11 +0530)]
Merge pull request #15266 from ztczll/master

test:Check make_writeable() return value

8 years agotest/:Check make_writeable return value 15266/head
zhanglei [Wed, 24 May 2017 09:22:02 +0000 (05:22 -0400)]
test/:Check make_writeable return value

Signed-off-by: zhanglei <243290414@qq.com>
8 years agoos/bluestore/KernelDevice: fix comments 15264/head
xie xingguo [Wed, 24 May 2017 02:45:29 +0000 (10:45 +0800)]
os/bluestore/KernelDevice: fix comments

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #15206 from ifed01/wip-fix-rbd-bench
Mykola Golub [Wed, 24 May 2017 06:57:02 +0000 (09:57 +0300)]
Merge pull request #15206 from ifed01/wip-fix-rbd-bench

rbd/bench: fix write gaps when doing sequential writes with io-threads > 1

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #15238 from xiexingguo/wip-fix-blue-mkfs
Sage Weil [Wed, 24 May 2017 03:08:49 +0000 (22:08 -0500)]
Merge pull request #15238 from xiexingguo/wip-fix-blue-mkfs

os/bluestore: write "mkfs_done" into disk only if we pass fsck() tests

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15228 from chardan/jfw-wip-halflife_atomic_t-filestore
Sage Weil [Wed, 24 May 2017 03:08:32 +0000 (22:08 -0500)]
Merge pull request #15228 from chardan/jfw-wip-halflife_atomic_t-filestore

filestore: migrate atomic_t to std::atomic<>

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/ceph_manager: 'ceph $service tell ...' is obsolete 15252/head
Sage Weil [Wed, 24 May 2017 02:53:34 +0000 (22:53 -0400)]
qa/tasks/ceph_manager: 'ceph $service tell ...' is obsolete

This died forever ago; no need for the fallback here.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #9307 from cxwshawn/wip-tc7-fix
Sage Weil [Wed, 24 May 2017 02:49:46 +0000 (21:49 -0500)]
Merge pull request #9307 from cxwshawn/wip-tc7-fix

crush: optimize header file dependency

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14035 from liewegas/wip-bluestore-kv-finisher
Sage Weil [Wed, 24 May 2017 02:49:22 +0000 (21:49 -0500)]
Merge pull request #14035 from liewegas/wip-bluestore-kv-finisher

os/bluestore: separate kv_sync_thread into two parts

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
8 years agoMerge pull request #14176 from LiumxNL/wip-170321
Sage Weil [Wed, 24 May 2017 02:48:53 +0000 (21:48 -0500)]
Merge pull request #14176 from LiumxNL/wip-170321

mon: show io status quickly if no update in a long period

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15169 from joscollin/wip-cleanup-redundant-headers-2
Sage Weil [Wed, 24 May 2017 02:48:28 +0000 (21:48 -0500)]
Merge pull request #15169 from joscollin/wip-cleanup-redundant-headers-2

common: Remove redundant includes - 2

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #15177 from liewegas/wip-bluestore-nonexperimental
Sage Weil [Wed, 24 May 2017 02:48:06 +0000 (21:48 -0500)]
Merge pull request #15177 from liewegas/wip-bluestore-nonexperimental

os: remove experimental status for BlueStore

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #15244 from liewegas/wip-crush-features
Sage Weil [Wed, 24 May 2017 02:47:51 +0000 (21:47 -0500)]
Merge pull request #15244 from liewegas/wip-crush-features

crush/CrushWrapper: fix has_incompat_choose_args()

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15245 from liewegas/wip-20058
Sage Weil [Wed, 24 May 2017 02:47:13 +0000 (21:47 -0500)]
Merge pull request #15245 from liewegas/wip-20058

qa/suites/rados/*/at-end: wait for healthy before scrubbing

8 years agoMerge pull request #15190 from tchaikov/wip-ceph-term-width
Dan Mick [Tue, 23 May 2017 23:38:52 +0000 (16:38 -0700)]
Merge pull request #15190 from tchaikov/wip-ceph-term-width

ceph.in: adjust usage width according to user's tty

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoosd/OSDMap.cc: check if osd is out in subtree_type_is_down 15250/head
Neha Ojha [Tue, 23 May 2017 22:35:16 +0000 (15:35 -0700)]
osd/OSDMap.cc: check if osd is out in subtree_type_is_down

Signed-off-by: Neha Ojha <nojha@redhat.com>
8 years agoMerge pull request #15246 from linuxbox2/wip-unlink-safe
Matt Benjamin [Tue, 23 May 2017 20:47:57 +0000 (16:47 -0400)]
Merge pull request #15246 from linuxbox2/wip-unlink-safe

rgw_file: release rgw_fh lock and ref on ENOTEMPTY

8 years agoMerge pull request #15202 from liewegas/wip-19935
Sage Weil [Tue, 23 May 2017 20:37:08 +0000 (15:37 -0500)]
Merge pull request #15202 from liewegas/wip-19935

qa/suites/rados: temporarily remove scrub_test from basic/ until post-luminous

8 years agoMerge pull request #15207 from liewegas/wip-20043
Sage Weil [Tue, 23 May 2017 20:36:50 +0000 (15:36 -0500)]
Merge pull request #15207 from liewegas/wip-20043

qa/suites/rados/singleton-nomsg/health-warnings: behave on ext4

8 years agoMerge pull request #15092 from yuyuyu101/wip-msgr-writelock
Yuri Weinstein [Tue, 23 May 2017 20:36:37 +0000 (13:36 -0700)]
Merge pull request #15092 from yuyuyu101/wip-msgr-writelock

msg/async: reduce write_lock contention

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15172 from badone/wip-erasure-code-optimize-header-file-dependency
Yuri Weinstein [Tue, 23 May 2017 20:35:22 +0000 (13:35 -0700)]
Merge pull request #15172 from badone/wip-erasure-code-optimize-header-file-dependency

erasure-code: optimize header file dependency

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15187 from badone/wip-compressor-optimize-header-file-dependency
Yuri Weinstein [Tue, 23 May 2017 20:34:53 +0000 (13:34 -0700)]
Merge pull request #15187 from badone/wip-compressor-optimize-header-file-dependency

compressor: optimize header file dependency

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15201 from liewegas/wip-19990
Yuri Weinstein [Tue, 23 May 2017 20:33:23 +0000 (13:33 -0700)]
Merge pull request #15201 from liewegas/wip-19990

qa/workunits/rados/test_health_warning: misc fixes

Reviewed-by: Neha Ojha <nojha@redhat.com>
8 years agoMerge pull request #15098 from cbodley/wip-rgw-default-frontend
Casey Bodley [Tue, 23 May 2017 20:18:34 +0000 (16:18 -0400)]
Merge pull request #15098 from cbodley/wip-rgw-default-frontend

rgw: remove fastcgi from default rgw frontends

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorgw_file: release rgw_fh lock and ref on ENOTEMPTY 15246/head
Matt Benjamin [Tue, 23 May 2017 19:05:45 +0000 (15:05 -0400)]
rgw_file: release rgw_fh lock and ref on ENOTEMPTY

An early return in new unlink bucket num_entries check was
missing a conditional unlock and unref.

Fixes: http://tracker.ceph.com/issues/20061
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #15216 from linuxbox2/wip-rgw-file-unlink
Casey Bodley [Tue, 23 May 2017 18:29:28 +0000 (14:29 -0400)]
Merge pull request #15216 from linuxbox2/wip-rgw-file-unlink

rgw_file:  remove post-unlink lookup check

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15179 from liewegas/wip-fix-osd-health
Sage Weil [Tue, 23 May 2017 18:16:21 +0000 (13:16 -0500)]
Merge pull request #15179 from liewegas/wip-fix-osd-health

mon: fix a few bugs with the osd health reporting

Reviewed-by: Neha Ojha <nojha@redhat.com>
8 years agoMerge pull request #15188 from ShiqiCooperation/master
Sage Weil [Tue, 23 May 2017 18:15:43 +0000 (13:15 -0500)]
Merge pull request #15188 from ShiqiCooperation/master

mon: delete useless function definition

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15204 from joscollin/wip-cleanup-redundant-headers-3
Sage Weil [Tue, 23 May 2017 18:15:22 +0000 (13:15 -0500)]
Merge pull request #15204 from joscollin/wip-cleanup-redundant-headers-3

common: Remove redundant includes - 3

8 years agoqa/suites/rados/*/at-end: wait for healthy before scrubbing 15245/head
Sage Weil [Tue, 23 May 2017 18:10:54 +0000 (14:10 -0400)]
qa/suites/rados/*/at-end: wait for healthy before scrubbing

The scrub_pgs command also waits for healthy for a while, but fails
silently if it times out, which means the subsequent scrubs will also
fail to clean up.

This forces an earlier failure that does not obscure the root cause.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14389 from mingshuaiwang/master
Casey Bodley [Tue, 23 May 2017 17:54:56 +0000 (13:54 -0400)]
Merge pull request #14389 from mingshuaiwang/master

rgw: segment fault when shard id out of range

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12774 from shashalu/gc-list
Casey Bodley [Tue, 23 May 2017 17:52:58 +0000 (13:52 -0400)]
Merge pull request #12774 from shashalu/gc-list

rgw: fix 'gc list --include-all' command infinite loop the first items

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agocrush/CrushWrapper: fix has_incompat_choose_args() 15244/head
Sage Weil [Tue, 23 May 2017 17:50:06 +0000 (13:50 -0400)]
crush/CrushWrapper: fix has_incompat_choose_args()

Special case empty and return false.  Otherwise the rest of the method
will dereference an invalid iterator on an empty choose_args
map.

Fixes broken fix in b1e4295570b6af4d844cf3ec55d77f5c287b29e6.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15242 from liupan1111/wip-fix-msg
Haomai Wang [Tue, 23 May 2017 16:14:03 +0000 (00:14 +0800)]
Merge pull request #15242 from liupan1111/wip-fix-msg

msg/async: Lower down the AsyncMessenger's standby warning from debug

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #15218 from liewegas/wip-crush-features
Sage Weil [Tue, 23 May 2017 16:06:56 +0000 (11:06 -0500)]
Merge pull request #15218 from liewegas/wip-crush-features

crush/CrushWrapper: fix has_incompat_choose_args

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agomsg/async: Lower down the AsyncMessenger's standby warning from debug 15242/head
Pan Liu [Tue, 23 May 2017 15:15:14 +0000 (23:15 +0800)]
msg/async: Lower down the AsyncMessenger's standby warning from debug
level 0 to 10.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
8 years agoos/bluestore: save "mkfs_done" only if we pass fsck() tests 15238/head
xie xingguo [Tue, 23 May 2017 14:00:35 +0000 (22:00 +0800)]
os/bluestore: save "mkfs_done" only if we pass fsck() tests

In our local test bed, we found mkfs() sometimes can fail
due to errors discovered by fsck(), and is therefore unrecoverable
by redoing mkfs() as the "mkfs_done" flag has been successfully saved into disk.

This patch fixes the above case.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #14610 from jcsp/wip-17980
John Spray [Tue, 23 May 2017 13:57:01 +0000 (14:57 +0100)]
Merge pull request #14610 from jcsp/wip-17980

#17980: MDS client blacklisting and blacklist on eviction

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agorbd/bench: fixes write gaps when doing sequential writes with io-threads > 1 15206/head
Igor Fedotov [Mon, 22 May 2017 15:19:25 +0000 (08:19 -0700)]
rbd/bench: fixes write gaps when doing sequential writes with io-threads > 1

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
Signed-off-by: Mykola Golub mgolub@mirantis.com
8 years agoMerge pull request #14550 from ukernel/wip-multimds-misc
John Spray [Tue, 23 May 2017 12:14:43 +0000 (13:14 +0100)]
Merge pull request #14550 from ukernel/wip-multimds-misc

mds: miscellaneous multimds fixes

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoqa: refine assert_session_count (don't count killing) 14610/head
John Spray [Mon, 22 May 2017 23:04:05 +0000 (19:04 -0400)]
qa: refine assert_session_count (don't count killing)

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: update TestVolumeClient for new blacklisting
John Spray [Thu, 18 May 2017 12:59:43 +0000 (08:59 -0400)]
qa: update TestVolumeClient for new blacklisting

Blacklisted clients will now proactively fail
outstanding operations, rather than blocking.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: clean up whitespace in test_misc.py
John Spray [Thu, 18 May 2017 08:18:23 +0000 (04:18 -0400)]
qa: clean up whitespace in test_misc.py

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: remove outdated TODO in TestVolumeClient
John Spray [Thu, 18 May 2017 08:17:15 +0000 (04:17 -0400)]
qa: remove outdated TODO in TestVolumeClient

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: log whitelist for eviction messages
John Spray [Tue, 16 May 2017 16:01:49 +0000 (12:01 -0400)]
qa: log whitelist for eviction messages

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: improve eviction usability and update docs
John Spray [Mon, 24 Apr 2017 21:19:43 +0000 (17:19 -0400)]
mds: improve eviction usability and update docs

The "session ls" and "session evict" are now
"client ls" and "client evict" (the old ones
are still there for backwards compatibility).

The automatic client eviction now emits
cluster logs that call the client by its
friendly name (usually the hostname).

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: tidy up 'kill_session' naming
John Spray [Tue, 18 Apr 2017 20:34:47 +0000 (16:34 -0400)]
mds: tidy up 'kill_session' naming

We had two kill_sessions.  Leave Server::kill_session (the
one that actually operates on MDS sessions only), and rename
the MDSRank one to evict_client, because it does more than
just kill the MDS session.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: add test_filelock_eviction
John Spray [Tue, 21 Mar 2017 14:38:47 +0000 (10:38 -0400)]
qa: add test_filelock_eviction

To check that eviction is releasing flocks.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: hook up autoclose to blacklisting eviction
John Spray [Thu, 16 Mar 2017 16:37:18 +0000 (16:37 +0000)]
mds: hook up autoclose to blacklisting eviction

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: make blacklisting configurable in kill_session
John Spray [Wed, 15 Mar 2017 19:48:25 +0000 (19:48 +0000)]
mds: make blacklisting configurable in kill_session

This makes the code a bit awkward because we now have
4x paths through this function (blocking, noblocking, blacklisting,
nonblacklisting).

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoclient: fix unmounting while blacklisted
John Spray [Thu, 23 Feb 2017 23:23:11 +0000 (23:23 +0000)]
client: fix unmounting while blacklisted

Previously, if you ever made it as far as ~Client
with any inodes in your cache, you'd hit the ObjectCacher
is_locked_by_me assertion during release_set on those inode's osets.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoclient: detect blacklisting of myself
John Spray [Thu, 23 Feb 2017 17:46:16 +0000 (17:46 +0000)]
client: detect blacklisting of myself

EIO all operations when this happens, and do a cut-down
unmount() so that once the user has noticed his mount
is broken, he can unmount it without getting stuck
waiting for flushes/caps/sessions.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: update osd epoch barrier when handling blacklist
John Spray [Thu, 23 Feb 2017 16:20:59 +0000 (16:20 +0000)]
mds: update osd epoch barrier when handling blacklist

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: update osdmap epoch barrier on eviction
John Spray [Thu, 23 Feb 2017 16:04:20 +0000 (16:04 +0000)]
mds: update osdmap epoch barrier on eviction

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: blacklist clients on eviction
John Spray [Thu, 23 Feb 2017 11:31:18 +0000 (11:31 +0000)]
mds: blacklist clients on eviction

Fixes: http://tracker.ceph.com/issues/9754
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomon: permit MDS daemons to do blacklisting
John Spray [Thu, 23 Feb 2017 11:30:34 +0000 (11:30 +0000)]
mon: permit MDS daemons to do blacklisting

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: remove stale comment
John Spray [Thu, 23 Feb 2017 10:23:28 +0000 (10:23 +0000)]
mds: remove stale comment

The code the comment is talking about went
away in 2490a0a1e.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: apply OSDMap blacklist to CephFS clients
John Spray [Thu, 16 Feb 2017 17:21:18 +0000 (17:21 +0000)]
mds: apply OSDMap blacklist to CephFS clients

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosd/OSDMap: std::set version of get_blacklist
John Spray [Thu, 16 Feb 2017 17:20:48 +0000 (17:20 +0000)]
osd/OSDMap: std::set version of get_blacklist

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc: expose new blacklist entries from Objecter
John Spray [Thu, 16 Feb 2017 14:48:50 +0000 (14:48 +0000)]
osdc: expose new blacklist entries from Objecter

For the MDS which needs to know about new blacklist entries
in order to evict corresponding MDS sessions.

Fixes: http://tracker.ceph.com/issues/17980
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agofilestore: migrate atomic_t to std::atomic<> 15228/head
Jesse Williamson [Tue, 2 May 2017 15:00:24 +0000 (08:00 -0700)]
filestore: migrate atomic_t to std::atomic<>

Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
8 years agoMerge pull request #15220 from joscollin/wip-cleanup-rados-typo
Jos Collin [Tue, 23 May 2017 05:20:27 +0000 (10:50 +0530)]
Merge pull request #15220 from joscollin/wip-cleanup-rados-typo

include/rados: Fix typo in rados_ioctx_cct() doc

8 years agoinclude/rados: Fix typo in rados_ioctx_cct() doc 15220/head
Jos Collin [Tue, 23 May 2017 04:03:12 +0000 (09:33 +0530)]
include/rados: Fix typo in rados_ioctx_cct() doc

This fixes PR#15077.

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoceph.in: adjust usage width according to user's tty 15190/head
Kefu Chai [Sun, 21 May 2017 17:24:32 +0000 (01:24 +0800)]
ceph.in: adjust usage width according to user's tty

fixed a pep8 warning also

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agopybind/ceph_daemon.py: move _gettermsize() into Termsize
Kefu Chai [Tue, 23 May 2017 03:28:10 +0000 (11:28 +0800)]
pybind/ceph_daemon.py: move _gettermsize() into Termsize

as the latter is the only consumer of _gettermsize(). and a little bit
refactor to improve the readability and be more pep8 compliant.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocrush/CrushWrapper: fix has_incompat_choose_args 15218/head
Sage Weil [Tue, 23 May 2017 02:51:18 +0000 (22:51 -0400)]
crush/CrushWrapper: fix has_incompat_choose_args

If the map has *no* choose_args it does not have incompat choose args.
This makes the OSDMap::get_features() check

  if (crush->has_incompat_choose_args())
    features |= CEPH_FEATURE_CRUSH_CHOOSE_ARGS;

happier.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorgw_file: remove post-unlink lookup check 15216/head
Matt Benjamin [Mon, 22 May 2017 21:37:11 +0000 (17:37 -0400)]
rgw_file:  remove post-unlink lookup check

This could induce asserts in multi-nfs-gateway scenarios.

Fixes: http://tracker.ceph.com/issues/20047
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #15210 from linuxbox2/wip-rgw-rmbuck
Matt Benjamin [Tue, 23 May 2017 00:40:09 +0000 (20:40 -0400)]
Merge pull request #15210 from linuxbox2/wip-rgw-rmbuck

rgw_file: remove hidden uxattr objects from buckets on delete

8 years agorgw_file: remove hidden uxattr objects from buckets on delete 15210/head
Matt Benjamin [Mon, 22 May 2017 18:51:19 +0000 (14:51 -0400)]
rgw_file: remove hidden uxattr objects from buckets on delete

If a setattr (e.g., chown) has been performed on a bucket, then like
any directory it has a hidden object storing its attributes. This must
be deleted before attempting bucket delete, otherwise, actually empty
buckets will not be removable via NFS.

Fixes: http://tracker.ceph.com/issues/20045
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agomon: fix accesing pending_fsmap from peon 15213/head
John Spray [Mon, 22 May 2017 21:11:53 +0000 (17:11 -0400)]
mon: fix accesing pending_fsmap from peon

Fixes: http://tracker.ceph.com/issues/20040
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15195 from theanalyst/doc/12.0.3-typo-fix
Sage Weil [Mon, 22 May 2017 17:46:43 +0000 (12:46 -0500)]
Merge pull request #15195 from theanalyst/doc/12.0.3-typo-fix

doc: fixing an error in 12.0.3 release notes

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
8 years agocommon: Remove redundant includes 15169/head
Jos Collin [Fri, 19 May 2017 04:17:32 +0000 (09:47 +0530)]
common: Remove redundant includes

Fixes: http://tracker.ceph.com/issues/19883 (Partially)
Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoMerge pull request #15186 from adamemerson/wip-clangtastic-mr-clocks
Adam C. Emerson [Mon, 22 May 2017 17:14:06 +0000 (13:14 -0400)]
Merge pull request #15186 from adamemerson/wip-clangtastic-mr-clocks

rgw: Remove pessimizing move
common: Forward-declare container I/O overloads

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoqa/suites/rados/singleton-nomsg/health-warnings: behave on ext4 15207/head
Sage Weil [Mon, 22 May 2017 16:53:51 +0000 (12:53 -0400)]
qa/suites/rados/singleton-nomsg/health-warnings: behave on ext4

We may land on an ext4 root partition.

Fixes: http://tracker.ceph.com/issues/20043
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12861 from theanalyst/wip-absolute-urls
Yehuda Sadeh [Mon, 22 May 2017 16:30:53 +0000 (09:30 -0700)]
Merge pull request #12861 from theanalyst/wip-absolute-urls

rgw: pass authentication domain to civetweb

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #15150 from ovh/bp-doc-perf-histograms
Sage Weil [Mon, 22 May 2017 15:59:22 +0000 (10:59 -0500)]
Merge pull request #15150 from ovh/bp-doc-perf-histograms

doc: document perf historgrams

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agodoc: document perf historgrams 15150/head
Piotr Dałek [Mon, 22 May 2017 15:50:08 +0000 (15:50 +0000)]
doc: document perf historgrams

Documentation for perf histograms schema and dump.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>