Project

General

Profile

Actions

action #132668

closed

[alert] Cron job from openqa-service failed: fetch_openqa_bugs size:M

Added by jbaier_cz over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2023-07-13
Due date:
2023-07-28
% Done:

0%

Estimated time:

Description

Observation

There is a JSON decoding failure from openqa_bugfetcher i.e. visible in an email like "Cron root@openqa-service (date; fetch_openqa_bugs) > /tmp/fetch_openqa_bugs_osd.log":

Traceback (most recent call last):
  File "/usr/bin/fetch_openqa_bugs", line 47, in <module>
    issue = issue_fetcher.get_issue(bugid)
  File "/usr/lib/python3.6/site-packages/openqa_bugfetcher/issues/__init__.py", line 88, in get_issue
    return self.prefix_table[prefix](self.conf, bugid)
  File "/usr/lib/python3.6/site-packages/openqa_bugfetcher/issues/__init__.py", line 24, in __init__
    self.fetch(conf)
  File "/usr/lib/python3.6/site-packages/openqa_bugfetcher/issues/bugzilla_issue.py", line 31, in fetch
    data = req.json()
  File "/usr/lib/python3.6/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Suggestions

  • Look into https://github.com/os-autoinst/openqa_bugfetcher
  • Improve the error handling to show a clean error instead of misleading "JSON broken"
  • Confirm what HTTP error this is / likely it's not expected to yield JSON
  • Expose the bugzilla ticket details in the error handling
  • Investigate the underlying cause

Related issues 2 (0 open2 closed)

Related to openQA Infrastructure (public) - action #120276: Prepare openqa_bugfetcher for upcoming bugzilla updateResolveddheidler2022-11-10

Actions
Related to openQA Infrastructure (public) - action #133097: cron on OSD (date; fetch_openqa_bugs /etc/openqa/bugfetcher_o3.conf) > /tmp/fetch_openqa_bugs_o3.log failedResolveddheidler2023-07-20

Actions
Actions #1

Updated by jbaier_cz over 1 year ago

  • Related to action #120276: Prepare openqa_bugfetcher for upcoming bugzilla update added
Actions #2

Updated by livdywan over 1 year ago

  • Subject changed from [alert] Cron job from openqa-service failed: fetch_openqa_bugs to [alert] Cron job from openqa-service failed: fetch_openqa_bugs size:M
  • Description updated (diff)
  • Category set to Feature requests
  • Status changed from New to Workable
Actions #3

Updated by dheidler over 1 year ago

  • Status changed from Workable to In Progress
  • Assignee set to dheidler
Actions #4

Updated by openqa_review over 1 year ago

  • Due date set to 2023-07-28

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

Actions #5

Updated by livdywan over 1 year ago

  • Description updated (diff)
Actions #6

Updated by dheidler over 1 year ago

  • Status changed from In Progress to Feedback
Actions #7

Updated by dheidler over 1 year ago

  • Status changed from Feedback to Resolved

openqa_bugfetcher updated on the openqa-service vm.

Actions #8

Updated by okurz over 1 year ago

  • Related to action #133097: cron on OSD (date; fetch_openqa_bugs /etc/openqa/bugfetcher_o3.conf) > /tmp/fetch_openqa_bugs_o3.log failed added
Actions

Also available in: Atom PDF