Support phased updates via Phased-Update-Percentage control field

Bug #1100748 reported by Colin Watson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Colin Watson

Bug Description

https://wiki.ubuntu.com/PhasedUpdates requires that it should be possible to cause some packages in -updates to gain a Phased-Update-Percentage header under the control of an API script, such that only that randomly-distributed percentage of clients will choose to install it. This will allow us to roll out updates gradually based on feedback from errors.ubuntu.com, rather than all at once.

I think this can be done very cheaply (in code maintenance terms) and without undue expense (in operational terms) by considering the phased-update-percentage as another kind of binary override. This will cause a new publication any time we change the phase, but that was likely to be necessary anyway. As long as we don't change the phase too often - and I don't think we'll need to - this shouldn't be a problem.

Related branches

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Revision history for this message
Colin Watson (cjwatson) wrote :

2013-01-18 17:19:57,438 INFO 2209-36-1 applied just now in 0.0 seconds

tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

So close, but the override fields are coming out in the wrong order:

/srv/launchpad.net/ubuntu-archive/ubuntu/indices/override.precise-proposed.extra.amd64:base-files Origin Ubuntu
/srv/launchpad.net/ubuntu-archive/ubuntu/indices/override.precise-proposed.extra.amd64:base-files Bugs https://bugs.launchpad.net/ubuntu/+filebug
/srv/launchpad.net/ubuntu-archive/ubuntu/indices/override.precise-proposed.extra.amd64:base-files/admin Phased-Update-Percentage 50
/srv/launchpad.net/ubuntu-archive/ubuntu/indices/override.precise-proposed.extra.amd64:base-files/i386 Supported 5y
/srv/launchpad.net/ubuntu-archive/ubuntu/indices/override.precise-proposed.extra.amd64:base-files/armel Supported 18m
/srv/launchpad.net/ubuntu-archive/ubuntu/indices/override.precise-proposed.extra.amd64:base-files/amd64 Supported 5y

This may not actually be disastrous, but I'd much rather fix it before deploying. I'm pushing a fix up now.

tags: added: qa-bad
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-bad
Colin Watson (cjwatson)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
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.