]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 months agomgr/dashboard:Use advanced fieldset for rbd image 56710/head
Afreen [Wed, 27 Mar 2024 09:35:58 +0000 (15:05 +0530)]
mgr/dashboard:Use advanced fieldset for rbd image

Fixes https://tracker.ceph.com/issues/65025

- using cd-advanced-fieldset component for advanced section
- this will align advanced sections of forms in dashboard
- changed heading of sections of rbd-configuration to h5 to better represent it
  as a sub section.
- added unit tests for rbd image config

Signed-off-by: Afreen <afreen23.git@gmail.com>
(cherry picked from commit 25552117b433dbe39bf245aeda99761def5749eb)

15 months agoMerge pull request #56692 from afreen23/wip-65304-reef
Nizamudeen A [Thu, 4 Apr 2024 16:34:52 +0000 (22:04 +0530)]
Merge pull request #56692 from afreen23/wip-65304-reef

reef: mgr/dashboard: Add advanced fieldset component

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
15 months agoMerge pull request #56323 from adk3798/wip-64844-reef
Yuri Weinstein [Thu, 4 Apr 2024 15:31:35 +0000 (08:31 -0700)]
Merge pull request #56323 from adk3798/wip-64844-reef

reef: ceph-volume: Use safe accessor to get TYPE info

Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
15 months agoMerge pull request #56648 from zdover23/wip-doc-2024-04-03-backport-56228-to-reef
Zac Dover [Thu, 4 Apr 2024 12:55:35 +0000 (22:55 +1000)]
Merge pull request #56648 from zdover23/wip-doc-2024-04-03-backport-56228-to-reef

reef: doc: fixing doc/cephfs/fs-volumes

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
15 months agoMerge pull request #56684 from zdover23/wip-doc-2024-04-04-backport-56662-to-reef
Zac Dover [Thu, 4 Apr 2024 11:39:21 +0000 (21:39 +1000)]
Merge pull request #56684 from zdover23/wip-doc-2024-04-04-backport-56662-to-reef

reef: doc/mgr: credit John Jasen for Zabbix 2

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
15 months agoMerge pull request #54945 from rishabh-d-dave/wip-63405-reef
Rishabh Dave [Thu, 4 Apr 2024 10:24:48 +0000 (15:54 +0530)]
Merge pull request #54945 from rishabh-d-dave/wip-63405-reef

reef: MDSAuthCaps: print better error message for perm flag in MDS caps

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agomgr/dashboard: Add advanced fieldset component 56692/head
Afreen [Fri, 1 Mar 2024 07:26:25 +0000 (12:56 +0530)]
mgr/dashboard: Add advanced fieldset component

Fixes https://tracker.ceph.com/issues/65024

- adds a new shared component for displaying advanced fields in /shared
- utilizes that component in bucket form
- placement targets are under advanced fieldset
- minor help text changes in object locking help text
- updated e2e tests

Signed-off-by: Afreen <afreen23.git@gmail.com>
(cherry picked from commit d0979e9c5223231a0fd3ef6408323d2fd5cd2ac5)

Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/shared/components/components.module.ts

15 months agoMerge pull request #56171 from vshankar/wip-64218-reef
Venky Shankar [Thu, 4 Apr 2024 06:57:43 +0000 (12:27 +0530)]
Merge pull request #56171 from vshankar/wip-64218-reef

reef: qa: `fs volume rename` requires `fs fail` and `refuse_client_session` set

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
15 months agoMerge pull request #56169 from vshankar/wip-64047-reef
Venky Shankar [Thu, 4 Apr 2024 06:57:10 +0000 (12:27 +0530)]
Merge pull request #56169 from vshankar/wip-64047-reef

reef: qa: set mds config with `config set` for a particular test

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
15 months agoMerge pull request #56167 from vshankar/wip-64250-reef
Venky Shankar [Thu, 4 Apr 2024 06:56:40 +0000 (12:26 +0530)]
Merge pull request #56167 from vshankar/wip-64250-reef

reef: qa: correct usage of DEBUGFS_META_DIR in dedent

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
15 months agoMerge pull request #56016 from vshankar/wip-64759-reef
Venky Shankar [Thu, 4 Apr 2024 06:49:54 +0000 (12:19 +0530)]
Merge pull request #56016 from vshankar/wip-64759-reef

reef: mds: relax certain asserts in mdlog replay thread

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
15 months agoMerge pull request #56557 from afreen23/wip-65205-reef
Nizamudeen A [Thu, 4 Apr 2024 05:49:41 +0000 (11:19 +0530)]
Merge pull request #56557 from afreen23/wip-65205-reef

reef: mgr/dashboard: make ceph logo redirect to dashboard

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agoMerge pull request #56621 from afreen23/wip-65211-reef
Nizamudeen A [Thu, 4 Apr 2024 05:47:51 +0000 (11:17 +0530)]
Merge pull request #56621 from afreen23/wip-65211-reef

reef: mgr/dashboard: Mark placement targets as non-required

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agoMerge pull request #56049 from lxbsz/wip-64584
Venky Shankar [Thu, 4 Apr 2024 04:29:10 +0000 (09:59 +0530)]
Merge pull request #56049 from lxbsz/wip-64584

reef: mds: allow lock state to be LOCK_MIX_SYNC in replica for filelock

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agodoc/mgr: credit John Jasen for Zabbix 2 56684/head
Zac Dover [Wed, 3 Apr 2024 12:21:04 +0000 (22:21 +1000)]
doc/mgr: credit John Jasen for Zabbix 2

Credit John Jasen for the development of the procedures describing the
installation of Zabbix 2.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 28aa556448cf02dc943653e76a7ef89e10ae93e9)

15 months agoMerge pull request #56347 from cbodley/wip-65003-reef
Yuri Weinstein [Wed, 3 Apr 2024 22:04:30 +0000 (15:04 -0700)]
Merge pull request #56347 from cbodley/wip-65003-reef

reef: rgw: Add missing empty checks to the split string in is_string_in_set().

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
15 months agoMerge pull request #56197 from ifed01/wip-ifed-fix-estimate-kv-reef
Yuri Weinstein [Wed, 3 Apr 2024 22:03:38 +0000 (15:03 -0700)]
Merge pull request #56197 from ifed01/wip-ifed-fix-estimate-kv-reef

reef: os/kv_test: Fix estimate functions

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
15 months agoMerge pull request #55867 from trociny/wip-64650-reef
Yuri Weinstein [Wed, 3 Apr 2024 22:02:44 +0000 (15:02 -0700)]
Merge pull request #55867 from trociny/wip-64650-reef

reef: mon/OSDMonitor: fix get_min_last_epoch_clean()

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Matan Breizman <Matan.Brz@gmail.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
15 months agoMerge pull request #55777 from ifed01/wip-ifed-fix-expand-with-ncb-reef
Yuri Weinstein [Wed, 3 Apr 2024 22:01:23 +0000 (15:01 -0700)]
Merge pull request #55777 from ifed01/wip-ifed-fix-expand-with-ncb-reef

reef: os/bluestore: fix free space update after bdev-expand in NCB mode

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
15 months agoMerge pull request #55548 from k0ste/wip-64397-reef
Yuri Weinstein [Wed, 3 Apr 2024 21:58:18 +0000 (14:58 -0700)]
Merge pull request #55548 from k0ste/wip-64397-reef

reef: mon: fix health store size growing infinitely

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Matan Breizman <Matan.Brz@gmail.com>
15 months agoMerge pull request #54258 from YiteGu/backport-bluestore-fragmentation-to-metrics
Yuri Weinstein [Wed, 3 Apr 2024 21:57:54 +0000 (14:57 -0700)]
Merge pull request #54258 from YiteGu/backport-bluestore-fragmentation-to-metrics

reef: os/bluestore: add bluestore fragmentation micros to prometheus

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
15 months agoqa/cephfs: don't use run_cluster_cmd() 54945/head
Rishabh Dave [Thu, 21 Mar 2024 12:59:52 +0000 (18:29 +0530)]
qa/cephfs: don't use run_cluster_cmd()

The method was deleted in favour of run_ceph_cmd() and
get_ceph_cmd_stdout() in commit
35a0d84972d691535533ffeb1635e5f94d808575.

This commit is not a backport but a new commit to fix the code present
on Reef branch but not present in release branches after Reef. At least
some of these issues were exposed during QA done for the backport.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
15 months agoAuthMonitor: no need to check permission in MDS caps
Rishabh Dave [Sat, 24 Jun 2023 04:17:12 +0000 (09:47 +0530)]
AuthMonitor: no need to check permission in MDS caps

For "fs authorize" command, AuthMonitor.cc checks if permissions is "r"
or begins with "rw". This check is redundant now.
AuthMonitor::valid_caps() runs MDSAuthCaps.parse() which now runs same
check for the MDS caps, regardless of the command.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 8e1e322054ea14eb5e59969439c0ea27885503ab)

15 months agoMDSAuthCaps: print a special error message for wrong permissions
Rishabh Dave [Fri, 9 Jun 2023 18:54:12 +0000 (00:24 +0530)]
MDSAuthCaps: print a special error message for wrong permissions

Permissions mentioned in MDS caps flags can either begin with "r" or
"rw", or can be "*" and "all". But it can't start with or be just "w" or
something else. This is confusing for some CephFS users since MON caps
can be just "w".

Command "ceph fs authorize" complains about this to the user. But other
commands (specifically, "ceph auth add", "ceph auth caps",
"ceph auth get-or-create" and "ceph auth get-or-create-key") don't. Make
these commands too print a helpful message, the way "ceph fs authorize"
command does.

Fixes: https://tracker.ceph.com/issues/61666
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit f163dd3ef1fd9f05f05fa50eda9993225770d524)

Conflicts:
src/mds/MDSAuthCaps.cc
"std::string" was replace "string" in main but that's not the case
in Reef.

15 months agoqa/ceph_test_case: add a method to negative test Ceph commands
Rishabh Dave [Sat, 24 Jun 2023 17:11:07 +0000 (22:41 +0530)]
qa/ceph_test_case: add a method to negative test Ceph commands

Also, add comments to explain the users the arguments are accepted by
run_ceph_cmd(), get_ceph_cmd_result(), get_ceph_cmd_stdout() and
negtest_ceph_cmd() methods of class RunCephCmd.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit f72b217e3542de1880f694917bacd18f092560c4)

15 months agoqa: inherit RunCephCmd in CephTestCase instead of CephFSTestCase
Rishabh Dave [Wed, 9 Aug 2023 12:40:32 +0000 (18:10 +0530)]
qa: inherit RunCephCmd in CephTestCase instead of CephFSTestCase

MgrTestCase also needs RunCephCmd. If RunCephCmd is inherited by
CephTestCase, instead of CephFSTestCase, MgrTestCase will automatically
inherit RunCephCmd because it inhertis CephTestCase.

Fixes: https://tracker.ceph.com/issues/62084
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 4b369cf18ed1391a426ab4ae86da834e9c074f81)

15 months agoqa/cephfs: use run_ceph_cmd() when cmd output is not needed
Rishabh Dave [Mon, 27 Mar 2023 06:21:16 +0000 (11:51 +0530)]
qa/cephfs: use run_ceph_cmd() when cmd output is not needed

In filesystem.py and wherever instance of class Filesystem are used, use
run_ceph_cmd() instead of get_ceph_cluster_stdout() when output of Ceph
command is not required.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 0a781ef0807ae9473fb1306ef07036226ca4f1a6)

15 months agoqa/cephfs: add helper methods to filesystem.py
Rishabh Dave [Mon, 27 Mar 2023 06:09:11 +0000 (11:39 +0530)]
qa/cephfs: add helper methods to filesystem.py

Add run_ceph_cmd(), get_ceph_cmd_stdout() and get_ceph_cmd_result() to
class Filesystem so that running Ceph command is easier. This affects
not only methods inside class Filesystem but also methods elsewhere that
uses instance of class Filesystem to run Ceph commands.

Instead of "self.fs.mon_manager.raw_cluster_cmd()" writing
"self.fs.run_ceph_cmd()" will suffice.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 1bf87e6eec91b05a15702068bcf6a96e228f8d42)

15 months agoqa/cephfs: when cmd output is not needed call run_ceph_cmd()
Rishabh Dave [Thu, 16 Mar 2023 16:28:22 +0000 (21:58 +0530)]
qa/cephfs: when cmd output is not needed call run_ceph_cmd()

instead of get_ceph_cmd_stdout().

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit c7c38ba558e089c51d71e0b0713b3e0a368b9699)

Conflicts:
qa/tasks/cephfs/test_mirroring.py
- Commit e4dd0e41a3a0 was not present on main but it is now
present on main as well as on Reef, which leads to conflict.
- The line located right before one of the patches in this
  commit was modified in latest Reef branch, thus creating
  conflict when PR branch was rebased on latest Reef.

15 months agoqa/cephfs: add and use get_ceph_cmd_stdout()
Rishabh Dave [Thu, 16 Mar 2023 10:02:39 +0000 (15:32 +0530)]
qa/cephfs: add and use get_ceph_cmd_stdout()

Add method get_ceph_cmd_stdout() to class CephFSTestCase so that one
doesn't have to type something as long as
"self.mds_cluster.mon_manager.raw_cluster_cmd()" to execute a
command and get its output. And delete and replace
CephFSTestCase.run_cluster_cmd() too.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 13168834e374120d9c319a120a35768ddbc70de5)

Conflicts:
qa/tasks/cephfs/caps_helper.py
- This file is very different in Reef.
qa/tasks/cephfs/test_mirroring.py
- Commit e4dd0e41a3a0 was not present on main but it is now
  present on main as well as on Reef, which leads to conflict.
- On Reef branch, the line before that patch in this commit was
  thus creating a conflict when the PR branch for this commit
  series was rebased on latest Reef.

15 months agoqa/cephfs: add and use run_ceph_cmd()
Rishabh Dave [Thu, 16 Mar 2023 09:41:08 +0000 (15:11 +0530)]
qa/cephfs: add and use run_ceph_cmd()

Instead of writing something as long as
"self.mds_cluster.mon_manager.run_cluster_cmd()" to execute a command,
let's add a helper method to class CephFSTestCase and use it instead.

With this, running a command becomes simple - "self.run_ceph_cmd()".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit f8f2154e54e202996b24904162da6022081e9d93)

Conflicts:
qa/tasks/cephfs/test_damage.py
This file is slightly different because this commit
c8f8324ee2fae48e8d3c2bbdbf45cc9ffe46fd4c was merged on main and
backported after the commit being cherry-picked here was merged
in main.

15 months agoqa/cephfs: add and use get_ceph_cmd_result()
Rishabh Dave [Tue, 14 Mar 2023 19:43:56 +0000 (01:13 +0530)]
qa/cephfs: add and use get_ceph_cmd_result()

To run a command and get its return value, instead of typing something
as long as "self.mds_cluster.mon_manager.raw_cluster_cmd_result" add a
hepler method in CephFSTestCase and use it. This makes this task very
simple - "self.get_ceph_cmd_result()".

Also, remove method CephFSTestCase.run_cluster_cmd_result() in favour of
this new method.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 82814ac49d31b0fc48ac4f3ec659a9f0a822acd2)

15 months agoqa/cephfs: create admin_remote instance in CephFSTestCase
Rishabh Dave [Wed, 15 Mar 2023 20:40:43 +0000 (02:10 +0530)]
qa/cephfs: create admin_remote instance in CephFSTestCase

admin_remote contains lots of methods that can be useful during testing,
so let's have an easy access to it too.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 2e12e5086d067ff110f4f9c827b40cf58aa04b91)

15 months agoqa/cephfs: create CephManager instance in CephFSTestCase
Rishabh Dave [Mon, 13 Mar 2023 13:05:50 +0000 (18:35 +0530)]
qa/cephfs: create CephManager instance in CephFSTestCase

To run a Ceph command conveniently, run_cluster_cmd(), raw_cluster_cmd()
or raw_cluster_cmd_result() must be called. These methods are available
in class CephManager which in turn is available only if an instance of
Filesystem, MDSCluster, CephCluster or MgrCluster is initialized. Having
an instance of CephManager in CephFSTestCase will provide easy access to
these methods.

For example, in CephFS tests writing "self.mon_manager.raw_cluser_cmd()"
instead of writing "self.mds_cluster.mon_manager.raw_cluster()" will
suffice.

This commit provides a basis for upcoming commits in this patch series.
With next patches, running Ceph command will be further simplified. Just
writing self.run_ceph_cmd() will suffice for running a CephFS command.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 0c0041005ee127e3a488b111181c1da8035d199c)

15 months agoqa/cephfs: don't import entire module needlessly
Rishabh Dave [Sat, 24 Jun 2023 13:46:39 +0000 (19:16 +0530)]
qa/cephfs: don't import entire module needlessly

Importing entire module ceph_manager.py is pointless since only
ceph_manager.CephManager is required in qa/tasks/cephfs/filesystem.py.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 437f2c75f5f5a98b45d8fceb3e209b7945cd6e71)

15 months agoMerge pull request #56654 from aaSharma14/wip-65142-reef
Aashish Sharma [Wed, 3 Apr 2024 16:49:54 +0000 (22:19 +0530)]
Merge pull request #56654 from aaSharma14/wip-65142-reef

reef: mgr/dashboard: replace piechart plugin charts with native pie chart panel

Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agoMerge pull request #56424 from batrick/wip-65092-reef
Venky Shankar [Wed, 3 Apr 2024 16:27:41 +0000 (21:57 +0530)]
Merge pull request #56424 from batrick/wip-65092-reef

reef: qa/suites/fs/workload: enable snap_schedule early

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #56398 from batrick/wip-64922-reef
Venky Shankar [Wed, 3 Apr 2024 16:26:32 +0000 (21:56 +0530)]
Merge pull request #56398 from batrick/wip-64922-reef

reef: mds: ensure snapclient is synced before corruption check

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #56396 from batrick/wip-65065-reef
Venky Shankar [Wed, 3 Apr 2024 16:25:54 +0000 (21:55 +0530)]
Merge pull request #56396 from batrick/wip-65065-reef

reef: qa: change log-whitelist to log-ignorelist

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #56392 from batrick/wip-65058-reef
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>
15 months agoMerge pull request #56211 from joscollin/wip-64919-reef
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>
15 months agoMerge pull request #55803 from anoopcs9/wip-64565-reef
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>
15 months agoMerge pull request #56660 from zdover23/wip-doc-2024-04-03-backport-56635-to-reef
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"

15 months agoMerge pull request #56652 from aaSharma14/wip-65283-reef
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>
15 months agodoc/dev: refine "Concepts" 56660/head
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)

15 months agomgr/dashboard: replace piechart plugin charts with native pie chart 56654/head
Aashish Sharma [Mon, 26 Feb 2024 09:32:19 +0000 (15:02 +0530)]
mgr/dashboard: replace piechart plugin charts with native pie chart
panel

Fixes: https://tracker.ceph.com/issues/64579
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 6e5efb626f4b3503a12371a8f609fdb5175a3ebe)

15 months agomgr/dashboard: upgrade from old 'graph' type panels to the new 56652/head
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)

15 months agodoc: fixing doc/cephfs/fs-volumes 56648/head
neeraj pratap singh [Fri, 15 Mar 2024 17:36:18 +0000 (23:06 +0530)]
doc: fixing doc/cephfs/fs-volumes

Fixes: https://tracker.ceph.com/issues/65267
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 906ff4e4c240856d2e27cf9ac8c059479a86c5c9)

15 months agoMerge PR #56567 into reef
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>
15 months agoMerge PR #56479 into reef
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>
15 months agoMerge pull request #56631 from zdover23/wip-doc-2024-04-02-backport-56614-to-reef
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

15 months agoMerge pull request #56361 from Svelar/wip-65032-reef
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>
15 months agoMerge pull request #56359 from Svelar/wip-65028-reef
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>
15 months agodoc/mgr: update zabbix information 56631/head
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)

15 months agoMerge pull request #54729 from rishabh-d-dave/wip-63688-reef
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>
15 months agoMerge pull request #56122 from xhernandez/wip-64737-reef
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>
15 months agomgr/dashboard:Mark placement targets as non-required in bucket form 56621/head
Afreen [Fri, 1 Mar 2024 07:26:25 +0000 (12:56 +0530)]
mgr/dashboard:Mark placement targets as non-required in bucket form

Fixes https://tracker.ceph.com/issues/64708

- adds info text explaining about placement targets
- adds fieldset to security, policy and tags for a11y
- removes placement target as required field
- when no placement target provided, request omits placement_target
  field
- hides placement atrgets ection for edit form since its not possible to
  edit after creation
- updates rgw-bucket.service.spec.ts unit test
- minor cleanups related to unncesseary css present, and changes in help
  text for object locking
- updated e2e tests for buckets to incorporate changes

