UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 386: ordinal not in range(128) in nova.virt.libvirt.vif:unplug with unicode instance.display_name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
melanie witt | ||
Ocata |
Fix Committed
|
Medium
|
Lee Yarwood | ||
devstack |
Invalid
|
Undecided
|
Unassigned | ||
oslo.log |
Fix Released
|
Undecided
|
melanie witt | ||
Ocata |
Incomplete
|
Medium
|
Unassigned | ||
oslo.versionedobjects |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I saw this in the n-cpu logs for a xenproject CI run:
2016-05-11 16:19:09.457 27252 INFO nova.virt.
Traceback (most recent call last):
File "/usr/lib/
msg = self.format(record)
File "/usr/local/
return logging.
File "/usr/lib/
return fmt.format(record)
File "/usr/local/
return logging.
File "/usr/lib/
record.message = record.getMessage()
File "/usr/lib/
msg = msg % self.args
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 386: ordinal not in range(128)
Logged from file vif.py, line 966
That would be logging the vif object in unplug:
Changed in devstack: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → melanie witt (melwitt) |
status: | Triaged → In Progress |
Looks like this is the VIF object when we plug it:
vif=VIF({'profile': None, 'ovs_interfaceid': None, 'preserve_ on_delete' : False, 'network': Network({'bridge': u'br100', 'subnets': [Subnet({'ips': [FixedIP({'meta': {}, 'version': 4, 'type': u'fixed', 'floating_ips': [], 'address': u'10.1.13.3'})], 'version': 4, 'meta': {u'dhcp_server': u'10.1.0.1'}, 'dns': [IP({'meta': {}, 'version': 4, 'type': u'dns', 'address': u'8.8.4.4'})], 'routes': [], 'cidr': u'10.1.0.0/20', 'gateway': IP({'meta': {}, 'version': 4, 'type': u'gateway', 'address': u'10.1.0.1'})}), Subnet({'ips': [], 'version': None, 'meta': {u'dhcp_server': None}, 'dns': [], 'routes': [], 'cidr': None, 'gateway': IP({'meta': {}, 'version': None, 'type': u'gateway', 'address': None})})], 'meta': {u'tenant_id': None, u'should_ create_ bridge' : True, u'bridge_ interface' : u'br_flat'}, 'id': u'9a5f172f- de10-4cd0- af3c-d2f1568b20 6e', 'label': u'private'}), 'devname': None, 'vnic_type': u'normal', 'qbh_params': None, 'meta': {}, 'details': {}, 'address': u'fa:16: 3e:33:4b: c0', 'active': False, 'type': u'bridge', 'id': u'7d1d85f4- 086a-4400- 88dd-f90e64af77 56', 'qbg_params': None})