]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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 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 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 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 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 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 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 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 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>
8 years agorgw: Remove pessimizing move 15186/head
Adam C. Emerson [Sat, 20 May 2017 00:49:24 +0000 (20:49 -0400)]
rgw: Remove pessimizing move

Do not std::move values from returned functions.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agocommon: Forward-declare container I/O overloads
Adam C. Emerson [Sat, 20 May 2017 16:10:15 +0000 (12:10 -0400)]
common: Forward-declare container I/O overloads

This will allow strict ADL to find the right overload in the case of a
container of containers and unbreak compilation with Clang.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agoMerge pull request #15162 from dillaman/wip-19970
Mykola Golub [Mon, 22 May 2017 12:50:57 +0000 (15:50 +0300)]
Merge pull request #15162 from dillaman/wip-19970

librbd: reduce potential of erroneous blacklisting on image close

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agodoc: fixing an error in 12.0.3 release notes 15195/head
Abhishek Lekshmanan [Mon, 22 May 2017 08:42:19 +0000 (10:42 +0200)]
doc: fixing an error in 12.0.3 release notes

Thanks @smithfarm for pointing this out

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #15191 from Linbing/modify-note-word-error
Jos Collin [Mon, 22 May 2017 02:00:43 +0000 (07:30 +0530)]
Merge pull request #15191 from Linbing/modify-note-word-error

mon: Fixed typo in @post of _active()

8 years agoNote word error of _active(), take iif with if 15191/head
linbing [Mon, 22 May 2017 00:32:28 +0000 (08:32 +0800)]
Note word error of _active(), take iif with if

Signed-off-by: Linbing <hawkerous@gmail.com>
8 years agoMerge pull request #15181 from tchaikov/wip-cxx1z-size
Kefu Chai [Sat, 20 May 2017 01:53:45 +0000 (09:53 +0800)]
Merge pull request #15181 from tchaikov/wip-cxx1z-size

common: add ceph::size()

Reviewed-By: Adam C. Emerson <aemerson@redhat.com>
8 years agoMerge pull request #14946 from dmick/wip-mgr-dashboard
Sage Weil [Fri, 19 May 2017 21:59:59 +0000 (16:59 -0500)]
Merge pull request #14946 from dmick/wip-mgr-dashboard

mgr: dashboard GUI module

8 years agoMerge pull request #14994 from theanalyst/f/tier-fix
Casey Bodley [Fri, 19 May 2017 21:58:46 +0000 (17:58 -0400)]
Merge pull request #14994 from theanalyst/f/tier-fix

rgw_rados: create sync module instances only if run_sync_thread is set

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agotest: add mgr/ and smoke test for mgr dashboard 14946/head
Dan Mick [Thu, 18 May 2017 04:52:31 +0000 (21:52 -0700)]
test: add mgr/ and smoke test for mgr dashboard

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agorgw_rados: create sync module instances only if run_sync_thread is set 14994/head
Abhishek Lekshmanan [Mon, 8 May 2017 11:38:32 +0000 (13:38 +0200)]
rgw_rados: create sync module instances only if run_sync_thread is set

This allows for radosgw-admin to run even if there was a
misconfiguration in setting tier types which would otherwise make it
difficult to revert an invalid tier type setting. Since sync modules are
necessary only for rgw and not for the admin itself, this allows for
invalid tier configurations to be corrected as rgw-admin wouldn't fail

Fixes: http://tracker.ceph.com/issues/19830
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #15153 from zhangsw/optimize-torrent
Casey Bodley [Fri, 19 May 2017 19:03:06 +0000 (15:03 -0400)]
Merge pull request #15153 from zhangsw/optimize-torrent

rgw: optimize generating torrent file. Object data won't stay in memory  now.

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
8 years agoMerge pull request #15001 from chardan/jfw-wip-halflife_atomic_t-kamakuras
Casey Bodley [Fri, 19 May 2017 19:02:14 +0000 (15:02 -0400)]
Merge pull request #15001 from chardan/jfw-wip-halflife_atomic_t-kamakuras

rgw: migrate atomic_t to std::atomic<>

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14827 from liuyuhong66/rgw-swift-auth-improve
Casey Bodley [Fri, 19 May 2017 19:01:11 +0000 (15:01 -0400)]
Merge pull request #14827 from liuyuhong66/rgw-swift-auth-improve

rgw/rgw_swift_auth.cc: using string::back() instead as the C++11 recommend

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15025 from mikulely/jiaying-fix-lc-list
Casey Bodley [Fri, 19 May 2017 18:58:25 +0000 (14:58 -0400)]
Merge pull request #15025 from mikulely/jiaying-fix-lc-list

