In My case , i was installing openstack Juno and while creating tenants , i had the same issue -:
keystone --debug tenant-create --name admin --description "Admin Tenant"
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://controller:35357/v2.0/tenants -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: TOKEN_REDACTED" -d '{"tenant": {"enabled": true, "name": "admin", "description": "Admin Tenant"}}'
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller
Unable to establish connection to http://controller:35357/v2.0/tenants
systemctl restart openstack-keystone.service
Job for openstack-keystone.service failed. See "systemctl status openstack-keystone.service" and "journalctl -xe" for details.
systemctl start openstack-keystone.service
Job for openstack-keystone.service failed. See "systemctl status openstack-keystone.service" and "journalctl -xe" for details.
journalctl -xe
Jul 31 13:36:16 localhost.localdomain keystone-all[7351]: filelog = logging.handlers.WatchedFileHandler(logpath)
Jul 31 13:36:16 localhost.localdomain systemd[1]: openstack-keystone.service: main process exited, code=exited, status=1/FAILURE
Jul 31 13:36:16 localhost.localdomain systemd[1]: Failed to start OpenStack Identity Service (code-named Keystone).
-- Subject: Unit openstack-keystone.service has failed
.
.
.
-- The result is failed.
Jul 31 13:36:16 localhost.localdomain systemd[1]: Unit openstack-keystone.service entered failed state.
Jul 31 13:36:16 localhost.localdomain systemd[1]: openstack-keystone.service failed.
Jul 31 13:36:16 localhost.localdomain keystone-all[7351]: stream = open(self.baseFilename, self.mode)
Jul 31 13:36:16 localhost.localdomain keystone-all[7351]: IOError: [Errno 13] ***Permission denied: '/var/log/keystone/keystone.log'
*
Jul 31 13:36:16 localhost.localdomain python[7361]: detected unhandled Python exception in '/usr/bin/keystone-all'
Keystone.log owner was root , changed it to keystone
[root@localhost keystone]# ls -l
total 8
-rw-r--r-- 1 root root 3356 Jul 30 20:04 keystone.log
-rw-r--r-- 1 keystone keystone 1139 Jul 31 13:00 keystone-tokenflush.log
[root@localhost keystone]# chown keystone.keystone keystone.log
[root@localhost keystone]# ls -l
total 8
-rw-r--r-- 1 keystone keystone 3356 Jul 30 20:04 keystone.log
-rw-r--r-- 1 keystone keystone 1139 Jul 31 13:00 keystone-tokenflush.log
[root@localhost keystone]# systemctl start openstack-keystone.service
[root@localhost keystone]# keystone --debug tenant-create --name admin --description "Admin Tenant"
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://controller:35357/v2.0/tenants -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: TOKEN_REDACTED" -d '{"tenant": {"enabled": true, "name": "admin", "description": "Admin Tenant"}}'
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tenants HTTP/1.1" 200 119
DEBUG:keystoneclient.session:RESP: [200] {'date': 'Fri, 31 Jul 2015 08:07:52 GMT', 'content-type': 'application/json', 'content-length': '119', 'vary': 'X-Auth-Token', 'connection': 'keep-alive'}
RESP BODY: {"tenant": {"description": "Admin Tenant", "enabled": true, "id": "9bc91c62f3634c69ba107a0e427d05dc", "name": "admin"}}
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| description | Admin Tenant |
| enabled | True |
| id | 9bc91c62f3634c69ba107a0e427d05dc |
| name | admin |
+-------------+----------------------------------+
Yeah, the host file is set up, all interfaces are up and running
Hi, i have almost the same problem when i try to login to Murano dashboard i always get this : Unable to establish connection to keystone endpoint.
Unable to establish connection to http://ip-address:5000/v3/tokens
can you help me to solve this ? Thanks in advance