Page MenuHomePhabricator

toolforge maintain-kubeusers backtrace
Closed, ResolvedPublic

Description

I found this:

2024-06-12T15:44:56.919266413Z starting a run
2024-06-12T15:45:04.620161957Z invalid account name 'ru_monuments', skipping
2024-06-12T15:45:04.654603961Z invalid account name 'wdq_checker', skipping
2024-06-12T15:48:18.814400793Z Traceback (most recent call last):
2024-06-12T15:48:18.814486488Z   File "/app/maintain_kubeusers_cli.py", line 6, in <module>
2024-06-12T15:48:18.815382285Z     runpy.run_module("maintain_kubeusers", run_name="__main__")
2024-06-12T15:48:18.817912089Z   File "<frozen runpy>", line 229, in run_module
2024-06-12T15:48:18.817951490Z   File "<frozen runpy>", line 88, in _run_code
2024-06-12T15:48:18.817961047Z   File "/app/maintain_kubeusers/__main__.py", line 6, in <module>
2024-06-12T15:48:18.819296505Z     main()
2024-06-12T15:48:18.820797516Z   File "/app/maintain_kubeusers/cli.py", line 170, in main
2024-06-12T15:48:18.824099058Z     do_run(
2024-06-12T15:48:18.824138878Z   File "<decorator-gen-1>", line 2, in do_run
2024-06-12T15:48:18.824214150Z   File "/opt/lib/python/site-packages/prometheus_client/context_managers.py", line 80, in wrapped
2024-06-12T15:48:18.825893805Z     return func(*args, **kwargs)
2024-06-12T15:48:18.826187180Z            ^^^^^^^^^^^^^^^^^^^^^
2024-06-12T15:48:18.826214508Z   File "/app/maintain_kubeusers/cli.py", line 88, in do_run
2024-06-12T15:48:18.826769707Z     tool.reconcile()
2024-06-12T15:48:18.827179089Z   File "/app/maintain_kubeusers/user.py", line 53, in reconcile
2024-06-12T15:48:18.828235447Z     self.resources.reconcile()
2024-06-12T15:48:18.828400230Z   File "/app/maintain_kubeusers/resources/resources.py", line 195, in reconcile
2024-06-12T15:48:18.830754608Z     self._configmap_load()
2024-06-12T15:48:18.830816846Z   File "/app/maintain_kubeusers/resources/resources.py", line 249, in _configmap_load
2024-06-12T15:48:18.831112767Z     cm.data if hasattr(cm, "data") and isinstance(cm.data, dict) else {}
2024-06-12T15:48:18.831130728Z                        ^^
2024-06-12T15:48:18.832090714Z UnboundLocalError: cannot access local variable 'cm' where it is not associated with a value
``

Details

TitleReferenceAuthorSource BranchDest Branch
maintain-kubeusers: bump to 0.0.151-20240612163002-994044e0repos/cloud/toolforge/toolforge-deploy!331project_1317_bot_df3177307bed93c3f34e421e26c86e38bump_maintain-kubeusersmain
resources: better handle state configmap read failuresrepos/cloud/toolforge/maintain-kubeusers!43aborreroarturo-145-resources-better-hamain
Customize query in GitLab