Page MenuHomeSoftware Heritage

Deploy loader_nixguix service on workers
ClosedPublic

Authored by ardumont on May 19 2020, 12:12 PM.

Details

Summary

Related to T2411

Test Plan

octo-catalog:

bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging worker01
Found host worker01.softwareheritage.org
Cloning into '/tmp/swh-ocd.DcZaneso/environments/production/data/private'...
done.
Cloning into '/tmp/swh-ocd.DcZaneso/environments/staging/data/private'...
done.
*** Running octocatalog-diff on host worker01.softwareheritage.org
I, [2020-05-19T12:10:43.922751 #5341]  INFO -- : Catalogs compiled for worker01.softwareheritage.org
I, [2020-05-19T12:10:44.843068 #5341]  INFO -- : Diffs computed for worker01.softwareheritage.org
diff origin/production/worker01.softwareheritage.org current/worker01.softwareheritage.org
*******************************************
+ File[/etc/softwareheritage/loader_nixguix.yml] =>
   parameters =>
      "ensure": "present"
      "group": "swhworker"
      "mode": "0644"
      "owner": "swhworker"
      "content": >>>
---
storage:
  cls: pipeline
  steps:
  - cls: retry
  - cls: filter
  - cls: buffer
    min_batch_size:
      content: 1000
      content_bytes: 52428800
      directory: 1000
      revision: 1000
      release: 1000
  - cls: remote
    args:
      url: http://uffizi.internal.softwareheritage.org:5002/
max_content_size: 104857600
celery:
  task_broker: amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672/%2f
  task_queues:
  - swh.loader.package.nixguix.tasks.LoadNixguix
<<<
*******************************************
+ File[/etc/systemd/system/swh-worker@loader_nixguix.service.d/parameters.conf] =>
   parameters =>
      "ensure": "file"
      "group": "root"
      "mode": "0444"
      "notify": ["Class[Systemd::Systemctl::Daemon_reload]"]
      "owner": "root"
      "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
Environment=SWH_SENTRY_DSN=swh::deploy::loader_core::sentry_dsn
Environment=SWH_SENTRY_ENVIRONMENT=production
Environment=SWH_MAIN_PACKAGE=swh.loader.core


PrivateTmp=true
<<<
*******************************************
+ File[/etc/systemd/system/swh-worker@loader_nixguix.service.d] =>
   parameters =>
      "ensure": "directory"
      "group": "root"
      "owner": "root"
      "purge": true
      "recurse": true
*******************************************
+ Profile::Swh::Deploy::Worker::Instance[loader_nixguix] =>
   parameters =>
      "ensure": "present"
      "instance_name": "loader_nixguix"
      "merge_policy": "deep"
      "private_tmp": true
      "sentry_name": "loader_core"
*******************************************
+ Service[swh-worker@loader_nixguix] =>
   parameters =>
      "enable": true
*******************************************
+ Systemd::Dropin_file[swh-worker@loader_nixguix/parameters.conf] =>
   parameters =>
      "daemon_reload": "lazy"
      "ensure": "present"
      "filename": "parameters.conf"
      "group": "root"
      "mode": "0444"
      "owner": "root"
      "path": "/etc/systemd/system"
      "show_diff": true
      "unit": "swh-worker@loader_nixguix.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
Environment=SWH_SENTRY_DSN=swh::deploy::loader_core::sentry_dsn
Environment=SWH_SENTRY_ENVIRONMENT=production
Environment=SWH_MAIN_PACKAGE=swh.loader.core


PrivateTmp=true
<<<
*******************************************
*** End octocatalog-diff on worker01.softwareheritage.org

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.