Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module

Bug #1651717 reported by xianba
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Community Project
Invalid
Undecided
Unassigned

Bug Description

Hello everyone, I encountered a problem in the installation of keystone(10.0.0-newton), no matter how hard I tried, and finally no avail, so I came to everyone.
console information show as:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@localhost httpd]# openstack project create --domain default --description "Service Project" service
Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.
Internal Server Error (HTTP 500)
[root@localhost httpd]#
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

and the log of http /var/log/apache2/keystone.log show as follow:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2016-12-22 19:02:51.711948 mod_wsgi (pid=3654): Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module.
2016-12-22 19:02:51.712000 mod_wsgi (pid=3654): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-admin'.
2016-12-22 19:02:51.712025 Traceback (most recent call last):
2016-12-22 19:02:51.712160 File "/usr/bin/keystone-wsgi-admin", line 51, in <module>
2016-12-22 19:02:51.712758 application = initialize_admin_application()
2016-12-22 19:02:51.712783 File "/usr/lib/python2.7/site-packages/keystone/server/wsgi.py", line 132, in initialize_admin_application
2016-12-22 19:02:51.712891 config_files=_get_config_files())
2016-12-22 19:02:51.713014 File "/usr/lib/python2.7/site-packages/keystone/server/wsgi.py", line 56, in initialize_application
2016-12-22 19:02:51.713042 common.configure(config_files=config_files)
2016-12-22 19:02:51.713054 File "/usr/lib/python2.7/site-packages/keystone/server/common.py", line 30, in configure
2016-12-22 19:02:51.713072 keystone.conf.configure()
2016-12-22 19:02:51.713085 File "/usr/lib/python2.7/site-packages/keystone/conf/__init__.py", line 126, in configure
2016-12-22 19:02:51.713604 help='Do not monkey-patch threading system modules.'))
2016-12-22 19:02:51.713623 File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2193, in __inner
2016-12-22 19:02:51.714682 result = f(self, *args, **kwargs)
2016-12-22 19:02:51.716833 File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2378, in register_cli_opt
2016-12-22 19:02:51.717150 raise ArgsAlreadyParsedError("cannot register CLI option")
2016-12-22 19:02:51.717245 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option
2016-12-22 19:02:51.735748 mod_wsgi (pid=3652): Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module.
2016-12-22 19:02:51.735951 mod_wsgi (pid=3652): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-admin'.
2016-12-22 19:02:51.736057 Traceback (most recent call last):
2016-12-22 19:02:51.736163 File "/usr/bin/keystone-wsgi-admin", line 51, in <module>
2016-12-22 19:02:51.736355 application = initialize_admin_application()
2016-12-22 19:02:51.736478 File "/usr/lib/python2.7/site-packages/keystone/server/wsgi.py", line 132, in initialize_admin_application
2016-12-22 19:02:51.736510 config_files=_get_config_files())
2016-12-22 19:02:51.736523 File "/usr/lib/python2.7/site-packages/keystone/server/wsgi.py", line 56, in initialize_application
2016-12-22 19:02:51.736540 common.configure(config_files=config_files)
2016-12-22 19:02:51.736550 File "/usr/lib/python2.7/site-packages/keystone/server/common.py", line 30, in configure
2016-12-22 19:02:51.736567 keystone.conf.configure()
2016-12-22 19:02:51.736581 File "/usr/lib/python2.7/site-packages/keystone/conf/__init__.py", line 126, in configure
2016-12-22 19:02:51.736999 help='Do not monkey-patch threading system modules.'))
2016-12-22 19:02:51.737020 File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2193, in __inner
2016-12-22 19:02:51.738035 result = f(self, *args, **kwargs)
2016-12-22 19:02:51.738055 File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2378, in register_cli_opt
2016-12-22 19:02:51.738198 raise ArgsAlreadyParsedError("cannot register CLI option")
2016-12-22 19:02:51.738374 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

log and httpd's conf file as follow,can someone solve it,thank you.

Tags: keystone
Revision history for this message
xianba (xianba) wrote :
Revision history for this message
de1m (wlkalexander) wrote :

yes, I've the save error after update from newton to ocata

Changed in openstack-community:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.