rgw: fix lc list failure when shards not be all created

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12300 from idealguo/rename-s3_code
Casey Bodley [Fri, 19 May 2017 18:57:26 +0000 (14:57 -0400)]
Merge pull request #12300 from idealguo/rename-s3_code

rgw: rename s3_code to err_code for swift

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15045 from shashalu/fix-slo
Casey Bodley [Fri, 19 May 2017 18:56:53 +0000 (14:56 -0400)]
Merge pull request #15045 from shashalu/fix-slo

rgw: fix X-Object-Meta-Static-Large-Object in SLO download

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14800 from theanalyst/doc/release-notes/sse-c-correction
Sage Weil [Fri, 19 May 2017 18:54:09 +0000 (13:54 -0500)]
Merge pull request #14800 from theanalyst/doc/release-notes/sse-c-correction

doc: release-notes clarify about rgw encryption

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14922 from ukernel/wip-kcephfs-whitelist
Sage Weil [Fri, 19 May 2017 18:41:20 +0000 (13:41 -0500)]
Merge pull request #14922 from ukernel/wip-kcephfs-whitelist

qa: update log whitelists for kcephfs suite

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #14941 from wjwithagen/wip-wjw-freebsd-doc-manual-install
Sage Weil [Fri, 19 May 2017 18:40:10 +0000 (13:40 -0500)]
Merge pull request #14941 from wjwithagen/wip-wjw-freebsd-doc-manual-install

doc: add FreeBSD manual install

8 years agoMerge pull request #14988 from ShiqiCooperation/master
Sage Weil [Fri, 19 May 2017 18:33:49 +0000 (13:33 -0500)]
Merge pull request #14988 from ShiqiCooperation/master

test/unittest_bluefs: check whether mounted success

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14688 from cbodley/wip-rgw-multi-suite
Casey Bodley [Fri, 19 May 2017 18:30:57 +0000 (14:30 -0400)]
Merge pull request #14688 from cbodley/wip-rgw-multi-suite

qa/rgw: add multisite suite to configure and run multisite tests

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #15071 from cbodley/wip-qa-dnsmasq
Sage Weil [Fri, 19 May 2017 18:25:12 +0000 (13:25 -0500)]
Merge pull request #15071 from cbodley/wip-qa-dnsmasq

qa: add task for dnsmasq configuration

Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
8 years agoMerge pull request #15090 from theanalyst/release/v12.0.3/notes
Sage Weil [Fri, 19 May 2017 18:21:58 +0000 (13:21 -0500)]
Merge pull request #15090 from theanalyst/release/v12.0.3/notes

doc: release notes for v12.0.3 (dev)

8 years agoMerge pull request #15133 from cbodley/wip-doc-rgw-remove-fcgi
Sage Weil [Fri, 19 May 2017 18:13:24 +0000 (13:13 -0500)]
Merge pull request #15133 from cbodley/wip-doc-rgw-remove-fcgi

doc/rgw: remove fastcgi page and sample configs

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15144 from drunkard/master
Sage Weil [Fri, 19 May 2017 18:03:45 +0000 (13:03 -0500)]
Merge pull request #15144 from drunkard/master

doc: typo fixes on hyperlink/words

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15161 from dzafman/wip-test-fix
Sage Weil [Fri, 19 May 2017 18:00:20 +0000 (13:00 -0500)]
Merge pull request #15161 from dzafman/wip-test-fix

test: Test fix for SnapSet change

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocommon: add ceph::size() 15181/head
Kefu Chai [Fri, 19 May 2017 16:38:51 +0000 (00:38 +0800)]
common: add ceph::size()

backport from C++17

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15147 from bassam/pr-speedup-ccache
Yuri Weinstein [Fri, 19 May 2017 16:33:24 +0000 (09:33 -0700)]
Merge pull request #15147 from bassam/pr-speedup-ccache

cmake: improved build speed by 5x when using ccache

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15158 from liewegas/wip-mgr-dump
Yuri Weinstein [Fri, 19 May 2017 16:33:03 +0000 (09:33 -0700)]
Merge pull request #15158 from liewegas/wip-mgr-dump

mon/MgrMonitor: add 'mgr dump [epoch]' command

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15159 from LiumxNL/fix-ping-monitor
Yuri Weinstein [Fri, 19 May 2017 16:32:19 +0000 (09:32 -0700)]
Merge pull request #15159 from LiumxNL/fix-ping-monitor

