Project

General

Profile

Bug #53676

Fix traceback creating cloud sync without encryption password

Added by William Grzybowski almost 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
Severity:
Low Medium
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

KeyError: 'encryption_password'
  File "middlewared/main.py", line 161, in call_method
    result = await self.middleware.call_method(self, message)
  File "middlewared/main.py", line 1043, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
  File "middlewared/main.py", line 983, in _call
    return await methodobj(*args)
  File "middlewared/service.py", line 278, in create
    f'{self._config.namespace}.create', self, self.do_create, [data]
  File "middlewared/main.py", line 983, in _call
    return await methodobj(*args)
  File "middlewared/schema.py", line 664, in nf
    return await f(*args, **kwargs)
  File "plugins/cloud_sync.py", line 411, in do_create
    await self._validate(verrors, "cloud_sync", cloud_sync)
  File "plugins/cloud_sync.py", line 296, in _validate
    if not data["encryption_password"]:
data    
{
'args': '', 
'attributes': {
'bucket': 'cubehq-encr', 
'folder': ''
}, 
'credentials': 1, 
'description': 'backblaze-encr', 
'direction': 'PUSH', 
'enabled': True, 
'encryption': True, 
'filename_encryption': False, 
'path': '/mnt/hera/krypt', 
'schedule': {
'dom': '*', 
'dow': '*', 
'hour': '0', 
'minute': '0', 
'month': '*'
}, 
'transfer_mode': 'SYNC'
}

https://sentry.ixsystems.com/ixsystems/freenas-middleware/issues/17456/

Associated revisions

Revision ec323974 (diff)
Added by William Grzybowski almost 2 years ago

fix(migration): catch exception on cloud sync credentials decrypt Ticket: #53676

History

#1 Updated by William Grzybowski almost 2 years ago

  • Project changed from TrueNAS to FreeNAS
  • Category changed from Middleware to Middleware
  • Migration Needed deleted (No)
  • Hide from ChangeLog deleted (No)
  • Support Department Priority deleted (0)

#2 Updated by Bug Clerk almost 2 years ago

  • Status changed from Unscreened to In Progress

#3 Updated by Bug Clerk almost 2 years ago

  • Status changed from In Progress to Ready for Testing

11.2-stable PR: https://github.com/freenas/freenas/pull/1965
This is not an issue for 11.1/11.3.

#4 Updated by Dru Lavigne almost 2 years ago

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

#5 Updated by Dru Lavigne almost 2 years ago

  • Subject changed from Fix traceback creating cloud sync without encryption_password to Fix traceback creating cloud sync without encryption password

#6 Updated by Bug Clerk almost 2 years ago

  • Status changed from Ready for Testing to In Progress

#7 Updated by William Grzybowski almost 2 years ago

  • Status changed from In Progress to Ready for Testing

#8 Updated by William Grzybowski almost 2 years ago

  • Status changed from Ready for Testing to Done

#9 Updated by Bonnie Follweiler almost 2 years ago

  • Needs QA changed from Yes to No

Also available in: Atom PDF