commit 783fa72f481d68962509e708585fea4c163d5bf4
Author: Dan Smith <email address hidden>
Date: Tue Jul 21 16:25:40 2020 -0700
Make image conversion use a proper python interpreter for prlimit
The image conversion plugin does a processutils exec(), which needs
to spawn python for prlimit support. Under uwsgi, sys.executable
points to uwsgi itself, which won't work in this case. This introduces
a [wsgi]/python_interpreter config option (because I don't think
there is any way to get this from uwsgi itself) which we use for
the exec. By default, it's sys.executable, which is what is used
right now so nobody should notice a change unless they need it.
Note: Making this depend on the devstack change to remove the wsgi
import restriction so we can get a test on it.
Reviewed: https:/ /review. opendev. org/742314 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=783fa72f481 d68962509e70858 5fea4c163d5bf4
Committed: https:/
Submitter: Zuul
Branch: master
commit 783fa72f481d689 62509e708585fea 4c163d5bf4
Author: Dan Smith <email address hidden>
Date: Tue Jul 21 16:25:40 2020 -0700
Make image conversion use a proper python interpreter for prlimit
The image conversion plugin does a processutils exec(), which needs python_ interpreter config option (because I don't think
to spawn python for prlimit support. Under uwsgi, sys.executable
points to uwsgi itself, which won't work in this case. This introduces
a [wsgi]/
there is any way to get this from uwsgi itself) which we use for
the exec. By default, it's sys.executable, which is what is used
right now so nobody should notice a change unless they need it.
Note: Making this depend on the devstack change to remove the wsgi
import restriction so we can get a test on it.
Partial-Bug: #1888713 b21de55060df3f7 bf40b3e64b6
Change-Id: I7cb2e135d6ea2c