]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yuri Weinstein [Tue, 17 Oct 2017 20:14:36 +0000 (13:14 -0700)]
tests - ceph-ansible vars additions
added symlinks for distros
Fixes http://tracker.ceph.com/issues/21822
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit
f30e9a5e6bd47129f8a35c1f9067216cfe8a6a70 )
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Yuri Weinstein [Thu, 12 Oct 2017 19:54:24 +0000 (12:54 -0700)]
Merge pull request #18210 from shangfufei/wip-async-fix
msg/async: fix bug of data type conversion when uint64_t -> int -> uint64_t
Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Amit Kumar amitkuma@redhat.com
Yuri Weinstein [Thu, 12 Oct 2017 19:52:42 +0000 (12:52 -0700)]
Merge pull request #18246 from liewegas/wip-seesaw-warning
qa/suites/rados/singleton/all/mon-seesaw: whitelist MON_DOWN
Reviewed-by: Kefu Chai <kchai@redhat.com>
Mykola Golub [Thu, 12 Oct 2017 19:39:55 +0000 (22:39 +0300)]
Merge pull request #18270 from dillaman/wip-21391
cls/journal: possible infinite loop within tag_list class method
Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
Jason Dillaman [Thu, 12 Oct 2017 12:58:03 +0000 (08:58 -0400)]
cls/journal: fixed possible infinite loop which could kill the OSD
Fixes: http://tracker.ceph.com/issues/21771
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 12 Oct 2017 12:56:57 +0000 (08:56 -0400)]
test: ceph_test_cls_journal was dropped when converting to cmake
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Joao Eduardo Luis [Thu, 12 Oct 2017 08:24:22 +0000 (09:24 +0100)]
Merge pull request #18258 from shinobu-x/sk-osdmonitor_move_bufferlist_before_use
mon/OSDMonitor: cleanup: move bufferlist before use
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Kefu Chai [Thu, 12 Oct 2017 06:54:41 +0000 (14:54 +0800)]
Merge pull request #18235 from tchaikov/wip-qa-backfilling
qa: s/backfill/backfilling/
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Thu, 12 Oct 2017 06:50:53 +0000 (14:50 +0800)]
Merge pull request #18222 from adamemerson/wip-don't-fix-what-ain't-broke
config: Remove _get_val
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Shinobu Kinjo [Thu, 12 Oct 2017 02:03:12 +0000 (11:03 +0900)]
mon/OSDMonitor: Move bufferlist before use
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
Yuri Weinstein [Wed, 11 Oct 2017 16:37:58 +0000 (09:37 -0700)]
Merge pull request #17824 from shashalu/fix-lc-expiration
rgw:lc fix expiration time
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
John Spray [Wed, 11 Oct 2017 16:33:47 +0000 (17:33 +0100)]
Merge pull request #18102 from MI-OSiRIS/mgr_influx_dbcheck
Modify mgr-influx module database check to not require admin privileges
Reviewed-by: John Spray <john.spray@redhat.com>
Yuri Weinstein [Wed, 11 Oct 2017 16:30:36 +0000 (09:30 -0700)]
Merge pull request #18104 from linuxbox2/rgw-rel-lock-earlyx
rgw: release cls lock if taken in RGWCompleteMultipart
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Wed, 11 Oct 2017 16:30:02 +0000 (09:30 -0700)]
Merge pull request #18175 from yaozongyou/fix-radosgw-admin-command-arg-bug
rgw: fix command argument error for radosgw-admin
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Yuri Weinstein [Wed, 11 Oct 2017 15:48:09 +0000 (08:48 -0700)]
Merge pull request #18193 from cbodley/wip-rgw-pool-application-jewel
qa/rgw: ignore errors from 'pool application enable'
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Yuri Weinstein [Wed, 11 Oct 2017 15:44:30 +0000 (08:44 -0700)]
Merge pull request #18225 from adamemerson/wip-retract-assertions
rgw: Remove assertions in IAM Policy
Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Kefu Chai [Wed, 11 Oct 2017 14:48:00 +0000 (22:48 +0800)]
Merge pull request #17420 from tchaikov/wip-19705
arch/arm: set ceph_arch_aarch64_crc32 only if the build host supports crc32cx
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Wed, 11 Oct 2017 13:44:45 +0000 (08:44 -0500)]
Merge pull request #18242 from tchaikov/wip-21758
crushtool: print error message to stderr not dout(1)
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 11 Oct 2017 13:24:50 +0000 (08:24 -0500)]
qa/suites/rados/singleton/all/mon-seesaw: whitelist MON_DOWN
Mgr can get marked down when mon weirdness is happening.
Signed-off-by: Sage Weil <sage@redhat.com>
Matt Benjamin [Wed, 11 Oct 2017 12:32:49 +0000 (08:32 -0400)]
Merge pull request #18137 from cbodley/wip-21685
rgw: RGWUser::init no longer overwrites user_id
John Spray [Wed, 11 Oct 2017 10:21:11 +0000 (11:21 +0100)]
Merge pull request #18233 from gmayyyha/ceph-fs-status-21752
mgr/status: fix ceph fs status returns error
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 11 Oct 2017 09:45:19 +0000 (17:45 +0800)]
crushtool: print error message to stderr not dout(1)
in hope to fix the mysterious test failure where cli/crushtool/build.t
prints nothing when error message is expected.
Fixes: http://tracker.ceph.com/issues/21758
Signed-off-by: Kefu Chai <kchai@redhat.com>
shangfufei [Tue, 10 Oct 2017 06:00:08 +0000 (14:00 +0800)]
msg/async: fix bug of data type conversion in do_request()
Signed-off-by: shangfufei <shangfufei@inspur.com>
Kefu Chai [Wed, 11 Oct 2017 04:08:12 +0000 (12:08 +0800)]
Merge pull request #18230 from ceph/liewegas-patch-1
.githubmap: Update
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 11 Oct 2017 03:45:33 +0000 (11:45 +0800)]
qa: s/backfill/backfilling/
it's renamed "backfilling" in
4015343f .
Signed-off-by: Kefu Chai <kchai@redhat.com>
Xie Xingguo [Wed, 11 Oct 2017 03:35:40 +0000 (11:35 +0800)]
Merge pull request #18203 from majianpeng/bluestore-wake-kvfinathread
os/bluestore/BlueStore: ASAP wake up _kv_finalize_thread.
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Varada Kari <varada.kari@sandisk.com>
Kefu Chai [Wed, 11 Oct 2017 03:20:00 +0000 (11:20 +0800)]
Merge pull request #18201 from gregsfortytwo/wip-21737-shutdown-assert
common: by default, do not assert on leaks in the shared_cache code
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Wed, 11 Oct 2017 03:05:08 +0000 (11:05 +0800)]
Merge pull request #18218 from tchaikov/wip-21609
mon/PGMap: let pg_string_state() return boost::optional<>
Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Wed, 11 Oct 2017 03:03:29 +0000 (11:03 +0800)]
Merge pull request #18213 from tchaikov/wip-log-on-osx
log: fix build on osx
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Kefu Chai [Wed, 11 Oct 2017 03:02:29 +0000 (11:02 +0800)]
Merge pull request #18216 from tchaikov/wip-cmake-cleanup
cmake: set supported language the right way
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Yanhu Cao [Wed, 11 Oct 2017 01:31:14 +0000 (09:31 +0800)]
mgr/status: fix ceph fs status returns error
Fixes: http://tracker.ceph.com/issues/21752
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
Xie Xingguo [Wed, 11 Oct 2017 00:37:08 +0000 (08:37 +0800)]
Merge pull request #18228 from ktdreyer/doc-mds-blacklist-interval-manual
doc: rm stray ")" character from mds config ref
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Josh Durgin [Tue, 10 Oct 2017 23:52:18 +0000 (16:52 -0700)]
Merge pull request #17900 from markhpc/wip-filestore-rocksdb-compaction-readahead-master
common/options.cc: Set Filestore rocksdb compaction readahead option.
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Tue, 10 Oct 2017 22:25:21 +0000 (17:25 -0500)]
Update .githubmap
Signed-off-by: Sage Weil <sage@redhat.com>
Patrick Donnelly [Tue, 10 Oct 2017 21:33:59 +0000 (14:33 -0700)]
Merge PR #18223 into master
* refs/pull/18223/head:
githubmap: define merge conflict resolution
Reviewed-by: Sage Weil <sage@redhat.com>
Ken Dreyer [Tue, 10 Oct 2017 21:11:11 +0000 (15:11 -0600)]
doc: rm stray ")" character from mds config ref
I accidentally introduced this in
4fb89a63172d2dc6ce8f4702fe90904f9a8fd7bd
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
Adam C. Emerson [Tue, 10 Oct 2017 20:21:48 +0000 (16:21 -0400)]
rgw: Remove assertions in IAM Policy
A couple of them could be triggered by user input.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Patrick Donnelly [Tue, 10 Oct 2017 19:05:41 +0000 (12:05 -0700)]
githubmap: define merge conflict resolution
Use "union" merge to automatically resolve trivial append merge conflicts from
using ptl-tool.py.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Matt Benjamin [Tue, 10 Oct 2017 18:56:08 +0000 (14:56 -0400)]
Merge pull request #17882 from ZVampirEM77/wip-rgw-encryption
rgw: clean up and fix some bugs for encryption
Adam C. Emerson [Tue, 10 Oct 2017 18:37:59 +0000 (14:37 -0400)]
config: Remove _get_val
I added this originally to prevent a deadlock when reading a new-style
configuration variable from a called observer. I didn't realize at the
time that the config mutex was recursive, so this change was
superfluous.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Sage Weil [Tue, 10 Oct 2017 18:17:01 +0000 (13:17 -0500)]
Merge pull request #17759 from liewegas/wip-21407
osd: fix waiting_for_peered vs flushing
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Dan Mick [Tue, 10 Oct 2017 17:38:49 +0000 (10:38 -0700)]
Merge pull request #18208 from jan--f/mgr-prometheus-fix-undef-metrics
pybind/mgr/prometheus: fix metric type undef -> untyped
Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: John Spray <jspray@redhat.com>
Mykola Golub [Tue, 10 Oct 2017 15:01:44 +0000 (18:01 +0300)]
Merge pull request #18136 from dillaman/wip-21561
rbd-mirror: primary image should register in remote, non-primary image's journal
Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
Mykola Golub [Tue, 10 Oct 2017 15:00:52 +0000 (18:00 +0300)]
Merge pull request #18158 from dillaman/wip-21711
librbd: refresh image after applying new metadata
Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
Jason Dillaman [Fri, 6 Oct 2017 19:03:34 +0000 (15:03 -0400)]
librbd: refresh image after applying new/removing old metadata
Fixes: http://tracker.ceph.com/issues/21711
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Kefu Chai [Tue, 10 Oct 2017 12:32:08 +0000 (20:32 +0800)]
mon/PGMap: let pg_string_state() return boost::optional<>
better to be specific, so we don't run into the same problem even we
are using the MSB of uint64_t for a pg state bit in future. we could,
however use uint64_t(-1) to indicate the pg_string_state()'s failure to
parse the state string, because pg_string_state() only translate a
single state a time. but it's always better to be explicit than
implicit.
Fixes: http://tracker.ceph.com/issues/21609
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 10 Oct 2017 12:40:24 +0000 (20:40 +0800)]
mon/PGMap: use uint64_t for pg state
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 10 Oct 2017 11:30:42 +0000 (19:30 +0800)]
cmake: set supported language the right way
the second param of enable_launage() is not used, we should call it
multiple times to enable more than one language. switch to project()
command for simplicity.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 10 Oct 2017 07:37:50 +0000 (15:37 +0800)]
log: fix build on osx
we can not assume that the the `rep` type is identical to `time_t` and
`susecond_t`, on osx they are `int`, not `int64_t`. so cast they as
necessary.
this fixes the error and warning of
LogClock.h:112:7: error: non-constant-expression cannot be narrowed from type 'rep' (aka 'long long') to '__darwin_suseconds_t' (aka 'int') in initializer list [-Wc++11-narrowing]
std::chrono::duration_cast<std::chrono::microseconds>(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/kefu/dev/ceph/src/log/LogClock.h:112:7: note: insert an explicit cast to silence this issue
std::chrono::duration_cast<std::chrono::microseconds>(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LogClock.h:139:46: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
bdt.tm_hour, bdt.tm_min, bdt.tm_sec, tv.tv_usec / 1000);
^~~~~~~~~~~~~~~~~
Signed-off-by: Kefu Chai <kchai@redhat.com>
Jan Fajerski [Tue, 10 Oct 2017 06:40:31 +0000 (08:40 +0200)]
pybind/mgr/prometheus: fix metric type undef -> untyped
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Kefu Chai [Tue, 10 Oct 2017 04:49:19 +0000 (12:49 +0800)]
Merge pull request #18205 from yaozongyou/fix-bluestore-cache-kv-max-type
doc: correct wrong bluestore config types
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yao Zongyou [Tue, 10 Oct 2017 03:34:26 +0000 (11:34 +0800)]
doc: fix bluestore config type error.
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
Kefu Chai [Tue, 10 Oct 2017 02:55:07 +0000 (10:55 +0800)]
Merge pull request #18161 from Liuchang0812/wip-bluestore-ebusy
os/bluestore: do not core dump when we try to open kvstore twice
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Tue, 10 Oct 2017 02:53:52 +0000 (10:53 +0800)]
Merge pull request #18149 from tchaikov/wip-cleanups
common, osd: various cleanups
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Kefu Chai [Tue, 10 Oct 2017 02:52:53 +0000 (10:52 +0800)]
Merge pull request #18177 from tchaikov/wip-kv-kill-warning
kv: unify {create_and_,}open() methods
Reviewed-by: Sage Weil <sage@redhat.com>
Jason Dillaman [Thu, 5 Oct 2017 20:38:32 +0000 (16:38 -0400)]
rbd-mirror: removed duplicate client registration logic
The client will now be registered before the bootstrap state machine
is invoked.
Fixes: http://tracker.ceph.com/issues/21561
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 5 Oct 2017 19:56:19 +0000 (15:56 -0400)]
rbd-mirror: local primary images should still register to remote images
Fixes: http://tracker.ceph.com/issues/21561
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
John Spray [Mon, 9 Oct 2017 22:31:09 +0000 (23:31 +0100)]
Merge pull request #18195 from ktdreyer/doc-mds-blacklist-interval-manual
doc: "mds blacklist interval" vs manually blacklisting
Greg Farnum [Mon, 9 Oct 2017 21:16:05 +0000 (14:16 -0700)]
common: by default, do not assert on leaks in the shared_cache code
Update the standard qa suite cluster configs so that we continue
asserting in our nightlies, but users don't hit this.
Fixes: http://tracker.ceph.com/issues/21737
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Sage Weil [Fri, 15 Sep 2017 20:03:38 +0000 (16:03 -0400)]
osd: fix waiting_for_peered vs flushing
on_flush() requeues waiting_for_peered, but we flush twice on the
primary during peering, and we don't want to requeue the first one
(when we have the master pg log merged).
Fix by moving waiting_for_peered to waiting_for_flush if we aren't
already flush on _activate_committed. If we get an op and are
peered but not flushed, queue ops there. (We can simplify this
check a bit since pgbackend inactive message handling doesn't care
about flushed or not flushed.) When flushed, we requeue
waiting_for_flush.
The waiting_for_flush, waiting_for_peered, and waiting_for_active
lists are all mutually exclusive, so this mostly serves to
clarify what we are waiting for (not to keep items separate). And
it means that on_flushed() will only requeue things that were
waiting for it specifically.
Fixes: http://tracker.ceph.com/issues/21407
Signed-off-by: Sage Weil <sage@redhat.com>
Kefu Chai [Mon, 9 Oct 2017 17:01:00 +0000 (01:01 +0800)]
Merge pull request #18188 from jschmid1/wip-man-osd-config-ref-syntax
doc: fixes syntax in osd-config-ref
Reviewed-by: Kefu Chai <kchai@redhat.com>
Joshua Schmid [Mon, 9 Oct 2017 15:31:45 +0000 (17:31 +0200)]
doc: fix syntax in rst
* Fix syntax in osd max object size section.
Fixes: http://tracker.ceph.com/issues/21733
Signed-off-by: Joshua Schmid <jschmid@suse.de>
Ken Dreyer [Mon, 9 Oct 2017 15:20:35 +0000 (09:20 -0600)]
doc: "mds blacklist interval" vs manually blacklisting
The "mds blacklist interval" setting has no effect on the time that
the "ceph osd blacklist" command will use by default. Clarify this in
the docs.
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
Jianpeng Ma [Mon, 9 Oct 2017 14:38:33 +0000 (22:38 +0800)]
os/bluestore/BlueStore: ASAP wake up _kv_finalize_thread.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Casey Bodley [Mon, 9 Oct 2017 14:11:14 +0000 (10:11 -0400)]
qa/rgw: ignore errors from 'pool application enable'
Fixes: http://tracker.ceph.com/issues/21715
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Kefu Chai [Mon, 9 Oct 2017 08:52:20 +0000 (16:52 +0800)]
kv: unify {create_and_,}open() methods
this silences the warning of "-Woverloaded-virtual" where create() and
create_and_open() from KeyValueDB are hidden from the ones defined in
derived classes.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Haomai Wang [Mon, 9 Oct 2017 13:48:19 +0000 (08:48 -0500)]
Merge pull request #18190 from JustL/master
msg/async/rdma: unnecessary reinitiliazation of an iterator
Reviewed-by: Haomai Wang <haomai@xsky.com>
Sage Weil [Mon, 9 Oct 2017 13:22:42 +0000 (08:22 -0500)]
Merge pull request #18058 from Yan-waller/wip-walle-0927pgstatexpandstate
osd/PG: extend pg state bits to fix pg ls commands error
Reviewed-by: Sage Weil <sage@redhat.com>
JustL [Mon, 9 Oct 2017 12:37:43 +0000 (20:37 +0800)]
msg/async/rdma: unnecessary reinitiliazation of an iterator
current_buffer iterator does not need to be reinitalized as no changes
occur between the initialization and iteration steps.
Signed-off-by: Justinas Lingys jlingys@connect.ust.hk
Orit Wasserman [Mon, 9 Oct 2017 12:19:05 +0000 (15:19 +0300)]
Merge pull request #18178 from joscollin/wip-radosgw-admin-reshard-fix
rgw: update usage() with status
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Jos Collin [Mon, 9 Oct 2017 12:03:57 +0000 (12:03 +0000)]
Merge pull request #18180 from oritwas/wip-rgw-21617
rgw: add reshard commands
Reviewed-by: Jos Collin <jcollin@redhat.com>
Jos Collin [Mon, 9 Oct 2017 11:28:29 +0000 (16:58 +0530)]
rgw: Fixed typos and status in help.t
Fixed typos and status in help.t
Signed-off-by: Jos Collin <jcollin@redhat.com>
Orit Wasserman [Mon, 9 Oct 2017 09:35:42 +0000 (12:35 +0300)]
rgw: add reshard commands to the man pages
Fixes: http://tracker.ceph.com/issues/21617
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Kefu Chai [Mon, 9 Oct 2017 10:25:45 +0000 (18:25 +0800)]
Merge pull request #18162 from tchaikov/wip-ceph-disk-retry-on-dev-not-ready
ceph-disk: retry on OSError
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Jos Collin [Mon, 9 Oct 2017 09:14:29 +0000 (14:44 +0530)]
rgw: update usage() with status
Fixed the missing 'status' in usage().
Signed-off-by: Jos Collin <jcollin@redhat.com>
Yao Zongyou [Mon, 9 Oct 2017 09:19:45 +0000 (17:19 +0800)]
rgw: fix command argument error for radosgw-admin.
Fixes: http://tracker.ceph.com/issues/21723
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
lu.shasha [Wed, 20 Sep 2017 03:15:00 +0000 (11:15 +0800)]
rgw:lc: using midnight time to check obj expiration
Amazon S3 calculates the expiration time by adding the number of days specified in the rule to the object creation time and rounding the resulting time to the next day midnight.
So rgw should using the rounding down midnight time to compare with the object creation time to check obj expiration.
Fixes: http://tracker.ceph.com/issues/21533
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
Yan Jun [Wed, 27 Sep 2017 08:35:14 +0000 (16:35 +0800)]
osd/PG: extend pg state to 64 bits
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
Yan Jun [Wed, 27 Sep 2017 11:02:36 +0000 (19:02 +0800)]
os/bluestore: drop unused class FreelistManager
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
Jos Collin [Mon, 9 Oct 2017 03:27:27 +0000 (03:27 +0000)]
Merge pull request #18157 from batrick/ptl-tool-branch-checkout
ptl-tool: checkout branch after creation
Reviewed-by: Jos Collin <jcollin@redhat.com>
Sage Weil [Mon, 9 Oct 2017 02:47:49 +0000 (21:47 -0500)]
Merge pull request #17708 from liewegas/wip-pg
osd: initial minimal efforts to clean up PG interface
Sage Weil [Mon, 9 Oct 2017 02:47:26 +0000 (21:47 -0500)]
Merge pull request #18125 from cernceph/dvanders_conf
mon: mark mon_allow_pool_delete as observed
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 9 Oct 2017 02:47:02 +0000 (21:47 -0500)]
Merge pull request #18144 from hjwsm1989/wip-21425-part2
qa/suites/rest/basic/tasks/rest_test: whiltelist OSD_DOWN
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Sage Weil [Mon, 9 Oct 2017 02:46:27 +0000 (21:46 -0500)]
Merge pull request #18159 from liewegas/wip-21712-b
os: fix 0-length zero semantics, add tests
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Fri, 6 Oct 2017 20:29:32 +0000 (15:29 -0500)]
os/bluestore: 0-length zero should not change object size
Fixes: http://tracker.ceph.com/issues/21712
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 6 Oct 2017 20:29:15 +0000 (15:29 -0500)]
os/filestore: make 0-length zero avoid touching object length
Fixes: http://tracker.ceph.com/issues/21712
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 6 Oct 2017 20:28:49 +0000 (15:28 -0500)]
os/ObjectStore: 0-length zero does not change length of object
Signed-off-by: Sage Weil <sage@redhat.com>
Kefu Chai [Tue, 26 Sep 2017 09:19:23 +0000 (17:19 +0800)]
mon/OSDMonitor: s/g_ceph_context/cct/
use this->cct if possible, yet another step to remove the dependency on
global `g_ceph_context`.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 6 Oct 2017 10:27:51 +0000 (18:27 +0800)]
common/config: return const reference instead of a copy
avoid creating temporary Option::value_t instances if possible
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sun, 8 Oct 2017 16:32:54 +0000 (00:32 +0800)]
common/config: use boost::get<> instead of visitor
simpler this way with caveat of less developer friendly assertion
failure.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 6 Oct 2017 10:11:46 +0000 (18:11 +0800)]
osd,common: avoid casting useless casts
no need to cast a variable of type `Foo` to `Foo`, for example, 2.000 is
of type `double`, so (double)2.000 does not make sense.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 6 Oct 2017 09:49:04 +0000 (17:49 +0800)]
include/types.h: silence "-Wdouble-promotion" warnings
avoid implicit promotion from float to double.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 9 Oct 2017 01:45:57 +0000 (09:45 +0800)]
common/config: s/_get_val/_get_val_generic/
avoid distinguish two methods with their return types and non-templated
versus templated. also, this follows the convention of md_config_t.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 9 Oct 2017 01:35:46 +0000 (09:35 +0800)]
Merge pull request #18141 from adamemerson/wip-log-time
log: Use the coarse real time clock in log timestamps
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 9 Oct 2017 01:34:50 +0000 (09:34 +0800)]
Merge pull request #17976 from adamemerson/wip-warning-sign
mgr,osd,kv: Fix various warnings for Clang and GCC7
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sat, 7 Oct 2017 14:15:11 +0000 (22:15 +0800)]
ceph-disk: retry on OSError
we are likely to
1) create partition, for instance, sdc1
2) partprobe sdc
3) udevadm settle
4) check the device by its path: /dev/sdc1
but there is chance that the uevent sent from kernel fails to reach udev
before we call "udevadm", hence "/dev/sdc1" does not exist even after
"udevadm settle" returns. so we retry in case of OSError here.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sat, 7 Oct 2017 13:13:47 +0000 (21:13 +0800)]
ceph-disk: factor out the retry logic into a decorator
Signed-off-by: Kefu Chai <kchai@redhat.com>
Chang Liu [Sat, 7 Oct 2017 08:46:46 +0000 (16:46 +0800)]
os/bluestore: do not core dump when we try to open kvstore twice
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
Adam C. Emerson [Fri, 6 Oct 2017 21:15:43 +0000 (17:15 -0400)]
log: Mark timestamps for coarseness and print appropriately
Have each timestamp know whether it's coarse or fine. Print six figures
for fine stamps and three for coarse.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Adam C. Emerson [Thu, 5 Oct 2017 22:34:06 +0000 (18:34 -0400)]
log: Add log_coarse_timestamps option
And set up an observer in CephContext to coarsen/refine time stamps as
requested.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>