Skip to content

webapp: Activate search through metadata in staging webapp and webapp1

That way, we can check the behavior both with data (staging elasticsearch has metadata) and no data (webapp1 uses an elasticsearch with no metadata yet).

Related to D5087

Test Plan

octo:

$ bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging webapp.internal.staging.swh.network
...
*** Running octocatalog-diff on host webapp.internal.staging.swh.network
I, [2021-02-17T15:31:54.428019 #28985]  INFO -- : Catalogs compiled for webapp.internal.staging.swh.network
I, [2021-02-17T15:31:56.436522 #28985]  INFO -- : Diffs computed for webapp.internal.staging.swh.network
diff origin/production/webapp.internal.staging.swh.network current/webapp.internal.staging.swh.network
*******************************************
  File[/etc/softwareheritage/web/web.yml] =>
   parameters =>
     content =>
      @@ -3,4 +3,5 @@
         cls: remote
         url: http://search0.internal.staging.swh.network:5010/
      +metadata_search_backend: swh-search
       storage:
         cls: remote
*******************************************
*** End octocatalog-diff on webapp.internal.staging.swh.network
$ bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging moma
...
*** Running octocatalog-diff on host moma.softwareheritage.org
I, [2021-02-17T15:32:22.384362 #1360]  INFO -- : Catalogs compiled for moma.softwareheritage.org
I, [2021-02-17T15:32:25.418245 #1360]  INFO -- : Diffs computed for moma.softwareheritage.org
diff origin/production/moma.softwareheritage.org current/moma.softwareheritage.org
*******************************************
  File[/etc/softwareheritage/web/web.yml] =>
   parameters =>
     content =>
      @@ -3,4 +3,5 @@
         cls: remote
         url: http://localhost:5010/
      +metadata_search_backend: swh-indexer-storage
       storage:
         cls: remote
*******************************************
*** End octocatalog-diff on moma.softwareheritage.org

$ bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging webapp1
*** Running octocatalog-diff on host webapp1.internal.softwareheritage.org
I, [2021-02-17T16:14:12.424157 #30662]  INFO -- : Catalogs compiled for webapp1.internal.softwareheritage.org
I, [2021-02-17T16:14:15.065246 #30662]  INFO -- : Diffs computed for webapp1.internal.softwareheritage.org
diff origin/production/webapp1.internal.softwareheritage.org current/webapp1.internal.softwareheritage.org
*******************************************
  File[/etc/softwareheritage/web/web.yml] =>
   parameters =>
     content =>
      @@ -3,4 +3,5 @@
         cls: remote
         url: http://localhost:5010/
      +metadata_search_backend: swh-search
       storage:
         cls: remote
*******************************************
*** End octocatalog-diff on webapp1.internal.softwareheritage.org

Migrated from D5095 (view on Phabricator)

Merge request reports