Page MenuHomePhabricator

Deploy new purged version with UDS feature
Closed, ResolvedPublic

Description

Deploy new purged version with the UDS feature (https://gerrit.wikimedia.org/r/c/operations/software/purged/+/957362).

Roughly the list of activities should be:

  • Build the package for bullseye and import in APT repository
  • Upgrade on single cp host for test (cp4040)
    • Set profile::cache::purge::frontend_addr: "/run/varnish-privileged.socket" on test host (cp4040) and apply puppet
    • restart purged service on test host (cp4040) monitor that PURGE requests will be handled correctly by the new varnish configuration (T347192)
  • Upgrade purged package on all bullseye cp hosts: sudo cumin 'A:cp and A:bullseye' 'apt-get install -y purged=0.21+deb11u1'
  • Rebuild the package (with different versioning) for bookworm
  • Upgrade purged package on all bookworm cp hosts: sudo cumin 'A:cp and A:bookworm' 'apt-get install -y purged=0.21+deb12u1' (only cp4052)
  • Modify the purged systemd unit to switch to UDS socket (puppet)
  • Apply profile::cache::purge::frontend_addr: "/run/varnish-privileged.socket" to all cache hosts. purged service is restarted as puppet applies the systemd unit changes.
    • ulsfo
    • codfw
    • eqsin
    • eqiad
    • drmrs
    • esams
  • Update eventual documentation about this

Event Timeline

Vgutierrez triaged this task as Medium priority.Oct 2 2023, 9:56 AM
Vgutierrez moved this task from Backlog to Actively Servicing on the Traffic board.

Mentioned in SAL (#wikimedia-operations) [2023-10-02T10:34:17Z] <fabfur> depool cp4040 to test new purged version (T347837)

Mentioned in SAL (#wikimedia-operations) [2023-10-02T10:49:18Z] <fabfur> swap purged on cp4040 to use UDS instead of TCP for Varnish (T347837)

Tests on cp4040.ulsfo.wmnet shows that the new purged version connecting to the proper Varnish socket correctly processes the PURGE requests. An example snippet from varnishlog:

*   << Request  >> 588265619
-   ReqHeader      User-Agent: purged
-   ReqHeader      X-Client-IP: 0.0.0.0
-   RespStatus     204
-   RespReason     No Content
-   RespReason     Purged

*   << Request  >> 589387751
-   ReqHeader      User-Agent: purged
-   ReqHeader      X-Client-IP: 0.0.0.0
-   RespStatus     204
-   RespReason     No Content
-   RespReason     Purged

The new X-Client-IP (was 127.0.0.1) shows that purged is using UDS and ACLs in Varnish VCL are allowing that.

Change 962611 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] purged: parametrize purged frontend and backend address

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

Change 962611 merged by Fabfur:

[operations/puppet@production] purged: parametrize purged frontend and backend address

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

Mentioned in SAL (#wikimedia-operations) [2023-10-02T14:23:49Z] <fabfur> importing into bullseye-wikimedia package purged_0.21+deb11u1_amd64 (T347837)

Fabfur updated the task description. (Show Details)

Mentioned in SAL (#wikimedia-operations) [2023-10-02T14:51:35Z] <fabfur> upgrade purged package to version 0.21+deb11u1 on all cp hosts (T347837)

Fabfur updated the task description. (Show Details)

Change 962635 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/software/purged@master] Repackage for bookworm

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

Change 962635 merged by Fabfur:

[operations/software/purged@master] Release 0.21+deb12u1 for bookworm

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

Mentioned in SAL (#wikimedia-operations) [2023-10-02T16:06:57Z] <fabfur> importing into bookworm-wikimedia package purged_0.21+deb12u1_amd64 (T347837)

Mentioned in SAL (#wikimedia-operations) [2023-10-02T17:00:14Z] <fabfur> upgrade purged package to version 0.21+deb12u1 cp4052 (bookworm) (T347837)

Change 963002 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] purged: switch to unix socket for varnish requests

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

Change 963002 abandoned by Fabfur:

[operations/puppet@production] purged: switch to unix socket for varnish requests

Reason:

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

Change 963004 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] purged: use unix socket for varnish in ulsfo

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

Change 963004 merged by Fabfur:

[operations/puppet@production] purged: use unix socket for varnish in ulsfo

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

Mentioned in SAL (#wikimedia-operations) [2023-10-03T11:54:34Z] <fabfur> merged https://gerrit.wikimedia.org/r/c/operations/puppet/+/963004 (T347837). purged daemon will be restarted by puppet in ulsfo in the next 30m

Change 963020 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] purged: use unix socket for varnish in codfw

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

Change 963020 merged by Fabfur:

[operations/puppet@production] purged: use unix socket for varnish in codfw

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

Mentioned in SAL (#wikimedia-operations) [2023-10-03T14:01:51Z] <fabfur> merged https://gerrit.wikimedia.org/r/c/operations/puppet/+/963020 (T347837). purged daemon will be restarted by puppet in codfw in the next 30m

Change 963081 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] purged: use unix socket for varnish in eqsin

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

Change 963081 merged by Fabfur:

[operations/puppet@production] purged: use unix socket for varnish in eqsin

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

Mentioned in SAL (#wikimedia-operations) [2023-10-03T20:16:57Z] <fabfur> merged https://gerrit.wikimedia.org/r/c/operations/puppet/+/963081 (T347837). purged daemon will be restarted by puppet in eqsin in the next 30m

Change 963302 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] purged: use unix socket for varnish in eqiad

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

Change 963302 abandoned by Fabfur:

[operations/puppet@production] purged: use unix socket for varnish in eqiad

Reason:

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

Change 963147 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] purged: use unix socket for varnish in eqiad

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

Change 963147 merged by Fabfur:

[operations/puppet@production] purged: use unix socket for varnish in eqiad

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

Mentioned in SAL (#wikimedia-operations) [2023-10-04T13:27:36Z] <fabfur> merged https://gerrit.wikimedia.org/r/c/operations/puppet/+/963147 (T347837). purged daemon will be restarted by puppet in eqiad in the next 30m

Change 963321 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] purged: use unix socket for varnish in drmrs

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

Change 963321 merged by Fabfur:

[operations/puppet@production] purged: use unix socket for varnish in drmrs

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

Mentioned in SAL (#wikimedia-operations) [2023-10-04T14:24:01Z] <fabfur> merged https://gerrit.wikimedia.org/r/c/operations/puppet/+/963321 (T347837). purged daemon will be restarted by puppet in drmrs in the next 30m

Fabfur renamed this task from Repackage purged for bullseye and bookworm to Deploy new purged version with UDS feature.Oct 4 2023, 2:25 PM
Fabfur updated the task description. (Show Details)

Change 963326 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] purged: use unix socket for varnish in all DCs.

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

Mentioned in SAL (#wikimedia-operations) [2023-10-04T16:59:54Z] <fabfur> merged https://gerrit.wikimedia.org/r/c/operations/puppet/+/963326 (T347837). purged daemon will be restarted by puppet in esams in the next 30m

Change 963326 merged by Fabfur:

[operations/puppet@production] purged: use unix socket for varnish in all DCs.

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

Fabfur updated the task description. (Show Details)
Fabfur updated the task description. (Show Details)

Mentioned in SAL (#wikimedia-operations) [2023-10-12T09:40:20Z] <fabfur> repooling cp4040 (depooled for T347837 and forgot)

Change #1073482 had a related patch set uploaded (by Mhorsey; author: Mhorsey):

[mediawiki/extensions/WikimediaCampaignEvents@master] Display error message to user when API issue occurs

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