Staging instance, all changes can be removed at any time

Skip to content

Deploy swh-scrubber-checker-services to scrubber0.staging

This triggers the creation of {n object types x m ranges postgres} checker services.

In this current diffs, only 1 object types (release) and 4 ranges are configured. So we can check/monitor its behavior once applied.

Related to T4102

Test Plan

Actual checks on vagrant vm named 'scrubber0.internal.staging.swh.network':

root@scrubber0:/etc/systemd/system# systemctl list-units | grep scrubber
● swh-scrubber-checker-postgres@release-0.service                                           loaded    failed failed    Software Heritage Scrubber Checker Postgres release-0
● swh-scrubber-checker-postgres@release-1.service                                           loaded    failed failed    Software Heritage Scrubber Checker Postgres release-1
● swh-scrubber-checker-postgres@release-2.service                                           loaded    failed failed    Software Heritage Scrubber Checker Postgres release-2
● swh-scrubber-checker-postgres@release-3.service                                           loaded    failed failed    Software Heritage Scrubber Checker Postgres release-3
  system-swh\x2dscrubber\x2dchecker\x2dpostgres.slice                                       loaded    active active    system-swh\x2dscrubber\x2dchecker\x2dpostgres.slice

root@scrubber0:/etc/systemd/system# systemctl cat swh-scrubber-checker-postgres@release-0
# /etc/systemd/system/swh-scrubber-checker-postgres@.service
# Scrubber checker postgres template unit file
# Managed by puppet class profile::swh::deploy::scrubber::checker::postgres
# Changes will be overwritten

[Unit]
Description=Software Heritage Scrubber Checker Postgres %i
After=network.target

[Service]
Environment=SWH_SENTRY_DSN=https://swh::deploy::scrubber::sentry_token@sentry.softwareheritage.org/23
Environment=SWH_SENTRY_ENVIRONMENT=staging
Environment=SWH_MAIN_PACKAGE=swh.scrubber
Environment=SWH_SCRUBBER_CLI_EXTRA_ARGS="--help"
User=swhworker
Group=swhdev
Type=simple
ExecStart=/usr/bin/swh scrubber --config-file /etc/softwareheritage/scrubber/postgres.yml check storage ${SWH_SCRUBBER_CLI_EXTRA_ARGS}

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/swh-scrubber-checker-postgres@release-0.service.d/parameters.conf
# Managed by puppet class profile::swh::deploy::scrubber::checker::postgres
# Modifications will be overwritten

[Service]
Environment=SWH_SCRUBBER_CLI_EXTRA_ARGS="--object-type release --start-object 00000000000000000000 --end-object 44444444444444444444"

no more octo-diff since that needs to run in a new node.


Migrated from D7590 (view on Phabricator)

Merge request reports

Loading