libvirt: resume instance with utf-8 name results in UnicodeDecodeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Taylor Peoples | ||
Juno |
Fix Released
|
Undecided
|
Taylor Peoples | ||
Kilo |
Fix Released
|
Undecided
|
Taylor Peoples |
Bug Description
This bug is very similar to https:/
Resuming a server that has a unicode name after suspending it results in:
2015-05-08 15:22:30.148 4370 INFO nova.compute.
2015-05-08 15:22:31.651 4370 ERROR nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
2015-05-08 15:22:31.651 4370 TRACE nova.compute.
The _create_domain() method has the following line:
err = _LE('Error defining a domain with XML: %s') % xml
which fails with the UnicodeDecodeError because the xml object has utf-8 encoding. The fix is to wrap the xml object in oslo.utils.
I'm seeing the issue on Kilo, but it is also likely an issue on Juno as well.
Changed in nova: | |
assignee: | nobody → Taylor Peoples (tpeoples) |
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: juno-backport-potential kilo-backport-potential |
tags: | removed: juno-backport-potential kilo-backport-potential |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/181708
Review: https:/