Page MenuHomePhabricator

Beta: Old code in jobrunner06
Closed, DuplicatePublic

Description

Issue:

The jobrunner06 in Beta is not being restarted and it doesn't pick the new code properly after code releases.

Context:

I was testing something new in /extensions/WikimediaCustomizations/ and I was getting all the time this error:

No such service: WikimediaCustomizations.PageviewTrendingRelativeStore

Which is the new service that is supposed to be there. I checked the code in the jobrunner06 and the code is there.

so, I triggered the code manually with a curl:

curl -i -H 'Host: en.wikipedia.beta.wmcloud.org' -H 'Content-Type: application/json' --data-binary @event.json http://deployment-jobrunner06.deployment-prep.eqiad1.wikimedia.cloud:9006/rpc/RunSingleJob.php

And it fails with the above error, with 500.

But if I do the same curl to the jobrunner05 it works properly and it returns 200.

With some debugging help from Claude, it turns out that the log https://beta-update.wmcloud.org/202609171400.log shows 6 runners, but only 5 are being restarted. (Running '/usr/local/sbin/restart-php-fpm-all' on 5 host(s))

Ahmon Dancy helped on Slack and found that https://horizon.wikimedia.org/project/puppet/ on deployment-prep projects shows:

jobrunner:
    hosts:
    - deployment-jobrunner05.deployment-prep.eqiad1.wikimedia.cloud

So it looks like the jobrunner06 is not being restarted after code changes. This can lead to issues where new code is not taken by the application.

The main question is: Is this an error or designed like this for any reason?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I'll try to create a patch that forces the jobrunner06 to be updated too, and find who owns or can review this.

Fantastic, thanks for working on this. I noticed the same issue in T438656: Beta cluster jobrunner opcache is not updated during automated deployments and it's quite disruptive. I'm assuming the old jobrunner is left over from an upgrade and the puppet was not fully updated?

Is this an error or designed like this for any reason?

Still a good question—other redundant nodes eg. deploy06 have a MOTD that announces the server is not yet official. I guess that one of jobrunner 05 vs 06 should have been marked similarly?