Commit Graph

72609 Commits

Author SHA1 Message Date
Sage Weil
5ab996ab3c 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>
2017-05-23 22:53:53 -04:00
Sage Weil
0aa04f523b Merge pull request #9307 from cxwshawn/wip-tc7-fix
crush: optimize header file dependency

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-05-23 21:49:46 -05:00
Sage Weil
ff04315240 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>
2017-05-23 21:49:22 -05:00
Sage Weil
e8fd9867e3 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>
2017-05-23 21:48:53 -05:00
Sage Weil
f58ea0419c Merge pull request #15169 from joscollin/wip-cleanup-redundant-headers-2
common: Remove redundant includes - 2

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-05-23 21:48:28 -05:00
Sage Weil
1f5c50aa56 Merge pull request #15177 from liewegas/wip-bluestore-nonexperimental
os: remove experimental status for BlueStore

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-05-23 21:48:06 -05:00
Sage Weil
9d51ab5b9d Merge pull request #15244 from liewegas/wip-crush-features
crush/CrushWrapper: fix has_incompat_choose_args()

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-23 21:47:51 -05:00
Sage Weil
10a88f1c62 Merge pull request #15245 from liewegas/wip-20058
qa/suites/rados/*/at-end: wait for healthy before scrubbing
2017-05-23 21:47:13 -05:00
Dan Mick
c59cfff6ca 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>
2017-05-23 16:38:52 -07:00
Matt Benjamin
9f8f0d75e8 Merge pull request #15246 from linuxbox2/wip-unlink-safe
rgw_file: release rgw_fh lock and ref on ENOTEMPTY
2017-05-23 16:47:57 -04:00
Sage Weil
88776b9c74 Merge pull request #15202 from liewegas/wip-19935
qa/suites/rados: temporarily remove scrub_test from basic/ until post-luminous
2017-05-23 15:37:08 -05:00
Sage Weil
0e03c189fc Merge pull request #15207 from liewegas/wip-20043
qa/suites/rados/singleton-nomsg/health-warnings: behave on ext4
2017-05-23 15:36:50 -05:00
Yuri Weinstein
27f7146613 Merge pull request #15092 from yuyuyu101/wip-msgr-writelock
msg/async: reduce write_lock contention

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-23 13:36:37 -07:00
Yuri Weinstein
fea1f930c7 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>
2017-05-23 13:35:22 -07:00
Yuri Weinstein
aaaf48cb87 Merge pull request #15187 from badone/wip-compressor-optimize-header-file-dependency
compressor: optimize header file dependency

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-23 13:34:53 -07:00
Yuri Weinstein
6b7d4db843 Merge pull request #15201 from liewegas/wip-19990
qa/workunits/rados/test_health_warning: misc fixes


Reviewed-by: Neha Ojha <nojha@redhat.com>
2017-05-23 13:33:23 -07:00
Casey Bodley
62c8dbcfca Merge pull request #15098 from cbodley/wip-rgw-default-frontend
rgw: remove fastcgi from default rgw frontends

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-23 16:18:34 -04:00
Matt Benjamin
51c25593dd 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>
2017-05-23 15:44:59 -04:00
Casey Bodley
344135f2c5 Merge pull request #15216 from linuxbox2/wip-rgw-file-unlink
rgw_file:  remove post-unlink lookup check

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-23 14:29:28 -04:00
Sage Weil
e283924d56 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>
2017-05-23 13:16:21 -05:00
Sage Weil
bac8e45fdb Merge pull request #15188 from ShiqiCooperation/master
mon: delete useless function definition

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-23 13:15:43 -05:00
Sage Weil
65b144d9e1 Merge pull request #15204 from joscollin/wip-cleanup-redundant-headers-3
common: Remove redundant includes - 3
2017-05-23 13:15:22 -05:00
Sage Weil
ce654c5133 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>
2017-05-23 14:12:24 -04:00
Casey Bodley
2dc585975a Merge pull request #14389 from mingshuaiwang/master
rgw: segment fault when shard id out of range

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-23 13:54:56 -04:00
Casey Bodley
0247770025 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>
2017-05-23 13:52:58 -04:00
Sage Weil
ddf0bb88cb 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 b1e4295570.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-23 13:50:06 -04:00
Haomai Wang
eded0c11b2 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>
2017-05-24 00:14:03 +08:00
Sage Weil
ae19a960c6 Merge pull request #15218 from liewegas/wip-crush-features
crush/CrushWrapper: fix has_incompat_choose_args

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-05-23 11:06:56 -05:00
Pan Liu
c53d949e7f 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>
2017-05-23 23:15:14 +08:00
John Spray
8d85c52fa2 Merge pull request #14610 from jcsp/wip-17980
#17980: MDS client blacklisting and blacklist on eviction

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-05-23 14:57:01 +01:00
John Spray
e875d7ddf9 Merge pull request #14550 from ukernel/wip-multimds-misc
mds: miscellaneous multimds fixes

Reviewed-by: John Spray <john.spray@redhat.com>
2017-05-23 13:14:43 +01:00
John Spray
3913ed0ba6 qa: refine assert_session_count (don't count killing)
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:18 -04:00
John Spray
ee2683c804 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>
2017-05-23 05:22:18 -04:00
John Spray
ab8e328c80 qa: clean up whitespace in test_misc.py
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:18 -04:00
John Spray
c91ccac6f6 qa: remove outdated TODO in TestVolumeClient
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:17 -04:00
John Spray
06935d406b qa: log whitelist for eviction messages
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:17 -04:00
John Spray
45caf26140 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>
2017-05-23 05:22:17 -04:00
John Spray
71229af5ea 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>
2017-05-23 05:22:17 -04:00
John Spray
47a9c9ba67 qa: add test_filelock_eviction
To check that eviction is releasing flocks.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:17 -04:00
John Spray
dd08483bd0 mds: hook up autoclose to blacklisting eviction
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:17 -04:00
John Spray
048e825484 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>
2017-05-23 05:22:16 -04:00
John Spray
4a9386e4e7 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>
2017-05-23 05:22:16 -04:00
John Spray
7d8281c805 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>
2017-05-23 05:22:16 -04:00
John Spray
711ee5ee56 mds: update osd epoch barrier when handling blacklist
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:16 -04:00
John Spray
05b171b553 mds: update osdmap epoch barrier on eviction
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:16 -04:00
John Spray
d6ce9d8bc9 mds: blacklist clients on eviction
Fixes: http://tracker.ceph.com/issues/9754
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:16 -04:00
John Spray
3610729ca0 mon: permit MDS daemons to do blacklisting
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:15 -04:00
John Spray
dd173bd528 mds: remove stale comment
The code the comment is talking about went
away in 2490a0a1e.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:15 -04:00
John Spray
3fe5e734be mds: apply OSDMap blacklist to CephFS clients
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:15 -04:00
John Spray
fe56a74cd2 osd/OSDMap: std::set version of get_blacklist
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:15 -04:00