pybind/rados: avoid call free() on invalid pointer

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15164 from tchaikov/wip-check-gperf-before-using-it
Kefu Chai [Fri, 19 May 2017 15:57:08 +0000 (23:57 +0800)]
Merge pull request #15164 from tchaikov/wip-check-gperf-before-using-it

cmake: check the existence of gperf before using it

Reviewed-By: Adam C. Emerson <aemerson@redhat.com>
8 years agolibrbd: block RPC requests before unregistering watch during close 15162/head
Jason Dillaman [Thu, 18 May 2017 20:54:06 +0000 (16:54 -0400)]
librbd: block RPC requests before unregistering watch during close

The watch should be released after exclusive lock is released to
avoid a potential race condition which would result in the
client being blacklisted by a peer.

Fixes: http://tracker.ceph.com/issues/19970
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #15089 from zhsj/add-mirror
Kefu Chai [Fri, 19 May 2017 14:32:45 +0000 (22:32 +0800)]
Merge pull request #15089 from zhsj/add-mirror

doc: add new cn ceph mirror to doc and mirroring

Reviewed-by: Wido den Hollander <wido@42on.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15173 from joscollin/wip-test-crush-warning
Jos Collin [Fri, 19 May 2017 14:18:38 +0000 (19:48 +0530)]
Merge pull request #15173 from joscollin/wip-test-crush-warning

test/crush: silence warnings from -Walloc-size-larger-than= and -Wstringop-overflow=

8 years agoMerge pull request #15171 from ztczll/master
Jos Collin [Fri, 19 May 2017 14:10:31 +0000 (19:40 +0530)]
Merge pull request #15171 from ztczll/master

test/objectstore: Check apply_transaction() return values

8 years agoMerge pull request #15034 from liewegas/wip-bluestore-sync-write
Sage Weil [Fri, 19 May 2017 13:21:48 +0000 (08:21 -0500)]
Merge pull request #15034 from liewegas/wip-bluestore-sync-write

os/bluestore/KernelDevice: fix sync write vs flush

Reviewed-by: Varada Kari <varada.kari@gmail.com>
8 years agoos/bluestore/KernelDevice: fix flush() vs sync write() 15034/head
Sage Weil [Fri, 12 May 2017 20:06:51 +0000 (16:06 -0400)]
os/bluestore/KernelDevice: fix flush() vs sync write()

We need to set the atomic flag so that a flush will actually flush.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agolibrbd: introduced support for blocking watch notifications
Jason Dillaman [Thu, 18 May 2017 20:25:55 +0000 (16:25 -0400)]
librbd: introduced support for blocking watch notifications

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: recheck current lock owner before blacklist
Jason Dillaman [Thu, 18 May 2017 16:38:44 +0000 (12:38 -0400)]
librbd: recheck current lock owner before blacklist

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest/crush: silence warnings from -Walloc-size-larger-than= and -Wstringop-overflow= 15173/head
Jos Collin [Fri, 19 May 2017 11:12:03 +0000 (16:42 +0530)]
test/crush: silence warnings from -Walloc-size-larger-than= and -Wstringop-overflow=

The following warnings appear during make:

/home/jcollin/workspace/ceph/src/test/crush/CrushWrapper.cc: In member function ‘virtual void CrushWrapper_choose_args_compat_Test::TestBody()’:
/home/jcollin/workspace/ceph/src/test/crush/CrushWrapper.cc:1057:20: warning: argument 1 value ‘18446744073709550912’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
   crush_choose_arg choose_args[c.get_max_buckets()];
                    ^~~~~~~~~~~

In function ‘void* memset(void*, int, size_t)’,
    inlined from ‘virtual void CrushWrapper_choose_args_compat_Test::TestBody()’ at /home/jcollin/workspace/ceph/src/test/crush/CrushWrapper.cc:1058:9:
/usr/include/bits/string3.h:90:70: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’: specified size 18446744073709550912 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
   return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoCheck apply_transaction return values 15171/head
zhanglei [Fri, 19 May 2017 09:40:02 +0000 (05:40 -0400)]
Check apply_transaction return values

Signed-off-by: zhanglei <243290414@qq.com>
8 years agodoc: v12.0.3 release notes 15090/head
Abhishek Lekshmanan [Mon, 15 May 2017 15:49:35 +0000 (17:49 +0200)]
doc: v12.0.3 release notes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: PendingReleaseNotes move the 12.0.2 section of release notes
Abhishek Lekshmanan [Thu, 18 May 2017 11:36:54 +0000 (13:36 +0200)]
doc: PendingReleaseNotes move the 12.0.2 section of release notes

So that we can track whatever diff goes in after

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agorgw: segment fault when shard id out of range 14389/head
redickwang [Fri, 19 May 2017 07:08:12 +0000 (15:08 +0800)]
rgw: segment fault when shard id out of range

Fixes: http://tracker.ceph.com/issues/19732
Signed-off-by: redickwang <redickwang@tencent.com>
8 years agoceph.spec.in, debian/control: build/runtime dependency for cherrypy
Dan Mick [Thu, 18 May 2017 01:35:15 +0000 (18:35 -0700)]
ceph.spec.in, debian/control: build/runtime dependency for cherrypy

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agomgr: change config_prefix to be 'mgr/<id>/' and separate handle/key by '/'
Dan Mick [Thu, 4 May 2017 21:19:35 +0000 (14:19 -0700)]
mgr: change config_prefix to be 'mgr/<id>/' and separate handle/key by '/'

dm_crypt config-key usage has established '/' as the separator; keep
that as a convention for now

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agomgr/PyModules: move constructor definition to .cc
Dan Mick [Tue, 2 May 2017 23:55:21 +0000 (16:55 -0700)]
mgr/PyModules: move constructor definition to .cc

Otherwise, the incomplete ServeThread type causes problems
for others who include PyModules.h

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agopybind/mgr/dashboard/module.py: allow custom server addr, port
Dan Mick [Sat, 29 Apr 2017 00:59:49 +0000 (17:59 -0700)]
pybind/mgr/dashboard/module.py: allow custom server addr, port

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agomgr/PyModules.cc,PyState.cc: improve config access debug logging
Dan Mick [Sat, 29 Apr 2017 00:57:52 +0000 (17:57 -0700)]
mgr/PyModules.cc,PyState.cc: improve config access debug logging

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoclient/SyntheticClient.cc: filer is now a std::unique_ptr
Dan Mick [Wed, 12 Apr 2017 21:53:01 +0000 (14:53 -0700)]
client/SyntheticClient.cc: filer is now a std::unique_ptr

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoceph_syn.cc, client/SyntheticClient.cc: Client -> StandaloneClient
Dan Mick [Wed, 12 Apr 2017 21:52:37 +0000 (14:52 -0700)]
ceph_syn.cc, client/SyntheticClient.cc: Client -> StandaloneClient

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoServeThread: add 'running' flag, don't notify non-running threads
Dan Mick [Tue, 11 Apr 2017 22:31:48 +0000 (15:31 -0700)]
ServeThread: add 'running' flag, don't notify non-running threads

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agopybind/mgr: web dashboard
John Spray [Sun, 13 Nov 2016 11:38:16 +0000 (11:38 +0000)]
pybind/mgr: web dashboard

A read only display of some of the cluster's state, plus
some cephfs/rbd/osd pages that demonstrate how to go
read state remotely from daemons.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agovstart: enable gui plugin
John Spray [Mon, 21 Nov 2016 10:27:46 +0000 (10:27 +0000)]
vstart: enable gui plugin

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosd: wire up "histogram dump" to `tell`
John Spray [Sun, 5 Feb 2017 11:26:24 +0000 (11:26 +0000)]
osd: wire up "histogram dump" to `tell`

...so that mgr modules can get at it.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15148 from zealoussnow/wip-spec
Kefu Chai [Fri, 19 May 2017 04:53:57 +0000 (12:53 +0800)]
Merge pull request #15148 from zealoussnow/wip-spec

build: move bash_completion.d/ceph to ceph-common

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: check the existence of gperf before using it 15164/head
Kefu Chai [Fri, 19 May 2017 04:46:46 +0000 (12:46 +0800)]
cmake: check the existence of gperf before using it

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15160 from bassam/pr-system-boost
Kefu Chai [Fri, 19 May 2017 02:56:12 +0000 (10:56 +0800)]
Merge pull request #15160 from bassam/pr-system-boost

cmake: fix boost components for WITH_SYSTEM_BOOST

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15107 from guihecheng/rgw_file-cleanup
Jos Collin [Fri, 19 May 2017 02:35:29 +0000 (08:05 +0530)]
Merge pull request #15107 from guihecheng/rgw_file-cleanup

rgw: use pre-defined calls to replace raw flag operation

8 years agodoc: hyperlink fixes 15144/head
Drunkard Zhang [Fri, 19 May 2017 01:41:33 +0000 (09:41 +0800)]
doc: hyperlink fixes

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
8 years agodoc: typo fixes
Drunkard Zhang [Fri, 19 May 2017 01:34:48 +0000 (09:34 +0800)]
doc: typo fixes

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>