Skip to content

Commit

Permalink
[landscape] Add check for LP#2081056. (#979)
Browse files Browse the repository at this point in the history
Closes: #977.

Signed-off-by: Ponnuvel Palaniyappan <[email protected]>
  • Loading branch information
pponnuvel authored Oct 2, 2024
1 parent fc35786 commit d9a22a7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hotsos/defs/scenarios/landscape/bugs/lp2081056.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
checks:
has_2081056:
input:
path: 'var/log/landscape-server/job-handler.log'
expr: ".+The lock file './db/lockfile' already exists. There might be another instance with "
conclusions:
lp2081056:
decision: has_2081056
raises:
type: LaunchpadBug
bug-id: 2081056
message: >-
Known landscape-server issue where sync ops and update package counts
suffer a race condition. Please upgrade landscape-server to 24.04.6-0landscape1
or newer.
15 changes: 15 additions & 0 deletions hotsos/defs/tests/scenarios/landscape/bugs/lp2081056.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
data-root:
files:
var/log/landscape-server/job-handler.log: |
Sep 28 22:39:52 job-handler-1 INFO Starting job None/sync-mirror-pocket/None {'account_id': 1, 'person_id': 1, 'pocket_id': 8, 'activity_id': 535}
Sep 28 22:39:52 job-handler-1 CRIT Unhandled Error\nTraceback (most recent call last):\nFailure: canonical.reprepro.reprepro.RepreproError: reprepro ended with exit code 239 (out='b\"The lock file './db/lockfile' already exists. There might be another instance with the\r\nsame database dir running. To avoid locking overhead, only one process\r\ncan access the database at the same time. Do not delete the lock file unless\r\nyou are sure no other version is still running!\r\nThere have been errors!\r\n\"', err='b''')\n
Sep 28 22:39:52 job-handler-1 INFO Finished job None/sync-mirror-pocket/None {'account_id': 1, 'person_id': 1, 'pocket_id': 8, 'activity_id': 535}
Sep 28 23:29:42 job-handler-1 INFO At revision: 5cbdd97b
Sep 28 23:29:42 job-handler-1 INFO Loading /opt/canonical/landscape/job-handler...
copy-from-original:
- sos_commands/date/date
raised-bugs:
https://bugs.launchpad.net/bugs/2081056: >-
Known landscape-server issue where sync ops and update package counts
suffer a race condition. Please upgrade landscape-server to 24.04.6-0landscape1
or newer.

0 comments on commit d9a22a7

Please sign in to comment.