action #178126
openOpenQA logreport for ariel.suse-dmz.opensuse.org: Could not find job <job_id> in database
0%
Description
Motivation¶
Got this error on o3:
[2025-02-28T07:31:44.432680Z] [error] [jFIITmhFKHPf] Could not find job '4889617' in database at /usr/share/openqa/script/../lib/OpenQA/WebAPI/Plugin/AMQP.pm line 91.
Background¶
As part of #169939, there were several openQA jobs cloned for worker stability and sanity testing using
openqa-clone-job --within-instance https://openqa.opensuse.org/tests/<job_id> _GROUP=0 BUILD+=-gpathak WORKER_CLASS=qa-power8-3,qemu_ppc64,qemu_ppc64le,tap,heavyload
Maybe while issuing these commands, the _GROUP=0
was missed in one of them.
Later as part of cleaning up the jobs with -gpathak
in them following command was used to fetch all the job ids having -gpathak
in the name of the jobs:
job_ids=$(openqa-cli api --o3 /jobs | jq -r '.jobs[] |select(.name|test("gpathak"))' | jq .id)
After that for j in $job_ids; do openqa-cli api -X DELETE /jobs/$j --o3; done
to delete all jobs.