Closed Bug 1522762 Opened 6 years ago Closed 6 years ago

log the occ dsc run in real time

Categories

(Infrastructure & Operations :: RelOps: OpenCloudConfig, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: grenade, Assigned: grenade)

References

Details

Attachments

(1 file)

occ runs a number of bootstrapping functions that are logged in real time, then occ triggers the dsc run and the instance goes quiet for several minutes while the dsc run takes place. when it completes it releases a transcript file which is sent to papertrail and shown with a program heading of dsc-run.

sometimes, if something goes fatally wrong in the dsc run, the dsc script terminates and no further logs are received from either occ or dsc.

patch the dsc script xDynamicConfig, so that it logs in real time and makes it easier to see and debug where in the dsc run a fatal exception has occurred.

Attached file GitHub Pull Request

this pr adds:

  • event logging to SetScript components within xDynamicConfig
  • nxlog configurations to forward those logs to papertrail

most setscript component logic is now wrapped in a try catch all like so:

try {
  do_something_that_might_succeed_or_fail
  write_success_to_eventlog
}
catch {
  write_failure_to_eventlog
  throw_or_reattempt
}
Attachment #9039034 - Flags: review?(mcornmesser)
Attachment #9039034 - Flags: review?(mcornmesser) → review+
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: