Comment 9 for bug 1775782

Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote : Re: [Bug 1775782] Re: glance-image-import.conf not parsed when running under wsgi

Hi Brian,
I have tested that, it was working, and sure it will work.

Abhishek

On Mon, 1 Apr 2019 at 10:01 PM, Brian Rosmaita <email address hidden>
wrote:

> @Abhishek: forgive me for asking, but are you sure that just changing
> the --config-dir as you mention in comment #2 is enough to get this
> working?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1775782
>
> Title:
> glance-image-import.conf not parsed when running under wsgi
>
> Status in Glance:
> Triaged
>
> 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 "<email address hidden>"
> 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
>
--
Thanks & Best Regards,

Abhishek Kekane