Page MenuHomeSoftware Heritage

swh-indexer-journal-client: Adapt systemd and configuration according to latest version
ClosedPublic

Authored by ardumont on Jul 3 2019, 4:31 PM.

Details

Summary
  • Update cli to latest version
  • Fix configuration change (enclosing journal setup within a 'journal' key)

Fixes P458's description

Test Plan
bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to update_configuration getty
Found host getty.internal.softwareheritage.org
Cloning into '/tmp/swh-ocd.si6gfHUC/environments/production/data/private'...
done.
Cloning into '/tmp/swh-ocd.si6gfHUC/environments/update_configuration/data/private'...
done.
*** Running octocatalog-diff on host getty.internal.softwareheritage.org
I, [2019-07-03T16:32:42.452059 #14339]  INFO -- : Catalogs compiled for getty.internal.softwareheritage.org
I, [2019-07-03T16:32:43.158782 #14339]  INFO -- : Diffs computed for getty.internal.softwareheritage.org
diff origin/production/getty.internal.softwareheritage.org current/getty.internal.softwareheritage.org
*******************************************
  File[/etc/softwareheritage/indexer/journal_client.yml] =>
   parameters =>
     content =>
      @@ -1,8 +1,9 @@
       ---
      -brokers:
      -- esnode1.internal.softwareheritage.org
      -- esnode2.internal.softwareheritage.org
      -- esnode3.internal.softwareheritage.org
      -consumer_id: swh.indexer.journal_client
      +journal:
      +  brokers:
      +  - esnode1.internal.softwareheritage.org
      +  - esnode2.internal.softwareheritage.org
      +  - esnode3.internal.softwareheritage.org
      +  group_id: swh.indexer.journal_client
       scheduler:
         cls: remote
*******************************************
  File[/etc/systemd/system/swh-indexer-journal-client.service] =>
   parameters =>
     content =>
      @@ -11,5 +11,5 @@
       Group=swhstorage
       Type=simple
      -ExecStart=/usr/bin/python3 -m swh.indexer.journal_client
      +ExecStart=/usr/bin/swh indexer --config-file /etc/softwareheritage/indexer/journal_client.yml journal-client
       Restart=always
       RestartSec=10
*******************************************
  Systemd::Unit_file[swh-indexer-journal-client.service] =>
   parameters =>
     content =>
      @@ -11,5 +11,5 @@
       Group=swhstorage
       Type=simple
      -ExecStart=/usr/bin/python3 -m swh.indexer.journal_client
      +ExecStart=/usr/bin/swh indexer --config-file /etc/softwareheritage/indexer/journal_client.yml journal-client
       Restart=always
       RestartSec=10
*******************************************
*** End octocatalog-diff on getty.internal.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.

Event Timeline

ardumont retitled this revision from swh-indexer-journal-client: Adapt configuration to swh-indexer-journal-client: Adapt systemd and configuration according to latest version.Jul 3 2019, 4:38 PM
This revision is now accepted and ready to land.Jul 3 2019, 4:44 PM
  • swh-indexer-journal-client: Update cli to latest version
  • swh-indexer-journal-client: Fix configuration change
This revision was automatically updated to reflect the committed changes.