Last modified: 2014-10-08 20:15:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68121, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66121 - set apt to Wikimedia mirror instead of http://nova.clouds.archive.ubuntu.com/ubuntu/
set apt to Wikimedia mirror instead of http://nova.clouds.archive.ubuntu.com/...
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
Infrastructure (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-04 14:15 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-10-08 20:15 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2014-06-04 14:15:01 UTC
I noticed on integration-dev.eqiad.wmflabs (and probably everywhere) that apt is configured to point to http://nova.clouds.archive.ubuntu.com/ubuntu/

$ egrep -v '^(#|$)' /etc/apt/sources.list
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ precise main
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ precise main
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates main
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates main
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ precise universe
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates universe
deb http://security.ubuntu.com/ubuntu precise-security main
deb-src http://security.ubuntu.com/ubuntu precise-security main
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe


With so many instances around, I guess we will save quite a bunch of bandwidth and latency by pointing to our own mirror:

https://launchpad.net/ubuntu/+mirror/ubuntu.wikimedia.org-archive
http://ubuntu.wikimedia.org/ubuntu/
Comment 1 scott.leea 2014-07-08 15:54:00 UTC
Unless I'm doing this wrong, it seems to work. I just had to replace the URLs and then apt-get update -- I tested an nginx install and it worked.

$ egrep -v '^(#|$)' /etc/apt/sources.list
deb http://ubuntu.wikimedia.org/ubuntu/ trusty main
deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty main
deb http://ubuntu.wikimedia.org/ubuntu/ trusty-updates main
deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty-updates main
deb http://ubuntu.wikimedia.org/ubuntu/ trusty universe
deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty universe
deb http://ubuntu.wikimedia.org/ubuntu/ trusty-updates universe
deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty-updates universe
deb http://ubuntu.wikimedia.org/ubuntu/ trusty-security main
deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty-security main
deb http://ubuntu.wikimedia.org/ubuntu/ trusty-security universe
deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty-security universe
Comment 2 Antoine "hashar" Musso (WMF) 2014-07-08 16:24:59 UTC
Yup that would do. We need a puppet patch to adjust the sources.list on all labs instances.
Comment 3 Andrew Bogott 2014-07-08 16:50:45 UTC
I don't think sources.list comes from puppet, though.  At least, I just dropped a test line into mine and it persisted over a puppet run.

There's puppet, and sources.list.d, and the original image all involved here.  I don't yet know where the changes need to land.
Comment 4 Antoine "hashar" Musso (WMF) 2014-07-08 16:52:43 UTC
I guess sources.list is the default coming with whatever ubuntu package.  We could get puppet to override it entirely maybe?
Comment 5 Tim Landscheidt 2014-07-08 16:56:40 UTC
I think we need both (amend the image + puppet file) so that new instances are built faster and old instances get updated as well.  Creating Tools instances takes forever, so if we could at least cut down on the light years to the apt source ... :-)
Comment 6 Tim Landscheidt 2014-07-08 20:38:39 UTC
On second thought and a look at /etc/apt -- shouldn't apt-get already prefer the WMF repo due to /etc/apt/preferences.d/wikimedia{,.pref}?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links