As a result of T427465 (Move thumbnail caching from upload cluster to text) there will be a need to move some number of cp-nodes from the upload cluster, to the text cluster.
The example below moved cp3074.esams.wmnet from upload to text.
- Depool node
Use confctl to depool and verify.
$ ssh puppetserver1001.eqiad.wmnet $ sudo -i confctl select 'name=cp3074.esams.wmnet' set/pooled=no $ sudo confctl select name=cp3074.esams.wmnet get
- Reconfigure
Move the node in puppet (manifests/site.pp), see example: https://gerrit.wikimedia.org/r/c/operations/puppet/+/1331590
$ ssh puppetserver1001.eqiad.wmnet $ tmux $ sudo -i puppet-merge
Update conftool:
$ ssh cumin1003.eqiad.wmnet $ sudo -i cumin P:puppetserver "run-puppet-agent"
- Reimage
cp hosts have been switched to EFI installs - any hosts that do not boot with EFI need to be reprovisioned. Check on puppetboard.
$ ssh cumin1003.eqiad.wmnet $ tmux $ sudo -i cookbook sre.hosts.provision --no-switch --no-users --no-dhcp cpXXXX # If not UEFI booted $ sudo -i cookbook sre.hosts.reimage --os trixie -t T436363 cpXXXX
- Repool
Use confctl to verify that the node is now a text node and repool, if required.
$ ssh puppetserver1001.eqiad.wmnet $ sudo -i confctl select name=cp3074.esams.wmnet get $ sudo -i confctl select 'name=cp3074.esams.wmnet' set/pooled=yes
If the select command returns weight=0, we need to set that back to 1, for Liberica to pick up the node. This can be done using the following confctl command:
sudo -i confctl select 'name=cp7010.magru.wmnet' set/weight=1
For drmrs,
sudo -i confctl select 'name=cp6001.drmrs.wmnet,service=cdn' set/weight=1 sudo -i confctl select 'name=cp6001.drmrs.wmnet,service=ats-be' set/weight=1
You may get an alert about a diff in Liberica, see: https://wikitech.wikimedia.org/wiki/Liberica#LibericaDiffFPCheck and https://wikitech.wikimedia.org/wiki/Liberica#LibericaStaleConfig for resolving the issue.
To move:
magru
- cp7009.magru.wmnet
- cp7010.magru.wmnet
ulsfo
- cp4045.ulsfo.wmnet
- cp4046.ulsfo.wmnet
eqiad
- cp1101.eqiad.wmnet
- cp1103.eqiad.wmnet
codfw
- cp2044.codfw.wmnet
- cp2046.codfw.wmnet
esams
- cp3074.esams.wmnet
- cp3075.esams.wmnet
drmrs
- cp6001.drmrs.wmnet
- cp6002.drmrs.wmnet
eqsin
- cp5025.eqsin.wmnet
- cp5026.eqsin.wmnet