DCB: Handle script file missing scenario better

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.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Chandra Gorantla May 12, 2022 at 10:01 PM

Fixed

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

No time logged3m remaining

Sprint

Fix versions

Priority

PagerDuty

Created May 10, 2022 at 6:31 PM
Updated May 17, 2022 at 4:37 PM
Resolved May 16, 2022 at 8:13 PM

Flag notifications