Signed-off-by: Afreen <afreen23.git@gmail.com>
(cherry picked from commit a2cf1285449b88e8a053161ba8055891c51f94c2)

 Conflicts:
src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/buckets.po.ts

15 months agoMerge pull request #56031 from vshankar/wip-64618-reef
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>
15 months agoMerge pull request #56603 from zdover23/wip-doc-2024-04-01-backport-56600-to-reef
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

15 months agodoc/dev: update leads list 56603/head
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)

15 months agoMerge pull request #56594 from zdover23/wip-doc-2024-03-31-backport-56592-to-reef
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

15 months agodoc/rados/operations: Improve crush_location docs 56594/head
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)

15 months agoMerge pull request #56589 from zdover23/wip-doc-2024-03-30-backport-56581-to-reef
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

15 months agodoc/dev: update leads list 56589/head
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)

15 months agoMerge pull request #56560 from afreen23/wip-64830-reef
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>
15 months agoMerge pull request #56548 from rhcs-dashboard/wip-65194-reef
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>
15 months agoMerge pull request #56435 from zdover23/wip-doc-2024-03-25-backport-56287-to-reef
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>
15 months agoMerge pull request #56523 from zdover23/wip-doc-2024-03-27-backport-56173-to-reef
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>
15 months agoMerge pull request #56472 from aaSharma14/wip-64790-reef
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>
15 months agoMerge pull request #56546 from rhcs-dashboard/wip-65192-reef
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>
15 months agoMerge pull request #56550 from rhcs-dashboard/wip-65196-reef
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>
15 months agodoc: add releases links to toc 56567/head
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>
15 months agodoc: remove releases docs
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>
15 months agoMerge pull request #56140 from yuvalif/wip-64792-reef
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>
15 months agomgr/dashboard: Locking improvements in bucket create form 56560/head
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

15 months agomgr/dashboard: make ceph logo redirect to dashboard 56557/head
Afreen [Wed, 27 Mar 2024 10:01:12 +0000 (15:31 +0530)]
mgr/dashboard: make ceph logo redirect to dashboard

Fixes https://tracker.ceph.com/issues/64734

Clicking on ceph logo in navigation takes back to overview dashboard.

Signed-off-by: Afreen <afreen23.git@gmail.com>
(cherry picked from commit 44e7bb336c26da77f49fb027578509975b5b2633)

15 months agomgr/dashboard: fix clone unique validator for name validation 56550/head
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)

15 months agomgr/dashboard: fix rgw display name validation 56548/head
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)

15 months agomgr/dashboard: s/active_mds/active_nfs in fs attach form 56546/head
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)

15 months agoMerge pull request #56501 from rhcs-dashboard/wip-65165-reef
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>
15 months agoMerge pull request #56120 from mkogan1/wip-64766-reef
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>
15 months agoMerge pull request #56453 from yuvalif/wip-63856-reef
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>
15 months agodoc/dev: osd_internals/snaps.rst: add clone_overlap doc 56523/head
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)

15 months agoMerge pull request #56495 from zdover23/wip-doc-2024-03-27-backport-56450-to-reef
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>
15 months agoMerge PR #54468 into reef
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>
15 months agomgr/dashboard: fix cephfs name validation 56501/head
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)

15 months agomds,client: update the oldest_client_tid via the renew caps 54468/head
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)

15 months agomds: add trim_completed_request_list() helper
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)

15 months agoclient: return false if cannot link all the way to mountpoint
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)

15 months agoclient: use the fs' full path instead of from mountpoint's root
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)

15 months agoqa/tasks/cephfs/test_admin: run root_squash tests only for FUSE client
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)

15 months agoqa/tasks/cephfs: Add reproducer for https://tracker.ceph.com/issues/56067
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)

15 months agoqa: add test for checking access in client side of root_squash
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")

15 months agoqa: add sudo paramter for read_file()
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)

15 months agotest/libcephfs: remove reduntant test for acccess
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)

15 months agomds/Server: disallow clients that have root_squash
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)

15 months agomds/Locker: remove session check access when doing cap updates
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)

15 months agoclient: check the cephx mds auth access for open
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)

15 months agoclient: always set the caller_uid/gid to -1
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")

15 months agomds: add CEPHFS_FEATURE_MDS_AUTH_CAPS_CHECK feature bit
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)