Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-14275

DCB: Handle script file missing scenario better

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 30.0.0
    • None
    • Security Level: Default (Default Security Scheme)
    • None
    • 3
    • Horizon - May 11 - 25

    Description

      In case of missing script-file, we throw RuntimeException in getRuntimeAttributes which results in event with following description.

      <p>A DeviceConfig-default outage was identified on interface
                  192.168.1.123 because of the following condition: Unexpected exception while polling PollableService[location=Default, interface=PollableInterface [PollableNode [42]:192.168.1.123], svcName=DeviceConfig-default]. java.lang.RuntimeException: java.io.FileNotFoundException: Couldn't find file juniper-vsrx-default.dcb in etc/device-config folder.</p> <p>
                  A new Outage record has been created and service level
                  availability calculations will be impacted until this outage is
                  resolved.</p>
      

      This is good to know the problem but once user fixes it, they can't do manual trigger since this fails early and doesn't go through monitor.

      One way to fix this is pass on the error to monitor and monitor returns the failure. In this case, an actual entry gets created in the DeviceConfig table and UI will see the device.

      Attachments

        Activity

          People

            cgorantla Chandra Gorantla
            cgorantla Chandra Gorantla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3 minutes
                3m
                Remaining:
                Remaining Estimate - 3 minutes
                3m
                Logged:
                Time Spent - Not Specified
                Not Specified