<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 19, 2016 at 11:57 AM, Rosensweig, Elisha (Nokia - IL) <span dir="ltr"><<a href="mailto:elisha.rosensweig@nokia.com" target="_blank">elisha.rosensweig@nokia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi All,<br>
<br>
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:<br>
<br>
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<br>
mod_wsgi (pid=22045): Target WSGI script '/usr/local/bin/keystone-wsgi-admin' cannot be loaded as Python module.<br>
mod_wsgi (pid=22045): Exception occurred processing WSGI script '/usr/local/bin/keystone-wsgi-admin'.<br>
Traceback (most recent call last):<br>
  File "/usr/local/bin/keystone-wsgi-admin", line 36, in <module><br>
    application = initialize_admin_application()<br>
  File "/opt/stack/keystone/keystone/server/wsgi.py", line 62, in initialize_admin_application<br>
    return initialize_application('admin')<br>
  File "/opt/stack/keystone/keystone/server/wsgi.py", line 39, in initialize_application<br>
    common.configure()<br>
  File "/opt/stack/keystone/keystone/server/common.py", line 31, in configure<br>
    config.configure()<br>
  File "/opt/stack/keystone/keystone/common/config.py", line 1131, in configure<br>
    help='Do not monkey-patch threading system modules.'))<br>
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2106, in __inner<br>
    result = f(self, *args, **kwargs)<br>
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2282, in register_cli_opt<br>
    raise ArgsAlreadyParsedError("cannot register CLI option")<br>
ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option<br></blockquote><div><br></div><div>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.</div><div><br></div><div>Your version is located at: /usr/local/bin/keystone-wsgi-admin</div><div><br></div><div>Look for a newer version in the httpd/ directory of the keystone repo to replace it.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
As a workaround, I've set, in local.conf,<br>
       KEYSTONE_USE_MOD_WSGI=False<br>
<br>
And this seems to solve the issue (meaning, stack passes with no errors - have not done extensive testing of functionality).<br>
<br>
Does anyone else experience this? Any other suggestions to fix this?<br>
<br>
Thanks<br>
<br>
Elisha Rosensweig<br>
<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div></div>