Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-2338

Bal3.1 - ONU dying gasp alarm is not raised in openolt adapter logs when onu is powered off

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: VOLTHA v2.3
    • Component/s: bal, openolt-adapter
    • Labels:
    • Environment:

      Downloaded voltha and adapter images from master(dec-10-2019)
      Kubernetes environment
      Bal3.1

      Description

      1. Activate OLT and ONU from vcli, Make sure both are active & reachable in vcli
      2. Power off ONU and check alarm is raised in openolt adapter logs

      Result:
      Observed "Dying gasp clear event" in adapter logs when ONU is powered off, below are the logs for reference

      {"log":"

      {\"level\":\"info\",\"ts\":\"2019-12-10T07:44:53.600Z\",\"msg\":\"Received alarm indication \",\"instanceId\":\"adapter-open-olt-6574d7d866-b7q28\",\"caller\":\"device_handler.handleIndication:372\",\"AlarmInd\":\"dying_gasp_ind:\u003cstatus:\\\"unknown\\\" \u003e \"}

      \n","stream":"stdout","time":"2019-12-10T07:44:53.600950869Z"}
      {"log":"

      {\"level\":\"info\",\"ts\":\"2019-12-10T07:44:53.600Z\",\"msg\":\"Received dying gasp indication\",\"instanceId\":\"adapter-open-olt-6574d7d866-b7q28\",\"caller\":\"openolt_eventmgr.ProcessEvents:106\",\"alarm_ind\":\"dying_gasp_ind:\u003cstatus:\\\"unknown\\\" \u003e \"}

      \n","stream":"stdout","time":"2019-12-10T07:44:53.601363697Z"}
      {"log":"

      {\"level\":\"debug\",\"ts\":\"2019-12-10T07:44:53.603Z\",\"msg\":\"message-sent\",\"instanceId\":\"adapter-open-olt-6574d7d866-b7q28\",\"caller\":\"sarama_client.Send:565\",\"status\":\"voltha.events\"}

      \n","stream":"stdout","time":"2019-12-10T07:44:53.604210945Z"}
      {"log":"

      {\"level\":\"debug\",\"ts\":\"2019-12-10T07:44:53.604Z\",\"msg\":\"Sent event to kafka\",\"instanceId\":\"adapter-open-olt-6574d7d866-b7q28\",\"caller\":\"events_proxy.sendEvent:134\",\"event\":\"header:\u003cid:\\\"Voltha.openolt.ONU_DYING_GASP.1575963893601128159\\\" type:DEVICE_EVENT type_version:\\\"0.1\\\" raised_ts:1.5759638e+18 reported_ts:1.5759638e+18 \u003e device_event:\u003cresource_id:\\\"db325aee9891b91eeb9dc9c3\\\" device_event_name:\\\"ONU_DYING_GASP_CLEAR_EVENT\\\" context:\u003ckey:\\\"intf-id\\\" value:\\\"0\\\" \u003e context:\u003ckey:\\\"onu-id\\\" value:\\\"0\\\" \u003e context:\u003ckey:\\\"serial-number\\\" value:\\\"\\\" \u003e \u003e \"}

      \n","stream":"stdout","time":"2019-12-10T07:44:53.605146968Z"}
      {"log":"{\"level\":\"info\",\"ts\":\"2019-12-10T07:44:53.604Z\",\"msg\":\"Successfully sent device event KAFKA\",\"instanceId\":\"adapter-open-olt-6574d7d866-b7q28\",\"caller\":\"events_proxy.SendDeviceEvent:96\",\"ResourceId\":\"db325aee9891b91eeb9dc9c3\",\"Context\":

      {\"intf-id\":\"0\",\"onu-id\":\"0\",\"serial-number\":\"\"}

      ,\"Id\":\"Voltha.openolt.ONU_DYING_GASP.1575963893601128159\",\"ReportedTs\":1575963826073895000,\"Type\":\"DEVICE_EVENT\",\"TypeVersion\":\"0.1\",\"DeviceEventName\":\"ONU_DYING_GASP_CLEAR_EVENT\",\"Category\":\"COMMUNICATION\",\"SubCategory\":\"PON\"}\n","stream":"stdout","time":"2019-12-10T07:44:53.605296507Z"}

      openolt agent logs:

      [3503341: I OPENOLT ] indications.cc 202| LOS indication : intf_id: 0 port: 536870912 status on
      [3503526: I OPENOLT ] indications.cc 775| Got onu deactivation, intf_id 0, onu_id 2, fail_reason 0
      [3506885: E OMCI ] core.cc 1728| Error sending OMCI message to ONU 2 on PON 0
      [3516893: E OMCI ] core.cc 1728| Error sending OMCI message to ONU 2 on PON 0
      [3544936: E OMCI ] core.cc 1728| Error sending OMCI message to ONU 2 on PON 0
      [3558485: I OPENOLT ] indications.cc 202| LOS indication : intf_id: 0 port: 536870912 status off
      [3558485: I OPENOLT ] indications.cc 390| onu discover indication, pon_ni 0, serial_number TWSH80808084
      [3558587: I OPENOLT ] indications.cc 428| onu indication, pon_ni 0, onu_id 2, onu_state up, onu_admin up

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              chaitra Chaitrashree G S
              Reporter:
              hanvitha anvitha haviligi
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes