Bug 2111649 - Snapshot creation with same name on UI throwing 500 Internal Error
Summary: Snapshot creation with same name on UI throwing 500 Internal Error
Keywords:
Status: CLOSED DUPLICATE of bug 2111650
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 5.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 6.1
Assignee: Nizamudeen
QA Contact: Sunil Angadi
Anjana Suparna Sriram
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-27 18:05 UTC by Amarnath
Modified: 2022-07-27 18:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-27 18:17:00 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-4952 0 None None None 2022-07-27 18:10:40 UTC
Red Hat Issue Tracker RHCSDASH-807 0 None None None 2022-07-27 18:16:35 UTC

Description Amarnath 2022-07-27 18:05:44 UTC
Description of problem:
Snapshot creation with same name on UI throwing 500 Internal Error

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Click FileSystems in left pane
2. select one file systems in right pane which has subvolume created
3. Navigate to subvolume
4. click on create snapshot
5. Create a snapshot with name snap1
6. now again create snapshot with snap1

Currently it is throwing 500 Internal error

Cna we give right error message
in the mgr logs we are seeing
debug 2022-07-27T17:32:22.645+0000 7f7ecfba6700  0 [dashboard INFO cephfs] Creating snapshot: /volumes/subvolgroup_1/subvol_1/.snap/snap1
debug 2022-07-27T17:32:22.652+0000 7f7ecfba6700  0 [dashboard ERROR exception] Internal Server Error
Traceback (most recent call last):
  File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 47, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 258, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py", line 191, in wrapper
    return func(*vpath, **params)
  File "/usr/share/ceph/mgr/dashboard/controllers/cephfs.py", line 470, in snapshot
    return cfs.mk_snapshot(path, name)
  File "/usr/share/ceph/mgr/dashboard/services/cephfs.py", line 186, in mk_snapshot
    self.cfs.mkdir(snapshot_path, mode)
  File "cephfs.pyx", line 1023, in cephfs.LibCephFS.mkdir
cephfs.ObjectExists: error in mkdir /volumes/subvolgroup_1/subvol_1/.snap/snap1: File exists [Errno 17]


Actual results:


Expected results:


Additional info:

Comment 1 Amarnath 2022-07-27 18:17:00 UTC

*** This bug has been marked as a duplicate of bug 2111650 ***


Note You need to log in before you can comment on or make changes to this bug.