creating the rabbit mq config for workers is racy

Bug #1289273 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Fix Released
Critical
Vincent Ladeuil
Ubuntu CI Services
Fix Released
Critical
Vincent Ladeuil

Bug Description

This has been observed by Andy, Ursula and I under various circumstances.

Roughly, while the /srv/<worker>/amqp_config.py is created, another process import the module, creating a .pyc from an incomplete file (Ursula checked that the .pyc contained no defined symbols).

The fix is to create the file under a temporary name and rename to the final name once the file is complete.

Tags: airline

Related branches

Vincent Ladeuil (vila)
Changed in ubuntu-ci-services-itself:
status: Confirmed → In Progress
Ursula Junque (ursinha)
summary: - creating the rabitt mq config for workers is racy
+ creating the rabbit mq config for workers is racy
Changed in ubuntu-ci-services-itself:
status: In Progress → Fix Committed
Vincent Ladeuil (vila)
Changed in ubuntu-ci-services-itself:
status: Fix Committed → Fix Released
Ursula Junque (ursinha)
Changed in uci-engine:
assignee: nobody → Vincent Ladeuil (vila)
importance: Undecided → Critical
milestone: none → phase-0
status: New → Fix Released
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.