Dry run action fails in Cloud Sync Task edit mode

Description

I configured Dropbox Cloud Credentials and added a Cloud Sync Task. When I add or edit the Cloud Sync task Dry Run fails with:

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 403, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 975, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 1101, in sync_onetime
await self._sync(cloud_sync, options, job)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 1123, in _sync
await rclone(self.middleware, job, cloud_sync, options["dry_run"])
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 179, in rclone
snapshot_name = f"cloud_sync-{cloud_sync['id']}-{datetime.utcnow().strftime('%Y%m%d%H%M%S')}"
KeyError: 'id'

This is low priority because if you go to Cloud Sync Tasks and select the task Dry Run and Run Now actions run successfully.

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk 
February 17, 2022 at 11:14 AM

Bug Clerk 
February 9, 2022 at 1:04 PM

Bonnie Follweiler 
February 7, 2022 at 10:29 PM

Thank you   .

The debug is in the Private area o the ticket so it is not accessible by the public.

I have moved this ticket in to our queue to review.

An engineering representative will update with any further questions or details in the near future.

Dimitris-Panagiotis Paraskevopoulos 
February 7, 2022 at 7:28 PM

Sure, I don't have much experience with TrueNAS though yet, so I hope I am not revealing a lot of sensitive info

Bonnie Follweiler 
February 7, 2022 at 4:47 PM

Thank you for the report, .

Can you please attach a debug file to the "Private Attachments" section of this ticket? To generate a debug file on TrueNAS CORE, log in to the TrueNAS web interface, go to System > Advanced, then click SAVE DEBUG and wait for the file to download to your local system.

Complete

Details

Assignee

Reporter

Labels

Impact

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created February 6, 2022 at 3:10 PM
Updated July 1, 2022 at 5:54 PM
Resolved February 17, 2022 at 4:58 PM