]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoosd: reduce size of osdmap cache, messages 15292/head
Sage Weil [Thu, 25 May 2017 19:27:32 +0000 (15:27 -0400)]
osd: reduce size of osdmap cache, messages

On large clusters, these large caches can be problematic (as maps get big).
We've seen good results with extremely small caches (10s of maps).  Make
a more modest reduction.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotest/osd/osd-config.sh: fix test to isolate cases
Sage Weil [Fri, 26 May 2017 03:12:26 +0000 (23:12 -0400)]
test/osd/osd-config.sh: fix test to isolate cases

The third test (increasing osd_map_max_advance)
was triggering a warning from the 4th case (which
it didn't before).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: fadvise hint WILL_NEED when reading encoded osdmaps
Sage Weil [Thu, 25 May 2017 19:42:39 +0000 (15:42 -0400)]
osd: fadvise hint WILL_NEED when reading encoded osdmaps

This way will ensure we cache data for recent osdmaps if we need to for
the benefit of laggy clients... even if (in bluestore's case)
bluestore_default_buffered_reads = false (it's true by default).  This
should mitigate any tail latency/work even if the osdmap cache size is too
small.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: instrument osdmap bl cache hits and misses
Sage Weil [Thu, 25 May 2017 19:41:04 +0000 (15:41 -0400)]
osd: instrument osdmap bl cache hits and misses

Add perfcounters so we can see whether we are missing osdmaps in the
cache.  This will let us tell whether, given a workload or environment,
our osdmap cache might be too small.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: do not bother with misdirected op diagnosis by default
Sage Weil [Thu, 25 May 2017 19:31:33 +0000 (15:31 -0400)]
osd: do not bother with misdirected op diagnosis by default

We enable osd_debug_misdirected_ops in QA, but this is wasted effort on
a production cluster.  In particular, it means that a idle client that
sends an op to the wrong OSD based on an old map will require that OSD to
load that old map into memory to decide whether to print a warning... all
on the off-chance that the client is buggy.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: remove osd_enxio_on_misdirected_op option
Sage Weil [Thu, 25 May 2017 19:29:20 +0000 (15:29 -0400)]
osd: remove osd_enxio_on_misdirected_op option

There is no good reason anyone would want this turned on.

Introduced 923e7f5ce5ed437af15e178299a61029ff48e4a2 (post-kraken), but
backported to kraken and jewel (10.2.6).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15146 from tchaikov/wip-split-test-tiering
Yuri Weinstein [Thu, 25 May 2017 20:43:53 +0000 (13:43 -0700)]
Merge pull request #15146 from tchaikov/wip-split-test-tiering

qa: split test_tiering into smaller pieces

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15156 from tchaikov/wip-ceph.in-assert-connected
Yuri Weinstein [Thu, 25 May 2017 20:43:17 +0000 (13:43 -0700)]
Merge pull request #15156 from tchaikov/wip-ceph.in-assert-connected

ceph.in: assert(state==connected) before help_for_target()

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15224 from tchaikov/wip-denc-no-deep-copy-for-segmented-buffer
Yuri Weinstein [Thu, 25 May 2017 20:40:23 +0000 (13:40 -0700)]
Merge pull request #15224 from tchaikov/wip-denc-no-deep-copy-for-segmented-buffer

denc: add need_contiguous to denc_traits

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15062 from ukernel/wip-19912
John Spray [Thu, 25 May 2017 17:44:54 +0000 (18:44 +0100)]
Merge pull request #15062 from ukernel/wip-19912

qa/tasks/cephfs: use getattr to guarantee inode is in client cache

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15270 from ceph/wip-subman-cron-attr-tserlin
Ken Dreyer [Thu, 25 May 2017 17:43:09 +0000 (11:43 -0600)]
Merge pull request #15270 from ceph/wip-subman-cron-attr-tserlin

Set subman cron attributes in spec file

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
8 years agoMerge pull request #15253 from tchaikov/wip-ceph-daemon-termsize
Dan Mick [Thu, 25 May 2017 17:09:14 +0000 (10:09 -0700)]
Merge pull request #15253 from tchaikov/wip-ceph-daemon-termsize

pybind/ceph_daemon.py: fix Termsize.update

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoMerge pull request #15279 from joscollin/wip-cleanup-rename-filejournal-object
Jos Collin [Thu, 25 May 2017 15:57:40 +0000 (21:27 +0530)]
Merge pull request #15279 from joscollin/wip-cleanup-rename-filejournal-object

test: Rename FileJournal object to distinguish

8 years agoSet subman cron attributes in spec file 15270/head
Thomas Serlin [Wed, 24 May 2017 16:07:41 +0000 (12:07 -0400)]
Set subman cron attributes in spec file

Fixes: http://tracker.ceph.com/issues/20074
Signed-off-by: Thomas Serlin <tserlin@redhat.com>
8 years agoMerge pull request #15200 from smithfarm/wip-rdma-devel
Nathan Cutler [Thu, 25 May 2017 09:18:29 +0000 (11:18 +0200)]
Merge pull request #15200 from smithfarm/wip-rdma-devel

build/ops: rpm: move RDMA and python-prettytables build dependencies to distro-conditional section

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
8 years agotest: Rename FileJournal object to distinguish 15279/head
Jos Collin [Thu, 25 May 2017 06:36:10 +0000 (12:06 +0530)]
test: Rename FileJournal object to distinguish

Renamed FileJournal object for easier searching and identifying with in test_filejournal.cc

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoMerge pull request #15258 from big-henry/wip-mds-misc-fix
Jos Collin [Thu, 25 May 2017 03:59:33 +0000 (09:29 +0530)]
Merge pull request #15258 from big-henry/wip-mds-misc-fix

mds: fix client ID truncation

8 years agoMerge pull request #15235 from smithfarm/wip-doc-empowers
Nathan Cutler [Thu, 25 May 2017 01:32:30 +0000 (03:32 +0200)]
Merge pull request #15235 from smithfarm/wip-doc-empowers

doc: fix factual inaccuracy in doc/architecture.rst

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.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 agopybind/ceph_daemon.py: fix Termsize.update 15253/head
Kefu Chai [Wed, 24 May 2017 04:12:53 +0000 (12:12 +0800)]
pybind/ceph_daemon.py: fix Termsize.update

it's a regression introduced by 84f9c12

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agodenc: add need_contiguous to denc_traits 15224/head
Kefu Chai [Tue, 23 May 2017 07:28:23 +0000 (15:28 +0800)]
denc: add need_contiguous to denc_traits

so the decode() will not try to copy the bufferlist for a continous one
if the bufferlist is segmented *and* its length is greater than
CEPH_PAGE_SIZE (4K) if the decoded object does not "need_contiguous" per
its denc_traits<>.

copying a memory chunk could be expensive if the decoded bufferlist is
huge, so we should try to avoid this. this could happen when we read the
buffer from bluestore.

and drop the partial specialization for denc() which tries to differentiate
traits::featured and !traits::featured, it does not matter to
decode() if the type supports feature or not. the encode() does.

also use denc() in interval_set<>::decode(). unlike encode(), decode(),
encode_nohead() or decode_nohead(), denc() is not part of our legacy
dencoder, so i think it's fine and encouraged to use it.

Signed-off-by: Kefu Chai <kchai@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 agoinclude/denc: templatize denc() for integer types
Kefu Chai [Mon, 22 May 2017 06:15:36 +0000 (14:15 +0800)]
include/denc: templatize denc() for integer types

Signed-off-by: Kefu Chai <kchai@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 agodoc: doc/architecture.rst: unify initial caps in term Ceph Monitor 15235/head
Nathan Cutler [Tue, 23 May 2017 14:27:08 +0000 (16:27 +0200)]
doc: doc/architecture.rst: unify initial caps in term Ceph Monitor

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agodoc: fix factual inaccuracy in doc/architecture.rst
Nathan Cutler [Tue, 23 May 2017 10:27:32 +0000 (12:27 +0200)]
doc: fix factual inaccuracy in doc/architecture.rst

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Nathan Cutler <ncutler@suse.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>