Bug 23650

Summary: Mirror status may be misleading
Product: Websites Reporter: Morgan Leijström <fri>
Component: mirrors.mageia.orgAssignee: Sysadmin Team <sysadmin-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal CC: bittwister2, filip.komar, mageia, pterjan, sysadmin-bugs
Version: trunk   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: http://mirrors.mageia.org/status
Whiteboard:
Source RPM: CVE:
Status comment:

Description Morgan Leijström 2018-10-08 10:39:28 CEST
Description of problem:

When there have not been updates issued for say two days, the mirrors have not received updates for long.

If then some update is generated, all mirrors are listed as being more than 2 days out of sync.

While i understand how this happens, it do not look good.

Could it be redesigned so it calculates the time from when the last update was pushed?
Comment 1 Filip Komar 2018-10-08 10:57:00 CEST
IIUC it's not how it works.

There is a timestamp on mirrors:
http://ftp.acc.umu.se/mirror/mageia/mageia_timestamp

Although it looks as you describe I guess on big changes like distrorebuilds I guess they just choke for sometime.

CC: (none) => filip.komar

Comment 2 Filip Komar 2018-10-08 11:00:49 CEST
OTOH solving bug 17400 would be really nice.
Comment 3 Morgan Leijström 2018-10-08 11:05:13 CEST
OK... But what i saw yesterday was that the mga6 i586 and x86_64 was orange, but all other green.  I would expect cauldron to lag during mass rebuild, but not the other?

Yea, dont use lot of time for this quirk, if any, better focus on 17400 :)
Comment 4 Marc Krämer 2018-10-08 13:35:19 CEST
maybe the status page should compare to the generated timestamp on master. This would solve this, and is no big deal.

CC: (none) => mageia

Comment 5 Pascal Terjan 2018-10-08 18:10:55 CEST
First step would be to explain at the top what the page shows.

The main problem is that we don't have history of when the mirror changed.

If the most recent update (or upload to updates_testing) was 3 days ago, the minute after the master mirror got updated, it says all mirrors are 3 days behind.

The most obvious alternative, checking how old the master mirror is and if mirrors have it would have the opposite effect: It would be all green when new updates have just been pushed even if the mirror didn't sync for a year.

CC: (none) => pterjan

Comment 6 Filip Komar 2018-10-08 18:24:14 CEST
(In reply to Pascal Terjan from comment #5)
> First step would be to explain at the top what the page shows.
+1

> The main problem is that we don't have history of when the mirror changed.
That would be clear if mageia_timestamp would be refreshed every hour regardless of any other update.
Comment 7 Morgan Leijström 2018-10-08 22:00:19 CEST
(In reply to Filip Komar from comment #6)
> (In reply to Pascal Terjan from comment #5)
> > First step would be to explain at the top what the page shows.
> +1

Yep that too :)
( And maybe a link, Bug 23651 )

> > The main problem is that we don't have history of when the mirror changed.
> That would be clear if mageia_timestamp would be refreshed every hour
> regardless of any other update.

That seems to me to be the most clean solution.
Comment 8 Bit Twister 2020-12-17 16:34:33 CET
(In reply to Morgan Leijström from comment #0)
> Description of problem:
> 
> When there have not been updates issued for say two days, the mirrors have
> not received updates for long.
> 
> If then some update is generated, all mirrors are listed as being more than
> 2 days out of sync.
> 
> While i understand how this happens, it do not look good.
> 
> Could it be redesigned so it calculates the time from when the last update
> was pushed?

Why not an hourly timestamp in each /media/core/release/media_info/ directory.
That way Official could show green and Cauldron might show up as old/stale.
I say that because I thought years ago one site had some failure which had a
good Official copy and a bad Cauldron copy.

If nothing else just have the current stamp updated hourly.

CC: (none) => bittwister2