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: I60b0734b6f79bbcd05745c3079025c85611e0689 Closes-Bug: #1671455
This commit is contained in:
parent
840392eeae
commit
4a96fa9575
|
@ -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