Uploaded image for project: 'SEBA'
  1. SEBA
  2. SEBA-505

Unable to delete subscriber when it's corresponding ONU is deleted first

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: February
    • Component/s: NEM
    • Labels:
      None

      Description

      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>)

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            teone Matteo Scandolo
            Reporter:
            suchitra Suchitra Vemuri
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes