Page MenuHomePhabricator

[OPS] adapt varnish mobile puppet class on beta
Closed, ResolvedPublic

Description

This is more of a self reminder.

Adapt varnish mobile puppet class on beta. This is tracked in Mobile as a scrum sprint:

https://mingle.corp.wikimedia.org/projects/mobile/cards/378


Version: unspecified
Severity: enhancement

Details

Reference
bz44041

Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:19 AM
bzimport set Reference to bz44041.

Patchset 13 let puppet run properly on the instance and also have the backend/frontend varnish services to run.
Things that are still lacking:
varnishncsa is not running so we have no log at all. We need a varnishncsa that write logs to the local filesystem under /var/log/varnish/
varnish gives out a 503 error:
$ curl -x 208.80.153.143:80 'http://en.wikipedia.beta.wmflabs.org/'
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
  <title>503 Service Unavailable</title>
</head>
<body>
  <h1>Error 503 Service Unavailable</h1>
  <p>Service Unavailable</p>
  <h3>Guru Meditation:</h3>
  <p>XID: 1535339352</p>
  <hr>
  <p>Varnish cache server</p>
</body>

</html>

Mailed Andrew / Mark to get more clue :-]

I figured it out (I think). https://gerrit.wikimedia.org/r/44709 at patchset 19 manages to get a "Unconfigured domain" error which is the default docroot ;-)

Tested URL:
http://en.wikipedia.m.beta.wmflabs.org/

Everything working fine for now. The URL scheme has been slightly altered to use http://en.m.wikipedia.beta.wmflabs.org/ just like it is in production.

The varnish changes still have to be validated by ops but have been deployed on the labs instance.

I am lowering the priority since all that is left to do is having the deployed changes to be merged.

I have finally rebased all the pending varnish patches today. I have created a new instance to test out the class, will get them reviewed / merged as soon as I have verified they are properly working.

https://gerrit.wikimedia.org/r/44709 (Gerrit Change I198e5ae4cdea89af82901ddc1461ef4701e9e1cc) | change APPROVED and MERGED [by Mark Bergsma]

Finally managed to rebase the changes and talk with mark. He merged the changes :-] There is nothing left to do now I guess.