Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-3789

Fault ID and Fault name fields missing from UI and also store all the fault netconf notification fields in DB table

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • Jakarta Release
    • apps - sdnr
    • None

      Step to reproduce:-

      SDNR Faults not storing the complete details of the faults generated by device.

      Following data is missing

      1. fault-id
      1. fault-source
      1. affected-objects
      1. fault-severity – showing incorrect value than what

      From SMO UI Fault-id and name are missing in Faults page. Need to add these fields to the Faults page.

      Findings:-

      Some notification fields already available in the Elasticsearch DB with different names and the remaining one we are planning to add so that it will be available on the REST API and UI enhancements can be done later.

      Following is the mapping between fields stored in DB table vs API response

      fault-source: Mapped to object-id in the response.

      fault-severity: Mapped to severity. If is-cleared=true,then its value is Non-Alarmed.

      fault-text: Mapped to problem

      fault-id and affected-objects are not returned by API. We need to add these two fields to the DB.

      fault-id: This is being stored by the name of the field is id and in the final ES response this is being replaced with ED id. We are planning to introduce another field fault-id in ES table.

      affected-objects: This is not being stored now and we will store it in ES. This is list contain list of source names. Currently couldn’t find a way to store the list hence planning to store it as String in DB wtih comma(,) seperated values.

      Solution:-

      After adding fault id and affected-objects-str new response is

      {
          "data-provider:output": {
              "data": [
                 

      {                 "id": "-OvezIEBLpDTAikUnZU2",                 "fault-id": "28",                 "object-id": "interface-1",                 "problem": "C/U-plane logical Connection faulty",                 "counter": 2,                 "severity": "Major",                 "node-id": "rusim4",                 "source-type": "Netconf",                 "affected-objects-str": "6a592d822095",                 "timestamp": "2022-07-05T05:39:10Z"             }

      ,
                 

      {                 "id": "k-vdzIEBLpDTAikUspXZ",                 "fault-id": "30",                 "object-id": "interface-1",                 "problem": "Interface Fault",                 "counter": 1,                 "severity": "NonAlarmed",                 "node-id": "rusim4",                 "source-type": "Netconf",                 "affected-objects-str": "6a592d822095",                 "timestamp": "2022-07-05T05:38:10Z"             }

              ],
              "pagination":

      {             "size": 10,             "page": "1",             "total": "2"         }

          }
      }

      and from UI fault-id and affected-objects are added

            Unassigned Unassigned
            projitaarna projitaarna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: