Page MenuHomePhabricator

Store state information for the disable tool process outside NFS
Open, In Progress, MediumPublic

Description

The current process to disable a tool stores state information in plaintext files in the tool's NFS home directory. This is not ideal as it constitutes an unnecessary dependency for NFS which we don't really need, and it could be replaced with some database instead.

Event Timeline

At the time I used NFS because it was reachable from both inside and outside the VM realm. Now it is only inside the VM realm so it doesn't really work for state tracking anyway.

@taavi do you have an opinion about where that database is hosted? It's easiest to do in toolsdb (where I assume there's already a fair bit of meta-tool tracking already.)

It's easiest to do in toolsdb (where I assume there's already a fair bit of meta-tool tracking already.)

The tracking for maintain-dbusers is actually in the labsdbaccounts database on the m5 cluster.

It's easiest to do in toolsdb (where I assume there's already a fair bit of meta-tool tracking already.)

The tracking for maintain-dbusers is actually in the labsdbaccounts database on the m5 cluster.

Oh dang! Well, /that/ won't work.

Change 907982 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[labs/private@master] Added fake profile::toolforge::disable_tool::disable_tool_db_password

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

Change 907982 merged by Andrew Bogott:

[labs/private@master] Added fake profile::toolforge::disable_tool::disable_tool_db_password

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

Change 907983 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[operations/puppet@production] Add database config for disable_tool process

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

Change 907995 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[cloud/toolforge/disable-tool@master] Replace flag files with entries in a database

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

Change 907983 merged by Andrew Bogott:

[operations/puppet@production] Add database config for disable_tool process

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

Change 908317 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[operations/puppet@production] profile::toolforge::disable_tool: fix a couple of param names

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

Change 908317 merged by Andrew Bogott:

[operations/puppet@production] profile::toolforge::disable_tool: fix a couple of param names

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

Change 908319 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[operations/puppet@production] profile::toolforge::disable_tool: include python3-pymysql

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

Change 908319 merged by Andrew Bogott:

[operations/puppet@production] profile::toolforge::disable_tool: include python3-pymysql

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

Change 907995 merged by jenkins-bot:

[cloud/toolforge/disable-tool@master] Replace flag files with entries in a database

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

Change 908324 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[cloud/toolforge/disable-tool@master] set_step_complete: commit before closing db connection

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

Change 908324 merged by jenkins-bot:

[cloud/toolforge/disable-tool@master] set_step_complete: commit before closing db connection

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

Change 908342 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[cloud/toolforge/disable-tool@master] get_step_complete: fix dereference of rows

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

Change 908342 merged by jenkins-bot:

[cloud/toolforge/disable-tool@master] get_step_complete: fix dereference of rows

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

Change 908586 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[cloud/toolforge/disable-tool@master] Go back to using the nfs state file to ensure that k8s is disabled

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

Change 908586 merged by jenkins-bot:

[cloud/toolforge/disable-tool@master] Go back to using the nfs state file to ensure that k8s is disabled

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

This is now fixed except for the maintain_kubeusers subtask

dcaro changed the task status from Open to In Progress.Jan 24 2024, 3:48 PM
dcaro triaged this task as Medium priority.