Project

General

Profile

Actions

coordination #96263

open

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

[epic] Exclude certain Minion tasks from "Too many Minion job failures alert" alert

Added by mkittler over 3 years ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2020-09-01
Due date:
% Done:

38%

Estimated time:
(Total: 0.00 h)

Description

There are certain Minion tasks which fail regularly but there's not much we can do about it.

  • #99837 All OBS rsync related tasks: Such failing tasks seem to have no impact; apparently it is sufficient if it works on the next attempt or users are able to fix problems themselves.
  • #70774 save_needle tasks: The needles dir on OSD might just be misconfigured by the user, e.g. we recently had lots of failing jobs for a needles directory for a new distribution. The users were often able to fix the problem themselves after they see the error (which is directly visible when saving a needle).
  • #100503 finalize_job_results tasks: I am not sure about this one. If the job just fails due to a user-provided hook script it should not be our business. On the other hand, we also configure the hook script for the investigation ourselves and want to be informed about problems. (So likely we want to consider these failures after all.)
  • #99831 jobs failing with the result 'Job terminated unexpectedly (exit code: 0, signal: 15)': This problem is independent of the task but is of course seen much more often on task we spawn many jobs of (e.g. finalize_job_result tasks) and tasks with possibly long running jobs (e.g. limit_assets). I suppose the error just means the Minion worker was restarted as signal 15 is SIGTERM. Since such tasks are either not very important or triggered periodically we can likely just ignore those failed jobs.
  • jobs failing with result result: Worker went away: This problem is independent of the task and similar to the previous point. Not sure under which condition jobs with that result are produced but it is apparently nothing our current handling for SIGTERM (for the previous point) covers.
  • jobs failing with PostgreSQL connection error: This problem is also independent of the task as PostgreSQL is basically used everywhere. I suppose such failures happen when the database is restarted or shortly not available for some reason.

Instead of implementing this on the monitoring-level we could also change openQA's behavior so these jobs are not considered failing. This would allow for a finer distinction (e.g. jobs would still fail if there's an unhanded exception due to a real regression). The disadvantage would be that all openQA instances would be affected. However, that's maybe not a bad thing and we can make it always configurable.


Subtasks 13 (7 open6 closed)

action #70774: save_needle Minion tasks fail frequently and needles could get lostNew2020-09-01

Actions
coordination #99831: [epic] Better handle minion tasks failing with "Job terminated unexpectedly"New2021-12-02

Actions
action #103416: Better handle minion tasks failing with "Job terminated unexpectedly" - "limit_results_and_logs" size:MResolvedmkittler2021-12-02

Actions
action #104116: Better handle minion tasks failing with "Job terminated unexpectedly" - "scan_needles" size:MResolvedokurz

Actions
action #107533: Better handle minion tasks failing with "Job terminated unexpectedly" - "finalize_job_results" size:MResolvedmkittler

Actions
action #108980: Better handle minion tasks failing with "Job terminated unexpectedly" - OpenQA::Task::Asset::DownloadNew2022-03-25

Actions
action #108983: Better handle minion tasks failing with "Job terminated unexpectedly" - OpenQA::Task::Iso::ScheduleNew2022-03-25

Actions
action #108989: Better handle minion tasks failing with "Job terminated unexpectedly" - OpenQA::Task::NeedleNew2022-03-25

Actions
action #167797: scripts-ci multimachine test CI job fails due to job incompleting with "minion failed" size:MResolvedmkittler2024-10-04

Actions
openQA Infrastructure (public) - action #167911: Scripts CI | Failed pipeline - openqa-schedule-mm-ping-test incompletes on o3Rejected2024-10-08

Actions
action #169144: Link to minion job from openQA job with waiting taskNew

Actions
action #99837: configurable exclusion rules for /influxdb/minionNew2021-10-06

Actions
action #100503: Identify all "finalize_job_results" failures and handle them (report ticket or fix)Resolvedlivdywan2021-10-07

Actions

Related issues 4 (0 open4 closed)

Related to openQA Project (public) - action #96197: [alert] web UI: Too many Minion job failures alert size:MResolvedmkittler2021-07-28

Actions
Related to openQA Infrastructure (public) - action #98499: [alert] web UI: Too many Minion job failures alert size:SResolvedmkittler2021-09-13

Actions
Related to openQA Infrastructure (public) - action #70768: obs_rsync_run and obs_rsync_update_builds_text Minion tasks fail frequentlyResolvedXiaojing_liu2020-09-01

Actions
Related to openQA Project (public) - action #118969: [alert] web UI: Too many Minion job failures alertResolvedmkittler2022-10-17

Actions
Actions #1

Updated by mkittler over 3 years ago

  • Description updated (diff)
Actions #2

Updated by mkittler over 3 years ago

  • Related to action #96197: [alert] web UI: Too many Minion job failures alert size:M added
Actions #3

Updated by okurz over 3 years ago

  • Project changed from openQA Project (public) to openQA Infrastructure (public)
  • Target version set to future
Actions #4

Updated by mkittler over 3 years ago

  • Related to action #70774: save_needle Minion tasks fail frequently and needles could get lost added
Actions #5

Updated by okurz over 3 years ago

  • Related to action #98499: [alert] web UI: Too many Minion job failures alert size:S added
Actions #6

Updated by okurz over 3 years ago

Since commit 60ba6e1
Author: Amrysliu xiaojing.liu@suse.com
Date: Wed Jan 13 14:40:19 2021 +0800

Ignore specified failed minion jobs

See: https://progress.opensuse.org/issues/70768

it is possible to exclude certain minion tasks. With this it should be possible to exclude more just based on configuration

Actions #7

Updated by mkittler over 3 years ago

  • Related to action #70768: obs_rsync_run and obs_rsync_update_builds_text Minion tasks fail frequently added
Actions #8

Updated by mkittler over 3 years ago

  • Description updated (diff)
Actions #9

Updated by okurz about 3 years ago

  • Target version changed from future to Ready

After another OSD deployment another big chunk of minion jobs failing with "Job terminated unexpectedly (exit code: 0, signal: 15)" which we should handle in a better way. Adding ticket to backlog

Actions #10

Updated by okurz about 3 years ago

  • Priority changed from Normal to High
Actions #11

Updated by okurz about 3 years ago

#97979 was another place where we found that our minion job alert can be improved hence bumping prio to "High".

Actions #12

Updated by okurz about 3 years ago

  • Status changed from New to In Progress
  • Assignee set to okurz

we tried to estimate but maybe I can help to clarify first what we want to achieve

Actions #13

Updated by openqa_review about 3 years ago

  • Due date set to 2021-10-15

Setting due date based on mean cycle time of SUSE QE Tools

Actions #14

Updated by mkittler about 3 years ago

There are multiple points to be addressed. Maybe this should have been an epic. However, I agree with okurz's previous comment about getting started (#96263#note-9).


By the way, we're generating the data for InfluxDB via the openQA web application. This is not using direct SQL queries. I've recently checked the concrete code and Minion API we use so far. There seemed no easy way to do a filtered query via the Mojo API so one would have to loop through all failed jobs to filter jobs with the result Job terminated unexpectedly out. Maybe it is simpler and more performant to query Minion's database tables directly via PostgreSQL like we already do for other monitoring data.

Actions #15

Updated by okurz about 3 years ago

  • Tracker changed from action to coordination
  • Subject changed from Exclude certain Minion tasks from "Too many Minion job failures alert" alert to [epic] Exclude certain Minion tasks from "Too many Minion job failures alert" alert
  • Description updated (diff)
Actions #16

Updated by okurz about 3 years ago

  • Description updated (diff)
Actions #17

Updated by okurz about 3 years ago

  • Description updated (diff)
Actions #18

Updated by openqa_review about 3 years ago

Setting due date based on mean cycle time of SUSE QE Tools

Actions #19

Updated by okurz about 3 years ago

  • Description updated (diff)
  • Status changed from In Progress to Blocked

created four subtasks. One is in our backlog currently. Setting to "Blocked" on subtasks.

Actions #20

Updated by okurz about 3 years ago

  • Status changed from Blocked to New
  • Assignee deleted (okurz)
  • Target version changed from Ready to future

currently not to be considered for backlog due to backlog size-constraints

Actions #21

Updated by okurz about 3 years ago

  • Project changed from openQA Infrastructure (public) to openQA Project (public)
  • Category set to Feature requests
  • Target version changed from future to Ready
  • Parent task set to #80142
Actions #22

Updated by okurz about 3 years ago

  • Status changed from New to Blocked
  • Assignee set to okurz
Actions #23

Updated by mkittler over 2 years ago

  • Description updated (diff)

I added two more points to the ticket description (see #112193).

Actions #24

Updated by okurz over 2 years ago

  • Status changed from Blocked to New
  • Assignee deleted (okurz)
  • Target version changed from Ready to future
Actions #25

Updated by jbaier_cz about 2 years ago

  • Related to action #118969: [alert] web UI: Too many Minion job failures alert added
Actions

Also available in: Atom PDF