Project

General

Profile

Bug #35863

Fix traceback when creating new Cloud Sync Task

Added by Timothy Moore II 10 months ago. Updated 10 months ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
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'm testing the new UI with a FreeNAS Mini system on INTERNAL8.

I added a temporary Backblaze Cloud Credential then attempted to create a new Cloud Sync Task to push a folder to a B2 bucket.
When I click "Save" for the new task, an Error appears that says 'args' and this text displays in the "More info..." expansion:

```
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 154, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1013, in call_method
return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 953, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/service.py", line 277, in create
f'{self._config.namespace}.create', self, self.do_create, [data]
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 953, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 658, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/backup.py", line 173, in do_create
return (await self.middleware.call("cloudsync.create", backup))["id"]
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1017, in call
return await self._call(name, serviceobj, methodobj, params, pipes=pipes, io_thread=True)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 953, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/service.py", line 277, in create
f'{self._config.namespace}.create', self, self.do_create, [data]
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 953, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 658, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 381, in do_create
await self._validate(verrors, "cloud_sync", cloud_sync)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 296, in _validate
shlex.split(data["args"])
KeyError: 'args'
```

Associated revisions

Revision 235267e1 (diff)
Added by Vladimir Vinogradenko 10 months ago

fix(cloud_sync): Default value for args

Ticket: #35863

Revision eeb48d54 (diff)
Added by Nick "darkfiberiru" Wolff 10 months ago

fix(installer): Allow upgrades on system where grub is the only /etc/… (#1457)

  • fix(installer): Allow upgrades on system where grub is the only /etc/fstab entry
    Ticket: #35863
  • Updating iso install upgrade codepath to match upgrade on running system
    Ticket: #36223

Updated to match following ix-bsdloader fixes
3358cf853677330dfc70eed5cc55d1091dc2dd71
d807f7a19b39ecfc7649868f0797d597828c859b

History

#1 Updated by William Grzybowski 10 months ago

  • Category changed from GUI (new) to Middleware
  • Assignee changed from Release Council to Vladimir Vinogradenko
  • Target version changed from Backlog to 11.2-BETA2
  • Severity changed from New to Med High
  • Seen in changed from Unspecified to Master - FreeNAS Nightlies

#2 Updated by Dru Lavigne 10 months ago

  • Target version changed from 11.2-BETA2 to 11.2-BETA1

#3 Updated by Vladimir Vinogradenko 10 months ago

  • Status changed from Unscreened to Ready for Testing

#4 Updated by Dru Lavigne 10 months ago

  • Subject changed from Cannot create new Cloud Sync Task to Fix traceback when creatiing new Cloud Sync Task

#5 Updated by Dru Lavigne 10 months ago

  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#6 Updated by Dru Lavigne 10 months ago

  • Subject changed from Fix traceback when creatiing new Cloud Sync Task to Fix traceback when creating new Cloud Sync Task

#7 Updated by Timothy Moore II 10 months ago

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

Testing on a FreeNAS Mini with INTERNAL13 installed:

Set up a Backblaze cloud credential and create a new Cloud Sync task. No issues or tracebacks.

#8 Updated by Dru Lavigne 10 months ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF