Project

General

Profile

Actions

action #164418

open

Distinguish "timestamp mismatch" from cases where webUI is slow or where clocks are really differing

Added by okurz 3 days ago. Updated 3 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2024-06-10
Due date:
% Done:

0%

Estimated time:

Description

Motivation

In #162038 we realized that the message "timestamp mismatch - check whether clocks on the local host and the web UI host are in sync" can actually happen not only when clocks on hosts differ (or replay attacks) but also when the webUI is completely stalled for multiple minutes, e.g. due to fstrim, see #163592 . We should distinguish those two cases and at least try to distinguish in the error messages.

Suggestions

  • Inn https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/1228 you can see how to add headers to an incoming request before it gets passed to openQA
    • Introduce a new header containing a timestamp - do NOT use the X-Build-Tx-Time(!!)
    • In case of errors compare the generated hmac timestamp - the diff shows how long a request had to be hold back before our application could actually act on it
    • Extend or replace the reason (variable most likely?) with the gained information

Related issues 2 (1 open1 closed)

Related to openQA Project - action #163781: Jobs randomly fail with unspecified "api failure", there should be more details in the error messageNew2024-07-11

Actions
Copied from openQA Infrastructure - action #162038: No HTTP Response on OSD on 10-06-2024 - auto_review:".*timestamp mismatch - check whether clocks on the local host and the web UI host are in sync":retry size:SResolvednicksinger2024-06-10

Actions
Actions #1

Updated by okurz 3 days ago

  • Copied from action #162038: No HTTP Response on OSD on 10-06-2024 - auto_review:".*timestamp mismatch - check whether clocks on the local host and the web UI host are in sync":retry size:S added
Actions #2

Updated by nicksinger 3 days ago

  • Description updated (diff)
Actions #3

Updated by nicksinger 2 days ago

  • Related to action #163781: Jobs randomly fail with unspecified "api failure", there should be more details in the error message added
Actions

Also available in: Atom PDF