Page MenuHomeSoftware Heritage

staging: Activate swh-search-journal-client@indexed
ClosedPublic

Authored by ardumont on Tue, Feb 9, 5:59 PM.

Details

Summary

Renaming the consumer group as it's not necessary they share it. That will surely ease
the maintenance when some offset reset is needed (at least at first).

Related to T2780

Test Plan

octocatalog-diff

bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging search0.internal.staging.swh.network
Found host search0.internal.staging.swh.network
WARN     -> Environment "wip-pg-hba-rules-in-yaml" contained non-word characters, correcting name to wip_pg_hba_rules_in_yaml
Cloning into '/tmp/swh-ocd.aYuxZasV/environments/production/data/private'...
done.
Cloning into '/tmp/swh-ocd.aYuxZasV/environments/staging/data/private'...
done.
*** Running octocatalog-diff on host search0.internal.staging.swh.network
I, [2021-02-09T18:43:01.263201 #25414]  INFO -- : Catalogs compiled for search0.internal.staging.swh.network
I, [2021-02-09T18:43:02.558149 #25414]  INFO -- : Diffs computed for search0.internal.staging.swh.network
diff origin/production/search0.internal.staging.swh.network current/search0.internal.staging.swh.network
*******************************************
+ File[/etc/softwareheritage/search/journal_client_indexed.yml] =>
   parameters =>
      "ensure": "present"
      "group": "swhstorage"
      "mode": "0644"
      "notify": "Service[swh-search-journal-client@indexed]"
      "owner": "swhstorage"
      "content": >>>
---
search:
  cls: elasticsearch
  hosts:
  - host: search-esnode0.internal.staging.swh.network
    port: 9200
journal:
  brokers:
  - journal0.internal.staging.swh.network
  group_id: swh.search.journal_client.indexed
  prefix: swh.journal.indexed
  object_types:
  - origin_intrinsic_metadata
<<<
*******************************************
+ Profile::Swh::Deploy::Search::Journal_client_instance[indexed] =>
   parameters =>
      "ensure": "running"
      "instance_name": "indexed"
*******************************************
+ Service[swh-search-journal-client@indexed] =>
   parameters =>
      "enable": true
      "ensure": "running"
*******************************************
*** End octocatalog-diff on search0.internal.staging.swh.network

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 created this revision.

Fix mistakenly dropping instruction on group_id configuration for @object

ardumont retitled this revision from Activate swh-search-journal-client@indexed to staging: Activate swh-search-journal-client@indexed.Tue, Feb 9, 6:43 PM
ardumont edited the test plan for this revision. (Show Details)

Activate only in staging for now

This revision is now accepted and ready to land.Tue, Feb 9, 6:44 PM