Page MenuHomeSoftware Heritage

indexer-storage: Use new wsgi entrypoint
ClosedPublic

Authored by ardumont on Feb 21 2019, 2:53 PM.

Details

Summary

Related T1533
Depends on D1170
Related D1171

Test Plan
$ bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to update_worker_configuration uffizi
Found host uffizi.softwareheritage.org
Cloning into '/tmp/swh-ocd.q3h2jxsH/environments/production/data/private'...
done.
Cloning into '/tmp/swh-ocd.q3h2jxsH/environments/update_worker_configuration/data/private'...
done.
*** Running octocatalog-diff on host uffizi.softwareheritage.org
I, [2019-02-21T14:51:29.150482 #2781]  INFO -- : Catalogs compiled for uffizi.softwareheritage.org
I, [2019-02-21T14:51:30.131955 #2781]  INFO -- : Diffs computed for uffizi.softwareheritage.org
diff origin/production/uffizi.softwareheritage.org current/uffizi.softwareheritage.org
*******************************************
  File[/etc/systemd/system/gunicorn-swh-indexer-storage.service] =>
   parameters =>
     content =>
      @@ -15,5 +15,5 @@
       WorkingDirectory=/run/gunicorn/swh-indexer-storage
       Environment=SWH_CONFIG_FILENAME=/etc/softwareheritage/storage/indexer.yml
      -ExecStart=/usr/bin/gunicorn3 -p /run/gunicorn/swh-indexer-storage/pidfile -c /etc/gunicorn/instances/swh-indexer-storage.cfg swh.indexer.storage.api.server:run_from_webserver
      +ExecStart=/usr/bin/gunicorn3 -p /run/gunicorn/swh-indexer-storage/pidfile -c /etc/gunicorn/instances/swh-indexer-storage.cfg swh.indexer.storage.api.wsgi
       ExecStop=/bin/kill -TERM $MAINPID
       ExecReload=/bin/kill -HUP $MAINPID
*******************************************
  Gunicorn::Instance[swh-indexer-storage] =>
   parameters =>
     executable =>
      - swh.indexer.storage.api.server:run_from_webserver
      + swh.indexer.storage.api.wsgi
*******************************************
  Profile::Swh::Deploy::Rpc_server[indexer-storage] =>
   parameters =>
     executable =>
      - swh.indexer.storage.api.server:run_from_webserver
      + swh.indexer.storage.api.wsgi
*******************************************
  Systemd::Unit_file[gunicorn-swh-indexer-storage.service] =>
   parameters =>
     content =>
      @@ -15,5 +15,5 @@
       WorkingDirectory=/run/gunicorn/swh-indexer-storage
       Environment=SWH_CONFIG_FILENAME=/etc/softwareheritage/storage/indexer.yml
      -ExecStart=/usr/bin/gunicorn3 -p /run/gunicorn/swh-indexer-storage/pidfile -c /etc/gunicorn/instances/swh-indexer-storage.cfg swh.indexer.storage.api.server:run_from_webserver
      +ExecStart=/usr/bin/gunicorn3 -p /run/gunicorn/swh-indexer-storage/pidfile -c /etc/gunicorn/instances/swh-indexer-storage.cfg swh.indexer.storage.api.wsgi
       ExecStop=/bin/kill -TERM $MAINPID
       ExecReload=/bin/kill -HUP $MAINPID
*******************************************
*** End octocatalog-diff on uffizi.softwareheritage.org

Diff Detail

Repository
rSPSITE puppet-swh-site
Branch
update_worker_configuration
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 4381
Build 5792: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 22 2019, 10:48 AM
This revision was automatically updated to reflect the committed changes.