Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-6408

NetconfAlarmProvider fails to parse eventTime, which contains milliseconds

    Details

    • Story Points:
      1
    • Epic Link:
    • Sprint:
      K Sprint #3 - Pkt-Optical

      Description

      Example

      2017-05-03 21:36:45,401 | INFO  | Thread-146       | NetconfDeviceOutputEventListener | 182 - org.onosproject.onos-protocols-netconf-api - 1.10.0.SNAPSHOT | Device netconf:fujitsu@10.49.54.40:830 has notification: <?xml version="1.0" encoding="UTF-8"?>
      <notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"><eventTime>2017-05-03T14:36:45.802028-07:00</eventTime>
      <netconf-config-change xmlns='urn:ietf:params:xml:ns:yang:ietf-netconf-notifications'>
        <changed-by>
          <username>fujitsu</username>
          <session-id>0</session-id>
          <source-host>10.49.54.130</source-host>
        </changed-by>
        <datastore>running</datastore>
        <edit>
          <target xmlns:eth="urn:fujitsu:params:xml:ns:yang:interface:eth" xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces">/if:interfaces/if:interface[if:name='eth-1/1/0/1']/eth:ethernet/eth:admin-status</target>
          <operation>replace</operation>
        </edit>
      </netconf-config-change>
      </notification>
      2017-05-03 21:36:45,418 | ERROR | Thread-146       | NetconfAlarmTranslator           | 180 - org.onosproject.onos-providers-netconf-alarm - 1.10.0.SNAPSHOT | Exception thrown translating message from netconf:10.49.54.40:830.
      java.lang.IllegalArgumentException: Invalid format: "2017-05-03T14:36:45.802028-07:00" is malformed at ".802028-07:00"
      	at org.joda.time.format.DateTimeParserBucket.doParseMillis(DateTimeParserBucket.java:187)
      	at org.joda.time.format.DateTimeFormatter.parseMillis(DateTimeFormatter.java:826)
      	at org.onosproject.provider.netconf.alarm.NetconfAlarmTranslator.parseDate(NetconfAlarmTranslator.java:99)
      	at org.onosproject.provider.netconf.alarm.NetconfAlarmTranslator.translateToAlarm(NetconfAlarmTranslator.java:66)
      	at org.onosproject.provider.netconf.alarm.NetconfAlarmProvider$InternalNotificationListener.event(NetconfAlarmProvider.java:168)
      	at org.onosproject.provider.netconf.alarm.NetconfAlarmProvider$InternalNotificationListener.event(NetconfAlarmProvider.java:141)
      	at org.onosproject.netconf.ctl.impl.NetconfSessionImpl$NotificationForwarder.lambda$event$0(NetconfSessionImpl.java:761)[183:org.onosproject.onos-protocols-netconf-ctl:1.10.0.SNAPSHOT]
      	at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:890)[:1.8.0_121]
      	at org.onosproject.netconf.ctl.impl.NetconfSessionImpl$NotificationForwarder.event(NetconfSessionImpl.java:759)[183:org.onosproject.onos-protocols-netconf-ctl:1.10.0.SNAPSHOT]
      	at org.onosproject.netconf.ctl.impl.NetconfSessionImpl$NotificationForwarder.event(NetconfSessionImpl.java:749)[183:org.onosproject.onos-protocols-netconf-ctl:1.10.0.SNAPSHOT]
      	at org.onosproject.netconf.ctl.impl.NetconfStreamThread.lambda$run$3(NetconfStreamThread.java:231)[183:org.onosproject.onos-protocols-netconf-ctl:1.10.0.SNAPSHOT]
      	at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:890)[:1.8.0_121]
      	at org.onosproject.netconf.ctl.impl.NetconfStreamThread.run(NetconfStreamThread.java:230)[183:org.onosproject.onos-protocols-netconf-qctl:1.10.0.SNAPSHOT]
      

        Attachments

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

          Activity

            People

            • Assignee:
              y-higuchi Yuta Higuchi
              Reporter:
              y-higuchi Yuta Higuchi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: