lixiaoy1
89b8e30bc4
doc: rename RBD persistent cache
...
Rename peristent cache to persistent read-only cache.
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
2020-12-16 04:52:21 -05:00
Jason Dillaman
6fef5198b3
Merge pull request #36626 from lixiaoy1/rbd_image_discard
...
librbd/rwl: discard cache
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-11-01 08:42:01 -05:00
Kefu Chai
8a58d7fdf5
Merge pull request #37870 from xxhdx1985126/wip-crimson-recovery-bug-fixes
...
crimson: recovery-related bug fixes
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-01 21:23:59 +08:00
Kefu Chai
00b78a6ad5
Merge pull request #37910 from tchaikov/wip-crimson-osd-send-pg-temp
...
crimson/osd: merge pg_temp_wanted before sending them
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-01 21:21:42 +08:00
Yuval Lifshitz
2996d138cb
Merge pull request #37656 from yuvalif/allow_lua_to_set_metadata
...
rgw/lua: allow setting metadata via lua
2020-11-01 12:03:26 +02:00
Kefu Chai
4d17fda7e3
crimson/osd: merge pg_temp_wanted before sending them
...
there is chance that new pg_temp_wanted is added when we are sending
them in ShardServices::send_pg_temp(), but the pg temp are already
collected into the messages before seastar::parallel_for_each(). so,
we cannot move all elements from pg_temp_wanted to pg_temp_pending after
sending the messages, that'd also move the unsent pg temps to
pg_temp_pending as well. so we have to do this before do the async call,
this issue was root caused by Xuehan Xu <xxhdx1985126@gmail.com>.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-11-01 11:55:42 +08:00
Kefu Chai
dbbd2d32f3
crimson/osd: drop ShardServices::_sent_pg_temp()
...
there is no need to define a wrapper for moving pg_temp_wanted to
pg_temp_pending. and it hurts the readability.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-11-01 11:55:03 +08:00
Xuehan Xu
124aa74deb
crimson/osd: report statfs data
...
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-01 11:37:21 +08:00
Xuehan Xu
471531e25d
crimson/osd: rename heartbeat_timer to tick_timer
...
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-01 11:37:21 +08:00
Xuehan Xu
8b7d0ae035
crimson/common: make Gated handle gate_close_exception
...
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-01 11:37:21 +08:00
Kefu Chai
6656cae082
crimson/osd: do not check HAVE_STDLIB_MAP_SPLICING
...
seastar always uses GCC-9 and up, so there is no need to check for
the existence of map::merge() before using it anymore.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-11-01 11:28:28 +08:00
Xuehan Xu
d205776796
crimson/osd: clean up pending_txn when actingset is changed
...
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-01 10:39:24 +08:00
Xuehan Xu
c7e6b6f021
crimson/osd: fix pg info statistics error during recovery
...
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-01 10:38:45 +08:00
Xuehan Xu
3a8f133923
crimson/osd: make I/O reqs wait for object recovery if it's degraded or backfilling
...
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-01 10:25:22 +08:00
Kefu Chai
038750c78a
Merge pull request #37327 from kamoltat/wip-mgr-progress-global-event
...
mgr/progress: Global Recovery Event in ceph -s
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-10-31 11:43:27 +08:00
Kefu Chai
a45fab9f81
Merge pull request #37598 from ronen-fr/scrubstore-fix-rf
...
osd: fix signatures of get_store_errors() and friends
Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-By: Neha Ojha <nojha@redhat.com>
2020-10-31 11:42:35 +08:00
Kefu Chai
e96c45d9d2
Merge pull request #37751 from changchengx/nasm_avx512
...
common: use nasm to build isa-l and isa-l_crypto to prepare for AVX512
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-10-31 11:41:19 +08:00
Josh Durgin
8a2f2d82f4
Merge pull request #37773 from sunnyku/wip-f33-pyfix
...
do_cmake.sh: use python-3.9 with fedora version 33
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-10-30 08:15:59 -07:00
Jason Dillaman
0cd14ccff2
Merge pull request #37789 from trociny/wip-47827
...
mgr/rbd_support: create mirror snapshots asynchronously
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-10-30 09:40:10 -04:00
Yuval Lifshitz
e96331fdab
rgw/lua: use lua exceptions instead of ceph_asserts
...
also use lua assert() in uni tests instead of print()
fix bug when accessing user id in an ACL grant
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-10-30 14:50:51 +02:00
Lenz Grimmer
21b24e0247
Merge pull request #37482 from rhcs-dashboard/datatable_click_prevent
...
mgr/dashboard: Prevent table items from getting selected while expanding
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-10-30 09:55:47 +01:00
Lenz Grimmer
587a84049b
Merge pull request #35769 from Codom/master
...
mgr/dashboard: Added Versioning to the REST API
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-10-30 09:50:05 +01:00
Yuval Lifshitz
eaf48d1a3a
rgw/lua: allow setting metadata via lua
...
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-10-30 10:40:06 +02:00
Kefu Chai
d162c00c66
Merge pull request #37788 from tchaikov/wip-zbd
...
rpm,cmake: s/WITH_LIBZBD/WITH_ZBD/ and enable ZBD on demand
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-By: Neha Ojha <nojha@redhat.com>
2020-10-30 11:17:56 +08:00
Kefu Chai
92300bb747
Merge pull request #37888 from tchaikov/wip-crimson-gtest
...
crimson/gtest_seastar: do not keep a copy of argv
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
2020-10-30 10:25:49 +08:00
Kefu Chai
2cdbbd1212
Merge pull request #37891 from tchaikov/wip-cmake-alienstore
...
cmake: build bluestore-tp before crimson-alienstore
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
2020-10-30 10:25:06 +08:00
Kefu Chai
75c7a792e6
Merge pull request #37893 from tchaikov/wip-wunused-variable
...
osd/osd_types: mark unused variable [[maybe_unused]]
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-10-30 10:24:11 +08:00
Jason Dillaman
190534ae08
Merge pull request #37864 from trociny/wip-48020
...
mgr/rbd_support: store global schedule without localized prefix
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-10-29 20:58:44 -04:00
Jason Dillaman
54329691c0
Merge pull request #37880 from trociny/wip-rbd-finisher-cancel
...
librbd: relax requirements on finisher canceled callback
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-10-29 20:58:13 -04:00
Mykola Golub
08151a191f
mgr/rbd_support: create mirror snapshots asynchronously
...
To scale up with number of images.
Fixes: https://tracker.ceph.com/issues/47827
Signed-off-by: Mykola Golub <mgolub@suse.com>
2020-10-29 19:12:01 +00:00
Mykola Golub
13ce488d7a
pybind/rbd: add async mirror image get mode and info methods
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2020-10-29 19:12:01 +00:00
Mykola Golub
fd5e642cd7
librbd: add missing declaration of rbd_aio_mirror_image_get_mode
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2020-10-29 19:12:01 +00:00
Mykola Golub
b27db87c03
pybind/rbd: add image async open and close methods
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2020-10-29 19:12:01 +00:00
Samuel Just
08c54e4ec2
Merge pull request #37886 from tchaikov/wip-osd-scheduler-move
...
osd/scheduler: rely on copy ellision to move return val
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sridhar Seshasayee <sseshasa@redhat.com>
2020-10-29 10:56:44 -07:00
Casey Bodley
897f96eef1
Merge pull request #34866 from nickjanus/issue-45193
...
rgw-admin: fixes BucketInfo for missing buckets
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2020-10-29 12:00:52 -04:00
Yuval Lifshitz
f454b2a628
Merge pull request #37657 from batrick/rgw-lua-fixes
...
rgw: lua refactor
2020-10-29 17:56:46 +02:00
lixiaoy1
33b961e9a1
rbd/tool: add image-cache invalidate
...
Add an rbd command image-cache invalidate to discard RWL cache.
Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
2020-10-29 23:33:10 +08:00
lixiaoy1
da33733fcd
librbd/internal: update invalidate_cache
...
Except invalidating object cache, invalidate image writeback cache.
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
2020-10-29 23:33:10 +08:00
lixiaoy1
3d5b89e85b
librbd/cache: discard writeback cache
...
Add an interface in ImageCache to discard writeback cache.
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
2020-10-29 23:33:10 +08:00
Mykola Golub
d1571ed274
pybind/rbd: async API for creating mirror snapshots
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2020-10-29 15:14:38 +00:00
Mykola Golub
d8468ec7e4
librbd: async API for creating mirror snapshots
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2020-10-29 15:14:38 +00:00
Mykola Golub
5e10672e4e
Merge pull request #37884 from dillaman/wip-48032
...
qa/workunits/rbd: fix permission issue when removing mirror peer
Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-10-29 15:48:35 +02:00
Kefu Chai
4cc179ff08
Merge pull request #37890 from tchaikov/wip-crimson-os-cleanup
...
crimson/os: fix couple issues reported by clang
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
2020-10-29 19:59:08 +08:00
Matt Benjamin
64f15c838b
Merge pull request #36739 from pritha-srivastava/wip-rgw-sts-expire-session-token
...
rgw/sts: adding code for "aws:TokenIssueTime" to be used
2020-10-29 07:58:10 -04:00
Matt Benjamin
133f26325d
Merge pull request #35612 from pritha-srivastava/wip-sts-role-min-duration
...
rgw/sts: Adding a configurable rgw_sts_min_session_duration
2020-10-29 07:57:50 -04:00
Kefu Chai
755c0e7f8b
osd/scheduler: rely on copy ellision to move return val
...
C++14 enforces copy ellision in this case.
also silences warning of
src/osd/scheduler/mClockScheduler.cc:122:21: warning: redundant move in return statement [-Wredundant-move]
122 | return std::move(ret);
| ~~~~~~~~~^~~~~
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-10-29 18:51:38 +08:00
Kefu Chai
f9f9270d75
osd/osd_types: mark unused variable [[maybe_unused]]
...
silences warning like:
rc/osd/osd_types.h:5482:18: warning: unused variable '_' [-Wunused-variable]
auto [iter, _] = ref_delta.try_emplace(hoid, 0);
^
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-10-29 18:36:13 +08:00
Kefu Chai
76fe6fc32c
cmake: build bluestore-tp before crimson-alienstore
...
to address the FTBFS of
src/os/bluestore/BlueStore.cc:52:10: fatal error: tracing/bluestore.h: No such file or directory
52 | #include "tracing/bluestore.h"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
tracing/bluestore.h is created by the "bluestore-tp" target, there
is a good chance that we build crimson when WITH_LTTNG is enabled,
let's ensure that tracing/bluestore.h is ready before compiling
alienstore.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-10-29 17:21:06 +08:00
Kefu Chai
7736aaf32f
crimson/os: capture local bindings using capture variable list
...
structured binding does not define variables, and the implicit
capture-by-copy `=` does not help in this case, we have to define a
capture with an initializer to create a *variable* enclosed by
the closure explicitly.
this address the error like:
src/crimson/os/seastore/segment_cleaner.cc:315:5: error: reference to local binding 'addr' declared in enclosing lambda expression
addr);
^
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-10-29 16:32:26 +08:00
Kefu Chai
e29f6e84d7
crimson/os: do not move temporay variable
...
copy ellision ensures that copy ctor is not called in this case
silences warning like:
mson/os/seastore/lba_manager/btree/lba_btree_node_impl.cc:262:5: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
std::move(begin()),
^
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-10-29 16:32:26 +08:00