[openstack-dev] [keystone] Problem with WSGI on keystone

Dolph Mathews dolph.mathews at gmail.com
Wed Apr 20 02:50:31 UTC 2016


On Tue, Apr 19, 2016 at 11:57 AM, Rosensweig, Elisha (Nokia - IL) <
elisha.rosensweig at nokia.com> wrote:

> Hi All,
>
> Recently, I've been having trouble running stack.sh from scratch. With the
> default configuration I've been using for a while, I get the following
> error in /opt/stack/logs/key.log:
>
> 2016-04-19 16:05:26.630 22047 DEBUG keystone.common.controller
> [req-3d384c1f-8b9a-4ff0-aa30-a4aad73963fb 3bdfb473e0e544a4a1889c9192d2ba3c
> fd622e15c12a49a299a63022c5d34088 - default default] RBAC: Authorization
> granted inner /opt/stack/keystone/keystone/common/controller.py:180
> mod_wsgi (pid=22045): Target WSGI script
> '/usr/local/bin/keystone-wsgi-admin' cannot be loaded as Python module.
> mod_wsgi (pid=22045): Exception occurred processing WSGI script
> '/usr/local/bin/keystone-wsgi-admin'.
> Traceback (most recent call last):
>   File "/usr/local/bin/keystone-wsgi-admin", line 36, in <module>
>     application = initialize_admin_application()
>   File "/opt/stack/keystone/keystone/server/wsgi.py", line 62, in
> initialize_admin_application
>     return initialize_application('admin')
>   File "/opt/stack/keystone/keystone/server/wsgi.py", line 39, in
> initialize_application
>     common.configure()
>   File "/opt/stack/keystone/keystone/server/common.py", line 31, in
> configure
>     config.configure()
>   File "/opt/stack/keystone/keystone/common/config.py", line 1131, in
> configure
>     help='Do not monkey-patch threading system modules.'))
>   File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
> 2106, in __inner
>     result = f(self, *args, **kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
> 2282, in register_cli_opt
>     raise ArgsAlreadyParsedError("cannot register CLI option")
> ArgsAlreadyParsedError: arguments already parsed: cannot register CLI
> option
>

I've seen this happen many times when you're not using the same WSGI
startup script from the version of keystone you're using.

Your version is located at: /usr/local/bin/keystone-wsgi-admin

Look for a newer version in the httpd/ directory of the keystone repo to
replace it.


>
> As a workaround, I've set, in local.conf,
>        KEYSTONE_USE_MOD_WSGI=False
>
> And this seems to solve the issue (meaning, stack passes with no errors -
> have not done extensive testing of functionality).
>
> Does anyone else experience this? Any other suggestions to fix this?
>
> Thanks
>
> Elisha Rosensweig
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160419/f385cc6d/attachment.html>


More information about the OpenStack-dev mailing list