Bug 20148

Summary: It is impossible to select 20GBits as changed bandwidth for a Mageia mirror
Product: Websites Reporter: Marja Van Waes <marja11>
Component: mirrors.mageia.orgAssignee: Sysadmin Team <sysadmin-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: sysadmin-bugs
Version: trunk   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Marja Van Waes 2017-01-20 16:48:16 CET
The Princeton mirror now has 20Gbits bandwidth

From #mageia-sysadm:
2017:01:19:23:39 < brose> oh one other thing I've been going around updating - I set up LACP for mirror.math and campus networking group upgraded our service so I am officially 20 gigabits of bandwidth available now :-) 

But the bandwidth can't be increased to 20Gbits in http://mirrors.mageia.org/

After pressing the "update information" button in  http://mirrors.mageia.org/mirrors/mirror.math.princeton.edu  the drop down list after "Approximated bandwidth" has 10Gbits as highest value.
Comment 1 Rémi Verschelde 2017-01-20 17:05:01 CET
From a quick grep I'd say that it needs to be edited directly in the database, as this is in dump.sql here http://gitweb.mageia.org/software/infrastructure/mgamirrors/tree/

~~~~

--
-- Data for Name: bandwidth; Type: TABLE DATA; Schema: public; Owner: nanardon
--

COPY bandwidth (name, value) FROM stdin;
10Mbits 10485760
100Mbits        104857600
1Gbits  1073741824
10Gbits 10737418240
2Gbits  2147483648
\.

~~~~

Also I suppose this part should be edited to match the DB: http://gitweb.mageia.org/software/infrastructure/mgamirrors/tree/root/html/pages/report/index.tt#n38

The template for the linked page seems to be: http://gitweb.mageia.org/software/infrastructure/mgamirrors/tree/root/html/includes/host_information.tt#n82