Details
- Reviewers
olasd vlorentz - Maniphest Tasks
- T2181: Set SWH_MAIN_PACKAGE and SWH_SENTRY_ENVIRONMENT for all services
bin/octocatalog moma (webapp, deposit)
bin/octocatalog saatchi (scheduler)
bin/octocatalog worker01 (workers as in loaders/lister)
bin/octocatalog worker0.internal.staging.swh.network (staging workers)
bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging worker01.euwest.azure (indexers)
bin/octocatalog-diff worker12.euwest.azure (cookers)
This adds the necessary new environment variable SWH_MAIN_PACKAGE and SWH_SENTRY_ENVIRONMENT
without touching the previous SWH_SENTRY_DSN, so all should be fine.
See for example (smaller output):
$ bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging worker12.euwest.azure Found host worker12.euwest.azure.internal.softwareheritage.org Cloning into '/tmp/swh-ocd.UqlVy6V0/environments/production/data/private'... done. Cloning into '/tmp/swh-ocd.UqlVy6V0/environments/staging/data/private'... done. *** Running octocatalog-diff on host worker12.euwest.azure.internal.softwareheritage.org I, [2020-01-22T18:57:27.673574 #12904] INFO -- : Catalogs compiled for worker12.euwest.azure.internal.softwareheritage.org I, [2020-01-22T18:57:28.600172 #12904] INFO -- : Diffs computed for worker12.euwest.azure.internal.softwareheritage.org diff origin/production/worker12.euwest.azure.internal.softwareheritage.org current/worker12.euwest.azure.internal.softwareheritage.org ******************************************* File[/etc/systemd/system/swh-worker@vault_cooker.service.d/parameters.conf] => parameters => content => @@ -7,4 +7,6 @@ Environment=LOGLEVEL=info Environment=SWH_SENTRY_DSN=swh::deploy::vault::sentry_dsn +Environment=SWH_SENTRY_ENVIRONMENT=production +Environment=SWH_MAIN_PACKAGE=swh.vault _ _ ******************************************* Systemd::Dropin_file[swh-worker@vault_cooker/parameters.conf] => parameters => content => @@ -7,4 +7,6 @@ Environment=LOGLEVEL=info Environment=SWH_SENTRY_DSN=swh::deploy::vault::sentry_dsn +Environment=SWH_SENTRY_ENVIRONMENT=production +Environment=SWH_MAIN_PACKAGE=swh.vault _ _ ******************************************* *** End octocatalog-diff on worker12.euwest.azure.internal.softwareheritage.org
Diff Detail
- Repository
- rSPSITE puppet-swh-site
- Branch
- staging
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 10253 Build 15215: arc lint + arc unit
Event Timeline
Just a few tiny nitpicks but that generally looks sensible.
data/defaults.yaml | ||
---|---|---|
2750 | missing quotes? | |
data/location/sesi_rocquencourt_staging.yaml | ||
129–130 | should be removed now | |
site-modules/profile/manifests/swh/deploy/deposit.pp | ||
93–95 | no need for quotes / variable expansion here | |
site-modules/profile/manifests/swh/deploy/rpc_server.pp | ||
105–107 | same remark wrt quotes/variable expansion | |
site-modules/profile/manifests/swh/deploy/webapp.pp | ||
138–140 | and ditto |
data/defaults.yaml | ||
---|---|---|
2750 | heh, right. | |
site-modules/profile/manifests/swh/deploy/worker/instance.pp | ||
21–23 | I'd like this key to be aligned with other key configuration. |
- Fix unneeded expansion
- Remove obsolete staging entry about prometheus
- Add missing quote
And thanks!
data/location/sesi_rocquencourt_staging.yaml | ||
---|---|---|
132 | mfw 2 hours later after setting my hair on fire... swh::deploy::environment: staging I did not see output only mentioning production everywhere... |
Well the nice thing is that i saw duplication (loader package, indexer) i can trim so good!