Collisions in bzr-version-info.py when running two app servers from the same tree

Bug #272234 reported by Tom Haddon
6
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Christian Reis

Bug Description

If you are running two instances of the app server out of the same tree, the fact that they both use bzr-version-info,py and make start/make stop deletes and recreates this can mean that there are collisions between them. If we appended ${LPCONFIG} to the filename this would be avoided.

Attached is a patch that would do this for the Makefile, but I'm not sure what other portions of code look for this filename and would need to be changed accordingly.

Revision history for this message
Tom Haddon (mthaddon) wrote :
Revision history for this message
Tom Haddon (mthaddon) wrote :

Promoting to "high" importance because this is blocking the LOSAs from moving to a new deployment model where we push code to a new location, build it, then stop the service, rename the new code to replace the old code, and then start the service. In the latest rollout to production this triggered the problem on all 4 application servers, presumably because with this method, the gap between services being started is so much smaller.

Changed in launchpad-foundations:
importance: Undecided → High
Revision history for this message
Christian Reis (kiko) wrote :

If you think not updating the file would work, then can you give https://pastebin.canonical.com/10155/ a spin to see if it fixes the problem on staging?

Revision history for this message
Tom Haddon (mthaddon) wrote :

Fixed in RF 7180

Changed in launchpad-foundations:
status: New → Fix Committed
Christian Reis (kiko)
Changed in launchpad-foundations:
assignee: nobody → kiko
milestone: none → 2.1.10
Revision history for this message
Tom Haddon (mthaddon) wrote :

Released with 2.1.10

Changed in launchpad-foundations:
status: Fix Committed → 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.