Page MenuHomeSoftware Heritage

worker: Remove no longer used worker/<service>.ini config
ClosedPublic

Authored by ardumont on Feb 19 2019, 7:16 PM.

Details

Summary

First step towards cleaning up unused stuffs.
Then deploy and make sure everything is still fine.
Then refactor some more instance.pp (generic systemd unit for our celery workers).

  • deploy/worker: Remove no longer used workers
  • worker/*: Remove duplicated and no longer used setup
  • instance: Remove no longer used parameters

Related T1531

Test Plan

bin/octocatalog-diff:

Found host worker01.softwareheritage.org
*** Running octocatalog-diff on host worker01.softwareheritage.org
diff origin/production/worker01.softwareheritage.org current/worker01.softwareheritage.org
*******************************************
- File[/etc/softwareheritage/worker/lister_debian.ini]
*******************************************
- File[/etc/softwareheritage/worker/lister_github.ini]
*******************************************
- File[/etc/softwareheritage/worker/lister_gitlab.ini]
*******************************************
- File[/etc/softwareheritage/worker/lister_pypi.ini]
*******************************************
- File[/etc/softwareheritage/worker/loader_debian.ini]
*******************************************
- File[/etc/softwareheritage/worker/loader_deposit.ini]
*******************************************
- File[/etc/softwareheritage/worker/loader_git.ini]
*******************************************
- File[/etc/softwareheritage/worker/loader_mercurial.ini]
*******************************************
- File[/etc/softwareheritage/worker/loader_pypi.ini]
*******************************************
- File[/etc/softwareheritage/worker/loader_svn.ini]
*******************************************
  Profile::Swh::Deploy::Worker::Instance[lister_debian] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.lister.debian.tasks"]
     task_queues =>
      - ["swh_lister_debian"]
     task_soft_time_limit =>
      - 0
*******************************************
  Profile::Swh::Deploy::Worker::Instance[lister_github] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.lister.github.tasks"]
     task_queues =>
      - ["swh_lister_github_discover", "swh_lister_github_refresh"]
     task_soft_time_limit =>
      - 0
*******************************************
  Profile::Swh::Deploy::Worker::Instance[lister_gitlab] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.lister.gitlab.tasks"]
     task_queues =>
      - ["swh_lister_gitlab_discover", "swh_lister_gitlab_refresh"]
     task_soft_time_limit =>
      - 0
*******************************************
  Profile::Swh::Deploy::Worker::Instance[lister_pypi] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.lister.pypi.tasks"]
     task_queues =>
      - ["swh_lister_pypi_refresh"]
     task_soft_time_limit =>
      - 0
*******************************************
  Profile::Swh::Deploy::Worker::Instance[loader_debian] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.loader.debian.tasks"]
     task_queues =>
      - ["swh_loader_debian"]
     task_soft_time_limit =>
      - 0
*******************************************
  Profile::Swh::Deploy::Worker::Instance[loader_deposit] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.deposit.loader.tasks"]
     task_queues =>
      - ["swh_checker_deposit", "swh_loader_deposit"]
     task_soft_time_limit =>
      - 0
*******************************************
  Profile::Swh::Deploy::Worker::Instance[loader_git] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.loader.git.tasks"]
     task_queues =>
      - ["swh_loader_git"]
     task_soft_time_limit =>
      - 0
*******************************************
  Profile::Swh::Deploy::Worker::Instance[loader_mercurial] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.loader.mercurial.tasks"]
     task_queues =>
      - ["swh_loader_mercurial", "swh_loader_mercurial_archive"]
     task_soft_time_limit =>
      - 0
*******************************************
  Profile::Swh::Deploy::Worker::Instance[loader_pypi] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.loader.pypi.tasks"]
     task_queues =>
      - ["swh_loader_pypi"]
     task_soft_time_limit =>
      - 0
*******************************************
  Profile::Swh::Deploy::Worker::Instance[loader_svn] =>
   parameters =>
     task_broker =>
      - amqp://swhconsumer:swh::deploy::worker::task_broker::password@rabbitmq:5672//
     task_modules =>
      - ["swh.loader.svn.tasks"]
     task_queues =>
      - ["swh_loader_svn", "swh_loader_svn_mount_and_load"]
     task_soft_time_limit =>
      - 0
*******************************************
*** End octocatalog-diff on worker01.softwareheritage.org

Diff Detail

Repository
rSPSITE puppet-swh-site
Branch
remove-no-longer-used-setup
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 4323
Build 5710: arc lint + arc unit

Event Timeline

ardumont added inline comments.
data/defaults.yaml
1555

celery setup is inlined in the loader config now.

ardumont edited the test plan for this revision. (Show Details)

Looks fine to me considering ::profile::swh::deploy::worker::base is properly setup to clean up the /etc/softwareheritage/worker directory (as by itself, removing a resource definition does not remove the resource).

I'm guessing that directory could just be removed at this point.

This revision is now accepted and ready to land.Feb 20 2019, 8:45 AM