Page MenuHomePhabricator

Spicerack support for dbctl
Closed, ResolvedPublic

Description

Spicerack has a library for conftool entities generically, which allows you to edit things like dbconfig-instance entities.

But dbctl has very non-trivial logic implemented in the CLI tool itself for vital tasks like generating and commiting the mwconfig block.

Ideally instead of those being directly in the CLI implementation, they'd be exposed as a library that was used by the CLI tool, and then could also be used from Spicerack.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
ABran-WMF raised the priority of this task from Low to Medium.Jul 1 2024, 12:55 PM

FYI I'm starting to work on this as part of my tenure in Data Persistence.

Change #1055882 had a related patch set uploaded (by Volans; author: Giuseppe Lavagetto):

[operations/software/spicerack@master] confctl: add native support for RO in conftool

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

Change #1058586 had a related patch set uploaded (by Volans; author: Volans):

[operations/software/spicerack@master] dbctl: add new module to interact with dbctl

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

Status update:
The conftool improvements (here and here) enabled to support dry-run in spicerack for conftool, that gets added here (to be merged) and finally the possibility of dbctl wrapper in spicerack here (to be merged).

Change #1055882 merged by jenkins-bot:

[operations/software/spicerack@master] confctl: add native support for RO in conftool

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

Change #1058586 merged by jenkins-bot:

[operations/software/spicerack@master] dbctl: add new module to interact with dbctl

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

This has been released and tested. Resolving.