← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1388386] [NEW] libvirt: boot instance with utf-8 name results in UnicodeDecodeError

 

Public bug reported:

With the libvirt driver and Juno 2014.2 code, try to boot a server via
Horizon with name "ABC一丁七ÇàâアイウДфэبتثअइउ€¥噂ソ十豹竹敷" results in:

http://paste.openstack.org/show/128060/

This is new in Juno but was a latent issue since Icehouse, the Juno
change was:

https://github.com/openstack/nova/commit/60c90f73261efb8c73ecc02152307c81265cab13

The err variable is an i18n Message object and when we try to put the
domain.XMLDesc(0) into the unicode _LE message object string it blows up
in oslo.i18n because the encoding doesn't match.

The fix is to wrap domain.XMLDesc(0) in
oslo.utils.encodeutils.safe_decode.

** Affects: nova
     Importance: Undecided
     Assignee: Matt Riedemann (mriedem)
         Status: Triaged


** Tags: i18n icehouse-backport-potential juno-backport-potential libvirt

** Changed in: nova
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1388386

Title:
  libvirt: boot instance with utf-8 name results in UnicodeDecodeError

Status in OpenStack Compute (Nova):
  Triaged

Bug description:
  With the libvirt driver and Juno 2014.2 code, try to boot a server via
  Horizon with name "ABC一丁七ÇàâアイウДфэبتثअइउ€¥噂ソ十豹竹敷" results in:

  http://paste.openstack.org/show/128060/

  This is new in Juno but was a latent issue since Icehouse, the Juno
  change was:

  https://github.com/openstack/nova/commit/60c90f73261efb8c73ecc02152307c81265cab13

  The err variable is an i18n Message object and when we try to put the
  domain.XMLDesc(0) into the unicode _LE message object string it blows
  up in oslo.i18n because the encoding doesn't match.

  The fix is to wrap domain.XMLDesc(0) in
  oslo.utils.encodeutils.safe_decode.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1388386/+subscriptions


Follow ups

References