Page MenuHomePhabricator

Re-create kubernetes configuration files for tools.steinsplitter
Closed, ResolvedPublicBUG REPORT

Description

If possible please (re)create the necessary configuration files in order to switch from grid to kubernetes.

Had issues only with the below mentioned toolsfoge account, on other accounts is had no issues.

Thank you

tools.steinsplitter@tools-sgebastion-10:[~]: webservice --backend=kubernetes php8.2 restart
Traceback (most recent call last):

File "/usr/local/bin/webservice", line 11, in <module>
  load_entry_point('toolforge-webservice==0.1', 'console_scripts', 'webservice')()
File "/usr/lib/python3/dist-packages/toolsws/cli/webservice.py", line 195, in main
  KubernetesBackend.get_types(),
File "/usr/lib/python3/dist-packages/toolsws/backends/kubernetes.py", line 291, in get_types
  kubeconfig=Kubeconfig.load(), user_agent="webservice"
File "/usr/lib/python3/dist-packages/toolforge_weld/kubernetes_config.py", line 98, in load
  raise KubernetesConfigFileNotFoundException(str(path.resolve()))

toolforge_weld.kubernetes_config.KubernetesConfigFileNotFoundException: /mnt/nfs/labstore-secondary-tools-project/steinsplitter/.kube/config

Event Timeline

taavi edited projects, added Toolforge; removed Tools.
taavi@tools-sgebastion-11:~ $ kubectl sudo delete cm -n tool-steinsplitter maintain-kubeusers
configmap "maintain-kubeusers" deleted
starting a run
Homedir already exists for /data/project/steinsplitter
Wrote config in /data/project/steinsplitter/.kube/config
PodSecurityPolicy tool-steinsplitter-psp already exists
Namespace tool-steinsplitter already exists
Role tool-steinsplitter-psp already exists
Provisioned creds for user steinsplitter
finished run, wrote 1 new accounts, disabled 0 accounts, cleaned up 0 accounts, renewed 0 accounts, updated 0 quotas
taavi@tools-sgebastion-11:~ $ kubectl sudo delete cm -n tool-steinsplitter maintain-kubeusers
configmap "maintain-kubeusers" deleted
starting a run
Homedir already exists for /data/project/steinsplitter
Wrote config in /data/project/steinsplitter/.kube/config
PodSecurityPolicy tool-steinsplitter-psp already exists
Namespace tool-steinsplitter already exists
Role tool-steinsplitter-psp already exists
Provisioned creds for user steinsplitter
finished run, wrote 1 new accounts, disabled 0 accounts, cleaned up 0 accounts, renewed 0 accounts, updated 0 quotas

Thank you so much, :) This was fast!

The webservice is still not coming up:

tools.steinsplitter@tools-sgebastion-10:[~]: tail error.log
2023-12-05 14:31:57: (configfile.c.1289) WARNING: unknown config-key: server.dir-listing (ignored)
2023-12-05 14:34:53: (server.c.2078) server stopped by UID = 0 PID = 0
2023-12-05 14:35:03: (server.c.1704) server started (lighttpd/1.4.69)
2023-12-05 14:35:03: (configfile.c.1289) WARNING: unknown config-key: server.dir-listing (ignored)
2023-12-05 14:35:27: (server.c.2078) server stopped by UID = 0 PID = 0
2023-12-05 16:23:35: (server.c.1704) server started (lighttpd/1.4.69)
2023-12-05 16:23:35: (configfile.c.1289) WARNING: unknown config-key: server.dir-listing (ignored)
2023-12-05 16:30:57: (server.c.2078) server stopped by UID = 0 PID = 0
2023-12-05 17:02:02: (server.c.1704) server started (lighttpd/1.4.69)
2023-12-05 17:02:02: (configfile.c.1289) WARNING: unknown config-key: server.dir-listing (ignored)

I use the same config on other instances as well, with no issues.

Thanks again! :)

RhinosF1 removed taavi as the assignee of this task.
RhinosF1 added a subscriber: taavi.
taavi claimed this task.

Looks like there was some bad state left from the tool running on the grid that I've now removed.