ocata openstack project create --domain Default --description "Service Project" service
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 ...
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.and
ss -lntp|grep 35357
may give you nothing.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.
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))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.