[Openstack] glance add : 'utf8' codec can't decode byte 0x94

G. Lekatsas glekatsas at gmail.com
Thu Nov 15 08:49:33 UTC 2012


hello,

sorry for the delay but after a restart i have to deal with another problem
and without being able to check the previous  "'utf8' codec" error.

2012-11-15 10:43:24    ERROR [root] %d format: a number is required, not
dict
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/keystone/common/wsgi.py", line
184, in __call__
    result = method(context, **params)
  File "/usr/lib/python2.6/site-packages/keystone/service.py", line 301, in
authenticate
    metadata=metadata_ref)
  File "/usr/lib/python2.6/site-packages/keystone/common/manager.py", line
48, in _wrapper
    return f(*args, **kw)
  File "/usr/lib/python2.6/site-packages/keystone/catalog/backends/sql.py",
line 169, in get_catalog
    catalog[region][srv_type]['internalURL'] = internal_url % d
TypeError: %d format: a number is required, not dict
2012-11-15 10:43:24    DEBUG [keystone.common.wsgi] ********************
RESPONSE HEADERS ********************
2012-11-15 10:43:24    DEBUG [keystone.common.wsgi] Content-Type =
application/json
2012-11-15 10:43:24    DEBUG [keystone.common.wsgi] Vary = X-Auth-Token
2012-11-15 10:43:24    DEBUG [keystone.common.wsgi] Content-Length = 185
2012-11-15 10:43:24    DEBUG [keystone.common.wsgi]
2012-11-15 10:43:24    DEBUG [keystone.common.wsgi] ********************
RESPONSE BODY ********************
2012-11-15 10:43:24    DEBUG [keystone.common.wsgi] {"error": {"message":
"An unexpected error prevented the server from fulfilling your request. %d
format: a number is required, not dict", "code": 500, "title": "Internal
Server Error"}}
2012-11-15 10:43:24    DEBUG [eventlet.wsgi.server] 150.1xx.1xx.38 - -
[15/Nov/2012 10:43:24] "POST /v2.0/tokens HTTP/1.1" 500 333 0.104850



On Tue, Nov 13, 2012 at 4:04 PM, Pádraig Brady <P at draigbrady.com> wrote:

> On 11/13/2012 11:25 AM, G. Lekatsas wrote:
>
>> Hello,
>>
>> i have installed openstack glance on a centos 6.3 server.
>>
>> After running:
>> glance add name=f16-jeos is_public=true disk_format=qcow2
>> container_format=ovf copy_from=http://berrange.**
>> fedorapeople.org/images/2012-**02-29/f16-x86_64-openstack-**sda.qcow2<http://berrange.fedorapeople.org/images/2012-02-29/f16-x86_64-openstack-sda.qcow2>
>>
>> or
>>   glance  add name="tty-linux-kernel" disk_format=aki
>> container_format=aki < ttylinux-uec-amd64-12.1_2.6.**35-22_1-vmlinuz
>>
>> i always have the following error:
>> Failed to add image. Got error:
>> 'utf8' codec can't decode byte 0x94 in position 0: invalid start byte
>> Note: Your image metadata may still be in the registry, but the image's
>> status will likely be 'killed'.
>>
>> Thanks in advance.
>>
>> George
>>
>
> I recognise 0x94 as ” in cp1252.
> Perhaps you're copy and pasting the command from
> some where with incorrect quoting?
>
> Could you manually type the double quote chars in your command.
>
> thanks,
> Pádraig.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121115/599848ce/attachment.html>


More information about the Openstack mailing list