-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: February
-
Component/s: NEM
-
Labels:None
-
Story Points:3
-
Epic Link:
Error is thrown when tried to delete a subscriber and cannot be deleted when it's corresponding ONU doesn't exist.
Steps:
- Create OLT/ONU, Subscriber, Whitelist accordingly in XOS
- Delete OLT and ONU from voltha
- Delete subscriber and notice that it can't be removed
Exceptions from xos-core
=================================
Exception calling application: ONUDevice matching query does not exist. exc_info=(<class 'services.volt.models.DoesNotExist'>, DoesNotExist('ONUDevice matching query does not exist.',), <traceback object at 0x7f40c686c0e0>)
2019-02-25T22:15:07.889365Z [error ] Exception in apihelper.delete
Traceback (most recent call last):
File "/opt/xos/coreapi/apihelper.py", line 572, in delete
obj.delete()
File "/opt/xos/core/models/xosbase.py", line 60, in delete
update_fields=["enacted", "deleted", "policed"], silent=silent
File "/opt/xos/services/rcord/models.py", line 123, in save
if not volt_service.has_access_device(self.onu_device):
File "/opt/xos/services/volt/models.py", line 36, in has_access_device
ONUDevice.objects.get(serial_number=serial_number)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 380, in get
self.model._meta.object_name
DoesNotExist: ONUDevice matching query does not exist.
Exception calling application: ONUDevice matching query does not exist. exc_info=(<class 'services.volt.models.DoesNotExist'>, DoesNotExist('ONUDevice matching query does not exist.',), <traceback object at 0x7f40c685c6c8>)