Last modified: 2013-12-19 02:52:19 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 T60681, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58681 - VM images duplicate /etc/apt/preferences.d/wikimedia{,.pref}
VM images duplicate /etc/apt/preferences.d/wikimedia{,.pref}
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
Infrastructure (Other open bugs)
unspecified
All All
: Unprioritized trivial
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-19 02:52 UTC by Tim Landscheidt
Modified: 2013-12-19 02:52 UTC (History)
2 users (show)

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


Attachments

Description Tim Landscheidt 2013-12-19 02:52:19 UTC
It looks as if operations/puppet:modules/labs_vmbuilder/files/postinst.copy copies the WMF pinning to /etc/apt/preferences.d/wikimedia.pref.  However, /etc/apt/preferences.d/wikimedia is created by operations/puppet:modules/apt/manifests/init.pp with (almost) the same content:

| scfc@toolsbeta-mariadb-test5:~$ diff -u /etc/apt/preferences.d/wikimedia{,.pref}
| --- /etc/apt/preferences.d/wikimedia    2013-12-18 17:54:53.194063237 +0000
| +++ /etc/apt/preferences.d/wikimedia.pref       2012-05-15 19:32:09.923918775 +0000
| @@ -1,3 +1,4 @@
| +Explanation: Prefer Wikimedia APT repository packages in all cases
|  Package: *
|  Pin: release o=Wikimedia
|  Pin-Priority: 1001
| scfc@toolsbeta-mariadb-test5:~$

So (in theory) changes to /etc/apt/preferences.d/wikimedia triggered by operations/puppet:modules/apt/manifests/init.pp might be ineffective as /etc/apt/preferences.d/wikimedia.pref will remain lingering.  These should be combined as /etc/apt/preferences.d/wikimedia.

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


Navigation
Links