← Back to team overview

openstack team mailing list archive

nova-compute UnicodeDecodeError

 

Dear,
I USE UBUNTU 12.04, OPENSTACK ESSEX VERSION
i use snapshot instance image.
but it doesn't work. and i restart nova-compute in compute node.
it occur error. it is error log.

2012-12-27 09:04:58 DEBUG nova.utils [req-b3cc4e8c-4c58-4494-a64e-0b92118f08ed None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=2995) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 336, in fire_timers
    timer()
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 56, in __call__
    cb(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
    result = function(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server
    server.start()
  File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start
    self.manager.init_host()
  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 237, in init_host
    instances = self.db.instance_get_all_by_host(context, self.host)
  File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 578, in instance_get_all_by_host
    return IMPL.instance_get_all_by_host(context, host)
  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 102, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1517, in instance_get_all_by_host
    return _instance_get_all_query(context).filter_by(host=host).all()
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 1947, in all
    return list(self)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2178, in instances
    rows = [process[0](row, None) for row in fetch]
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2718, in _instance
    populate_state(state, dict_, row, isnew, only_load_props)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2572, in populate_state
    populator(state, dict_, row)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/strategies.py", line 150, in new_execute
    dict_[key] = row[col]
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa0 in position 10: invalid start byte
2012-12-27 09:04:59 CRITICAL nova [-] 'utf8' codec can't decode byte 0xa0 in position 10: invalid start byte
2012-12-27 09:04:59 TRACE nova Traceback (most recent call last):
2012-12-27 09:04:59 TRACE nova   File "/usr/bin/nova-compute", line 49, in <module>
2012-12-27 09:04:59 TRACE nova     service.wait()
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait
2012-12-27 09:04:59 TRACE nova     _launcher.wait()
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait
2012-12-27 09:04:59 TRACE nova     service.wait()
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
2012-12-27 09:04:59 TRACE nova     return self._exit_event.wait()
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2012-12-27 09:04:59 TRACE nova     return hubs.get_hub().switch()
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
2012-12-27 09:04:59 TRACE nova     return self.greenlet.switch()
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
2012-12-27 09:04:59 TRACE nova     result = function(*args, **kwargs)
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server
2012-12-27 09:04:59 TRACE nova     server.start()
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start
2012-12-27 09:04:59 TRACE nova     self.manager.init_host()
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 237, in init_host
2012-12-27 09:04:59 TRACE nova     instances = self.db.instance_get_all_by_host(context, self.host)
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 578, in instancean_get_all_by_host
2012-12-27 09:04:59 TRACE nova     return IMPL.instance_get_all_by_host(context, host)
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 102, in wrapper
2012-12-27 09:04:59 TRACE nova     return f(*args, **kwargs)
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1517, in instance_get_all_by_host
2012-12-27 09:04:59 TRACE nova     return _instance_get_all_query(context).filter_by(host=host).all()
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 1947, in all
2012-12-27 09:04:59 TRACE nova     return list(self)
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2178, in instances
2012-12-27 09:04:59 TRACE nova     rows = [process[0](row, None) for row in fetch]
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2718, in _instance
2012-12-27 09:04:59 TRACE nova     populate_state(state, dict_, row, isnew, only_load_props)
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2572, in populate_state
2012-12-27 09:04:59 TRACE nova     populator(state, dict_, row)
2012-12-27 09:04:59 TRACE nova   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/strategies.py", line 150, in new_execute
2012-12-27 09:04:59 TRACE nova     dict_[key] = row[col]
2012-12-27 09:04:59 TRACE nova UnicodeDecodeError: 'utf8' codec can't decode byte 0xa0 in position 10: invalid start byte

could someone help me or give me some hint?
THANKS ALL

EDWARD