Add handling of exit code 100 from timmy.
Diagnostic snapshot returns "Timmy: exit code 100" in the case of insufficient disk space. In the manual docs of timmy such exit code has more detailed description. Change-Id: Idb2a3c31d32025e990c981ff5717309a4a536589 Closes-Bug: #1671455
This commit is contained in:
parent
892894bfb5
commit
446346b32c
|
@ -53,6 +53,9 @@ module Astute
|
|||
elsif result[:data][:exit_code] == 28
|
||||
Astute.logger.error("#{ctx.task_id}: Disk space for creating snapshot exceeded.")
|
||||
report_error(ctx, "Timmy exit code: #{result[:data][:exit_code]}. Disk space for creating snapshot exceeded.")
|
||||
elsif result[:data][:exit_code] == 100
|
||||
Astute.logger.error("#{ctx.task_id}: Not enough free space for logs. Decrease logs coefficient via CLI or config or free up space.")
|
||||
report_error(ctx, "Timmy exit code: #{result[:data][:exit_code]}. Not enough free space for logs.")
|
||||
else
|
||||
Astute.logger.error("#{ctx.task_id}: Dump command returned non zero exit code. For details see #{log_file}")
|
||||
report_error(ctx, "Timmy exit code: #{result[:data][:exit_code]}")
|
||||
|
|
Loading…
Reference in New Issue