Skip to content

indexer-storage: Use new wsgi entrypoint

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

Migrated from D1172 (view on Phabricator)

Merge request reports