Page MenuHomeSoftware Heritage

clean up swh-lister database from belvedere
Closed, MigratedEdits Locked

Description

Turns out there is more than just the db to drop, roles as well.
And stop the prometheus-sql-exporter and start it back when done.

So there, task!

Event Timeline

ardumont triaged this task as Normal priority.Jan 20 2022, 4:44 PM
ardumont created this task.

Drop the old db:

root@belvedere:~# systemctl stop prometheus-sql-exporter.service; sudo -i -u postgres dropdb -p 5434 swh-lister; systemctl start prometheus-sql-exporter.service;

Then the role leftovers:

postgres=# drop role "lister-bitbucket";
DROP ROLE
postgres=# drop role "lister-debian";
DROP ROLE
postgres=# drop role "lister-github";
DROP ROLE
postgres=# drop role "lister-gitlab";
DROP ROLE
postgres=# drop role "lister-npm";
DROP ROLE
postgres=# drop role "lister-pypi";
DROP ROLE
postgres=# drop role "swh-lister";
DROP ROLE
ardumont changed the task status from Open to Work in Progress.Jan 20 2022, 4:45 PM
ardumont moved this task from Backlog to in-progress on the System administration board.
ardumont claimed this task.
ardumont moved this task from deployed/landed/monitoring to done on the System administration board.