Debugging DCB scripts is a pain

Description

When developing a script for DCB, there is no feedback. It would help a lot if there is a command to execute a script and get line-by-line output of the commands send and the respones from the system.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Alex May July 13, 2022 at 3:40 PM

Merged into `release-30.x` (and `develop`)

Benjamin Reed June 27, 2022 at 4:05 PM
Edited

Are there potential security implications of storing this info? Would any of it need to be redacted, or is there at least a way to configure it to not store if you know certain devices could be stuffing sensitive data into the pollstatus?

Poll status data is a lot more visible to "regular" users than the downloaded configs, so it wouldn't be hidden behind the {{ROLE_DEVICE_CONFIG_BACKUP}} restrictions, right?

Alex May June 27, 2022 at 3:18 PM

Alex May June 22, 2022 at 4:23 PM

To do this, the plan is to:

  1. While executing each statement within the script, save the equivalent CLI output an ssh user would see

  2. Get this output into the poller's response object

  3. Add options at the ReST / karaf level to get this to the user

Fixed

Details

Assignee

Reporter

Story Points

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created March 29, 2022 at 9:04 AM
Updated July 18, 2022 at 3:09 PM
Resolved July 13, 2022 at 3:40 PM

Flag notifications