Traceback if a test is not queued or running

Bug #2028796 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Auto Package Testing
Triaged
Critical
Tim Andersson

Bug Description

ahasenack was getting a server error trying to queue an autopkgtest today after the autopkgtest-web charm was updated to revision 77. I found the following in the apache2 logs:

[Wed Jul 26 17:44:12.430857 2023] [cgi:error] [pid 2582036] [client 10.15.102.10:43748] AH01215: File "/var/lib/juju/agents/unit-autopkgtest-web-2/charm/webcontrol/request/submit.py", line 595, in is_test_in_queue: /var/lib/juju/agents/unit-autopkgtest-web-2/charm/webcontrol/request.cgi, referer: https://autopkgtest.ubuntu.com/packages/libs/libsoup3/mantic/amd64
[Wed Jul 26 17:44:12.430878 2023] [cgi:error] [pid 2582036] [client 10.15.102.10:43748] AH01215: triggers = details["triggers"]: /var/lib/juju/agents/unit-autopkgtest-web-2/charm/webcontrol/request.cgi, referer: https://autopkgtest.ubuntu.com/packages/libs/libsoup3/mantic/amd64
[Wed Jul 26 17:44:12.430892 2023] [cgi:error] [pid 2582036] [client 10.15.102.10:43748] AH01215: KeyError: 'triggers': /var/lib/juju/agents/unit-autopkgtest-web-2/charm/webcontrol/request.cgi, referer: https://autopkgtest.ubuntu.com/packages/libs/libsoup3/mantic/amd64

If there is not a test in the queue then getting the triggers for that test will not work.

Tags: adt-310

Related branches

Changed in auto-package-testing:
importance: Undecided → Critical
assignee: nobody → Tim Andersson (andersson123)
status: New → Triaged
tags: added: adt-310
Revision history for this message
Tim Andersson (andersson123) wrote :

Brian's hotfix has made it into master, I have a more appropriate change that I'm linking to this bug now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.