Last modified: 2012-05-29 20:48: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 T39043, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37043 - [OPS] forward-port wikimedia-task-appserver & wikimedia-job-runner to precise
[OPS] forward-port wikimedia-task-appserver & wikimedia-job-runner to precise
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Faidon Liambotis
: ops
Depends on:
Blocks: 37036
  Show dependency treegraph
 
Reported: 2012-05-23 08:37 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-05-29 20:48 UTC (History)
9 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2012-05-23 08:37:25 UTC
The TimedMediaHandler extension seems to require ffmpeg2theora version 0.27 at a minimum whereas Ubuntu Lucid provides 0.24:

$ apt-cache policy ffmpeg2theora
ffmpeg2theora:
  Installed: (none)
  Candidate: 0.24-2build2
  Version table:
     0.24-2build2 0
        500 http://ubuntu.wikimedia.org/ubuntu/ lucid/universe Packages
$

Similarly the extensions requires ffmpeg 0.6.1 whereas Ubuntu Lucid provides 0.5.1:

$ apt-cache policy ffmpeg
ffmpeg:
  Installed: (none)
  Candidate: 4:0.5.1-1ubuntu1.3
  Version table:
     4:0.5.1-1ubuntu1.3 0
        500 http://ubuntu.wikimedia.org/ubuntu/ lucid-updates/main Packages
        500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
     4:0.5.1-1ubuntu1 0
        500 http://ubuntu.wikimedia.org/ubuntu/ lucid/main Packages
$


The ffmpeg2theora has been added to operation/puppet test branch with https://gerrit.wikimedia.org/r/8564 . ffmpeg was already there.


This bug is about backporting newest versions to Lucid.
Comment 1 Jan Gerber 2012-05-23 09:43:15 UTC
we need ffmpeg2theora > 0.27 and ffmpeg > 0.6.1 and libvpx (which requires a newer version of yasm)

I have backported those packages and put in a ppa at https://launchpad.net/~j/+archive/timedmediahandler

what needs to to be done to get those into apt.wikimedia.org
Comment 2 Faidon Liambotis 2012-05-23 11:08:49 UTC
Thanks for the backporting. Any reason to not upgrade the transcoders to precise instead, though?
Comment 3 Jan Gerber 2012-05-23 12:27:03 UTC
It was not clear so far if that is an option for deployment, versions in precise are known to work so that would be the best solution if possible.
Comment 4 Antoine "hashar" Musso (WMF) 2012-05-23 13:19:06 UTC
Since we want the 'beta' cluster to be on par with production, we are blocked with lucid.

The backports from https://launchpad.net/~j/+archive/timedmediahandler would probably need to be rebuild on WMF boxes and made available on apt.wikimedia.org.
Comment 6 Antoine "hashar" Musso (WMF) 2012-05-23 19:19:25 UTC
Assigning to Faidon. I do not have access to apt.wikimedia.org nor do I know the preferred ops process to add a Debian package there (rebuild first?  Just copy it?).
Comment 7 Faidon Liambotis 2012-05-25 13:43:24 UTC
1) To add a newer ffmpeg2theora we also need to add a newer ffmpeg and its libraries (libavcodec, libavutils, libpostproc etc.). 

ffmpeg2theora was not being used before, but as far as I can see, ffmpeg is installed into production imagescaler systems (not sure if it's actually being used though). This means that an ffmpeg/ffmpeg2theora upload to apt.wikimedia.org has a potential of breaking production, especially considering ffmpeg's record of breaking ABI and user options and if being done without prior testing (which I have no way to do).

2) The ppa has ffmpeg2theora 0.28, while precise has 0.27; TMH is reported to work with 0.27, so I think we should go with a straight backport, rather than have custom-built newer version, as to have less external packages/backports when we move to precise.

3) I'm not really sure I understand why we can't go with precise here. Our  systems (puppet, apt etc.) have already been prepared for precise and precise is already being used into production on some systems. Moreover, TMH is a new feature that is not present in production, so I can't see the argument of "cloning production" for that. FFmpeg aside, shouldn't we target precise for new features anyway?

It's quite possible that I'm missing things in all of the above points, please bear with me :-)
Comment 8 Antoine "hashar" Musso (WMF) 2012-05-25 14:23:04 UTC
It is indeed probably going to be easier to  use precise.  I will reinstall the job runner using precise.

For reference:
http://packages.ubuntu.com/search?keywords=ffmpeg2theora
Comment 9 Antoine "hashar" Musso (WMF) 2012-05-25 15:37:59 UTC
I have installed jobrunner05 with precise.  Puppetd now complains about wikimedia.* packages not being available:


Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install wikimedia-task-appserver' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package wikimedia-task-appserver


/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install wikimedia-job-runner' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package wikimedia-job-runner


So the choice is either:
- Make a ffmpeg 0.27 / ffmpeg2theora for Lucid
- Port the wikimedia-* packages to Precise


I am keeping jobrunner05 around for you to experiment :)
Comment 10 Faidon Liambotis 2012-05-25 15:46:45 UTC
As discussed on IRC, I believe the second choice is the way forward and I'll work on it ASAP.
Comment 11 Antoine "hashar" Musso (WMF) 2012-05-25 15:53:25 UTC
Indeed the best approach. No point having someone wasting time back porting a package we will eventually drop "soon".
Comment 12 Faidon Liambotis 2012-05-29 18:18:51 UTC
Antoine prepared a precise instance last week in betalabs. However, since precise is quite new, we didn't have wikimedia-task-appserver & wikimedia-job-runner in the precise section of our apt repository.

This was copied on Friday, but it turned out that this also required the forward-porting of php5-fss & php5-wmerrors. I did some cleanup work on these packages on svn and forward-ported them. The two wikimedia role packages were now installed successfully on deployment-jobrunner05.

There are some other packages missing from precise (most notably, our custom-built php5 version) but this is not blocking this task, so we shouldn't track it here.

Antoine, please confirm and close the bug :-)
Comment 13 Antoine "hashar" Musso (WMF) 2012-05-29 20:48:05 UTC
I have rebooted jobrunner05, it looks like it is working well and actually trying to process jobs.

apt show the following precise version of ffmpeg packages:

 ffmpeg 4:0.8.1-0ubuntu1
 ffmpeg2theora 0.27-1.1ubuntu1

Thanks!

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


Navigation
Links