Custom Search

Sunday, May 5, 2013

Horizon login failed: curl os-floating-ips request hung

Error Log From Horizon
----------------------------------------

Horizon login failed curl os-floating-ips request hung

REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"

Solution
--------------

0)
Your /etc/keystone/keystone.conf file should contain the following lines if it is properly configured to use the database backend.
[catalog]
driver = keystone.catalog.backends.sql.Catalog

1)
#cd install_dir/horizon
#source .venv/bin/activate
#export OS_SERVICE_TOKEN="ADMIN"
#export OS_SERVICE_ENDPOINT=http://localhost:35357/v2.0

2)
#keystone service-list

3)
http://docs.openstack.org/trunk/openstack-network/admin/content/keystone.html
#keystone service-create --name quantum --type network --description 'OpenStack Networking Service'

4)
#keystone service-list

5)
#keystone endpoint-list

6)
#keystone endpoint-create \
--region RegionOne \
--service-id 185976c6a994466e820451df73294b99 \
--publicurl "http://localhost:9696/" \
--adminurl "http://localhost:9696/" \
--internalurl "http://localhost:9696/"


7)
#keystone endpoint-list

(.venv)saju@saju-VirtualBox:~/ops_manual/horizon$ keystone service-list
+----------------------------------+----------+----------+------------------------------+
|                id                |   name   |   type   |         description          |
+----------------------------------+----------+----------+------------------------------+
| abad2df5eb564c07adbf6dc8958dfd99 |  glance  |  image   |        Image Service         |
| 008711821700476984af78121941320e | keystone | identity |       Identity Service       |
| 3dca0574e07143d3a11fb5107851933f |   nova   | compute  |       Compute Service        |
| 185976c6a994466e820451df73294b99 | quantum  | network  | OpenStack Networking Service |
+----------------------------------+----------+----------+------------------------------+
(.venv)saju@saju-VirtualBox:~/ops_manual/horizon$

8)
#cd install_dir/keystone
#source .venv/bin/activate
#./bin/keystone-all --debug

9)
#cd install_dir/horizon
#source .venv/bin/activate
#python manage.py runserver

10)
*Goto Horizon and try to login again
http://127.0.0.1:8000/auth/login/

How to kill all services
-------------------------------------
#sudo killall -9 python


Complete Error Log from Keystone
---------------------------------------------------------

#./bin/Keystone-all --debug

2013-05-05 01:37:38    DEBUG [eventlet.wsgi.server] (7413) accepted ('127.0.0.1', 34444)

2013-05-05 01:37:38    DEBUG [keystone.common.wsgi] arg_dict: {}
2013-05-05 01:37:38     INFO [access] 127.0.0.1 - - [04/May/2013:20:07:38 +0000] "POST http://127.0.0.1:5000/v2.0/tokens HTTP/1.0" 200 1133
2013-05-05 01:37:38    DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [05/May/2013 01:37:38] "POST /v2.0/tokens HTTP/1.1" 200 1263 0.223209

2013-05-05 01:37:38    DEBUG [eventlet.wsgi.server] (7413) accepted ('127.0.0.1', 34445)

2013-05-05 01:37:38    DEBUG [keystone.common.wsgi] arg_dict: {}
2013-05-05 01:37:38     INFO [access] 127.0.0.1 - - [04/May/2013:20:07:38 +0000] "GET http://127.0.0.1:5000/v2.0/tenants HTTP/1.0" 200 133
2013-05-05 01:37:38    DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [05/May/2013 01:37:38] "GET /v2.0/tenants HTTP/1.1" 200 262 0.025544

2013-05-05 01:37:38    DEBUG [eventlet.wsgi.server] (7413) accepted ('127.0.0.1', 34446)

2013-05-05 01:37:38    DEBUG [keystone.common.wsgi] arg_dict: {}
2013-05-05 01:37:38     INFO [access] 127.0.0.1 - - [04/May/2013:20:07:38 +0000] "POST http://127.0.0.1:5000/v2.0/tokens HTTP/1.0" 200 3603
2013-05-05 01:37:38    DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [05/May/2013 01:37:38] "POST /v2.0/tokens HTTP/1.1" 200 3733 0.109027

2013-05-05 01:37:38    DEBUG [eventlet.wsgi.server] (7413) accepted ('127.0.0.1', 40971)

2013-05-05 01:37:38    DEBUG [keystone.common.wsgi] arg_dict: {}
2013-05-05 01:37:38     INFO [access] 127.0.0.1 - - [04/May/2013:20:07:38 +0000] "POST http://localhost:35357/v2.0/tokens HTTP/1.0" 200 3603
2013-05-05 01:37:38    DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [05/May/2013 01:37:38] "POST /v2.0/tokens HTTP/1.1" 200 3733 0.122912

