Ask Your Question

keystone + glance index failed

asked 2011-12-01 07:57:59 -0500

njouini2006 gravatar image

hi all I'm testing to run Nova, Glance with Keystone. when I run the glance command : glance index -A 999888777666 --host=glance_ip it shows :

Failed to show index. Got error: Internal Server error: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/eventlet/", line 336, in handle_one_response result = self.application(self.environ, start_response) File "/usr/lib/python2.7/dist-packages/webob/", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/python2.7/dist-packages/webob/", line 208, in call_func return self.func(req, args, *kwargs) File "/usr/lib/python2.7/dist-packages/glance/common/", line 113, in __call__ response = req.get_response(self.application) File "/usr/lib/python2.7/dist-packages/webob/", line 1053, in get_response application, catch_exc_info=False) File "/usr/lib/python2.7/dist-packages/webob/", line 1022, in call_application app_iter = application(self.environ, start_response) File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/middleware/", line 221, in __call__ claims = self._verify_claims(claims) File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/middleware/", line 311, in _verify_claims timeout=self.auth_timeout) File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/", line 166, in http_connect_raw conn.endheaders() File "/usr/lib/python2.7/", line 951, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/", line 811, in _send_output self.send(msg) File "/usr/lib/python2.7/", line 773, in send self.connect() File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/", line 82, in connect return HTTPConnection.connect(self) File "/usr/lib/python2.7/", line 754, in connect self.timeout, self.source_address) File "/usr/lib/python2.7/dist-packages/eventlet/green/", line 49, in create_connection sock.settimeout(timeout) File "/usr/lib/python2.7/dist-packages/eventlet/", line 349, in settimeout raise TypeError('a float is required') TypeError: a float is required

please i need help

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2011-12-23 09:52:06 -0500

njouini2006 gravatar image

@ Sergii Kashaba thks I'll try it

@Ziad Sawalha sorry for being late

this is my glance-api.conf :


Show more verbose log output (sets INFO log level output)

verbose = True

Show debugging output in logs (sets DEBUG log level output)

debug = True

Which backend store should Glance use by default is not specified

in a request to add a new image to Glance? Default: 'file'

Available choices are 'file', 'swift', and 's3'

default_store = file

Address to bind the API server

bind_host =

Port the bind the API server to

bind_port = 9292

Address to find the registry server

registry_host =

Port the registry server is listening on

registry_port = 9191

Log to this file. Make sure you do not set the same log

file for both the API and registry servers!

log_file = /var/log/glance/api.log

Send logs to syslog (/dev/log) instead of to file specified by log_file

use_syslog = False

============ Notification System Options =====================

Notifications can be sent when images are create, updated or deleted.

There are three methods of sending notifications, logging (via the

log_file directive), rabbit (via a rabbitmq queue) or noop (no

notifications sent, the default)

notifier_strategy = noop

Configuration options if sending notifications via rabbitmq (these are

the defaults)

rabbit_host = localhost rabbit_port = 5672 rabbit_use_ssl = false rabbit_userid = guest rabbit_password = guest rabbit_virtual_host = / rabbit_notification_topic = glance_notifications

============ Filesystem Store Options ========================

Directory that the Filesystem backend store

writes image data to

filesystem_store_datadir = /var/lib/glance/images/

============ Swift Store Options =============================

Address where the Swift authentication service lives

swift_store_auth_address =

User to authenticate against the Swift authentication service

swift_store_user = jdoe

Auth key for the user authenticating against the

Swift authentication service

swift_store_key = a86850deb2742ec3cb41518e26aa2d89

Container within the account that the account should use

for storing images in Swift

swift_store_container = glance

Do we create the container if it does not exist?

swift_store_create_container_on_put = False

What size, in MB, should Glance start chunking image files

and do a large object manifest in Swift? By default, this is

the maximum object size in Swift, which is 5GB

swift_store_large_object_size = 5120

When doing a large object manifest, what size, in MB, should

Glance write chunks to Swift? This amount of data is written

to a temporary disk buffer during the process of chunking

the image file, and the default is 200MB

swift_store_large_object_chunk_size = 200

Whether to use ServiceNET to communicate with the Swift storage servers.

(If you aren't RACKSPACE, leave this False!)


To use ServiceNET for authentication, prefix hostname of

swift_store_auth_address with 'snet-'.

Ex. ->

swift_enable_snet = False

============ S3 Store Options =============================

Address where the S3 authentication service lives

s3_store_host =

User to authenticate against the S3 authentication service

s3_store_access_key = <20-char AWS access key>

Auth key for the user authenticating against the

S3 authentication service

s3_store_secret_key = <40-char AWS secret key>

Container within the account that the account should use

for storing images in S3. Note that S3 has a flat namespace,

so you need a unique bucket ...

edit flag offensive delete link more

answered 2011-12-17 16:11:34 -0500

njouini2006 gravatar image

I 'll post it monday .thks for your reply

edit flag offensive delete link more

answered 2011-12-16 04:11:51 -0500

Can you post your glance config file? I'm wondering if this is an invalid auth_timeout value in there?

edit flag offensive delete link more

answered 2011-12-22 14:06:31 -0500

skashaba gravatar image

I met the same problem. After short debugging I saw that greenio expect timeout as a float but string is provided. So I fixed it by adding manual conversion from str to float (File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/common/", line 166, in http_connect_raw). The bug happen when timeout is provided in a glance-api.conf

edit flag offensive delete link more

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


Asked: 2011-12-01 07:57:59 -0500

Seen: 39 times

Last updated: Dec 23 '11