Page MenuHomePhabricator

move micro tendril.wikimedia.org and dbtree.wikimedia.org to kubernetes
Closed, ResolvedPublic

Description

Tracking migration of all microsites in T300171 gets a bit confusing. So opening a subtask for tendril/dbtree microsite.

Migration checklist (see complete steps here):

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jelto triaged this task as Medium priority.Jun 23 2023, 9:20 AM

@Dzahn the image build for tendril/dbtree fails currently because there is no ./.pipeline/blubber.yaml file, see https://gitlab.wikimedia.org/repos/sre/miscweb/statictendril/-/jobs/110963.

So similar to bienvenida we need also a blubber.yaml file, see https://gitlab.wikimedia.org/repos/sre/miscweb/bienvenida/-/blob/master/.pipeline/blubber.yaml.

Change 930886 had a related patch set uploaded (by Jelto; author: Dzahn):

[operations/deployment-charts@master] miscweb: add statictendril release to miscweb staging

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

After this issue was fixed we now have a new issue:

This job could not start because it could not retrieve the needed artifacts: kokkuri:setup-variables

This is despite the kokkuri config being copied from existing working project:

https://gitlab.wikimedia.org/repos/sre/miscweb/statictendril/-/blob/main/.gitlab-ci.yml

vs

https://gitlab.wikimedia.org/repos/sre/miscweb/annualreport/-/blob/master/.gitlab-ci.yml

Also I don't even find the string "kokkuri" on wikitech.. are there docs?

One comment on publishing images automatically on every merge (https://gitlab.wikimedia.org/repos/sre/miscweb/statictendril/-/commit/c27dc9d46b05550089fbe5b65d1f2748993cd788).

This is different from all other miscweb services. All other miscweb images need a dedicated tag pushed for every new image published to the registry.
The current configuration for tendril tags the image with the branch name main. This is not useful for deploying a new version to Kubernetes because we can not be sure if main is the new or the old version.

So we should either add

variables:
  PUBLISH_IMAGE_TAG: $KOKKURI_PIPELINE_TIMESTAMP-$BUILD_VARIANT

as a additional variable in .gitlab.ci.yml (see T338224) or go back to build on tags only (if: $CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED).
Furthermore we should publish the images similar on all services, so either build on tags or on merges but then use the correct timestamp tag.

Change 930886 merged by jenkins-bot:

[operations/deployment-charts@master] miscweb: add statictendril release to miscweb staging

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

Dzahn changed the task status from Open to In Progress.Jul 10 2023, 5:28 PM
Dzahn raised the priority of this task from Medium to High.

deployed on k8s-staging

 curl -I --resolve dbtree.wikimedia.org:30443:$(dig +short k8s-ingress-staging.discovery.wmnet) https://dbtree.wikimedia.org:30443 
HTTP/2 200 
date: Mon, 10 Jul 2023 17:32:17 GMT
server: istio-envoy
curl -I --resolve tendril.wikimedia.org:30443:$(dig +short k8s-ingress-staging.discovery.wmnet) https://tendril.wikimedia.org:30443 
HTTP/2 200 
date: Mon, 10 Jul 2023 17:32:50 GMT
server: istio-envoy

Change 936775 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/deployment-charts@master] miscweb: add statictendril to eqiad and codfw k8s

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

Change 936775 merged by jenkins-bot:

[operations/deployment-charts@master] miscweb: add statictendril to eqiad and codfw k8s

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

deployed to eqiad and codfw:

curl -I --resolve tendril.wikimedia.org:30443:$(dig +short k8s-ingress-wikikube.svc.eqiad.wmnet) https://tendril.wikimedia.org:30443 
HTTP/2 200 
date: Mon, 10 Jul 2023 18:32:48 GMT
server: istio-envoy
curl -I --resolve tendril.wikimedia.org:30443:$(dig +short k8s-ingress-wikikube.svc.codfw.wmnet) https://tendril.wikimedia.org:30443 
HTTP/2 200 
date: Mon, 10 Jul 2023 18:32:42 GMT
server: istio-envoy

Change 936785 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/puppet@production] trafficserver: switch dbtree/tendril to k8s backend

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

Change 936785 merged by Dzahn:

[operations/puppet@production] trafficserver: switch dbtree/tendril to k8s backend

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

switched traffic for dbtree and tendril.

19:24 < mutante> one easy way to confirm what serves it is the apache version
19:24 < mutante> for example: https://tendril.wikimedia.org/foo  show Apache 2.4.38
19:24 < mutante> but miscweb1003/2003 have  2.4.56 installed
Dzahn updated the task description. (Show Details)

20:14 < mutante> !log miscweb1003/miscweb2003 - rm -rf /srv/org/wikimedia/static-tendril

Change 937514 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/puppet@production] microsites: add monitoring for statictendril site for retired services

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

Change 937514 merged by Jelto:

[operations/puppet@production] microsites: add monitoring for statictendril site for retired services

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