]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Venky Shankar [Wed, 3 Apr 2024 16:24:45 +0000 (21:54 +0530)]
Merge pull request #56392 from batrick/wip-65058-reef
reef: qa/suites/fs/nfs: use standard health ignorelist
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Venky Shankar [Wed, 3 Apr 2024 16:23:35 +0000 (21:53 +0530)]
Merge pull request #56211 from joscollin/wip-64919-reef
reef: qa: enhance labeled perf counters test for cephfs-mirror
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Venky Shankar [Wed, 3 Apr 2024 16:22:27 +0000 (21:52 +0530)]
Merge pull request #55803 from anoopcs9/wip-64565-reef
reef: client: Fix return in removexattr for xattrs from `system.` namespace
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Anthony D'Atri [Wed, 3 Apr 2024 16:07:55 +0000 (12:07 -0400)]
Merge pull request #56660 from zdover23/wip-doc-2024-04-03-backport-56635-to-reef
reef: doc/dev: refine "Concepts"
Aashish Sharma [Wed, 3 Apr 2024 14:53:41 +0000 (20:23 +0530)]
Merge pull request #56652 from aaSharma14/wip-65283-reef
reef: mgr/dashboard: upgrade from old 'graph' type panels to the new 'timeseries' panel
Reviewed-by: Nizamudeen A <nia@redhat.com>
Zac Dover [Tue, 2 Apr 2024 12:23:13 +0000 (22:23 +1000)]
doc/dev: refine "Concepts"
Refine the text in the first third of the entries in the section
"Concepts" in doc/dev/peering.rst.
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit
530b11be24c6e702d4d9b9227649db8ca34591e4 )
Aashish Sharma [Wed, 4 Oct 2023 09:07:42 +0000 (14:37 +0530)]
mgr/dashboard: upgrade from old 'graph' type panels to the new
'timeseries' panel
The graph panel type is deprecated, and disappears after Grafana v9.1 (current version is 10.0) to prevent more old type panels being created. These should be migrated to the timeseries panel type, to avoid potential problems with future Grafana versions.
Fixes: https://tracker.ceph.com/issues/61720
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit
2573426f54aab237ed855a4e88d5b89ddbd76acd )
Patrick Donnelly [Tue, 2 Apr 2024 15:17:28 +0000 (11:17 -0400)]
Merge PR #56567 into reef
* refs/pull/56567/head:
doc: add releases links to toc
doc: remove releases docs
Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Patrick Donnelly [Tue, 2 Apr 2024 15:14:48 +0000 (11:14 -0400)]
Merge PR #56479 into reef
* refs/pull/56479/head:
pybind/mgr/devicehealth: skip legacy objects that cannot be loaded
qa: test devicehealth legacy load of deleted snap obj
qa: allow failing whatever the active mgr is
qa: add unit tests for MgrMap down flag
mon/MgrMonitor: add "down" setting to simplify testing
Reviewed-by: Laura Flores <lflores@redhat.com>
Anthony D'Atri [Tue, 2 Apr 2024 15:07:18 +0000 (11:07 -0400)]
Merge pull request #56631 from zdover23/wip-doc-2024-04-02-backport-56614-to-reef
reef: doc/mgr: update zabbix information
Yuri Weinstein [Tue, 2 Apr 2024 14:50:58 +0000 (07:50 -0700)]
Merge pull request #56361 from Svelar/wip-65032-reef
reef: ceph.spec.in: add support for openEuler OS
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Yuri Weinstein [Tue, 2 Apr 2024 14:49:18 +0000 (07:49 -0700)]
Merge pull request #56359 from Svelar/wip-65028-reef
reef: mgr/dashboard/frontend:Ceph dashboard supports multiple languages
Reviewed-by: Nizamudeen A <nia@redhat.com>
Zac Dover [Fri, 29 Mar 2024 11:06:28 +0000 (21:06 +1000)]
doc/mgr: update zabbix information
Include information from John Jasen about how to install Zabbix.
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit
ebe7651dd85ae1f1570d8c34479b9bdd1249d83c )
Venky Shankar [Tue, 2 Apr 2024 06:47:07 +0000 (12:17 +0530)]
Merge pull request #54729 from rishabh-d-dave/wip-63688-reef
reef: qa/cephfs: improvements for name generators in test_volumes.py
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Venky Shankar [Tue, 2 Apr 2024 04:22:31 +0000 (09:52 +0530)]
Merge pull request #56122 from xhernandez/wip-64737-reef
reef: client: fix leak of file handles
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Mon, 1 Apr 2024 19:23:31 +0000 (12:23 -0700)]
Merge pull request #56031 from vshankar/wip-64618-reef
reef: mds: check file layout in mknod
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Anthony D'Atri [Mon, 1 Apr 2024 01:54:59 +0000 (21:54 -0400)]
Merge pull request #56603 from zdover23/wip-doc-2024-04-01-backport-56600-to-reef
reef: doc/dev: update leads list
Zac Dover [Mon, 1 Apr 2024 01:17:39 +0000 (11:17 +1000)]
doc/dev: update leads list
Remove Joao Luis from the list of component leads.
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit
158b0403bd66cdf6c4b456146705f42d69f56730 )
Anthony D'Atri [Sun, 31 Mar 2024 02:54:06 +0000 (22:54 -0400)]
Merge pull request #56594 from zdover23/wip-doc-2024-03-31-backport-56592-to-reef
reef: doc/rados/operations: Improve crush_location docs
Niklas Hambüchen [Sat, 30 Mar 2024 16:42:48 +0000 (17:42 +0100)]
doc/rados/operations: Improve crush_location docs
* Fix incorrect syntax
* Use underscores for config options, like other ceph docs did
* Fix incorrect statement that crush_location_hook adds fiels; it replaces
* Explain `root=default host=HOSTNAME` is not set if `crush_location` is given
* Remove duplication across sections
* Point out that `root=default` is important
Signed-off-by: Niklas Hambüchen <mail@nh2.me>
(cherry picked from commit
d91e75e1e92b73bf967740575b3c27a86ef844d5 )
Anthony D'Atri [Sat, 30 Mar 2024 13:34:17 +0000 (09:34 -0400)]
Merge pull request #56589 from zdover23/wip-doc-2024-03-30-backport-56581-to-reef
reef: doc/dev: update leads list
Zac Dover [Fri, 29 Mar 2024 11:14:21 +0000 (21:14 +1000)]
doc/dev: update leads list
Update the list of component leads in
doc/dev/developer_guide/essentials.rst.
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit
57e9427eac08b4057999f5afc44cf0fc77a3068f )
Nizamudeen A [Fri, 29 Mar 2024 16:35:31 +0000 (22:05 +0530)]
Merge pull request #56560 from afreen23/wip-64830-reef
reef: mgr/dashboard: Locking improvements in bucket create form
Reviewed-by: Nizamudeen A <nia@redhat.com>
Nizamudeen A [Fri, 29 Mar 2024 07:53:29 +0000 (13:23 +0530)]
Merge pull request #56548 from rhcs-dashboard/wip-65194-reef
reef: mgr/dashboard: fix rgw display name validation
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Zac Dover [Fri, 29 Mar 2024 07:36:29 +0000 (17:36 +1000)]
Merge pull request #56435 from zdover23/wip-doc-2024-03-25-backport-56287-to-reef
reef: mon, doc: overriding ec profile requires --yes-i-really-mean-it
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Zac Dover [Fri, 29 Mar 2024 07:36:01 +0000 (17:36 +1000)]
Merge pull request #56523 from zdover23/wip-doc-2024-03-27-backport-56173-to-reef
reef: doc/dev: osd_internals/snaps.rst: add clone_overlap doc
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Nizamudeen A [Fri, 29 Mar 2024 07:13:10 +0000 (12:43 +0530)]
Merge pull request #56472 from aaSharma14/wip-64790-reef
reef: mgr/dashboard: Allow the user to add the access/secret key on zone edit and not on zone creation
Reviewed-by: Nizamudeen A <nia@redhat.com>
Nizamudeen A [Fri, 29 Mar 2024 06:49:06 +0000 (12:19 +0530)]
Merge pull request #56546 from rhcs-dashboard/wip-65192-reef
reef: mgr/dashboard: s/active_mds/active_nfs in fs attach form
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Nizamudeen A [Fri, 29 Mar 2024 06:46:56 +0000 (12:16 +0530)]
Merge pull request #56550 from rhcs-dashboard/wip-65196-reef
reef: mgr/dashboard: fix clone unique validator for name validation
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Patrick Donnelly [Fri, 18 Nov 2022 19:13:01 +0000 (14:13 -0500)]
doc: add releases links to toc
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Patrick Donnelly [Thu, 28 Mar 2024 21:10:14 +0000 (17:10 -0400)]
doc: remove releases docs
So that redirects to the version in the main branch work again.
This should have been part of the release checklist.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 28 Mar 2024 17:46:25 +0000 (10:46 -0700)]
Merge pull request #56140 from yuvalif/wip-64792-reef
reef: rgw/notification: Kafka persistent notifications not retried and removed even when the broker is down
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Afreen [Fri, 1 Mar 2024 07:26:25 +0000 (12:56 +0530)]
mgr/dashboard: Locking improvements in bucket create form
Fixes https://tracker.ceph.com/issues/64658
- Addition of help texts
- Addition of info/warnings related to modes and versioning
- change of Locking section layout
- renaming locking to 'Object Locking'
- changes default retention period to 10
- edit bucket only shows lock when its enabled
Signed-off-by: Afreen <afreen23.git@gmail.com>
(cherry picked from commit
014d4468fce5aadfbc63bd9651c0c66db0bf7f49 )
Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/shared/components/components.module.ts
Nizamudeen A [Tue, 26 Mar 2024 08:50:25 +0000 (14:20 +0530)]
mgr/dashboard: fix clone unique validator for name validation
Fixes: https://tracker.ceph.com/issues/65145
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit
8070dfd80be9de15d2234fafa78a25569fde30a7 )
Nizamudeen A [Tue, 26 Mar 2024 09:04:23 +0000 (14:34 +0530)]
mgr/dashboard: fix rgw display name validation
the dot(.) character is allowed in full name
Fixes: https://tracker.ceph.com/issues/65146
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit
8118a32ec578455b6c2cb4000f2bbee234ae9117 )
Nizamudeen A [Wed, 27 Mar 2024 05:12:39 +0000 (10:42 +0530)]
mgr/dashboard: s/active_mds/active_nfs in fs attach form
Fixes: https://tracker.ceph.com/issues/65173
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit
5f97e4eaed3ff25cc01fdaed39f73542e8196677 )
Nizamudeen A [Thu, 28 Mar 2024 08:18:46 +0000 (13:48 +0530)]
Merge pull request #56501 from rhcs-dashboard/wip-65165-reef
reef: mgr/dashboard: fix cephfs name validation
Reviewed-by: afreen23 <NOT@FOUND>
Yuri Weinstein [Wed, 27 Mar 2024 14:58:43 +0000 (07:58 -0700)]
Merge pull request #56120 from mkogan1/wip-64766-reef
reef: rgw/beast: Enable SSL session-id reuse speedup mechanism
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Wed, 27 Mar 2024 13:58:24 +0000 (13:58 +0000)]
Merge pull request #56453 from yuvalif/wip-63856-reef
reef: RGW: pubsub publish commit with etag populated
Reviewed-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
Matan Breizman [Wed, 13 Mar 2024 14:19:59 +0000 (14:19 +0000)]
doc/dev: osd_internals/snaps.rst: add clone_overlap doc
snapdir concept was removed in: https://github.com/ceph/ceph/pull/17579
Co-authored-by: Zac Dover <zac.dover@proton.me>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit
6a7f2b0fda74aedb213067abe5c0a64b68fbbdc7 )
Zac Dover [Wed, 27 Mar 2024 13:33:13 +0000 (23:33 +1000)]
Merge pull request #56495 from zdover23/wip-doc-2024-03-27-backport-56450-to-reef
reef: docs/rados: remove incorrect ceph command
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Patrick Donnelly [Wed, 27 Mar 2024 13:02:43 +0000 (09:02 -0400)]
Merge PR #54468 into reef
* refs/pull/54468/head:
mds,client: update the oldest_client_tid via the renew caps
mds: add trim_completed_request_list() helper
client: return false if cannot link all the way to mountpoint
client: use the fs' full path instead of from mountpoint's root
qa/tasks/cephfs/test_admin: run root_squash tests only for FUSE client
qa/tasks/cephfs: Add reproducer for https://tracker.ceph.com/issues/56067
qa: add test for checking access in client side of root_squash
qa: add sudo paramter for read_file()
test/libcephfs: remove reduntant test for acccess
mds/Server: disallow clients that have root_squash
mds/Locker: remove session check access when doing cap updates
client: check the cephx mds auth access for open
client: always set the caller_uid/gid to -1
mds: add CEPHFS_FEATURE_MDS_AUTH_CAPS_CHECK feature bit
client: check the cephx mds auth access for setattr
client: save the cap_auths in client when session being opened
client: add make_path_string() helpers support
client: add _get_root_ino() helper support
test/libcephfs: add a tag for each test unique directory
client: rename MAY_* to CLIENT_MAY_* to avoid conflicts
mds: send the cap_auths to clients when openning the sessions
mds: add cap_auths in MClientSession
mds: add MDSCapAuth support
mds: encode/decode the MDSCapMatch
mds: add assign operator support for MDSCapMatch
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Nizamudeen A [Tue, 26 Mar 2024 07:53:39 +0000 (13:23 +0530)]
mgr/dashboard: fix cephfs name validation
allow volume name to start with dot (.)
Fixes: https://tracker.ceph.com/issues/65143
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit
242318452c8111717e49b896c7f9cf0ec5f5b262 )
Xiubo Li [Tue, 31 Oct 2023 02:23:09 +0000 (10:23 +0800)]
mds,client: update the oldest_client_tid via the renew caps
Update the oldest_client_tid via the session renew caps msg to
make sure that the MDSs won't pile up the completed request list
in a very large size.
Fixes: https://tracker.ceph.com/issues/63364
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
0cff6d5d487972a850e7c64b1e3b8ca283bf3c03 )
Xiubo Li [Tue, 31 Oct 2023 02:30:18 +0000 (10:30 +0800)]
mds: add trim_completed_request_list() helper
Fixes: https://tracker.ceph.com/issues/63364
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
188aed9d779a168d999be9f652bcceecbfd64f05 )
Xiubo Li [Mon, 9 Oct 2023 04:15:02 +0000 (12:15 +0800)]
client: return false if cannot link all the way to mountpoint
Just in case we cannot link all the way to our mount point we will
force to do sync requests instead and let the MDS do the auth access
check.
Introduced-by: fd7aaab2907 client: add make_path_string() helpers support
Fixes: https://github.com/ceph/ceph/pull/48027#issuecomment-1752324457
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
c7bc4523ffec65d132eef217ce87eaf344144e35 )
Xiubo Li [Thu, 19 Oct 2023 02:20:55 +0000 (10:20 +0800)]
client: use the fs' full path instead of from mountpoint's root
The mountpoint's root ino# possibly not be the full CephFS
filesystem root, it's just the mountpoint of this particular client.
Just prepend the mountpoint path to the full path.
Introduced-by: c1bf8d88e9d client: check the cephx mds auth access for setattr
Introduced-by: ce216595c03 client: check the cephx mds auth access for open
Fixes: https://github.com/ceph/ceph/pull/48027#issuecomment-1741019086
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
e46dc20cdfb157f94781032451057d1e138535cc )
Ramana Raja [Thu, 24 Nov 2022 20:48:27 +0000 (15:48 -0500)]
qa/tasks/cephfs/test_admin: run root_squash tests only for FUSE client
kclient doesn't have CEPHFS_FEATURE_MDS_AUTH_CAPS required to
enforce root_squash. Run root_squash tests only for FUSE client.
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit
a04044670c615b67d633185d50eda12d53e5766b )
Ramana Raja [Mon, 8 Aug 2022 18:33:06 +0000 (14:33 -0400)]
qa/tasks/cephfs: Add reproducer for https://tracker.ceph.com/issues/56067
A kernel CephFS client with MDS root_squash caps is able to write to a
file as non-root user. However, the data written is lost after clearing
the kernel client cache, or re-mounting the client. This issue is not
observed with a FUSE CephFS client.
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit
c8bae07f70453577d36e83e0bb02c3410ef9cade )
Xiubo Li [Wed, 2 Nov 2022 01:12:16 +0000 (09:12 +0800)]
qa: add test for checking access in client side of root_squash
Test the 'chown' and 'truncate', which will call the setattr and
'cat' will open the files. Before each testing will open the file
by non-root user and keep it to make sure the Fxw caps are issued,
and then user the 'sudo' do to the tests, which will set the uid/gid
to 0/0.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
28023f84d714488a5dfd17b2191790ed15909fb3 )
Conflicts:
qa/tasks/cephfs/caps_helper.py: missed dependency commit
f0ffade0525 ("qa/cephfs/cap_tester: simplify CapTester and its
instantiation")
Xiubo Li [Wed, 2 Nov 2022 01:45:57 +0000 (09:45 +0800)]
qa: add sudo paramter for read_file()
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
4af6a3f7441345766fddcf2a9086d3b777c9717a )
Xiubo Li [Tue, 25 Apr 2023 11:09:41 +0000 (19:09 +0800)]
test/libcephfs: remove reduntant test for acccess
The test.cc will be included in ceph_test_libcephfs, no need to
include it to access.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
77ac1009793016c9f4904eef6bf699105caa0b16 )
Ramana Raja [Tue, 15 Nov 2022 19:00:24 +0000 (14:00 -0500)]
mds/Server: disallow clients that have root_squash
... MDS auth caps but don't have CEPHFS_FEATURE_MDS_AUTH_CAPS_CHECK
feature bit (i.e., can't check the auth caps sent back to it by the
MDS) from establishing a session. Do this in
Server::handle_client_session(), and Server::handle_client_reconnect(),
where old clients try to reconnect to MDS servers after an upgrade.
If the client doesn't have the ability to authorize session access
based on the MDS auth caps send back to it by the MDS, then the
client may buffer changes locally during open and setattr operations
when it's not supposed to, e.g., when enforcing root_squash MDS auth
caps.
Fixes: https://tracker.ceph.com/issues/56067
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit
e64931b6a80d0f3e365ed0fe305b73562cbca502 )
Ramana Raja [Fri, 29 Jul 2022 21:51:14 +0000 (17:51 -0400)]
mds/Locker: remove session check access when doing cap updates
as it's too late. Session access authorization already happens
before new caps are issued.
Fixes: https://tracker.ceph.com/issues/56067
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit
96305b5eef06e2b379ed95a086edf9e4809a7e70 )
Xiubo Li [Fri, 9 Sep 2022 04:32:17 +0000 (12:32 +0800)]
client: check the cephx mds auth access for open
Before opening the file locally we need to check the cephx access.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
ce216595c0391fc4b7e3c0f5b3be88aa4f67d245 )
Xiubo Li [Fri, 9 Sep 2022 04:17:06 +0000 (12:17 +0800)]
client: always set the caller_uid/gid to -1
Since the setattr will check the cephx mds auth access before
buffering the changes, so it makes no sense any more to let the
cap update to check the access in MDS again.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
f474203aee2ff183d6812a62f43d85b3f25eae0d )
Conflicts:
src/client/Client.cc: missed dependency commit
a8d0158d0df
("Client/Inode: wait_for_caps fixups")
Xiubo Li [Wed, 14 Sep 2022 13:13:21 +0000 (21:13 +0800)]
mds: add CEPHFS_FEATURE_MDS_AUTH_CAPS_CHECK feature bit
This feature bit could be used to distinguish old and new clients.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
b2046fc7ca30a988094a473c654a0d1cef8ea945 )
Xiubo Li [Fri, 9 Sep 2022 03:36:31 +0000 (11:36 +0800)]
client: check the cephx mds auth access for setattr
If couldn't get the absolute path string we need to force it to
do the sync setattr.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
c1bf8d88e9d41c275fbae824c799d41d39d3ab4a )
Xiubo Li [Wed, 7 Dec 2022 07:03:35 +0000 (15:03 +0800)]
client: save the cap_auths in client when session being opened
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
01a93986bff4340b1e8fecfd4e83ad92afc79b5d )
Conflicts:
src/client/Client.cc: conflict with commit
997b917c84e
("client: always refresh mds feature bits on session open")
Xiubo Li [Tue, 25 Apr 2023 09:31:25 +0000 (17:31 +0800)]
client: add make_path_string() helpers support
Will use this to get the path string to do the mds auth check. It
may fail when the there is no any dentry in local cache, which could
be caused by just unlinking the last dentry while the inode keeps
opening and then try to change the mode.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
fd7aaab290728e47ff699063fa26ad63f848bbf1 )
Xiubo Li [Tue, 25 Apr 2023 02:51:08 +0000 (10:51 +0800)]
client: add _get_root_ino() helper support
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
429aafbb18d147646e6f52e1a8af4de7a0fd68bd )
Xiubo Li [Tue, 25 Apr 2023 06:20:49 +0000 (14:20 +0800)]
test/libcephfs: add a tag for each test unique directory
Make it to be easier to debug when searching the debug logs.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
fa687be805898e8da86056153e34acf1386a6daa )
Xiubo Li [Wed, 14 Sep 2022 05:07:05 +0000 (13:07 +0800)]
client: rename MAY_* to CLIENT_MAY_* to avoid conflicts
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
27f73a9b9e4c7efb11adb7dbb17035d8ca978727 )
Xiubo Li [Mon, 5 Dec 2022 07:49:26 +0000 (15:49 +0800)]
mds: send the cap_auths to clients when openning the sessions
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
c1cbb9acadc311f155b176d6108975835a616a5f )
Conflicts:
src/mds/MDSAuthCaps.h: missed dependency commit
23f1fdbcb3d
("AuthMonitor: allow "fs authorize" to update caps")
Xiubo Li [Mon, 5 Dec 2022 07:26:28 +0000 (15:26 +0800)]
mds: add cap_auths in MClientSession
It will include the uid/gids and path in each cap_auth.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
213a27aab0455c83284bdb2187540e4895b18e6d )
Xiubo Li [Tue, 20 Dec 2022 04:39:22 +0000 (12:39 +0800)]
mds: add MDSCapAuth support
Need to add writeable/readable members and send them back to clients.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
6e4a6448022051ba9a33f4cb4b0af2298f2622aa )
Xiubo Li [Tue, 20 Dec 2022 04:30:09 +0000 (12:30 +0800)]
mds: encode/decode the MDSCapMatch
Will send this to clients.
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
53caf313957b414ab7fcc77ff23bd1470cca1724 )
Xiubo Li [Tue, 20 Dec 2022 04:21:31 +0000 (12:21 +0800)]
mds: add assign operator support for MDSCapMatch
Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
5b6634c23d4e21b06064fddd49998ee949c34e5c )
Taha Jahangir [Mon, 25 Mar 2024 10:02:12 +0000 (13:32 +0330)]
docs/rados: remove incorrect ceph command
The removed line was (incorrectly changed) output of the previous command.
Signed-off-by: Taha Jahangir <mtjahangir@gmail.com>
(cherry picked from commit
3cd39e3582ed830f86c55d2203ece72fa0f9426b )
Yuri Weinstein [Tue, 26 Mar 2024 16:27:59 +0000 (09:27 -0700)]
Merge pull request #55394 from dparmar18/wip-64220-reef
reef: mgr/nfs: include pseudo in JSON output when nfs export apply -i fails
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 26 Mar 2024 16:26:48 +0000 (09:26 -0700)]
Merge pull request #54185 from rishabh-d-dave/wip-62332-reef
reef: MDSAuthCaps: minor improvements
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Nizamudeen A [Tue, 26 Mar 2024 14:20:00 +0000 (19:50 +0530)]
Merge pull request #56471 from rhcs-dashboard/wip-65137-reef
reef: mgr/dashboard: add system users to rgw user form
Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: afreen23 <NOT@FOUND>
Anthony D'Atri [Tue, 26 Mar 2024 14:06:30 +0000 (10:06 -0400)]
Merge pull request #56466 from zdover23/wip-doc-2024-03-26-backport-56436-to-reef
reef: doc/start: improve MDS explanation
Patrick Donnelly [Thu, 21 Dec 2023 13:48:33 +0000 (08:48 -0500)]
pybind/mgr/devicehealth: skip legacy objects that cannot be loaded
Log looks like after test:
2023-12-21T16:09:28.804+0000
7fbe7fd86700 0 [devicehealth DEBUG root] loading object ABC_DEADB33F_FA
2023-12-21T16:09:28.805+0000
7fbe7fd86700 0 [devicehealth DEBUG root] object rados.Object(ioctx=<rados.Ioctx object at 0x7fbeee0c4668>,key=ABC_DEADB33F_FA,nspace=--default--,locator=None) does not exist because it is deleted in HEAD
2023-12-21T16:09:28.805+0000
7fbe7fd86700 0 [devicehealth DEBUG root] finished reading legacy pool, complete = True
Credit to Greg Farnum for postulating the cause.
Fixes: https://tracker.ceph.com/issues/63882
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
5e6fc0bf5f52732966d5cf2987e679abee8a384d )
Patrick Donnelly [Thu, 21 Dec 2023 15:39:03 +0000 (10:39 -0500)]
qa: test devicehealth legacy load of deleted snap obj
Failure without fix looks like:
2023-12-21T16:05:55.737+0000
7fbe585b0700 0 [devicehealth DEBUG root] loading object ABC_DEADB33F_FA
2023-12-21T16:05:55.737+0000
7fbe585b0700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'devicehealth' while running on mgr.x: [errno 2] RADOS object not found (Failed to operate read op for oid ABC_DEADB33F_FA)
2023-12-21T16:05:55.737+0000
7fbe585b0700 -1 devicehealth.serve:
2023-12-21T16:05:55.737+0000
7fbe585b0700 -1 Traceback (most recent call last):
File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 394, in serve
self._do_serve()
File "/home/pdonnell/ceph/src/pybind/mgr/mgr_module.py", line 524, in check
return func(self, *args, **kwargs)
File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 354, in _do_serve
finished_loading_legacy = self.check_legacy_pool()
File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 326, in check_legacy_pool
if self._load_legacy_object(ioctx, obj.key):
File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 300, in _load_legacy_object
ioctx.operate_read_op(op, oid)
File "rados.pyx", line 3723, in rados.Ioctx.operate_read_op
rados.ObjectNotFound: [errno 2] RADOS object not found (Failed to operate read op for oid ABC_DEADB33F_FA)
Credit to Greg Farnum for postulating the cause.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
aa30adbaa7616c8e24b3ccaad9dbcda7c0c663fc )
Patrick Donnelly [Thu, 21 Dec 2023 16:11:03 +0000 (11:11 -0500)]
qa: allow failing whatever the active mgr is
Vanilla `mgr fail` will just fail the active.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
a066467c9dc6f34a58e4085d05238a5db3f45cba )
Patrick Donnelly [Wed, 10 Jan 2024 17:52:04 +0000 (12:52 -0500)]
qa: add unit tests for MgrMap down flag
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
9ebcbdbed0fbaf37d60fbd8db321742ee5721d8c )
Patrick Donnelly [Wed, 10 Jan 2024 17:50:51 +0000 (12:50 -0500)]
mon/MgrMonitor: add "down" setting to simplify testing
This flag prevents promotion of a standby manager to the active. It also drops
the current active.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
2e2a3f15cdd9125029fca78b834b8b5bb53edbb1 )
Guillaume Abrioux [Tue, 26 Mar 2024 12:43:07 +0000 (13:43 +0100)]
Merge pull request #56259 from guits/wip-64943-reef
reef: ceph-volume: add missing import
Aashish Sharma [Thu, 18 Jan 2024 06:44:42 +0000 (12:14 +0530)]
mgr/dashboard: Allow the user to add the access/secret key on zone edit
and not on zone creation
Fixes: https://tracker.ceph.com/issues/64080
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit
d96a1805f3975e7eb098cb32a9a1da0e10321fb7 )
Pedro Gonzalez Gomez [Fri, 22 Mar 2024 14:20:48 +0000 (15:20 +0100)]
mgr/dashboard: add system users to rgw user form
Fixes: https://tracker.ceph.com/issues/65074
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit
b658bb9c32ad31608921e77603003c004ab0f15b )
Venky Shankar [Tue, 26 Mar 2024 09:30:05 +0000 (15:00 +0530)]
Merge pull request #55987 from joscollin/wip-64743-reef
reef: mds: add a command to dump directory information
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Zac Dover [Sun, 24 Mar 2024 21:19:24 +0000 (07:19 +1000)]
doc/start: improve MDS explanation
Improve the explanation of MDS as requested by Anthony D'Atri here:
https://github.com/ceph/ceph/pull/56367#discussion_r1536667249
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit
e7eff3cf8738ddd378c2fd70075ac61dbac3cf55 )
Nizamudeen A [Tue, 26 Mar 2024 06:59:59 +0000 (12:29 +0530)]
Merge pull request #56452 from rhcs-dashboard/wip-65111-reef
reef: mgr/dashboard: sanitize dashboard user creation
Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: afreen23 <NOT@FOUND>
Yuri Weinstein [Mon, 25 Mar 2024 21:24:51 +0000 (14:24 -0700)]
Merge pull request #56151 from sseshasa/wip-64881-reef
reef: qa: Add benign cluster warning from ec-inconsistent-hinfo test to ignorelist
Reviewed-by: Laura Flores <lflores@redhat.com>
Yuri Weinstein [Mon, 25 Mar 2024 21:23:12 +0000 (14:23 -0700)]
Merge pull request #54981 from sseshasa/wip-63874-reef
reef: osd: Apply randomly selected scheduler type across all OSD shards
Reviewed-by: Laura Flores <lflores@redhat.com>
Adam King [Mon, 25 Mar 2024 19:25:31 +0000 (15:25 -0400)]
Merge pull request #56325 from adk3798/wip-64994-reef
reef: mgr/cephadm: refresh public_network for config checks before checking
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Adam King [Mon, 25 Mar 2024 19:22:53 +0000 (15:22 -0400)]
Merge pull request #56307 from adk3798/reef-timemaster
reef: cephadm: add timemaster to timesync services list
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Adam King [Mon, 25 Mar 2024 19:21:08 +0000 (15:21 -0400)]
Merge pull request #56302 from adk3798/reef-only-bind-to-network
reef: mgr/cephadm: allow grafana and prometheus to only bind to specific network
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Adam King [Mon, 25 Mar 2024 19:20:48 +0000 (15:20 -0400)]
Merge pull request #56292 from adk3798/reef-cephadm-pull-usage
reef: cephadm: improve cephadm pull usage message
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Adam King [Mon, 25 Mar 2024 19:19:45 +0000 (15:19 -0400)]
Merge pull request #56286 from adk3798/reef-haproxy-healthcheck-interval
reef: cephadm: adjust the ingress ha proxy health check interval
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Adam King [Mon, 25 Mar 2024 19:19:24 +0000 (15:19 -0400)]
Merge pull request #56221 from adk3798/reef-regex-host-pattern
reef: mgr/cephadm: support for regex based host patterns
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Nizamudeen A [Mon, 25 Mar 2024 14:14:37 +0000 (19:44 +0530)]
Merge pull request #56443 from rhcs-dashboard/wip-65103-reef
reef: mgr/dashboard: rm warning/error threshold for cpu usage
Reviewed-by: afreen23 <NOT@FOUND>
Ali Masarwa [Sun, 19 Nov 2023 13:29:28 +0000 (15:29 +0200)]
RGW:pubsub publish commit with etag populated
Signed-off-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
(cherry picked from commit
18c202c979aefe7c34de3688036586a070addff8 )
Conflicts:
src/rgw/driver/posix/rgw_sal_posix.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
Pedro Gonzalez Gomez [Thu, 21 Mar 2024 07:56:58 +0000 (08:56 +0100)]
mgr/dashboard: sanitize dashboard user creation
Fixes: https://tracker.ceph.com/issues/65030
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit
9951a3a7f314c7cd1eb147fb1b398ac6c5212806 )
Nizamudeen A [Mon, 25 Mar 2024 09:51:57 +0000 (15:21 +0530)]
Merge pull request #56439 from rhcs-dashboard/wip-65108-reef
reef: mgr/dashboard: fix empty tags
Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: afreen23 <NOT@FOUND>
Nizamudeen A [Tue, 19 Mar 2024 14:57:13 +0000 (20:27 +0530)]
mgr/dashboard: rm warning/error threshold for cpu usage
for multi-core cpu's the value can be more than 100% so it doesn't make
sense to show warning/error when the usage is at or more than 100%.
hence removing it
Fixes: https://tracker.ceph.com/issues/58838
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit
131a70754a6bfbbb2d1481ba74436953c6ecc226 )
Pedro Gonzalez Gomez [Thu, 14 Mar 2024 06:58:36 +0000 (07:58 +0100)]
mgr/dashboard: fix empty tags
Fixes: https://tracker.ceph.com/issues/64911
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit
a60f82566551e731987b4a02d1bb2bf4cfb9a9ce )
Nizamudeen A [Mon, 25 Mar 2024 04:39:57 +0000 (10:09 +0530)]
Merge pull request #56419 from rhcs-dashboard/wip-65078-reef
reef: Snapshot schedule show subvolume path
Reviewed-by: Nizamudeen A <nia@redhat.com>
Radoslaw Zarzynski [Tue, 19 Mar 2024 13:43:10 +0000 (13:43 +0000)]
mon, doc: overriding ec profile requires --yes-i-really-mean-it
This is per https://tracker.ceph.com/issues/64333#note-17 describing
driving factors of a catastrophic cluster failure.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit
629ba7bd349d48cdaa6d094751e7cfce651ba2bc )