Merge autopkgtest-cloud:queues-not-created into autopkgtest-cloud:master
Status: | Merged |
---|---|
Merged at revision: | 3bf958da010a1b14a8b9451861afa3f7688b41e4 |
Proposed branch: | autopkgtest-cloud:queues-not-created |
Merge into: | autopkgtest-cloud:master |
Diff against target: |
21 lines (+9/-1) 1 file modified
charms/focal/autopkgtest-web/webcontrol/cache-amqp (+9/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paride Legovini | Approve | ||
Ubuntu Release Team | Pending | ||
Review via email: mp+425677@code.launchpad.net |
Description of the change
A fresh deploy of the autopkgtest mojo spec will encounter a Traceback when `webcontrol/
ubuntu@
2022-06-24 21:09:49: Connected to AMQP host 10.15.190.67
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Semaphore queue 'semaphore-
2022-06-24 21:09:49: Trying to lock semaphore queue semaphore-
2022-06-24 21:09:49: ...locked.
Traceback (most recent call last):
File "webcontrol/
queue_contents = aq.get_
File "webcontrol/
requests = self.get_
File "webcontrol/
r = self.amqp_
File "/usr/lib/
return self.wait(
File "/usr/lib/
return self.dispatch_
File "/usr/lib/
return amqp_method(self, args)
File "/usr/lib/
raise AMQPChannelExce
amqplib.
The queues will be created when tests are submitted and cache-amqp should handle them not being there yet.
This LGTM and I see the same logic is used elsewhere.
I wonder if
# 404s invalidate the channel for some reason con.channel( )
self.amqp_channel = self.amqp_
is really needed here, but I'm +1 with keeping it.