Project

General

Profile

Bug #63675

Traceback on alertservice.update

Added by Bug Clerk almost 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
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

AttributeError: 'NoneType' object has no attribute 'validate'
  File "middlewared/main.py", line 161, in call_method
    result = await self.middleware.call_method(self, message)
  File "middlewared/main.py", line 1109, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
  File "middlewared/main.py", line 1049, in _call
    return await methodobj(*args)
  File "middlewared/service.py", line 283, in update
    f'{self._config.namespace}.update', self, self.do_update, [id, data]
  File "middlewared/main.py", line 1049, in _call
    return await methodobj(*args)
  File "middlewared/schema.py", line 664, in nf
    return await f(*args, **kwargs)
  File "plugins/alert.py", line 476, in do_update
    await self._validate(data, "alert_service_update")
  File "plugins/alert.py", line 436, in _validate
    factory.validate(service["attributes"])
factory    
None
schema_name    
'alert_service_update'
self    
<alert.AlertServiceService object at 0x81813bdd8>
service    
{
'attributes': {
'region': 'us-east-2', 
'topic_arn': 'arn:aws:sns:us-east-2:469582781921:Fileserver'
}, 
'enabled': False, 
'name': 'AWS-SNS', 
'settings': {}, 
'type': 'AWS-SNS'
}

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


Related issues

Copied from FreeNAS - Bug #63639: Fix traceback on alertservice.updateDone

History

#1 Updated by Bug Clerk almost 2 years ago

  • Copied from Bug #63639: Fix traceback on alertservice.update added

#2 Updated by Bug Clerk almost 2 years ago

  • Target version changed from Master - FreeNAS Nightlies to 11.3

#3 Updated by Bug Clerk almost 2 years ago

  • Status changed from Unscreened to In Progress

#4 Updated by Bug Clerk almost 2 years ago

  • Status changed from In Progress to Ready for Testing

#5 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Ready for Testing to Done
  • Target version changed from 11.3 to Master - FreeNAS Nightlies
  • 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