Created attachment 1772730 [details] Create_Snapshot Description of problem: Creation of snapshot for subvol's folder is failing with 500 Internal error Version-Release number of selected component (if applicable): ceph version 16.2.0-8.el8cp (f869f8bf2b6e9c3886e94267d378de5d9d57bb61) pacific (stable) How reproducible: Steps to Reproduce: 1.Create subvol and create a snapshot 2. 3. Actual results: Snapshot Creation is failing on subvol's folder "/volumes/_nogroup/subvol_1/ca90f125-0cdf-4868-b12a-c5c54a1701bf" Expected results: If it is expected to fail, It should fail with a proper error message. It would be better if we disable the create snapshot button for these volumes. If these volumes does not support creation of snapshot Additional info:
Please specify the severity of this bug. Severity is defined here: https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.
Created attachment 1774762 [details] After Enabling Debug Hi Ernesto, I tried enabling Debug for the dashboard but couldn't able to find much info in the error. please find the attachments
Tested on [cephuser@ceph-amk-snap-1623323935158-node8-client ~]$ ceph version ceph version 16.2.0-47.el8cp (1b33de73b715c8970931dfeb7b6c543d1af7267e) pacific (stable) Still seeing same issue
Please find the CLI part of it [root@ceph-tier0-amar-1624507936499-node7-client ~]# ceph fs subvolume create cephfs subvol_1 --size 5368706371 [root@ceph-tier0-amar-1624507936499-node7-client ~]# [root@ceph-tier0-amar-1624507936499-node7-client ~]# [root@ceph-tier0-amar-1624507936499-node7-client ~]# ceph fs subvolume create ^Cphfs subvol_1 --size 5368706371 [root@ceph-tier0-amar-1624507936499-node7-client mnt]# mkdir mount_fs [root@ceph-tier0-amar-1624507936499-node7-client mnt]# ceph-fuse /mnt/mount_fs/ 2021-06-24T04:53:23.382-0400 7fce4b004200 -1 init, newargv = 0x556ee7584ac0 newargc=15 ceph-fuse[22666]: starting ceph client ceph-fuse[22666]: starting fuse [root@ceph-tier0-amar-1624507936499-node7-client mnt]# cd /mnt/mount_fs/ [root@ceph-tier0-amar-1624507936499-node7-client mount_fs]# ls -lrt total 1 drwxr-xr-x. 3 root root 127 Jun 24 04:52 volumes [root@ceph-tier0-amar-1624507936499-node7-client mount_fs]# cd volumes/_nogroup/subvol_1/ [root@ceph-tier0-amar-1624507936499-node7-client subvol_1]# ls -lrt total 1 drwxr-xr-x. 2 root root 0 Jun 24 04:52 14e107ba-1dca-4bd4-9119-b47dc568ee07 [root@ceph-tier0-amar-1624507936499-node7-client subvol_1]# mkdir test [root@ceph-tier0-amar-1624507936499-node7-client subvol_1]# vi test/test_1 [root@ceph-tier0-amar-1624507936499-node7-client subvol_1]# [root@ceph-tier0-amar-1624507936499-node7-client subvol_1]# cd 14e107ba-1dca-4bd4-9119-b47dc568ee07/ [root@ceph-tier0-amar-1624507936499-node7-client 14e107ba-1dca-4bd4-9119-b47dc568ee07]# ls -lrt total 0 [root@ceph-tier0-amar-1624507936499-node7-client 14e107ba-1dca-4bd4-9119-b47dc568ee07]# cp ../test/test_1 cp: missing destination file operand after '../test/test_1' Try 'cp --help' for more information. [root@ceph-tier0-amar-1624507936499-node7-client 14e107ba-1dca-4bd4-9119-b47dc568ee07]# cp ../test/test_1 . [root@ceph-tier0-amar-1624507936499-node7-client 14e107ba-1dca-4bd4-9119-b47dc568ee07]# ls -lrt total 1 -rw-r--r--. 1 root root 11 Jun 24 04:54 test_1 [root@ceph-tier0-amar-1624507936499-node7-client 14e107ba-1dca-4bd4-9119-b47dc568ee07]# mkdir test [root@ceph-tier0-amar-1624507936499-node7-client 14e107ba-1dca-4bd4-9119-b47dc568ee07]# ls -lrt total 1 -rw-r--r--. 1 root root 11 Jun 24 04:54 test_1 drwxr-xr-x. 2 root root 0 Jun 24 04:54 test [root@ceph-tier0-amar-1624507936499-node7-client 14e107ba-1dca-4bd4-9119-b47dc568ee07]# mkdir .snap/snap_1 --- > inside uuid folder i am not permitted to create it mkdir: cannot create directory ‘.snap/snap_1’: Operation not permitted [root@ceph-tier0-amar-1624507936499-node7-client 14e107ba-1dca-4bd4-9119-b47dc568ee07]# cd .. [root@ceph-tier0-amar-1624507936499-node7-client subvol_1]# mkdir .snap/snap_1 -->on subvolume i am able to create it [root@ceph-tier0-amar-1624507936499-node7-client subvol_1]# Dashboard should either throw the error saying no permissions or should disable the button
Create snapshot button is getting disabled for not valid folders Same has been captured in the above attachment. Verified on below builds [root@ceph-amk5-1-1t24l3-node7 ~]# ceph fs subvolume create cephfs subvol_1 --size 5368706371 [root@ceph-amk5-1-1t24l3-node7 ~]# ceph version ceph version 16.2.7-18.el8cp (86cfa49b08da370afb3f98be618f2c3c1eae71fb) pacific (stable) [root@ceph-amk5-1-1t24l3-node7 ~]# ceph versions { "mon": { "ceph version 16.2.7-18.el8cp (86cfa49b08da370afb3f98be618f2c3c1eae71fb) pacific (stable)": 3 }, "mgr": { "ceph version 16.2.7-18.el8cp (86cfa49b08da370afb3f98be618f2c3c1eae71fb) pacific (stable)": 2 }, "osd": { "ceph version 16.2.7-18.el8cp (86cfa49b08da370afb3f98be618f2c3c1eae71fb) pacific (stable)": 12 }, "mds": { "ceph version 16.2.7-18.el8cp (86cfa49b08da370afb3f98be618f2c3c1eae71fb) pacific (stable)": 3 }, "overall": { "ceph version 16.2.7-18.el8cp (86cfa49b08da370afb3f98be618f2c3c1eae71fb) pacific (stable)": 20 } } [root@ceph-amk5-1-1t24l3-node7 ~]#
Hi Amarnath, What are those invalid folders that you are talking about, an screenshot would help me a lot indentifying this problem if possible. Thanks for the report.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat Ceph Storage 5.1 Security, Enhancement, and Bug Fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:1174