Ask Your Question
0

ocata openstack project create --domain Default --description "Service Project" service

asked 2017-05-29 00:14:31 -0600

vicky yy gravatar image

updated 2017-05-29 06:47:46 -0600

hello everyone, I have the same problem with CentOS7, Ocata.

[root@ocataControl ~]# export | grep OS_
declare -x OS_AUTH_URL="http://ocataControl:35357/v3"
declare -x OS_IDENTITY_API_VERSION="3"
declare -x OS_PASSWORD="adminpwd"
declare -x OS_PROJECT_DOMAIN_NAME="Default"
declare -x OS_PROJECT_NAME="admin"
declare -x OS_USERNAME="admin"
declare -x OS_USER_DOMAIN_NAME="Default"`

[root@ocataControl ~]# 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@ocataControl ~]# 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)

It seems like there's something wrong

keystone-manage --log-file /home/stack/keystonmanage.log  --debug bootstrap \
--bootstrap-password adminpwd  \
--bootstrap-admin-url http://localhost:35357/v3/  \
--bootstrap-internal-url http://localhost:5000/v3/  \
--bootstrap-public-url http://localhost:5000/v3/  \
--bootstrap-region-id RegionTwo 

2017-05-29 19:31:45.690 20451 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py:261
2017-05-29 19:31:45.722 20451 WARNING py.warnings [-] /usr/lib/python2.7/site-packages/pycadf/identifier.py:60: UserWarning: Invalid uuid. To ensure interoperability, identifiers should be a valid uuid.
warnings.warn('Invalid uuid. To ensure interoperability, identifiers '

2017-05-29 19:31:45.862 20451 INFO keystone.cmd.cli [-] Created domain default

openstack project list --log-file openstack.log --debug

Error Log:

2017-05-29 17:14:50.008 14799 DEBUG keystoneauth.session [  admin] Request returned failure status: 500
2017-05-29 17:14:50.008 14799 WARNING keystoneauth.identity.generic.base [  admin] Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.
2017-05-29 17:14:50.009 14799 DEBUG keystoneauth.identity.v3.base [  admin] Making authentication request to http://localhost:35357/v3/auth/tokens
2017-05-29 17:14:50.009 14799 INFO requests.packages.urllib3.connectionpool [  admin] Resetting dropped connection: localhost
2017-05-29 17:14:50.624 14799 DEBUG requests.packages.urllib3.connectionpool [  admin] "POST /v3/auth/tokens HTTP/1.1" 500 527
2017-05-29 17:14:50.625 14799 DEBUG keystoneauth.session [  admin] Request returned failure status: 500
2017-05-29 17:14:50.625 14799 ERROR openstack [  admin] Internal Server Error (HTTP 500)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 393, in run_subcommand
self.prepare_to_run_command(cmd)
File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 198, in prepare_to_run_command
return super(OpenStackShell, self).prepare_to_run_command(cmd)
File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 457, in prepare_to_run_command
self.client_manager.auth_ref
File "/usr/lib/python2.7/site-packages/osc_lib/clientmanager.py", line 215, in auth_ref
self._auth_ref = self.auth.get_auth_ref(self.session)
File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 198, in get_auth_ref
return self._plugin.get_auth_ref(session, **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 167, in get_auth_ref
authenticated=False, log=False, **rkwargs)
File "/usr/lib/python2.7/site-packages/keystoneauth1/session ...
(more)
edit retag flag offensive close merge delete

Comments

Most likely Apache is not listening on the port, or Keystone is not correctly configured in Apache. It looks like you are following the installation tutorial; check your configurations again.

You can check for yourself: curl http://ocataControl:35357 should give you an error.

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-29 02:15:38 -0600 )edit

and ss -lntp|grep 35357 may give you nothing.

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-29 02:16:41 -0600 )edit

thanks Bernd,I compared every steps with the instruction.curl http://ocataControl:35357. The server encountered an internal error or misconfiguration and was unable to complete your request.

vicky yy gravatar imagevicky yy ( 2017-05-29 06:38:44 -0600 )edit

ss -lntp | grep 35357 LISTEN 0 128 :::35357 :::* users:(("httpd",pid=20501,fd=8),("httpd",pid=20500,fd=8),("httpd",pid=20499,fd=8),("httpd",pid=20498,fd=8),("httpd",pid=20497,fd=8),("httpd",pid=20486,fd=8))

vicky yy gravatar imagevicky yy ( 2017-05-29 06:39:04 -0600 )edit

So Keystone seems to be listening, but encounters an error internally. I suggest you check for clues in the keystone log file, perhaps also the Apache logs.

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-29 07:44:11 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-29 09:04:14 -0600

vicky yy gravatar image

updated 2017-06-04 00:51:53 -0600

thanks Bernd, It's the apache error.

disable SELinux will avoid this issue below.

/var/log/httpd/keystone.log

2017-05-29 21:53:14.822961 mod_wsgi (pid=21655): Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module.
2017-05-29 21:53:14.823097 mod_wsgi (pid=21655): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-admin'.
2017-05-29 21:53:14.823113 Traceback (most recent call last):
2017-05-29 21:53:14.823123   File "/usr/bin/keystone-wsgi-admin", line 51, in <module>
2017-05-29 21:53:14.823158     application = initialize_admin_application()
2017-05-29 21:53:14.823163   File "/usr/lib/python2.7/site-packages/keystone/server/wsgi.py", line 132, in initialize_admin_application
2017-05-29 21:53:14.823193     config_files=_get_config_files())
2017-05-29 21:53:14.823197   File "/usr/lib/python2.7/site-packages/keystone/server/wsgi.py", line 56, in initialize_application
2017-05-29 21:53:14.823204     common.configure(config_files=config_files)
2017-05-29 21:53:14.823207   File "/usr/lib/python2.7/site-packages/keystone/server/common.py", line 35, in configure
2017-05-29 21:53:14.823225     default_config_files=config_files)
2017-05-29 21:53:14.823230   File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2359, in __call__
2017-05-29 21:53:14.823648     self._namespace._files_permission_denied)
2017-05-29 21:53:14.823663 ConfigFilesPermissionDeniedError: Failed to open some config files:         /etc/keystone/keystone.conf
2017-05-29 21:59:48.933584 mod_wsgi (pid=21921): Target WSGI script '/usr/bin/keystone-wsgi-public' cannot be loaded as Python module.
2017-05-29 21:59:48.933632 mod_wsgi (pid=21921): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-public'.
2017-05-29 21:59:48.933660 Traceback (most recent call last):
2017-05-29 21:59:48.933679   File "/usr/bin/keystone-wsgi-public", line 51, in <module>
2017-05-29 21:59:48.933753     application = initialize_public_application()
2017-05-29 21:59:48.933762   File "/usr/lib/python2.7/site-packages/keystone/server/wsgi.py", line 137, in initialize_public_application
2017-05-29 21:59:48.933815     config_files=_get_config_files())
2017-05-29 21:59:48.933822   File "/usr/lib/python2.7/site-packages/keystone/server/wsgi.py", line 56, in initialize_application
2017-05-29 21:59:48.933836     common.configure(config_files=config_files)
2017-05-29 21:59:48.933842   File "/usr/lib/python2.7/site-packages/keystone/server/common.py", line 35, in configure
2017-05-29 21:59:48.933875     default_config_files=config_files)
2017-05-29 21:59:48.933883   File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2359, in __call__
2017-05-29 21:59:48.934709     self._namespace._files_permission_denied)
2017-05-29 21:59:48.934746 ConfigFilesPermissionDeniedError: Failed to open some config files: /etc/keystone/keystone.conf
edit flag offensive delete link more

Comments

"Failed to open some config files: /etc/keystone/keystone.conf" Check permissions; possibly SELinux.

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-29 10:23:51 -0600 )edit

the issue fixed after disable SELinux, thanks

vicky yy gravatar imagevicky yy ( 2017-06-04 00:49:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-05-29 00:14:31 -0600

Seen: 552 times

Last updated: Jun 04