Project

General

Profile

Bug #78286

Cloned snapshot shows up in UI but not in file system

Added by Genya Kaplun over 2 years ago. Updated over 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
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 to FreeNAS - Bug #79158: Fix traceback when cloning a snapshotReady for Testing

Associated revisions

Revision 2b601c97 (diff)
Added by William Grzybowski over 2 years ago

fix(middlewared/zfs): mount dataset after snapshot clone Ticket: #78286

Revision 2a2fd358 (diff)
Added by William Grzybowski over 2 years ago

fix(middlewared/zfs): mount dataset after snapshot clone Ticket: #78286

Revision ddb8cc57 (diff)
Added by William Grzybowski over 2 years ago

fix(middlewared/zfs): mount dataset after snapshot clone Ticket: #78286 (cherry picked from commit 2b601c9749684affdfadf9f3b4df38cce2902f51)

History

#1 Updated by Dru Lavigne over 2 years ago

  • Category changed from OS to Middleware
  • Assignee changed from Release Council to William Grzybowski
  • Private changed from No to Yes

#2 Updated by Bug Clerk over 2 years ago

  • Status changed from Unscreened to In Progress

#3 Updated by Bug Clerk over 2 years ago

  • Status changed from In Progress to Ready for Testing

#4 Updated by Bug Clerk over 2 years ago

  • Target version changed from Backlog to 11.3-BETA1

#5 Updated by Bug Clerk over 2 years ago

  • Copied to Bug #79158: Fix traceback when cloning a snapshot added

#6 Updated by Genya Kaplun over 2 years ago

Bug Clerk wrote:

11.3 PR: https://github.com/freenas/freenas/pull/2716

Hello,

I just updated to latest nightly, snapshot is still not mounted when I clone it.
Thank you

#7 Updated by William Grzybowski over 2 years ago

Genya Kaplun wrote:

Bug Clerk wrote:

11.3 PR: https://github.com/freenas/freenas/pull/2716

Hello,

I just updated to latest nightly, snapshot is still not mounted when I clone it.
Thank you

The code was committed 1 hour, its impossible you have this change already in the update. Try tomorrow. Thanks.

#8 Updated by Genya Kaplun over 2 years ago

Great! Thank you so much! You guys are amazing!!!!

#9 Updated by Dru Lavigne over 2 years ago

  • File deleted (debug-replicator-20190301144001.txz)

#10 Updated by Dru Lavigne over 2 years ago

  • Status changed from Ready for Testing to Done
  • Target version changed from 11.3-BETA1 to Master - FreeNAS Nightlies
  • Private changed from Yes to No
  • Needs QA changed from Yes to No
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

Also available in: Atom PDF