Project

General

Profile

Bug #35587

Fix instances where pool.snapshot was renamed to pool.snapshottask in middleware

Added by Bonnie Follweiler over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
Waqar Ahmed
Category:
Middleware
Target version:
Seen in:
Severity:
Med High
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

I am on FreeNAS 11.2-INTERNAL8
In the old UI I get the following traceback when I try to set up a replication task using the
Request Method: POST
Request URL: http://10.231.5.176/legacy/admin/storage/replication/add/
Software Version: FreeNAS-11.2-INTERNAL8 (cd07325ba)
Exception Type: ClientException
Exception Value:

[ENOMETHOD] Method "query" not found in "pool.snapshot"

Exception Location: /usr/local/lib/python3.6/site-packages/middlewared/client/client.py in call, line 436
Server time: Fri, 22 Jun 2018 09:10:12 -0400

Traceback
Environment:

Software Version: FreeNAS-11.2-INTERNAL8 (cd07325ba)
Request Method: POST
Request URL: http://10.231.5.176/legacy/admin/storage/replication/add/

Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/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.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in wrapper
216. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/site.py" in inner
142. return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in add
370. mf.save()
File "./freenasUI/middleware/form.py" in save
55. result = self.
_save()
File "./freenasUI/middleware/form.py" in __save
114. raise
File "./freenasUI/middleware/form.py" in __save
109. return c.call(f"{self.middleware_plugin}.{self._middleware_action}", *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
436. raise ClientException(c.error, c.errno, c.trace, c.extra)

Exception Type: ClientException at /legacy/admin/storage/replication/add/
Exception Value: [ENOMETHOD] Method "query" not found in "pool.snapshot"

Request information
GET

No GET data
POST
Variable Value
all ''
repl_filesystem 'Obi-wan/Leia'
repl_zfs 'KyloRen/ben'
repl_userepl 'on'
repl_compression 'lz4'
repl_limit '0'
repl_begin 'Thu Jan 01 1970 00:00:00 GMT-0500 (EST)'
repl_end 'Thu Jan 01 1970 23:59:00 GMT-0500 (EST)'
repl_enabled 'on'
repl_remote_mode 'SEMIAUTOMATIC'
repl_remote_hostname '10.231.5.208'
repl_remote_port '22'
repl_remote_http_port '80'
repl_remote_token '0efc5b33-1014-4e06-9d89-32bed6d28633'
repl_remote_cipher 'standard'
repl_remote_hostkey ''
__form_id 'dialogForm_replication'
FILES

No FILES data
COOKIES
Variable Value
fntreeSaveStateCookie 'root'
csrftoken '********'
sessionid 'e95f3enkm1ojvkjmjxy7xcjp4eo7x12p'
META
Variable Value

In the New UI the SAVE button just stays greyed out (screenshot provided)


Related issues

Related to FreeNAS - Feature #33411: Convert Storage:Replication to MiddlewaredDone

Associated revisions

Revision f5fa0990 (diff)
Added by Waqar Ahmed over 1 year ago

pool.snapshot usages renamed to pool.snapshottask Ticket: #35587

History

#1 Updated by Bonnie Follweiler over 1 year ago

19279

I tried the manual set up got an error message in the new UI and a Traceback in the old UI
(Screenshot provided)

Traceback from the old UI:
Request Method: POST
Request URL: http://10.231.5.176/legacy/admin/storage/replication/add/
Software Version: FreeNAS-11.2-INTERNAL8 (cd07325ba)
Exception Type: ClientException
Exception Value:

[ENOMETHOD] Method "query" not found in "pool.snapshot"

Exception Location: /usr/local/lib/python3.6/site-packages/middlewared/client/client.py in call, line 436
Server time: Fri, 22 Jun 2018 09:23:41 -0400

Traceback
Environment:

Software Version: FreeNAS-11.2-INTERNAL8 (cd07325ba)
Request Method: POST
Request URL: http://10.231.5.176/legacy/admin/storage/replication/add/

Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/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.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in wrapper
216. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/site.py" in inner
142. return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in add
370. mf.save()
File "./freenasUI/middleware/form.py" in save
55. result = self.
_save()
File "./freenasUI/middleware/form.py" in __save
114. raise
File "./freenasUI/middleware/form.py" in __save
109. return c.call(f"{self.middleware_plugin}.{self._middleware_action}", *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
436. raise ClientException(c.error, c.errno, c.trace, c.extra)

Exception Type: ClientException at /legacy/admin/storage/replication/add/
Exception Value: [ENOMETHOD] Method "query" not found in "pool.snapshot"

Request information
GET

No GET data
POST
Variable Value
all ''
repl_filesystem 'Obi-wan/Leia'
repl_zfs 'KyloRen/ben'
repl_userepl 'on'
repl_compression 'lz4'
repl_limit '0'
repl_begin 'Thu Jan 01 1970 00:00:00 GMT-0500 (EST)'
repl_end 'Thu Jan 01 1970 23:59:00 GMT-0500 (EST)'
repl_enabled 'on'
repl_remote_mode 'MANUAL'
repl_remote_hostname '10.231.5.208'
repl_remote_port '22'
repl_remote_http_port '80'
repl_remote_token ''
repl_remote_cipher 'standard'
repl_remote_hostkey ('10.231.5.208 ssh-ed25519 ' 'AAAAC3NzaC1lZDI1NTE5AAAAIFB/2bzUnLRyf8XSvwyYKDFe4WlMH62wpfSJ5PmV7x4O\n')
__form_id 'dialogForm_replication'
FILES

No FILES data
COOKIES
Variable Value
fntreeSaveStateCookie 'root'
csrftoken '********'
sessionid '5dqefuadaogn807wl5vfxsqiybirxx0i'
META
Variable Value

#2 Updated by Bonnie Follweiler over 1 year ago

  • Subject changed from I Can't set up a Replication Tsk in the old and new GUI using either the semi-automatic not the manual method to I Can't set up a Replication Task in the old and new GUI using either the semi-automatic or the manual method

#3 Updated by Bonnie Follweiler over 1 year ago

  • Related to Feature #33411: Convert Storage:Replication to Middlewared added

#4 Updated by William Grzybowski over 1 year ago

  • Assignee changed from William Grzybowski to Waqar Ahmed
  • Severity changed from New to Med High

#5 Updated by Dru Lavigne over 1 year ago

  • Target version changed from Backlog to 11.2-BETA1

#6 Updated by Waqar Ahmed over 1 year ago

  • Status changed from Unscreened to In Progress

#7 Updated by Waqar Ahmed over 1 year ago

  • Status changed from In Progress to Ready for Testing

#8 Updated by Dru Lavigne over 1 year ago

  • Subject changed from I Can't set up a Replication Task in the old and new GUI using either the semi-automatic or the manual method to Fix instances where pool.snapshot was renamed to pool.snapshottask in middleware
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#9 Updated by Eric Turgeon over 1 year ago

I have tried to create snapshot make a copy and rolled it back and everything look to work fine

#10 Updated by Dru Lavigne over 1 year ago

  • Status changed from Ready for Testing to Done
  • Needs QA changed from Yes to No

#13 Updated by Bonnie Follweiler over 1 year ago

  • Status changed from Done to Ready for Testing
  • Needs QA changed from No to Yes

#14 Updated by Bonnie Follweiler over 1 year ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Periodic Snapshot/Replication works in the old UI
I will put in a bug ticket in the new ui about the replication task not saving in the new UI

#15 Updated by Dru Lavigne over 1 year ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF