Publish logs before exporting them
TripleO UI logs are moved from a Zaqar queue to a Swift object once an hour via a cron job. This means that when a log download is requested from the UI, there could be a gap of up to one hour in log coverage. This patch calls the `publish_ui_logs_to_swift` workflow before exporting the logs to a file; this ensures that all available log data are present in the downloaded archive. Change-Id: I9a34186040f41f77e42195197ea95b7dcbdcd995 Implements: blueprint websocket-logging
This commit is contained in:
parent
aa27c0bcf6
commit
8db91dc35a
@ -544,6 +544,11 @@ workflows:
|
||||
|
||||
tasks:
|
||||
|
||||
publish_logs:
|
||||
workflow: tripleo.plan_management.v1.publish_ui_logs_to_swift
|
||||
on-success: prepare_log_download
|
||||
on-error: publish_logs_set_status_failed
|
||||
|
||||
prepare_log_download:
|
||||
action: tripleo.logging_to_swift.prepare_log_download
|
||||
input:
|
||||
@ -573,6 +578,12 @@ workflows:
|
||||
message: <% task(create_tempurl).result %>
|
||||
tempurl: <% task(create_tempurl).result %>
|
||||
|
||||
publish_logs_set_status_failed:
|
||||
on-success: notify_zaqar
|
||||
publish:
|
||||
status: FAILED
|
||||
message: <% task(publish_logs).result %>
|
||||
|
||||
download_logs_set_status_failed:
|
||||
on-success: notify_zaqar
|
||||
publish:
|
||||
|
Loading…
Reference in New Issue
Block a user