]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yuri Weinstein [Tue, 28 Jul 2020 18:17:09 +0000 (11:17 -0700)]
Merge pull request #36250 from dillaman/wip-46673
nautilus: librbd: new 'write_zeroes' API methods to suppliment the `discard` APIs
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Yuri Weinstein [Tue, 28 Jul 2020 17:35:26 +0000 (10:35 -0700)]
Merge pull request #36292 from dzafman/wip-46706-nautilus
nautilus: osd: Cancel in-progress scrubs (not user requested)
Reviewed-by: Neha Ojha <nojha@redhat.com>
Yuri Weinstein [Tue, 28 Jul 2020 17:34:42 +0000 (10:34 -0700)]
Merge pull request #36190 from smithfarm/wip-46458-nautilus
nautilus: build/ops: selinux: allow ceph_t amqp_port_t:tcp_socket
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yuri Weinstein [Tue, 28 Jul 2020 17:34:07 +0000 (10:34 -0700)]
Merge pull request #36161 from smithfarm/wip-46090-nautilus
nautilus: osd/PG: fix history.same_interval_since of merge target again
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Ramana Raja [Mon, 27 Jul 2020 18:38:28 +0000 (00:08 +0530)]
Merge pull request #36167 from ajarr/nautilus-mgr-fs-volumes-misc
nautilus: mgr/fs/volumes misc fixes
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:35:08 +0000 (08:35 -0700)]
Merge pull request #36294 from ajarr/wip-46470
nautilus: client: release the client_lock before copying data in read
Reviewed-by: Ramana Raja <rraja@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:34:32 +0000 (08:34 -0700)]
Merge pull request #36215 from vshankar/wip-46388
nautilus: client: introduce timeout for client shutdown
Reviewed-by: Ramana Raja <rraja@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:33:57 +0000 (08:33 -0700)]
Merge pull request #36180 from ajarr/wip-46464-nautilus
nautilus: pybind/cephfs: fix custom exception raised by cephfs.pyx
Reviewed-by: Ramana Raja <rraja@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:33:08 +0000 (08:33 -0700)]
Merge pull request #36179 from smithfarm/wip-46523-nautilus
nautilus: mds: fix hang issue when accessing a file under a lost parent directory
Reviewed-by: Ramana Raja <rraja@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:32:43 +0000 (08:32 -0700)]
Merge pull request #36178 from smithfarm/wip-46521-nautilus
nautilus: mds: do not submit omap_rm_keys if the dir is the basedir of merge.
Reviewed-by: Ramana Raja <rraja@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:31:44 +0000 (08:31 -0700)]
Merge pull request #36177 from smithfarm/wip-46517-nautilus
nautilus: cephfs: client: fix directory inode can not call release callback
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:30:13 +0000 (08:30 -0700)]
Merge pull request #36175 from smithfarm/wip-46474-nautilus
nautilus: mds: make threshold for MDS_TRIM configurable
Yuri Weinstein [Mon, 27 Jul 2020 15:29:40 +0000 (08:29 -0700)]
Merge pull request #36173 from smithfarm/wip-46409-nautilus
nautilus: cephfs: client: fix setxattr for 0 size value (NULL value)
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:29:10 +0000 (08:29 -0700)]
Merge pull request #36172 from smithfarm/wip-46310-nautilus
nautilus: tests: qa/tasks/cephfs/cephfs_test_case.py: skip cleaning the core dumps when in program case
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:28:36 +0000 (08:28 -0700)]
Merge pull request #36171 from smithfarm/wip-46200-nautilus
nautilus: tests: Revert "Revert "qa/suites/rados/mgr/tasks/module_selftest: whitelist …
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:27:57 +0000 (08:27 -0700)]
Merge pull request #36170 from smithfarm/wip-46189-nautilus
nautilus: mds: reset heartbeat in EMetaBlob replay
Reviewed-by: Ramana Raja <rraja@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:27:16 +0000 (08:27 -0700)]
Merge pull request #36169 from smithfarm/wip-46187-nautilus
nautilus: cephfs: client: fix snap directory atime
Reviewed-by: Ramana Raja <rraja@redhat.com>
Yuri Weinstein [Mon, 27 Jul 2020 15:15:19 +0000 (08:15 -0700)]
Merge pull request #36270 from yuriw/wip-yuriw-nautilus-p2p-nautilus
nautilus: qa/tests: changed rbd-python.yaml workunit to v14.2.10
Reviewed-by: Neha Ojha <nojha@redhat.com>
Kotresh HR [Mon, 27 Jul 2020 10:57:18 +0000 (16:27 +0530)]
nautilus: qa/test_volumes: Modify tests not to use json for 'ceph fs status'
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Ramana Raja [Wed, 22 Jul 2020 10:26:36 +0000 (15:56 +0530)]
nautilus: mgr/volumes: use MgrModule's mon_command()
... instead of 'check_mon_command' which is not in nautilus, and not
compatible with python2 and early versions of py3.
Signed-off-by: Ramana Raja <rraja@redhat.com>
Ramana Raja [Mon, 20 Jul 2020 09:08:29 +0000 (14:38 +0530)]
nautilus: mgr/volumes: fix import typing error
... for python versions earlier than 3.5.
Signed-off-by: Ramana Raja <rraja@redhat.com>
Patrick Donnelly [Tue, 30 Jun 2020 15:33:59 +0000 (08:33 -0700)]
pybind/mgr/volumes: fix volume search for pools
Loop logic would bail out if it first sees any file system that does not
match the volume it's looking for.
Fixes: https://tracker.ceph.com/issues/46277
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
be74a81e19ef3b5e8204d52e6a3f7f0c57d49854 )
Kotresh HR [Tue, 23 Jun 2020 18:19:22 +0000 (23:49 +0530)]
mgr/volumes: Validate mon_allow_pool_delete before volume deletion
Volume deletion wasn't validating mon_allow_pool_delete config
before destroying volume metadata. Hence when mon_allow_pool_delete
is set to false, it was deleting metadata but failed to delete pool
resulting in inconsistent state. This patch validates the config
before going ahead with deletion.
Fixes: https://tracker.ceph.com/issues/45662
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit
e770bb9075d931913847a572d121e02a2e349ca8 )
Patrick Donnelly [Mon, 10 Feb 2020 18:46:09 +0000 (10:46 -0800)]
qa: manage config changes through mons
This provides a generic framework for modifying Ceph configuration
changes in tests through the monitors rather than the asok interface or
local ceph.conf changes. Any changes are reverted during test teardown.
A future patch will convert existing tests manipulating the local
ceph.conf or admin socket.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
87292811215f6ded9a784d3216a910faaef648e2 )
Kotresh HR [Fri, 5 Jun 2020 17:58:36 +0000 (23:28 +0530)]
mgr/volumes: Fix pool removal on volume deletion
While volume deletion, the associated pools are not always
removed. The pools are removed only if the volume is created
using mgr plugin and not if created with custom osd pools.
This is because mgr plugin generates pool names with specific
pattern. Both create and delete volume relies on it. This
patch fixes the issue by identifying the pools of the volume
without relying on the pattern.
Fixes: https://tracker.ceph.com/issues/45910
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit
d07ea8db471b1a1d9082756e1cb775d5543b1307 )
Conflicts:
src/pybind/mgr/volumes/fs/operations/volume.py:
- In nautilus, fs volume create doesn't have placement arg
src/pybind/mgr/volumes/fs/volume.py:
- In nautilus, VolumeClient code not moved to mgr_util.py
00111048 [Fri, 5 Jun 2020 06:46:06 +0000 (14:46 +0800)]
client: release the client_lock before copying data in read
Fixes: https://tracker.ceph.com/issues/46025
Signed-off-by: Chencan <chen.can2@zte.com.cn>
(cherry picked from commit
db292da7d5571ed3addedfb4c5ab8c61fe9bb5e8 )
Conflicts:
src/client/Client.cc
- in nautilus, not switched bufferlist::copy() to iterators
Igor Fedotov [Sat, 25 Jul 2020 19:46:21 +0000 (22:46 +0300)]
Merge pull request #35500 from ifed01/wip-ifed-hybrid-alloc-nau
nautilus: os/bluestore: implement Hybrid allocator
Reviewed-by: akupczyk@redhat.com
Igor Fedotov [Mon, 20 Apr 2020 11:31:50 +0000 (14:31 +0300)]
qa/objectstore: test hybrid allocator instead of avl one.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
0f639740a3b99d0600f6508d90d426ca12501a03 )
Igor Fedotov [Thu, 16 Apr 2020 15:06:04 +0000 (18:06 +0300)]
os/bluestore: set hybrid allocator as a default for bluefs/bluestore
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
cacc7391dca779c7e6e3b57e6d1753a53b8c49b9 )
Conflicts:
src/test/objectstore/store_test.cc
trivial
Igor Fedotov [Wed, 25 Mar 2020 14:19:12 +0000 (17:19 +0300)]
os/bluestore: improve adjustent extents merge in hybrid allocatoc
Bitmap counterpart is inspected for adjustent free extents when
releasing extent and trying to add it to AVL tree.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
c27490e3d641f2b8ea65759fd79640e5f6dd398c )
Igor Fedotov [Mon, 23 Mar 2020 12:43:09 +0000 (15:43 +0300)]
os/bluestore: remove HybridAllocator::init_add_free method.
It's a 100% replica of AvlAllocator one which is inherited.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
cccbc62528e03f4e49882137342adfea20b9a0f2 )
Igor Fedotov [Fri, 14 Feb 2020 14:26:17 +0000 (17:26 +0300)]
os/bluestore: configure hybrid allocator threshold to fallback.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
b682d9a8e8d3f41d55ad10d2fb3deca8edf8540a )
Conflicts:
src/common/options.cc
trivial
Igor Fedotov [Thu, 13 Feb 2020 22:04:39 +0000 (01:04 +0300)]
os/bluestore: add hybrid (avl+bitmap) allocator
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
c90eee34955734a5d4d2d4f0d1ff04b275374fb1 )
Conflicts:
src/os/CMakeLists.txt
src/test/objectstore/Allocator_bench.cc
src/test/objectstore/Allocator_test.cc
src/test/objectstore/CMakeLists.txt
GTEST_SKIP not available, +trivial
Igor Fedotov [Thu, 13 Feb 2020 22:06:46 +0000 (01:06 +0300)]
os/bluestore: do not require min_length to be power of two for bmap
allocator.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
21532045efeb8d357518686df84a529ee3d32a60 )
Conflicts:
src/os/bluestore/fastbmap_allocator_impl.h
variable rename
Igor Fedotov [Thu, 13 Feb 2020 21:57:29 +0000 (00:57 +0300)]
os/bluestore: extend AvlAllocator interface.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
cccf94da463aa15370fe674bda24d168d331ceca )
Igor Fedotov [Thu, 13 Feb 2020 21:56:07 +0000 (00:56 +0300)]
tests/test_bluestore_types: show AvlAllocator's range_seg_t size.
Extend corresponding test case to be aware of the struct's sizeof.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
719cd7d9423d1d16e3005cc0b807699ed24533de )
Igor Fedotov [Wed, 12 Feb 2020 13:17:40 +0000 (16:17 +0300)]
os/bluestore: make AvlAllocator overridable.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
59c0aa5eb40957364ddb0e9d62dffa3449991249 )
Igor Fedotov [Wed, 12 Feb 2020 12:55:03 +0000 (15:55 +0300)]
os/bluestore: intdoduce spillover mechanics to AvlAllocator.
This to be utilized in AvlAllocator's descendant class(es) to be able
to limit amount of entries allocator tracks. Hence bringing a cap for
RAM used by the allocator.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
efedcc077c7ed4e1e5ea26ae989fa3d6cbd287d4 )
Igor Fedotov [Mon, 19 Aug 2019 13:01:21 +0000 (16:01 +0300)]
os/bluestore: avoid constant name replica in bitmap allocator.
This was introduced by Adam's https://github.com/ceph/ceph/pull/29425
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
683f7bab5a571cc3a6c7106fdb1d4017cc843c5d )
Igor Fedotov [Mon, 19 Aug 2019 12:51:51 +0000 (15:51 +0300)]
os/bluestore: implement original allocator fragmentation inspection.
Using admin socket interface: bluestore allocator fragmentation
[block|bluefs-db|bluefs-wal|bluefs-slow]
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
11b5feb01d273365c32ec6419faead629fb8c20b )
Igor Fedotov [Mon, 19 Aug 2019 12:19:25 +0000 (15:19 +0300)]
os/bluestore: simplify Allocator::get_fragmentation() signature
Remove alloc_unit parameter.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
3a96db924968b65afed5fc1355acbf185455c5c4 )
Igor Fedotov [Tue, 9 Jul 2019 18:19:37 +0000 (21:19 +0300)]
os/bluestore: StupidAllocator stucks on 4GB allocations
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
1a91a67bf2fab64d27a000b3c62d3d7beac1aa75 )
Conflicts:
src/test/objectstore/Allocator_test.cc
Previous gtest version
Igor Fedotov [Mon, 19 Aug 2019 11:39:31 +0000 (14:39 +0300)]
test/allocator_test: additional coverage for get_fragmentation_score
Tests the function results agains the same cases as we do for
get_fragmentation.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
6ae213181433dd2ae392d8eed85c2606b9c4bb54 )
Adam Kupczyk [Thu, 12 Mar 2020 12:29:03 +0000 (13:29 +0100)]
os/bluestore: Adds shutdown in destructor of AvlAllocator
Adds shutdown. Fixes incorrect mempool accounting.
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
(cherry picked from commit
ea95309f478428b6e4b3af93b19459f6b5cc162d )
Conflicts:
src/test/objectstore/Allocator_bench.cc
trivial
xie xingguo [Mon, 9 Oct 2017 12:31:57 +0000 (20:31 +0800)]
qa: add AvlAllocator test script
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit
29512a70d45628ff4efcd4fd45b5d689b21b01d8 )
xie xingguo [Sun, 8 Oct 2017 07:52:34 +0000 (15:52 +0800)]
src/test/objectstore/Allocator_{test,bench}.cc: test AvlAllocator too
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit
97dfbc9c4816027d766731f0facf1ffa03455491 )
Conflicts:
src/test/objectstore/Allocator_bench.cc
src/test/objectstore/Allocator_test.cc
GTEST_SKIP not present, +trivial
xie xingguo [Sat, 7 Oct 2017 05:18:31 +0000 (13:18 +0800)]
os/bluestore: implement avl-extent-based allocator
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
adbc79a8ac28115c692a9fe6d4f6c098a7c7a5ea )
Conflicts:
src/common/options.cc
non-backported options
Yuri Weinstein [Fri, 24 Jul 2020 22:04:26 +0000 (15:04 -0700)]
Merge pull request #36290 from neha-ojha/wip-fio-nautilus
nautilus: qa/suites/rados/perf: run on ubuntu only
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Neha Ojha [Fri, 24 Jul 2020 21:53:32 +0000 (21:53 +0000)]
qa/suites/rados/perf: run on ubuntu only
This change is specific to nautilus since fio tests have been failing
on centos and rhel 7.8 due to dependency issues.
Signed-off-by: Neha Ojha <nojha@redhat.com>
David Zafman [Tue, 7 Jul 2020 01:02:08 +0000 (18:02 -0700)]
test: Check for interuption of scrubs with nosrub/nodeep_scrub
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
365e48d6ec71cec7c85acbf918927a20856d55da )
Conflicts:
qa/standalone/scrub/osd-scrub-test.sh (The scrub/deep_scrub trigger
doesn't use ceph tell)
Yuri Weinstein [Fri, 24 Jul 2020 19:12:09 +0000 (12:12 -0700)]
Merge pull request #36074 from neha-ojha/wip-46184-nautilus
nautilus: mgr/DaemonServer.cc: make 'config show' on fsid work
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Fri, 24 Jul 2020 19:11:40 +0000 (12:11 -0700)]
Merge pull request #35713 from dzafman/wip-46116
nautilus: tools: Add statfs operation to ceph-objecstore-tool
Reviewed-by: Neha Ojha <nojha@redhat.com>
Yuri Weinstein [Fri, 24 Jul 2020 19:09:04 +0000 (12:09 -0700)]
Merge pull request #35464 from bk201/wip-45837-nautilus
nautilus: monitoring: fixing some issues in RBD detail dashboard
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Yuri Weinstein [Fri, 24 Jul 2020 19:08:21 +0000 (12:08 -0700)]
Merge pull request #35237 from smithfarm/wip-45677-nautilus
nautilus: qa/workunits: Remove redundant Xenial cmake3 requirements
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Yuri Weinstein [Fri, 24 Jul 2020 19:06:20 +0000 (12:06 -0700)]
Merge pull request #35841 from Vicente-Cheng/wip-46191-nautilus
nautilus: mds: fix filelock state when Fc is issued
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
David Zafman [Thu, 2 Jul 2020 17:05:57 +0000 (10:05 -0700)]
osd: Cancel in-progress scrubs (not user requested)
This change adds new scrubber.req_scrub to track user
requested scrubs, deep_scrub or repair.
Fixes: https://tracker.ceph.com/issues/46275
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
33749cc3c39131d7abed9b8c14064dbfaa87f3a2 )
Conflicts:
PendingReleaseNotes (trivial)
src/osd/PG.cc (Due to code re-arrangement changes add manually)
David Zafman [Thu, 23 Jul 2020 16:40:54 +0000 (09:40 -0700)]
osd: Arrange code so that it is clearer should not cause any change
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
ef9ab850d87a84ce42c2c8df1c9b502b2fb04989 )
David Zafman [Tue, 21 Jul 2020 20:58:42 +0000 (13:58 -0700)]
test: mon-last-epoch-clean.sh fixed to avoid shell globbing
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
f272768802648f2cb4d519c4c790ab219ad43f9f )
Yuri Weinstein [Thu, 23 Jul 2020 17:16:51 +0000 (10:16 -0700)]
qa/tests: changed rbd-python.yaml workunit to v14.2.10
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Thomas Serlin [Fri, 10 Jul 2020 05:36:28 +0000 (01:36 -0400)]
selinux: add amqp and soundd types to ceph.te
Signed-off-by: Thomas Serlin <tserlin@redhat.com>
(cherry picked from commit
c3c5129748d2580ec95ef11609b124eef4dc29ff )
Conflicts:
selinux/ceph.te
kalebskeithley [Wed, 8 Jul 2020 19:20:30 +0000 (15:20 -0400)]
selinux: allow ceph_t amqp_port_t:tcp_socket
allow ceph_t amqp_port_t:tcp_socket name_connect;
allow ceph_t soundd_port_t:tcp_socket name_connect;
Required for running RabbitMQ
(soundd_port_t) for running RabbitMQ on port 8000
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1854083
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
(cherry picked from commit
05c523185b2d5ddd9e10f425c7e1f1ee1e409ba2 )
Yuri Weinstein [Wed, 22 Jul 2020 20:07:20 +0000 (13:07 -0700)]
Merge pull request #36186 from smithfarm/wip-45930-nautilus
nautilus: rgw: Add support wildcard subuser for bucket policy
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Wed, 22 Jul 2020 20:06:50 +0000 (13:06 -0700)]
Merge pull request #36163 from ivancich/nautilus-bucket-listing-clear-results
nautilus: rgw: cls_bucket_list_(un)ordered should clear results collection
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Jason Dillaman [Tue, 30 Jun 2020 12:47:48 +0000 (08:47 -0400)]
rbd: use new 'write_zeroes' API to ensure zeroed extents will be zeroed
Fixes: https://tracker.ceph.com/issues/45986
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
f319ecfbec3486917824eab84ab76347319b8bde )
(cherry picked from commit
f53e43c6b1c520733ffd2c506a958fb7c4a45f9c )
Jason Dillaman [Tue, 30 Jun 2020 15:20:31 +0000 (11:20 -0400)]
pybind/rbd: add new write_zeroes/aio_write_zeroes API methods
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
c27d744a339d3644b756ee496445909f63c8903e )
(cherry picked from commit
6a884184b680b89e2b46ad001651e07e58514eb0 )
Jason Dillaman [Tue, 30 Jun 2020 12:44:38 +0000 (08:44 -0400)]
librbd: add 'write_zeroes' public C/C++ API methods
Unlike the existing 'discard' option which is more of a hint to
attempt to release space, the new 'write_zeroes' APIs will ensure
that the entire provided extent is fully zeroed.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
ae6dd86b22e928dc23a385faf41cf76b0d293576 )
Conflicts:
src/librbd/api/Io.h/cc: logic exists in ImageRequestWQ files
src/librbd/librbd.cc: trivial resolution due missing api::Io
src/test/librbd/test_librbd.cc: trivial resolution
(cherry picked from commit
0e3add97ff1f919d81a1c644b150672cbd691c84 )
Conflicts:
src/librbd/io/ImageRequestWQ.cc: different locks and no overlap guard
src/test/librbd/test_librbd.cc: trivial resolution
Yuri Weinstein [Wed, 22 Jul 2020 17:37:02 +0000 (10:37 -0700)]
Merge pull request #35601 from smithfarm/wip-46012-nautilus
nautilus: qa/vstart_runner: update vstart_runner.LocalRemote.sh
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Yuri Weinstein [Wed, 22 Jul 2020 17:34:45 +0000 (10:34 -0700)]
Merge pull request #35401 from smithfarm/wip-45854-nautilus
nautilus: tools/cephfs: don't bind to public_addr
Reviewed-by: Ramana Raja <rraja@redhat.com>
Yuri Weinstein [Wed, 22 Jul 2020 17:34:08 +0000 (10:34 -0700)]
Merge pull request #34461 from Vicente-Cheng/wip-44487-nautilus
nautilus: qa: add upgrade test for volume upgrade from legacy
Reviewed-by: Ramana Raja <rraja@redhat.com>
Ramana Raja [Tue, 21 Jul 2020 17:22:08 +0000 (22:52 +0530)]
Merge pull request #36166 from ShyamsundarR/wip-46527-nautilus
nautilus: mgr/volumes: Deprecate protect/unprotect CLI calls for subvolume snapshots
Reviewed-by: Ramana Raja <rraja@redhat.com>
Yuri Weinstein [Tue, 21 Jul 2020 15:29:42 +0000 (08:29 -0700)]
Merge pull request #36193 from smithfarm/wip-46476-nautilus
nautilus: rgw/iam: correcting the result of get role policy.
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Tue, 21 Jul 2020 15:29:11 +0000 (08:29 -0700)]
Merge pull request #36192 from smithfarm/wip-46472-nautilus
nautilus: rgw: stop realm reloader before store shutdown
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Tue, 21 Jul 2020 15:28:43 +0000 (08:28 -0700)]
Merge pull request #36191 from smithfarm/wip-46468-nautilus
nautilus: rgw: radoslist incomplete multipart uploads fix marker progression
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Tue, 21 Jul 2020 15:28:14 +0000 (08:28 -0700)]
Merge pull request #36189 from smithfarm/wip-46004-nautilus
nautilus: rgw: add check for index entry's existing when adding bucket stats during bucket reshard.
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Tue, 21 Jul 2020 15:27:48 +0000 (08:27 -0700)]
Merge pull request #36187 from smithfarm/wip-45932-nautilus
nautilus: rgw: Add subuser to OPA request
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Tue, 21 Jul 2020 15:27:19 +0000 (08:27 -0700)]
Merge pull request #36185 from smithfarm/wip-45927-nautilus
nautilus: rgw: fix loop problem with swift stat on account.
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Tue, 21 Jul 2020 15:26:45 +0000 (08:26 -0700)]
Merge pull request #36184 from smithfarm/wip-45925-nautilus
nautilus: rgw: add quota enforcement to CopyObj
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Tue, 21 Jul 2020 15:26:10 +0000 (08:26 -0700)]
Merge pull request #36165 from ivancich/wip-45923-nautilus
nautilus: rgw: bucket list/stats truncates for user w/ >1000 buckets
Reviewed-by: Casey Bodley <cbodley@redhat.com>
J. Eric Ivancich [Tue, 3 Mar 2020 16:18:11 +0000 (11:18 -0500)]
rgw: cls_bucket_list_(un)ordered should clear results collection
Each call to cls_bucket_list_(un)ordered should have an empty
collection to populate with results. Rather than rely on the caller to
insure this, it's more reliable to have these functions do the clear.
Additionally in some cases, a reserve call was added to the collection
to pre-allocate the space needed for the expected number of
results. This will potentially result in fewer re-allocations plus
copies.
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit
c52039a9e8a49f3a29e2d2ee80e50d7b1b441842 )
Conflicts:
src/rgw/rgw_admin.cc
src/rgw/rgw_rados.cc
Venky Shankar [Wed, 3 Jun 2020 07:17:38 +0000 (03:17 -0400)]
client: introduce timeout for client shutdown
Client::shutdown() could indefinitely wait when tearing down
MDS sessions if an MDS is unreachable during shutdown, but a
valid session existed, i.e., Client::mount() was successfull.
These failures were initially observed in mgr/volumes tests in
teuthology and lately during rados/mgr selftests where manager
plugins do not respawn as volumes plugin waits for cleaning up
libcephfs handles via Client::shutdown().
Fixes: http://tracker.ceph.com/issues/44276
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit
7c716be4b94d7640d051d427f5d7e97fefe5baf2 )
Conflicts:
src/client/Client.cc
src/client/Client.h
src/common/options.cc
Condition variables in nautilus use WaitInterval() rather
than wait_for(). Client::_closed_mds_session() does not accept
errno parameter in nautilus -- so adjust for that. Also, fixup
config option conflict.
Shyamsundar Ranganathan [Mon, 20 Jul 2020 12:32:43 +0000 (08:32 -0400)]
mgr/volumes: Remove enum usage in code for Py2 support
SubvolumeFeatures uses an enum for the feature list, this is
replaced with a constant instead.
Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
Pritha Srivastava [Fri, 5 Jun 2020 04:00:49 +0000 (09:30 +0530)]
rgw/iam: correcting the result of get role policy.
Fixes: https://tracker.ceph.com/issues/45671
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit
9e1ae9de9905587a227e50d0aff6533e290a8f87 )
Casey Bodley [Thu, 14 May 2020 15:43:39 +0000 (11:43 -0400)]
rgw: add quota enforcement to CopyObj
Fixes: https://tracker.ceph.com/issues/45382
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
70d397541cc8c0a68b3e420a78fec8f0f66f06b0 )
Conflicts:
src/rgw/rgw_op.cc
- nautilus uses plain "store->" where master has "store->getRados()->"
- nautilus store->get_object_state takes 6 arguments instead of 7 in
master
Casey Bodley [Wed, 10 Jun 2020 14:53:55 +0000 (10:53 -0400)]
rgw: stop realm reloader before store shutdown
otherwise the two could race to destroy the store
Fixes: https://tracker.ceph.com/issues/45969
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
7787dfb4926dcc2baa7530b620ae8cfccf90bc30 )
Conflicts:
src/rgw/rgw_main.cc
- RGWRealmWatcher realm_watcher(...) line looks different in nautilus
J. Eric Ivancich [Tue, 23 Jun 2020 16:55:39 +0000 (12:55 -0400)]
rgw: radoslist incomplete multipart uploads fix marker progression
When the radosgw-admin radoslist was running, the portion where it
lists the incomplete multipart uploads did not handle the marker
correctly between calls to the ordered list op. This fixes those
issues and does some additional clean-up.
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit
653848da4ae67a45a5d72b0daece86de939f5e15 )
zhang Shaowen [Tue, 16 Jul 2019 09:41:48 +0000 (17:41 +0800)]
rgw: add check for index entry's existing when we add bucket stats during resharding.
Signed-off-by: zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
(cherry picked from commit
ce42734773203bfd2d620e6974e428e1b5d3f480 )
Seena Fallah [Wed, 8 Apr 2020 19:45:20 +0000 (00:15 +0430)]
rgw: Add subuser to OPA request
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit
793aaaaed9029e032128b50767a5faf1bb7f6d81 )
Conflicts:
src/rgw/rgw_opa.cc
- jf.dump_object("user_info", ...) line looks different in nautilus
Seena Fallah [Thu, 5 Mar 2020 19:00:39 +0000 (22:30 +0330)]
rgw: Add support wildcard subuser for bucket policy
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit
0008f84cb03402b159001bf6b6c3a2ff48b2de9b )
Marcus Watts [Tue, 10 Mar 2020 04:34:01 +0000 (00:34 -0400)]
rgw: fix loop problem with swift stat on account.
Loop logic in RGWStatAccount::execute was failing to change the
marker before repeating a call to rgw_read_user_buckets(). This resulted
that in the case that a user had more than 1000 buckets, this routine
would loop forever.
Fixes: https://tracker.ceph.com/issues/44671
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit
c9f3cf6ed6a649812d47dc1fa1357ae0749dbcbf )
Conflicts:
src/rgw/rgw_op.cc
Zhi Zhang [Fri, 10 Jul 2020 09:03:50 +0000 (17:03 +0800)]
mds: fix hang issue when accessing a file under a lost parent directory
When a directory metadata is lost, if we looked up a file under this lost directory,
this request will hang forever.
Fixes: https://tracker.ceph.com/issues/46129
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
(cherry picked from commit
778917c426d3c8611c5e5f209840a674c09fef0a )
Conflicts:
src/mds/CDir.h
- "git cherry-picked" failed to find the right hunk; made the change
manually
Ramana Raja [Sun, 5 Jul 2020 11:46:15 +0000 (17:16 +0530)]
pybind/cephfs: raise custom Exception with same arguments
... so that's easier for a higher level application to handle
it.
Fixes: https://tracker.ceph.com/issues/46360
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit
8992489cab6c0d09244c0640c6ec1a0e0f486b5a )
Chencan [Tue, 30 Jun 2020 11:30:12 +0000 (19:30 +0800)]
mds: do not submit omap_rm_keys if the dir is the basedir of merge.
Fixes: https://tracker.ceph.com/issues/46273
Signed-off-by: Chencan <chen.can2@zte.com.cn>
(cherry picked from commit
d8a6715b0740bebfe7922391868aae2df304db6b )
sepia-liu [Sat, 30 May 2020 10:10:15 +0000 (18:10 +0800)]
client: fix directory inode can not call release callback
When use client like nfs-ganesha hold ref of dir inode,
the dentry of the inode does not expirable because its
state is always lru_pinned.
The current code location does not tell nfs-ganesha to
release dir inodes, so we should call release_callback
to tell nfs-ganesha release first, and then trim dentry
when its state becomes unpin.
Fixes: https://tracker.ceph.com/issues/46355
Signed-off-by: sepia-liu <liuwei_coder@163.com>
(cherry picked from commit
60de0363ec7e1423665091bf42f67b78f11d9c1f )
Ramana Raja [Fri, 3 Jul 2020 12:24:44 +0000 (17:54 +0530)]
pybind/cephfs: add DiskQuotaExceeded exception
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit
4cd247e6d0b7d38eb8e9bf5f6a656fd78393b4f6 )
Conflicts:
src/pybind/cephfs/cephfs.pyx
- certain exceptions were missing in nautilus
src/test/pybind/test_cephfs.py
- some cephfs pybind interfaces and their tests were missing in nautilus
Paul Emmerich [Fri, 5 Jun 2020 11:54:15 +0000 (13:54 +0200)]
mds: make threshold for MDS_TRIM configurable
Fixes: https://tracker.ceph.com/issues/45906
Signed-off-by: Paul Emmerich <paul.emmerich@croit.io>
(cherry picked from commit
d905678a87326195c71ce6da16933e671b0d90eb )
Sidharth Anupkrishnan [Mon, 6 Jul 2020 09:15:46 +0000 (14:45 +0530)]
client: Fix setxattr with 0 size specified
When xattrs are set with 0 size, the value should be set to an empty string.
Signed-off-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
(cherry picked from commit
dd8f1a544d5c98277d42ecace4dad854c428b262 )
Xiubo Li [Wed, 13 May 2020 08:53:40 +0000 (04:53 -0400)]
qa/tasks/cephfs/cephfs_test_case.py: skip cleaning the core dumps
|/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h
If the first character of this file is a pipe symbol (|), then the
remainder of the line is interpreted as the command-line for a
user-space program (or script) that is to be executed. More detail,
please see: http://man7.org/linux/man-pages/man5/core.5.html
Here will just skip cleaning the core dumps in this case.
Fixes: https://tracker.ceph.com/issues/45530
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
de62c5393b7fe337b12e30a00c2f8ad4c79d1d15 )
Venky Shankar [Thu, 11 Jun 2020 04:07:57 +0000 (00:07 -0400)]
Revert "Revert "qa/suites/rados/mgr/tasks/module_selftest: whitelist mgr client getting backlisted""
This reverts commit
a7994a0fdddfa2eadd678ae0f3ec58324f19731d .
Failed attempt at solving the issue is in PR #33272. Until we
find a clean solution for this, whiltelisting the warning is
probably the best thing for now.
Fixes: http://tracker.ceph.com/issues/43943
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit
60b8f7a46b88bfe381499a5fd8cbc1c851b6e614 )
Yanhu Cao [Tue, 16 Jun 2020 06:07:26 +0000 (14:07 +0800)]
mds: reset heartbeat in EMetaBlob replay
Fixes: https://tracker.ceph.com/issues/46042
Signed-off-by: Yanhu Cao <jrcaoyanhu@jd.com>
(cherry picked from commit
07031a0de9654e029fc5063899c2d9394c7f4668 )
Luis Henriques [Wed, 11 Mar 2020 11:10:05 +0000 (11:10 +0000)]
client: fix snap directory atime
For consistency, also get the .snap directory atime from the parent
directory. Otherwise, this timestamp will be kept at 1970-01-01.
Fixes: https://tracker.ceph.com/issues/46070
Signed-off-by: Luis Henriques <lhenriques@suse.com>
(cherry picked from commit
057842132600d6d5854f16600b90131075a1b509 )