yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #73219
[Bug 1775782] [NEW] glance-image-import.conf not parsed when running under wsgi
Public bug reported:
When development environment is set to run under wsgi mode (by setting
WSGI_MODE=mod_wsgi in local.conf) glance-image-import.conf file is not
parsed.
It is working properly if glance is running under uwsgi.
Steps to reproduce:
NOTE: Here I am trying to use plugin "inject_image_metadata" to inject metadata properties to the image.
1. Add glance-image-import.conf as mentioned at /etc/glance
[image_import_opts]
image_import_plugins = ["inject_image_metadata"]
[inject_metadata_properties]
inject = "property1":"value"
ignore_user_roles = demo
2. Restart glance api service using "devstack@g-api.service"
3. Source using admin credentials (as we are ignoring demo role in glance-image-import.conf)
$ source devstack/openrc admin admin
3. Create image using import api
$ glance image-create-via-import --container-format bare --disk-format qcow2 --name ceph_image_default --file temp.qcow2
Expected Output:
Properties mentioned in glance-image-import.conf should be injected to the image
Actual Output:
Properties are not injected as plugin is not loaded.
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1775782
Title:
glance-image-import.conf not parsed when running under wsgi
Status in Glance:
New
Bug description:
When development environment is set to run under wsgi mode (by setting
WSGI_MODE=mod_wsgi in local.conf) glance-image-import.conf file is not
parsed.
It is working properly if glance is running under uwsgi.
Steps to reproduce:
NOTE: Here I am trying to use plugin "inject_image_metadata" to inject metadata properties to the image.
1. Add glance-image-import.conf as mentioned at /etc/glance
[image_import_opts]
image_import_plugins = ["inject_image_metadata"]
[inject_metadata_properties]
inject = "property1":"value"
ignore_user_roles = demo
2. Restart glance api service using "devstack@g-api.service"
3. Source using admin credentials (as we are ignoring demo role in glance-image-import.conf)
$ source devstack/openrc admin admin
3. Create image using import api
$ glance image-create-via-import --container-format bare --disk-format qcow2 --name ceph_image_default --file temp.qcow2
Expected Output:
Properties mentioned in glance-image-import.conf should be injected to the image
Actual Output:
Properties are not injected as plugin is not loaded.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1775782/+subscriptions
Follow ups