One-line mirror summary and detailed summary can disagree about freshness

Bug #151114 reported by Matthew Paul Thomas
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

At the time of writing, <https://launchpad.net/ubuntu/+archivemirrors> reports that the Shanghai Linux User Group mirror is "One week behind". But the mirror's individual page, <https://launchpad.net/ubuntu/+mirror/mirrors.shlug.org-archive>, reports every single variant as "Unknown freshness". One of these must be wrong.

This happens because in the +archivemirrors page we use DistributionMirror.getOverallFreshness(), which gets the worst status different than UNKNOWN, unlike the getSummarizedMirroredSourceSerieses() (which doesn't ignore UNKNOWN) used in the mirror's home page. That's why we sometimes see this discrepancy in the status reported in the two pages.

See also bug 70855.

Adding a new Ubuntu series will cause that series to be unknown in all mirrors, so this happens at least every 6 months to all mirrors.

description: updated
Revision history for this message
Guilherme Salgado (salgado) wrote :

That's because IDistributionMirror.getOverallStatus() (which is shown on the mirror listing) ignores any MirrorDistroArchSeries/MirrorDistroSeriesSource whose state is UNKNOWN, while IDistributionMirror.getSummarizedMirroredSourceSerieses() and IDistributionMirror.getSummarizedMirroredArchSerieses() (which is shown on a mirror's home page) will always return the MDAS/MDSS with the worst status, which in this case is UNKNOWN.

Changed in launchpad:
assignee: nobody → salgado
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Guilherme Salgado (salgado) wrote : Unassign myself from untargetted bugs

 assignee nobody
 subscribe

Changed in launchpad:
assignee: salgado → nobody
description: updated
Curtis Hovey (sinzui)
affects: launchpad-foundations → launchpad-registry
Changed in launchpad-registry:
importance: Medium → Low
Curtis Hovey (sinzui)
visibility: private → public
Curtis Hovey (sinzui)
tags: added: mirror
description: updated
summary: - Mirror reported as "One week behind" when everything is "Unknown
- freshness"
+ One-line mirror summary and detailed summary can disagree about
+ freshness
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.