ceph / teuthology-api

A REST API to execute teuthology commands.
MIT License
2 stars 10 forks source link

create presets db and endpoints #56

Open VallariAg opened 5 months ago

VallariAg commented 5 months ago

Presets are user saved config of teuthology-suite commands. This will help rerun commands. The args of a command can be saved by a unique preset id. Data to be stored in a db on teuthology-api.

How the feature could be used in pulpito-ng: https://github.com/ceph/pulpito-ng/issues/47


Implementation:

Adds database to t-api: SQLite

Schema (improvements can be discussed):

Screenshot 2024-05-13 at 8 58 12 PM

Endpoints: GET presets/{id} GET presets/list/ POST presets/add/ UPDATE presets/edit/{id} DELETE presets/delete/{id}

Implementation PR (previous work): https://github.com/ceph/teuthology-api/pull/19