execute openstack service create xxxxx return http 500 error

asked 2017-08-17 03:13:03 -0500

anonymous user

Anonymous

updated 2017-08-22 14:37:33 -0500

rbowen gravatar image

I try to install openstack(ocata) with sourcescode in RHEL7.3,when I startup keystone service with httpd,everything is ok.But when I create service keystone using command "openstack service create --name keystone --description "OpenStack Identity" identity",I get the error "Internal Server Error (HTTP 500)".

The error message in the keystone-error.log is below:

root@test[/var/log/httpd]#cat keystone-error.log 
2017-08-17 15:27:46.437227 mod_wsgi (pid=116547): Target WSGI script '/openstack/bin/keystone-wsgi-admin' cannot be loaded as Python module.

2017-08-17 15:27:46.437300 mod_wsgi (pid=116547): Exception occurred processing WSGI script '/openstack/bin/keystone-wsgi-admin'.

2017-08-17 15:27:46.437325 Traceback (most recent call last):
2017-08-17 15:27:46.437346   File "/openstack/bin/keystone-wsgi-admin", line 6, in module
2017-08-17 15:27:46.437419     from keystone.server.wsgi import initialize_admin_application
2017-08-17 15:27:46.437435 ImportError: No module named keystone.server.wsgi

when I execute "from keystone.server.wsgi import initialize_admin_application" in python evironment, the command is ok. I don't know what is wrong So who can help me to confirm the error.

Below is some information about my install progress:

1. mysqld、memcached、rabbitmq-server is normal

2. the openstack user information:

root@test[/var/log/httpd]#cat /etc/passwd | grep openstack
openstack:x:200:4025::/home/openstack:/sbin/nologin

3.keystone service configure file:

root@test[/var/log/httpd]#cat /etc/httpd/conf.d/wsgi-keystone.conf 

>Listen 5000

>Listen 35357

《VirtualHost *:5000》

    WSGIDaemonProcess keystone-public processes=5 threads=1 user=openstack group=openstack display-name=%{GROUP}

    WSGIProcessGroup keystone-public

    WSGIScriptAlias / /openstack/bin/keystone-wsgi-public

    WSGIApplicationGroup %{GLOBAL}

    WSGIPassAuthorization On

    ErrorLogFormat "%{cu}t %M"

    ErrorLog /var/log/httpd/keystone-error.log

    CustomLog /var/log/httpd/keystone-access.log combined


    《Directory /openstack/bin/》

        Require all granted

    《/Directory》

</VirtualHost\>

《VirtualHost *:35357》
WSGIDaemonProcess keystone-admin processes=5 threads=1 user=openstack group=openstack display-name=%{GROUP}

WSGIProcessGroup keystone-admin

WSGIScriptAlias / /openstack/bin/keystone-wsgi-admin

WSGIApplicationGroup %{GLOBAL}

WSGIPassAuthorization On

ErrorLogFormat "%{cu}t %M"

ErrorLog /var/log/httpd/keystone-error.log

CustomLog /var/log/httpd/keystone-access.log combined

《 Directory /openstack/bin/》

    Require all granted

《/Directory》

《VirtualHost》

4.all the python package i have installed

root@test[/var/log/httpd]#pip freeze 
alembic==0.9.5
amqp==2.2.1
appdirs==1.4.3
asn1crypto==0.22.0
automaton==1.12.0
Babel==2.3.4
backports.ssl-match-hostname==3.4.0.2
bcrypt==3.1.3
beautifulsoup4==4.6.0
blivet==0.61.15.59
Brlapi==0.6.0
cachetools==2.0.1
castellan==0.12.0
certifi==2017.7.27.1
cffi==1.10.0
chardet==3.0.4
cliff==2.8.0
cmd2==0.7.6
configobj==4.7.2
contextlib2==0.5.5
coverage==3.6b3
cryptography==2.0.3
cupshelpers==1.0
cursive==0.1.2
debtcollector==1.17.0
decorator==3.4.0
deprecation==1.0.1
di==0.3
Django==1.8.18
django-appconf==1.0.2
django-babel==0.6.1
django-compressor==2.1.1
django-openstack-auth==3.5.0
django-pyscss==2.0.2
dnspython==1.15.0
dogpile.cache==0.6.4
enum-compat==0.0.2
enum34 ...
(more)
edit retag flag offensive close merge delete