openstack nova compute UnicodeDecodeError

Bug #2052007 reported by john
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager [None req-65be8646-0b23-449d-acb7-cb883bb7424c - - - - - -] Error updating resources for node openstack.: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 0: invalid start byte
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager Traceback (most recent call last):
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 10561, in _update_available_resource_for_node
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager self.rt.update_available_resource(context, nodename,
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib/python3.9/site-packages/nova/compute/resource_tracker.py", line 911, in update_available_resource
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager resources = self.driver.get_available_resource(nodename)
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/driver.py", line 9573, in get_available_resource
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager data["hypervisor_type"] = self._host.get_driver_type()
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/host.py", line 1050, in get_driver_type
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager return self.get_connection().getType()
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 193, in doit
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager result = proxy_call(self._autowrap, f, *args, **kwargs)
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 151, in proxy_call
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager rv = execute(f, *args, **kwargs)
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 132, in execute
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager six.reraise(c, e, tb)
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager raise value
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 86, in tworker
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager rv = meth(*args, **kwargs)
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager File "/usr/lib64/python3.9/site-packages/libvirt.py", line 4751, in getType
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager ret = libvirtmod.virConnectGetType(self._o)
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 0: invalid start byte
2024-02-02 11:02:54.992 106648 ERROR nova.compute.manager

Revision history for this message
Benjamin Belaud (kakor) wrote :

Hi,

To add more context, I also found this bug this week when I tried to add a new node to my Openstack Cluster newly installed (Bobcat version) .

Editing /etc/environment files with those values don't help :
LANG=en_US.utf-8
LC_ALL=en_US.utf-8

Regards

Benjamin

Revision history for this message
bryan (bryansoong21) wrote :

Hello Benjamin,

We also found this issue, and it can be reproduced when you connect libvirt using python, just wondering which version of libvirt rpm and libvirt-python pip package you are using?

Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.