bad default value for [wsgi] /python_interpreter option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Brian Rosmaita |
Bug Description
Noticed when reviewing glance-api.conf in https:/
# Path to the python interpreter to use when spawning external
# processes. By default this is sys.executable, which should be the
# same interpreter running Glance itself. However, in some situations
# (i.e. uwsgi) this may not actually point to a python interpreter
# itself. (string value)
#python_
It's pretty unlikely that that's going to be correct in any actual deployment.
The option is used by us at:
https:/
(to set self.python)
and
https:/
(to pass self.python as the value of the 'python_exec' argument to putils)
processutils does this with it:
https:/
python_exec = kwargs.
This is the point where sys.executable should be evaluated, not when the option help text is generated.
Thus, the default value glance sets for this option should be None, which corresponds to putils using sys.executable if the option isn't set.
Changed in glance: | |
assignee: | nobody → Brian Rosmaita (brian-rosmaita) |
Fix proposed to branch: master /review. opendev. org/c/openstack /glance/ +/831381
Review: https:/