Support phased updates via Phased-Update-Percentage control field

Bug #1100748 reported by Colin Watson on 2013-01-17
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
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

Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
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
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
Changed in launchpad:
status: In Progress → Fix Committed
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
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-bad
Colin Watson (cjwatson) on 2013-02-27
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant) on 2013-02-28
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers