Comment 2 for bug 1858034

Revision history for this message
Andreas Florath (ansreas) wrote :

Workaround / Possible Fix?

It looks that the /etc/uwsgi/magnum-api.ini is wrong at two positions.

As mentioned above, there is the need to use python3.6 instead of 2.7 so change from:

wsgi-file = /openstack/venvs/magnum-20.0.0/lib/python2.7/site-packages/magnum/api/app.wsgi

to

wsgi-file = /openstack/venvs/magnum-20.0.0/lib/python3.6/site-packages/magnum/api/app.wsgi

In addition the virtualenv is not set correctly. This needs to be changed from:

virtualenv = /openstack/venvs/magnum-20.0.0/bin

to

virtualenv = /openstack/venvs/magnum-20.0.0

At least for me the service is now up and running:

● magnum-api.service - magnum-api service
   Loaded: loaded (/etc/systemd/system/magnum-api.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-01-01 18:34:46 UTC; 5min ago
 Main PID: 3666 (uwsgi)
    Tasks: 17 (limit: 7372)
   Memory: 1.0G
      CPU: 45.718s
   CGroup: /uwsgi.slice/magnum-api.service
           ├─3666 /openstack/venvs/uwsgi-20.0.0-python3/bin/uwsgi --autoload --ini /etc/uwsgi/magnum-api.ini
           ├─3667 /openstack/venvs/uwsgi-20.0.0-python3/bin/uwsgi --autoload --ini /etc/uwsgi/magnum-api.ini
[...]