Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Running keystone in httpd

I'm trying to run keystone in httpd. I have done the setup on centos 7, Junos. I made changes as mentioned in http://docs.openstack.org/developer/keystone/apache-httpd.html. but when I try to test it.( https://server.com/keystone/admin) it fails and prompts an error in the httpd error logs.

[Wed Feb 25 19:37:04.312040 2015] [:error] [pid 17770] No handlers could be found for logger "keystone.openstack.common.versionutils" [Wed Feb 25 19:37:04.322164 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] mod_wsgi (pid=17770): Target WSGI script '/var/www/cgi-bin/keystone/admin' cannot be loaded as Python module. [Wed Feb 25 19:37:04.322193 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] mod_wsgi (pid=17770): SystemExit exception raised by WSGI script '/var/www/cgi-bin/keystone/admin' ignored. [Wed Feb 25 19:37:04.322218 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] Traceback (most recent call last): [Wed Feb 25 19:37:04.322236 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/var/www/cgi-bin/keystone/admin", line 25, in <module> [Wed Feb 25 19:37:04.322299 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] application = deploy.loadapp('config:%s' % conf, name=name) [Wed Feb 25 19:37:04.322310 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp [Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] return loadobj(APP, uri, name=name, *kw) [Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj [Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] return context.create() [Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create [Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] return self.object_type.invoke(self) [Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke [Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] *context.local_conf) [Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call [Wed Feb 25 19:37:04.322383 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] val = callable(args, *kw) [Wed Feb 25 19:37:04.322912 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/urlmap.py", line 25, in urlmap_factory [Wed Feb 25 19:37:04.322962 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] app = loader.get_app(app_name, global_conf=global_conf) [Wed Feb 25 19:37:04.322993 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app [Wed Feb 25 19:37:04.323016 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] name=name, global_conf=global_conf).create() [Wed Feb 25 19:37:04.323026 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create [Wed Feb 25 19:37:04.323040 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] return self.object_type.invoke(self) [Wed Feb 25 19:37:04.323070 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 203, in invoke [Wed Feb 25 19:37:04.323092 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] app = context.app_context.create() [Wed Feb 25 19:37:04.323102 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create [Wed Feb 25 19:37:04.323110 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] return self.object_type.invoke(self) [Wed Feb 25 19:37:04.323115 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke [Wed Feb 25 19:37:04.323121 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] return fix_call(context.object, context.global_conf, *context.local_conf) [Wed Feb 25 19:37:04.323126 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call [Wed Feb 25 19:37:04.323133 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] val = callable(args, **kw) [Wed Feb 25 19:37:04.323139 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] File "/usr/lib/python2.7/site-packages/keystone/service.py", line 59, in wrapper [Wed Feb 25 19:37:04.323208 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] sys.exit(1) [Wed Feb 25 19:37:04.323231 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] SystemExit: 1

Can you help me with this.

Running keystone in httpd

I'm trying to run keystone in httpd. I have done the setup on centos 7, Junos. I made changes as mentioned in http://docs.openstack.org/developer/keystone/apache-httpd.html. but when I try to test it.( https://server.com/keystone/admin) it fails and prompts an error in the httpd error logs.

[Wed Feb 25 19:37:04.312040 2015] [:error] [pid 17770] No handlers could be found for logger "keystone.openstack.common.versionutils"
[Wed Feb 25 19:37:04.322164 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] mod_wsgi (pid=17770): Target WSGI script '/var/www/cgi-bin/keystone/admin' cannot be loaded as Python module.
[Wed Feb 25 19:37:04.322193 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] mod_wsgi (pid=17770): SystemExit exception raised by WSGI script '/var/www/cgi-bin/keystone/admin' ignored.
[Wed Feb 25 19:37:04.322218 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] Traceback (most recent call last):
[Wed Feb 25 19:37:04.322236 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/var/www/cgi-bin/keystone/admin", line 25, in <module>
[Wed Feb 25 19:37:04.322299 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     application = deploy.loadapp('config:%s' % conf, name=name)
[Wed Feb 25 19:37:04.322310 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
[Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     return loadobj(APP, uri, name=name, *kw)
**kw)
[Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
[Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     return context.create()
[Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     return self.object_type.invoke(self)
[Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
[Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     *context.local_conf)
**context.local_conf)
[Wed Feb 25 19:37:04.322346 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
[Wed Feb 25 19:37:04.322383 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     val = callable(args, *kw)
callable(*args, **kw)
[Wed Feb 25 19:37:04.322912 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/urlmap.py", line 25, in urlmap_factory
[Wed Feb 25 19:37:04.322962 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     app = loader.get_app(app_name, global_conf=global_conf)
[Wed Feb 25 19:37:04.322993 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
[Wed Feb 25 19:37:04.323016 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     name=name, global_conf=global_conf).create()
[Wed Feb 25 19:37:04.323026 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Wed Feb 25 19:37:04.323040 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     return self.object_type.invoke(self)
[Wed Feb 25 19:37:04.323070 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 203, in invoke
[Wed Feb 25 19:37:04.323092 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     app = context.app_context.create()
[Wed Feb 25 19:37:04.323102 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Wed Feb 25 19:37:04.323110 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     return self.object_type.invoke(self)
[Wed Feb 25 19:37:04.323115 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Wed Feb 25 19:37:04.323121 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     return fix_call(context.object, context.global_conf, *context.local_conf)
**context.local_conf)
[Wed Feb 25 19:37:04.323126 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
[Wed Feb 25 19:37:04.323133 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     val = callable(args, callable(*args, **kw)
[Wed Feb 25 19:37:04.323139 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]   File "/usr/lib/python2.7/site-packages/keystone/service.py", line 59, in wrapper
[Wed Feb 25 19:37:04.323208 2015] [:error] [pid 17770] [remote 192.168.10.1:51971]     sys.exit(1)
[Wed Feb 25 19:37:04.323231 2015] [:error] [pid 17770] [remote 192.168.10.1:51971] SystemExit: 1

1

Can you help me with this.