Page MenuHomePhabricator

python2 webservice type no longer works on Toolforge
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Become a tool
  • webservice --backend=kubernetes python2 status

What happens?:

type must be one of:
golang1.11
  * jdk17
  * node16
  * perl5.32
  * php7.4
  * python3.9
  * ruby2.1
  * ruby2.7
  * tcl8.6

What should have happened instead?:

DEPRECATED: 'python2' type is deprecated.
  See https://wikitech.wikimedia.org/wiki/Help:Toolforge/Kubernetes
  for currently supported types.
Your webservice is not running

Software version (skip for WMF-hosted wikis like Wikipedia):
toolforge-webservice 0.92

Other information (browser name/version, screenshots, etc.):
kubectl get configmap image-config --namespace=tf-public -o yaml | less does list python2 as an alias of python2.7, but as far as I can tell, nothing in toolsws/backends/kubernetes.py’s get_types() reads the aliases, so python2 isn’t recognized as a valid type. I suspect this regressed with kubernetes: Use the shared image-config configmap (T311918).

Workaround: Use python2.7 instead.