2013-05-05 01:37:39    DEBUG [eventlet.wsgi.server] (7413) accepted ('127.0.0.1', 40975)

2013-05-05 01:37:39    DEBUG [keystone.common.wsgi] arg_dict: {'token_id': u'ac4649b428931f810f6f6c059159d495'}
2013-05-05 01:37:39    DEBUG [keystone.policy.backends.rules] enforce admin_required: {'tenant_id': u'7daefbb63e404763a9081954dacff2a9', 'user_id': u'26fc766cef74414eb9cb0b57d06a0642', u'roles': [u'admin']}
2013-05-05 01:37:39     INFO [access] 127.0.0.1 - - [04/May/2013:20:07:39 +0000] "GET http://127.0.0.1:35357/v2.0/tokens/ac4649b428931f810f6f6c059159d495 HTTP/1.0" 200 3645
2013-05-05 01:37:39    DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [05/May/2013 01:37:39] "GET /v2.0/tokens/ac4649b428931f810f6f6c059159d495 HTTP/1.1" 200 3775 0.040125

Complete Error Log from Horizon
-------------------------------------------------------

DEBUG:openstack_auth.backend:Beginning user authentication for user "admin".
DEBUG:openstack_auth.backend:Authentication completed for user "admin".
[04/May/2013 20:07:38] "POST /auth/login/ HTTP/1.1" 302 0
[04/May/2013 20:07:39] "GET / HTTP/1.1" 302 0
novaclient connection created using token "ac4649b428931f810f6f6c059159d495" and url "http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9"

REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-simple-tenant-usage?start=2013-05-01T00:00:00&end=2013-05-04T20:07:39.041445&detailed=1 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-simple-tenant-usage?start=2013-05-01T00:00:00&end=2013-05-04T20:07:39.041445&detailed=1 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-simple-tenant-usage?start=2013-05-01T00:00:00&end=2013-05-04T20:07:39.041445&detailed=1 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-simple-tenant-usage?start=2013-05-01T00:00:00&end=2013-05-04T20:07:39.041445&detailed=1 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-simple-tenant-usage?start=2013-05-01T00:00:00&end=2013-05-04T20:07:39.041445&detailed=1 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-simple-tenant-usage?start=2013-05-01T00:00:00&end=2013-05-04T20:07:39.041445&detailed=1 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-simple-tenant-usage?start=2013-05-01T00:00:00&end=2013-05-04T20:07:39.041445&detailed=1 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-9406225d-f867-4381-91a8-04c8a77a05fa', 'content-type': 'application/json', 'content-length': '21'}
RESP BODY: {"tenant_usages": []}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-9406225d-f867-4381-91a8-04c8a77a05fa', 'content-type': 'application/json', 'content-length': '21'}
RESP BODY: {"tenant_usages": []}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-9406225d-f867-4381-91a8-04c8a77a05fa', 'content-type': 'application/json', 'content-length': '21'}
RESP BODY: {"tenant_usages": []}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-9406225d-f867-4381-91a8-04c8a77a05fa', 'content-type': 'application/json', 'content-length': '21'}
RESP BODY: {"tenant_usages": []}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-9406225d-f867-4381-91a8-04c8a77a05fa', 'content-type': 'application/json', 'content-length': '21'}
RESP BODY: {"tenant_usages": []}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-9406225d-f867-4381-91a8-04c8a77a05fa', 'content-type': 'application/json', 'content-length': '21'}
RESP BODY: {"tenant_usages": []}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-9406225d-f867-4381-91a8-04c8a77a05fa', 'content-type': 'application/json', 'content-length': '21'}
RESP BODY: {"tenant_usages": []}

novaclient connection created using token "ac4649b428931f810f6f6c059159d495" and url "http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9"

REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-6223db6b-9c6c-4b98-8dc8-52cd9641245e', 'content-type': 'application/json', 'content-length': '356'}
RESP BODY: {"quota_set": {"injected_file_content_bytes": 10240, "metadata_items": 128, "volumes": 10, "gigabytes": 1000, "ram": 51200, "floating_ips": 10, "key_pairs": 100, "injected_file_path_bytes": 255, "instances": 10, "security_group_rules": 20, "injected_files": 5, "cores": 20, "fixed_ips": -1, "id": "7daefbb63e404763a9081954dacff2a9", "security_groups": 10}}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-6223db6b-9c6c-4b98-8dc8-52cd9641245e', 'content-type': 'application/json', 'content-length': '356'}
RESP BODY: {"quota_set": {"injected_file_content_bytes": 10240, "metadata_items": 128, "volumes": 10, "gigabytes": 1000, "ram": 51200, "floating_ips": 10, "key_pairs": 100, "injected_file_path_bytes": 255, "instances": 10, "security_group_rules": 20, "injected_files": 5, "cores": 20, "fixed_ips": -1, "id": "7daefbb63e404763a9081954dacff2a9", "security_groups": 10}}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-6223db6b-9c6c-4b98-8dc8-52cd9641245e', 'content-type': 'application/json', 'content-length': '356'}
RESP BODY: {"quota_set": {"injected_file_content_bytes": 10240, "metadata_items": 128, "volumes": 10, "gigabytes": 1000, "ram": 51200, "floating_ips": 10, "key_pairs": 100, "injected_file_path_bytes": 255, "instances": 10, "security_group_rules": 20, "injected_files": 5, "cores": 20, "fixed_ips": -1, "id": "7daefbb63e404763a9081954dacff2a9", "security_groups": 10}}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-6223db6b-9c6c-4b98-8dc8-52cd9641245e', 'content-type': 'application/json', 'content-length': '356'}
RESP BODY: {"quota_set": {"injected_file_content_bytes": 10240, "metadata_items": 128, "volumes": 10, "gigabytes": 1000, "ram": 51200, "floating_ips": 10, "key_pairs": 100, "injected_file_path_bytes": 255, "instances": 10, "security_group_rules": 20, "injected_files": 5, "cores": 20, "fixed_ips": -1, "id": "7daefbb63e404763a9081954dacff2a9", "security_groups": 10}}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-6223db6b-9c6c-4b98-8dc8-52cd9641245e', 'content-type': 'application/json', 'content-length': '356'}
RESP BODY: {"quota_set": {"injected_file_content_bytes": 10240, "metadata_items": 128, "volumes": 10, "gigabytes": 1000, "ram": 51200, "floating_ips": 10, "key_pairs": 100, "injected_file_path_bytes": 255, "instances": 10, "security_group_rules": 20, "injected_files": 5, "cores": 20, "fixed_ips": -1, "id": "7daefbb63e404763a9081954dacff2a9", "security_groups": 10}}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-6223db6b-9c6c-4b98-8dc8-52cd9641245e', 'content-type': 'application/json', 'content-length': '356'}
RESP BODY: {"quota_set": {"injected_file_content_bytes": 10240, "metadata_items": 128, "volumes": 10, "gigabytes": 1000, "ram": 51200, "floating_ips": 10, "key_pairs": 100, "injected_file_path_bytes": 255, "instances": 10, "security_group_rules": 20, "injected_files": 5, "cores": 20, "fixed_ips": -1, "id": "7daefbb63e404763a9081954dacff2a9", "security_groups": 10}}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-6223db6b-9c6c-4b98-8dc8-52cd9641245e', 'content-type': 'application/json', 'content-length': '356'}
RESP BODY: {"quota_set": {"injected_file_content_bytes": 10240, "metadata_items": 128, "volumes": 10, "gigabytes": 1000, "ram": 51200, "floating_ips": 10, "key_pairs": 100, "injected_file_path_bytes": 255, "instances": 10, "security_group_rules": 20, "injected_files": 5, "cores": 20, "fixed_ips": -1, "id": "7daefbb63e404763a9081954dacff2a9", "security_groups": 10}}

RESP: [200] {'date': 'Sat, 04 May 2013 20:07:39 GMT', 'x-compute-request-id': 'req-6223db6b-9c6c-4b98-8dc8-52cd9641245e', 'content-type': 'application/json', 'content-length': '356'}
RESP BODY: {"quota_set": {"injected_file_content_bytes": 10240, "metadata_items": 128, "volumes": 10, "gigabytes": 1000, "ram": 51200, "floating_ips": 10, "key_pairs": 100, "injected_file_path_bytes": 255, "instances": 10, "security_group_rules": 20, "injected_files": 5, "cores": 20, "fixed_ips": -1, "id": "7daefbb63e404763a9081954dacff2a9", "security_groups": 10}}

novaclient connection created using token "ac4649b428931f810f6f6c059159d495" and url "http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9"

REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"


REQ: curl -i http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-floating-ips -X GET -H "X-Auth-Project-Id: 7daefbb63e404763a9081954dacff2a9" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ac4649b428931f810f6f6c059159d495"

No comments:

Post a Comment