[oslo-config-generator] example is not working

asked 2016-12-30 09:57:02 -0500

space-hunter-lv gravatar image

Hello.

I want to use oslo-config-generator functionality for my project.

I have followed official documentation
and created repo with example project
https://github.com/space-hunter-lv/oslo-config-generator-test (https://github.com/space-hunter-lv/os...)

I ended with WARNING from stevedore and no options in sample config output:

$ oslo-config-generator --namespace myapp
----
WARNING:stevedore.named:Could not load myapp
[DEFAULT]
----

This behavior is rather confusing as I can successfully import via console:

$ python
----
Python 2.7.12+ (default, Sep 17 2016, 12:08:02)
[GCC 6.2.0 20160914] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from myapp import opts
>>> opts
<module 'myapp.opts' from 'myapp/opts.pyc'>
>>>
----

Right now I'm not sure what can be done to get sample config file generated.
I will appreciate any suggestions/help.

edit retag flag offensive close merge delete