glance-image-import.conf not parsed when running under wsgi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Critical
|
Erno Kuvaja |
Bug Description
When development environment is set to run under wsgi mode (by setting WSGI_MODE=mod_wsgi in local.conf) glance-
It is working properly if glance is running under uwsgi.
Steps to reproduce:
NOTE: Here I am trying to use plugin "inject_
1. Add glance-
[image_
image_
[inject_
inject = "property1":"value"
ignore_
2. Restart glance api service using "<email address hidden>"
3. Source using admin credentials (as we are ignoring demo role in glance-
$ source devstack/openrc admin admin
3. Create image using import api
$ glance image-create-
Expected Output:
Properties mentioned in glance-
Actual Output:
Properties are not injected as plugin is not loaded.
Changed in glance: | |
assignee: | nobody → Erno Kuvaja (jokke) |
Workaround:
we can fix this issue by changing ExecStart mentioned in /<email address hidden> unit file to
ExecStart = /usr/local/ bin/glance- api --config-dir /etc/glance
or
Make changes in glance/cmd/api.py as mentioned in [1] and then changing ExecStart mentioned in /<email address hidden> unit file to
ExecStart = /usr/local/ bin/glance- api
NOTE:
After modifying <email address hidden> we need to relaod deamon using "sudo systemctl daemon-reload" command
[1] http:// paste.openstack .org/show/ 722963/