Commit Graph

72280 Commits

Author SHA1 Message Date
zhanglei
c12128abbb test/objectstore/: Check put_ref return value
Signed-off-by: zhanglei <243290414@qq.com>
2017-05-08 23:11:16 -04:00
Patrick Donnelly
88e6db1f25
mds: update export targets even when not active
Problem caught test_migration_on_shutdown. Migration could not proceed because
export_targets were not being updated.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-05-08 22:55:56 -04: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
Sage Weil
a8c1cf36b1 os/bluestore: reorder _deferred_aio_finish
Remove the OpSequencer from the deferred_queue before
marking the txc's completed.  This prevents a race with
_txc_finish trying to reap the completed sequencer that
is still on the deferred_queue, triggering an assert
in the intrusive list hook dtor.

Fixes: http://tracker.ceph.com/issues/19880
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-08 22:18:25 -04:00
Brad Hubbard
766528ee9c common: Remove redundant includes
Fixes: http://tracker.ceph.com/issues/19883 (Partially)

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-05-09 09:54:30 +10: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
xie xingguo
cf063626fc mon/PGMap.cc: fix "osd_epochs" section of dump_basic
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-05-08 21:43:52 +08: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
Sage Weil
bd912d2c57 osd/PG: base past_interval_bounds on pool creation epoch
The base case for the past_intervals bounds is the creation epoch for the
pool, not the PG.  Otherwise, a pool that is created, does not go active,
and then splits will not include the pre-split history.  For example,

- pg A is created in epoch X
- pg A does not go active
- pg A splits into pg B in epoch Y

but then,
- pg B has past intervals from [X,Y)
- pg B epoch_created is Y ***
- pg B required past intervals is [Y,Y)
- fails check_past_interval_bounds check

Fixes: http://tracker.ceph.com/issues/19877
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-07 22:47:47 -04:00
Sage Weil
bdefd6b7c2 osd: add epoch_pool_created to pg_history_t
The epoch_created property is the *pg* creation epoch; we want to know the
pool creation epoch too.  Unfortunately that is not part of the pg_pool_t.
Add a pg_history_t member that sits alongside epoch_created.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-07 22:46:06 -04:00
Patrick Donnelly
0c9c294d14
mds: check mdsdir against dest
Introduced by aebc1caee8. Found by Zheng.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-05-06 14:06:14 -04: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
Yan, Zheng
26dd9e82ad
mds: handle aux subtree when splitting/merging dirfrag
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-05-05 23:15:19 -04: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
Patrick Donnelly
048abc330d
mds: call maybe_export_pin on all fetched dirfrags
If the dirfrag is pinned to the current mds, it needs to be made into an aux
subtree.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-05-05 19:11:33 -04:00
Patrick Donnelly
383d521af3
mds: handle export pin on unjournaled directory
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-05-05 19:10:27 -04:00
Patrick Donnelly
9552efde4a
qa: improve time handling for test_exports test
Also catches corner-case found by Zheng where an unjournaled directory will
cause export pinning to fail because it cannot be made a subtree until its
parent is stable.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-05-05 19:07:05 -04: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
Orit Wasserman
0c5b2a9026 Merge pull request #14981 from cbodley/wip-rgw-bi-list-plain
cls/rgw: list_plain_entries() stops before bi_log entries
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2017-05-06 00:04:11 +03:00
Sage Weil
b89dff472c test/encoding/generate-corpus-objects: fix typo
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 16:31:02 -04:00
Casey Bodley
b29a1633a5 cls/rgw: list_plain_entries() stops before bi_log entries
list_plain_entries() was using encode_obj_versioned_data_key() to set
its end_key, which gives a prefix of BI_BUCKET_OBJ_INSTANCE_INDEX[=2]

that range between start_key and end_key would not only span the
BI_BUCKET_OBJS_INDEX[=0] prefixes, but BI_BUCKET_LOG_INDEX[=1] prefixes
as well. this can result in list_plain_entries() trying and failing to
decode a rgw_bi_log_entry as a rgw_bucket_dir_entry

Fixes: http://tracker.ceph.com/issues/19876

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 15:48:20 -04:00
Sage Weil
b38b663a71 test/encoding/generate-corpus-objects.sh: simplify object corpus population
Script that generates corpus objects.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 15:20:18 -04:00
Sage Weil
40fe1d181c qa/workunits/rgw/run-s3tests.sh: run s3-tests
This works out of the box with a vstart environment and

 RGW=1 ../src/vstart.sh -n -l
 PATH=bin:$PATH ../qa/workunits/rgw/run-s3tests.sh

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 15:20:18 -04:00
Jason Dillaman
128f593fe8 Merge pull request #14051 from SpandanKumarSahu/bug#17195
rbd: stop indefinite thread waiting in krbd udev handling

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-05-05 14:40:55 -04:00
Sage Weil
e8ab3fdc87 os/bluestore: remove useless IOContext::num_reading
If we are a syncrhonous read, we don't need this: we don't aio_wait for
sync reads.  If we are an aio_read, we are in the aio_running count anyway,
and there is also no purpose for this counter.

I'm a bit unsure about the NVME use of this counter; I switched it to use
num_running (pretty sure we aren't mixing reads and writes on a single
IOContext) *but* it might make more sense to switch to a private counter.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 14:39:30 -04:00