Project

General

Profile

Actions

action #183077

open

coordination #80142: [saga][epic] Scale out: Redundant/load-balancing deployments of openQA, easy containers, containers on kubernetes

coordination #96263: [epic] Exclude certain Minion tasks from "Too many Minion job failures alert" alert

coordination #99831: [epic] Better handle minion tasks failing with "Job terminated unexpectedly"

Better handle minion tasks failing with "Job terminated unexpectedly" - OpenQA::Task::Needle::Delete size:S

Added by tinita 4 days ago. Updated 4 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature requests
Start date:
2025-05-27
Due date:
% Done:

0%

Estimated time:

Description

Acceptance criteria

  • AC1: minion jobs "delete_needles" have a sigterm handler to decide how to shut down in a clean way in a reasonable time
  • AC2: Our minion job list on OSD and O3 do not show any "Job terminated unexpectedly" over multiple deployments for "delete_needles"/"save_needle"

Suggestions

Implement sigterm handler for "delete_needles", similar as we did for example in https://github.com/os-autoinst/openQA/pull/4415/files
* Note that this is maybe not as important as for other jobs because these Git operations shouldn't take too long.
* If we go for it nevertheless, that would mean leaving the Git repository in a dirty state. Maybe we should simply allow that by doing an upfront cleanup of the checkout in these tasks (which would also help with #70774).
* Alternatively do a git restore . and other necessary cleanups and end the task to leave the clone in a clean state.
* Likely we can just abort without a retry here because the user will see an error message in the web UI anyways and can just try it again. (Retrying might actually be bad if the user also retries manually.)

  • Test on o3 and osd either by manually restarting openqa-gru multiple times or awaiting the result from multiple deployments and checking the minion dashboard, e.g. openqa.suse.de/minion/jobs?state=failed

Related issues 1 (1 open0 closed)

Copied from openQA Project (public) - action #108989: Better handle minion tasks failing with "Job terminated unexpectedly" - OpenQA::Task::Needle::Save size:SFeedbackgpuliti2022-03-252025-06-11

Actions
Actions #1

Updated by tinita 4 days ago

  • Copied from action #108989: Better handle minion tasks failing with "Job terminated unexpectedly" - OpenQA::Task::Needle::Save size:S added
Actions #2

Updated by okurz 4 days ago

  • Target version set to Tools - Next
Actions

Also available in: Atom PDF