Commit Graph

72024 Commits

Author SHA1 Message Date
Sage Weil
f08de01c58 mon/OSDMonitor: 'osd set-require-min-compat-client ...'
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:56 -05:00
Sage Weil
a17e320098 qa/releases/luminous: set require_min_compat_client after upgrade
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:56 -05:00
Sage Weil
1de9c90776 qa/suites: set initial require_min_compat_client
For cases where we are selecting crush tunables beyond the default
min of hammer.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:56 -05:00
Sage Weil
ef1ef284ac osd/OSDMap: add CRUSH_CHOOSEARGS feature bit
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:56 -05:00
Sage Weil
04b9e9f1a3 crush/CrushWrapper: has_[incompat_]chooseargs()
We'll use this for feature bit compat checks with clients and osds.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:55 -05:00
Sage Weil
9fccc7ac72 include/ceph_features: rename OSDMAP_REMAP -> OSDMAP_PG_UPMAP
Missed this with the remap -> upmap rename a few weeks back.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:55 -05:00
Sage Weil
5274db81dc mon/OSDMonitor: prevent injection of crush map violating require_min_compat_client
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:55 -05:00
Sage Weil
7c35fd09cd mon/OSDMonitor: drop allow_pg_upmap option; use require_min_compat_client instead
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:55 -05:00
Sage Weil
f3fa3c0158 mon/OSDMonitor: switch primary-{affinity,temp} checks to require_min_compat_client
If require_min_compat_client is set (we've finished luminous upgrade), use
that to enforce primary_temp and primary_affinity settings.  Otherwise,
use the legacy config option.

Drop the assert in update_from_paxos.

After luminous we can remove the config options entirely.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:55 -05:00
Sage Weil
c025323bf4 mon/OSDMonitor: set OSDMap require_min_compat_client on upgrade
Fill in this field once require_luminous is set.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:55 -05:00
Sage Weil
38c756dbd3 crush: move default tunables up to hammer
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:55 -05:00
Sage Weil
481411e995 mon/OSDMonitor: default require_min_compat_client to hammer for new clusters
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:54 -05:00
Sage Weil
a1c6646823 osd/OSDmap: add require_min_compat_client field
This is a persistent record of the compatibility for old clients that
we will enforce.  Once set, the mon will eventually prevent newer features
of the OSDMap or CRUSH maps from being used if they violate this
requirement.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:54 -05:00
Sage Weil
e02a8e2e1f osd/OSDMap: get_min_compat_client()
Calculate the oldest client we allow to connect.  Provide both a release
name (e.g., firefly) and a version string (e.g., "0.80").

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:04:57 -05:00
Sage Weil
7a4dfe8949 Merge pull request #14952 from tchaikov/wip-19813
mgr: do the shutdown in the right order

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-09 10:01:12 -05:00
Kefu Chai
a0ee9e663a Merge pull request #14478 from theanalyst/doc/dev/ccache
doc: dev add a note about ccache

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-09 20:46:29 +08:00
Kefu Chai
1116556ff4 Merge pull request #14886 from badone/wip-async-osd-scrub-sleep
osd: Implement asynchronous scrub sleep

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-09 20:27:17 +08:00
Kefu Chai
73340eedb8 Merge pull request #14985 from johnzzpcrystal/store_errno
msg/async/net_handler: errno should be stored before calling next function

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-05-09 20:26:24 +08:00
Abhishek Lekshmanan
1d9558ac42 doc: dev add a note about ccache
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-05-09 10:53:50 +02:00
Dan Mick
6a70b0705f Merge pull request #14984 from dmick/wip-osd-dup
test/osd/osd-dup.sh: lower wb fd throttle limits

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-08 19:48:27 -07:00
Yan, Zheng
69de7bc3a2 Merge pull request #14907 from ukernel/wip-19820
ceph-fuse: use user space permission check by default
2017-05-09 10:34:00 +08:00
Jason Dillaman
41dd93d740 Merge pull request #14976 from trociny/wip-19871
rbd-nbd: relax size check for newer kernel versions

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-05-08 19:41:40 -04:00
Jason Dillaman
a5c36ced4b Merge pull request #14656 from chardan/jfw-wip-halflife_atomic_t-rodan
rbd, librbd: migrate atomic_t to std::atomic

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-05-08 19:41:02 -04:00
Matt Benjamin
7b2cd270b6 Merge pull request #14925 from fangyuxiangGL/fix_unneccesary_write
rgw: don't do unneccesary write if buffer with zero length
2017-05-08 15:52:00 -04:00
Sage Weil
0b449db512 Merge pull request #14990 from wjin/fix
osd: clean nonused work queue

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-08 11:34:48 -05:00
Sage Weil
39d5bdf0d0 Merge pull request #14962 from liewegas/wip-denc-dump
include/denc: support ENCODE_DUMP

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2017-05-08 11:33:31 -05:00
Kefu Chai
a4bffab1e5 Merge pull request #14995 from SUSE/wip-mgr-rest-exit
pybind/mgr/rest: completely terminate cherrypy in shutdown

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-09 00:18:55 +08:00
Sage Weil
439fdbe3bf include/denc: clean up ENCODE_DUMP a bit
- PATH_MAX for string
- ENCODE_DUMP -> ENCODE_DUMP_PATH
- some comments!

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-08 11:54:54 -04:00
Sage Weil
840581e241 Merge pull request #14999 from ivancich/wip-mod-git-subtree-README
doc: Re-word the warnings about using git subtrees.
2017-05-08 09:22:38 -05:00
J. Eric Ivancich
b2d4b48152 doc: Re-word the warnings about using git subtrees.
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2017-05-08 10:17:47 -04:00
Jesse Williamson
40762b8985 rbd_mirror: migrate std::atomic<unsigned> to std::atomic<bool>
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
2017-05-08 07:14:04 -07:00
Jesse Williamson
08c6d5d5d1 librbd: migrate atomic_t to std::atomic<>
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
2017-05-08 07:14:04 -07:00
Jesse Williamson
93621f5cb8 tools (rbd*): migrate atomic_t to std::atomic<>
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
2017-05-08 07:13:57 -07:00
Tim Serong
afd9c3a93e pybind/mgr/rest: completely terminate cherrypy in shutdown
cherrypy.engine.stop() doesn't actually completely kill cherrypy,
which means cherrypy.engine.block() never returns, so this module's
thread never completes cleanly.

Signed-off-by: Tim Serong <tserong@suse.com>
2017-05-08 23:03:55 +10:00
Haomai Wang
867b1d83c4 Merge pull request #14956 from liewegas/wip-bdev-ioc-lock
os/bluestore: fix use after free race with aio_wait

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Jianpeng Ma <jianpeng@intel.com>
2017-05-08 20:14:31 +08:00
Wei Jin
27cc945a6d osd: clean nonused work queue
it was restructured by 3cc48278bf

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
2017-05-08 15:25:46 +08:00
Sage Weil
916c5e3332 Merge pull request #14919 from tchaikov/wip-19825
mon: check is_shutdown() in timer callbacks

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-07 22:26:03 -05:00
Sage Weil
fd6178082a Merge pull request #14968 from TsaiJin/wip-lock-pg-when-scrub-available
osd: sched_scrub() lock pg only if all scrubbing conditions are fulfilled

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Pan Liu <liupan1111@gmail.com>
2017-05-07 22:23:55 -05:00
Kefu Chai
2b8961c973 mgr: do the shutdown in the right order
Fixes: http://tracker.ceph.com/issues/19813
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-06 22:45:16 +08:00
Kefu Chai
260fea0f59 mgr: do not use pointers for MgrStandby members
it's simpler and easier to manage the life cycle of them this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-06 22:45:16 +08:00
Loic Dachary
6152fd9f01 Merge pull request #14970 from dachary/wip-crush-documentation
crush: update documentation for negative choose step

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-05-06 08:09:03 +02:00
Zhou Zhengping
1dbcd90cb5 msg/async/net_handler: errno should be stored before next calling
Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com>
2017-05-06 08:51:43 +08:00
Sage Weil
952a7beb61 Merge pull request #14979 from liewegas/wip-19874
mon: fix prime_pg_temp overrun
common/Finisher: fix uninitialized variable warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-05 17:42:38 -05:00
Sage Weil
209a4b8f3a Merge pull request #14958 from ovh/bp-fix-finisher-warning
common/Finisher: fix uninitialized variable warning
common/Finisher: fix uninitialized variable warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-05 17:42:26 -05:00
Sage Weil
7f72100be5 Merge pull request #14793 from dmick/wip-prio-and-daemonperf
ceph: perfcounter priorities and daemonperf updates to use them
2017-05-05 17:41:55 -05:00
Sage Weil
7c8a2a1766 Merge pull request #14510 from liewegas/wip-bluefs-sync-write
os/bluestore/BlueFS: add bluefs_sync_write option

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2017-05-05 17:41:22 -05:00
Sage Weil
425769fc10 Merge pull request #14305 from liewegas/wip-zipkin-partial
osd: zipkin tracing
2017-05-05 17:40:58 -05:00
Sage Weil
c5a46089f0 messages/MCommand: fix type on decode
Wow, this has been broken since v0.38, but apparently
the message never made it into the object corpus so
we never noticed!

In reality the bug is harmless: decode_message() will
set_header which clobbers whatever version the default
ctor fills in, so this only affects ceph-dencoder's
test.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 18:02:45 -04:00
Sage Weil
0eb0694002 ceph-object-corpus: kraken objects
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 18:02:45 -04:00
Dan Mick
b37d0b49da test/osd/osd-dup.sh: lower wb fd throttle limits
osd-dup.sh was losing OSDs to EMFILE, mostly on arm64 (not clear why).

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-05-05 14:47:14 -07:00