Project

General

Profile

Bug #79158

Fix traceback when cloning a snapshot

Added by Bug Clerk over 2 years ago. Updated over 2 years ago.

Status:
Ready for Testing
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

OS Version:
FreeNAS-11.3-MASTER-201903011000
(Build Date: Mar 1, 2019 6:15)
Processor:
Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz (8 cores)
Memory:
16 GiB

When I clone a snapshot. I get no errors and it shows up in my UI in a pool where I placed it, but shows ZERO kb size. In the NEW ui if i click edit permissions, it shows as nop user or group and no checkmarks for any of the permissions. If i try to set permissions the error I get "list index out of range". In legacy UI if i go to set permissions i get this error:

Request Method:    GET
Request URL:    http://192.168.192.77/legacy/storage/mountpoint/permission/mnt/backups/external/external-auto-20190218.1100-2w-clone/
Software Version:    FreeNAS-11.3-MASTER-201903011000 (ea8c4fc)
Exception Type:    ClientException
Exception Value:    
[ENOENT] Path /mnt/backups/external/external-auto-20190218.1100-2w-clone not found
Exception Location:    /usr/local/lib/python3.7/site-packages/middlewared/client/client.py in call, line 454
Server time:    Fri, 1 Mar 2019 14:12:12 -0800

and this for traceback:
Environment:

Software Version: FreeNAS-11.3-MASTER-201903011000 (ea8c4fc)
Request Method: GET
Request URL: http://192.168.192.77/legacy/storage/mountpoint/permission/mnt/backups/external/external-auto-20190218.1100-2w-clone/

Traceback:
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
  42.             response = get_response(request)
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  178.             response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
  163.         return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)
File "./freenasUI/storage/views.py" in mp_permission
  472.         form = forms.MountPointAccessForm(initial={'path': path})
File "./freenasUI/storage/forms.py" in __init__
  1637.                 self.fields['mp_group'].initial = stat['group']
File "./freenasUI/storage/forms.py" in __init__
  1628.                 stat = c.call('filesystem.stat', path)
File "/usr/local/lib/python3.7/site-packages/middlewared/client/client.py" in call
  454.             raise ClientException(c.error, c.errno, c.trace, c.extra)

Exception Type: ClientException at /legacy/storage/mountpoint/permission/mnt/backups/external/external-auto-20190218.1100-2w-clone/
Exception Value: [ENOENT] Path /mnt/backups/external/external-auto-20190218.1100-2w-clone not found

Just on a chance that it was a permission issue i did try the following:

replicator# chown root:wheel -R external-auto-20190218.1100-2w-clone
chown: -R: No such file or directory
chown: external-auto-20190218.1100-2w-clone: No such file or directory
replicator# chmod 777 external-auto-20190218.1100-2w-clone
chmod: external-auto-20190218.1100-2w-clone: No such file or directory

So the cloned snapshot does not appear at all in the file system

Debug included


Related issues

Copied from FreeNAS - Bug #78286: Cloned snapshot shows up in UI but not in file systemDone

History

#1 Updated by Bug Clerk over 2 years ago

  • Copied from Bug #78286: Cloned snapshot shows up in UI but not in file system added

#2 Updated by Bug Clerk over 2 years ago

  • Status changed from Unscreened to In Progress

#3 Updated by William Grzybowski over 2 years ago

  • Target version changed from Master - FreeNAS Nightlies to 11.2-U4

#4 Updated by Bug Clerk over 2 years ago

  • Status changed from In Progress to Ready for Testing

#5 Updated by Dru Lavigne over 2 years ago

  • Subject changed from Cloned snapshot shows up in UI but not in file system to Fix traceback when cloning a snapshot
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#6 Updated by William Grzybowski over 2 years ago

Acceptance Criteria
Clone a snapshot and then set a permission on the resulting dataset

Also available in: Atom PDF