Page MenuHomePhabricator

tbs: user-story 6 - I want to start a webservice with the image I built earlier.
Closed, ResolvedPublic

Description

As a toolforge user, I can finalize my work by running toolforge webservice start --builservice-image so the built image can be deployed in toolforge as a webservice and accessible to users through https://<mytool>.toolforge.org

How do we know it's done?

Feature: I want to start a webservice with the image I built earlier.

Background:

Given I'm logged in as a tool (after ssh login.toolforge.org + become mytool)
And I triggered a build with "build start"
And it finished successfully

Scenario: Start a webservice using the latest built image successfully

Given that the build finished successfully
When running the command toolforge webservice start –buildservice-image
Then a new webservice is started using the latest built image
This epic contains the following tasks:

This is a tracking task, so it will be closed once the tasks mentioned below are completed.

Deploy on tools

Related Objects

StatusSubtypeAssignedTask
ResolvedLucasWerkmeister
Resolvedmatmarex
ResolvedLegoktm
ResolvedLegoktm
Opendcaro
Resolveddcaro
Resolveddcaro
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
Resolveddcaro
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
Resolvedfnegri
Resolvedfnegri
ResolvedRaymond_Ndibe
ResolvedNone
Resolveddcaro
ResolvedRaymond_Ndibe
Resolveddcaro
ResolvedAndrew
ResolvedSlst2020
Resolveddcaro
ResolvedRaymond_Ndibe
InvalidNone
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
Resolveddcaro
Resolveddcaro
Resolveddcaro

Event Timeline

dcaro triaged this task as High priority.Dec 9 2022, 10:49 AM
dcaro created this task.
dcaro added a project: Toolforge Build Service.
Raymond_Ndibe changed the status of subtask T316327: [tbs] Deploy on tools from In Progress to Stalled.
Raymond_Ndibe changed the status of subtask T316327: [tbs] Deploy on tools from Stalled to In Progress.Mar 27 2023, 4:05 PM
Raymond_Ndibe changed the status of subtask T316327: [tbs] Deploy on tools from In Progress to Stalled.Mar 28 2023, 1:10 PM
Slst2020 updated the task description. (Show Details)

Up and running \o/

tools.wm-lol@tools-sgebastion-10:~$ toolforge webservice --buildservice-image wm-lol/wm-lol:latest buildservice start
WARNING: No explict backend provided.
  Using default of 'kubernetes'
  For help refer to <https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web>
DEPRECATED: 'buildservice' type is deprecated.
  See https://wikitech.wikimedia.org/wiki/Help:Toolforge/Kubernetes
  for currently supported types.
Starting webservice.........
tools.wm-lol@tools-sgebastion-10:~$ kubectl get all
NAME                          READY   STATUS    RESTARTS   AGE
pod/wm-lol-6bd68f96f5-tr9kk   1/1     Running   0          4m24s

NAME             TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE
service/wm-lol   ClusterIP   10.99.37.111   <none>        8000/TCP   4m25s

NAME                     READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/wm-lol   1/1     1            1           4m25s

NAME                                DESIRED   CURRENT   READY   AGE
replicaset.apps/wm-lol-6bd68f96f5   1         1         1       4m25s
dcaro@vulcanus$ curl -v https://wm-lol.toolforge.org > /dev/null
...
< HTTP/2 200
< server: nginx/1.14.2
< date: Tue, 11 Apr 2023 14:48:02 GMT
< content-type: text/html; charset=utf-8
< content-length: 5691
< strict-transport-security: max-age=31622400
< x-clacks-overhead: GNU Terry Pratchett
< content-security-policy-report-only: default-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: mediastream: *.toolforge.org wikibooks.org *.wikibooks.org wikidata.org *.wikidata.org wikimedia.org *.wikimedia.org wikinews.org *.wikinews.org wikipedia.org *.wikipedia.org wikiquote.org *.wikiquote.org wikisource.org *.wikisource.org wikiversity.org *.wikiversity.org wikivoyage.org *.wikivoyage.org wiktionary.org *.wiktionary.org *.wmcloud.org *.wmflabs.org wikimediafoundation.org mediawiki.org *.mediawiki.org wss://wm-lol.toolforge.org; report-uri https://csp-report.toolforge.org/collect;
...