Page MenuHomePhabricator

Allow to avoid installing HHVM from the mediawiki puppet module and profile
Closed, ResolvedPublic

Description

We will soon remove HHVM everywhere, but in the meantime we have parsoid-php that only runs on php 7.2 and thus servers supporting it will need to be installed without HHVM sooner rather than later.

To this end, make HHVM's installation optional - maybe even absent the files and packages if it's not choosen?

Event Timeline

Joe triaged this task as High priority.Jul 25 2019, 1:45 PM

Change 525584 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] mediawiki: allow installing php7 only

https://gerrit.wikimedia.org/r/525584

Change 526132 had a related patch set uploaded (by Effie Mouzeli; owner: Effie Mouzeli):
[operations/puppet@production] WIP: jobrunners: Make jobrunners PHP7 only by default

https://gerrit.wikimedia.org/r/526132

Before making changes to profile::mediawiki::common and since we are in the process of removing hhvm from jobrunners/videoscalers (T219148), I think we should also consider the following:

  • How we are going to additionally cleanup after hhvm on current servers? For instance an hhvm_remove: true feature flag would stop and remove hhvm along with stop monitoring it
  • In my opinion for new servers (eg servers running parsoid-php), it makes sense to use PHP7 by default instead of via a feature flag, in which case the respected role will mean that nothing related to HHVM will be installed

Change 525584 merged by Giuseppe Lavagetto:
[operations/puppet@production] mediawiki: allow installing php7 only

https://gerrit.wikimedia.org/r/525584

Mentioned in SAL (#wikimedia-operations) [2019-08-01T07:27:43Z] <_joe_> removing mw1348 from rotation - reimaging for T228976

Script wmf-auto-reimage was launched by oblivian on cumin1001.eqiad.wmnet for hosts:

mw1348.eqiad.wmnet

The log can be found in /var/log/wmf-auto-reimage/201908010734_oblivian_256659_mw1348_eqiad_wmnet.log.

Completed auto-reimage of hosts:

['mw1348.eqiad.wmnet']

Of which those FAILED:

['mw1348.eqiad.wmnet']

Script wmf-auto-reimage was launched by oblivian on cumin1001.eqiad.wmnet for hosts:

mw1348.eqiad.wmnet

The log can be found in /var/log/wmf-auto-reimage/201908010736_oblivian_258027_mw1348_eqiad_wmnet.log.

Completed auto-reimage of hosts:

['mw1348.eqiad.wmnet']

and were ALL successful.

I tested reimaging one application server and it went flawlessly and it's now running without any trace of HHVM. I'll resolve this ticket.

Change 526132 abandoned by Effie Mouzeli:
WIP: jobrunners: Make jobrunners PHP7 only by default

Reason:
needs rewrite

https://gerrit.wikimedia.org/r/526132