Page MenuHomeSoftware Heritage

Deploy and activate swh-worker@loader_cvs on staging workers
ClosedPublic

Authored by ardumont on Dec 16 2021, 11:11 AM.

Details

Reviewers
vsellier
Group Reviewers
System administrators
Maniphest Tasks
T3788: staging: Deploy cvs loader v0.1
Summary

Related to T3788

Test Plan

octo-diff:

$ $SWH_PUPPET_ENVIRONMENT_HOME/bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging worker0.internal.staging.swh.network
...
+ Concat_fragment[profile::cron::swh-worker-loader_cvs-autorestart] =>
   parameters =>
      "order": "10"
      "tag": "profile::cron::swh-worker"
      "target": "profile::cron::swh-worker"
      "content": >>>
# Cron snippet swh-worker-loader_cvs-autorestart
4-49/15 * * * * root chronic /usr/local/sbin/swh-worker-ping-restart loader_cvs@worker0.internal.staging.swh.network loader_cvs
<<<
*******************************************
+ File[/etc/softwareheritage/loader_cvs.yml] =>
   parameters =>
      "ensure": "present"
      "group": "swhworker"
      "mode": "0640"
      "owner": "swhworker"
      "content": >>>
---
storage:
  cls: pipeline
  steps:
  - cls: buffer
    min_batch_size:
      content: 1000
      content_bytes: 52428800
      directory: 1000
      directory_entries: 12000
      revision: 1000
      revision_parents: 2000
      revision_bytes: 52428800
      release: 1000
      release_bytes: 52428800
      extid: 1000
  - cls: filter
  - cls: retry
  - cls: remote
    args:
      url: http://storage1.internal.staging.swh.network:5002/
max_content_size: 104857600
celery:
  task_broker: amqp://swhconsumer:swh-deploy-worker-task_broker-password@scheduler0.internal.staging.swh.network:5672/%2f
  task_queues:
  - swh.loader.cvs.tasks.LoadCvsRepository
<<<
*******************************************
+ File[/etc/systemd/system/swh-worker@loader_cvs.service.d/parameters.conf] =>
   parameters =>
      "ensure": "file"
      "group": "root"
      "mode": "0444"
      "notify": ["Class[Systemd::Systemctl::Daemon_reload]"]
      "owner": "root"
      "selinux_ignore_defaults": false
      "show_diff": true
      "content": >>>
# Managed by puppet - modifications will be overwritten
# In defined class profile::swh::deploy::worker::instance

[Service]
Environment=CONCURRENCY=1
Environment=MAX_TASKS_PER_CHILD=5
Environment=LOGLEVEL=info


PrivateTmp=true
<<<
*******************************************
+ File[/etc/systemd/system/swh-worker@loader_cvs.service.d] =>
   parameters =>
      "ensure": "directory"
      "group": "root"
      "owner": "root"
      "purge": true
      "recurse": true
      "selinux_ignore_defaults": false
*******************************************
+ Package[python3-swh.loader.cvs] =>
   parameters =>
      "ensure": "present"
*******************************************
+ Profile::Cron::D[swh-worker-loader_cvs-autorestart] =>
   parameters =>
      "command": "chronic /usr/local/sbin/swh-worker-ping-restart loader_cvs@worker0.internal.staging.swh.network loader_cvs"
      "minute": "fqdn_rand/15"
      "target": "swh-worker"
      "unique_tag": "swh-worker-loader_cvs-autorestart"
      "user": "root"
*******************************************
+ Profile::Swh::Deploy::Worker::Instance[loader_cvs] =>
   parameters =>
      "ensure": "present"
      "instance_name": "loader_cvs"
      "merge_policy": "deep"
      "private_tmp": true
      "send_task_events": false
      "sentry_name": "loader_cvs"
*******************************************
+ Service[swh-worker@loader_cvs] =>
   parameters =>
      "enable": true
*******************************************
+ Systemd::Dropin_file[swh-worker@loader_cvs/parameters.conf] =>
   parameters =>
      "daemon_reload": "lazy"
      "ensure": "present"
      "filename": "parameters.conf"
      "group": "root"
      "mode": "0444"
      "owner": "root"
      "path": "/etc/systemd/system"
      "selinux_ignore_defaults": false
      "show_diff": true
      "unit": "swh-worker@loader_cvs.service"
      "content": >>>
# Managed by puppet - modifications will be overwritten
# In defined class profile::swh::deploy::worker::instance

[Service]
Environment=CONCURRENCY=1
Environment=MAX_TASKS_PER_CHILD=5
Environment=LOGLEVEL=info


PrivateTmp=true
<<<
*******************************************
*** End octocatalog-diff on worker0.internal.staging.swh.network

Diff Detail

Repository
rSPSITE puppet-swh-site
Branch
staging
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 25674
Build 40139: arc lint + arc unit