Page MenuHomePhabricator

[tbs.harbor.toolsbeta] Create a postgres DB with trove and plug the current instance there
Closed, ResolvedPublic2 Estimated Story Points

Description

  • Instead of using the docker container that comes with docker-compose by default:
    • create a new database using trove for the project
    • plug that one into the docker-compose setup by changing the hiera settings in horizon (under the project puppet config)
    • change the db password of the new db to match the old one
    • test it all works
  • Document also where it needs to be configured in the README for the buildservice repository:

https://github.com/toolforge/buildservice

So then we can use that to create the puppet manifests.

  • remove the (now) unused harbordb instances and cleanup the hiera harbordb puppet config (in the horizon UI, remove the prefix specific config)
  • remove the (now) unused harbor-* instances (we only use harborweb) and the associated project prefix config (same as above)

On how to create a trove DB:
https://wikitech.wikimedia.org/wiki/Help:Adding_a_Database_to_a_Cloud_VPS_Project#Trove:_Database_as_a_Service_for_Cloud_VPS

Related Objects

StatusSubtypeAssignedTask
StalledLucasWerkmeister
Stalledmatmarex
OpenNone
OpenNone
Opendcaro
Opendcaro
Resolveddcaro
OpenNone
OpenRaymond_Ndibe
OpenNone
OpenNone
OpenRaymond_Ndibe
OpenNone
OpenRaymond_Ndibe
ResolvedSlst2020
ResolvedSlst2020
ResolvedSlst2020
ResolvedSlst2020
ResolvedRaymond_Ndibe
ResolvedSlst2020
ResolvedSlst2020
ResolvedSlst2020
OpenRaymond_Ndibe
OpenNone
ResolvedRaymond_Ndibe
OpenRaymond_Ndibe
Resolveddcaro
ResolvedRaymond_Ndibe
OpenNone
OpenNone
OpenNone
Resolveddcaro
ResolvedSlst2020
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
Resolveddcaro
OpenNone
OpenNone

Event Timeline

Note for the docs, every time you change any configuration for harbor (harbor.yml) you have to run the ./install.sh script.

More notes on the current setup:

  • the configuration is under /srv/ops/harbor
  • the data is under /srv/harbor
  • /srv is already a cinder volume

Document also where it needs to be configured in the README for the buildservice repository:
https://github.com/toolforge/buildservice

@dcaro do you mean how to configure the docker-compose setup to work with the external db?

Document also where it needs to be configured in the README for the buildservice repository:
https://github.com/toolforge/buildservice

@dcaro do you mean how to configure the docker-compose setup to work with the external db?

Yep, mostly so it would be easy to automate later or similar.

Slst2020 updated the task description. (Show Details)