yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #24407
[Bug 1390380] Re: 'ascii' codec can't decode when create a instance
** Also affects: oslo.i18n
Importance: Undecided
Status: New
--
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/1390380
Title:
'ascii' codec can't decode when create a instance
Status in OpenStack Compute (Nova):
New
Status in Oslo Internationalization Library:
New
Bug description:
when creating a new instance given the instance as a Chinese name.
nova compute failed to create with error message
2014-11-07 16:49:58.105 TRACE nova.compute.manager [instance: 57557a92-9331-4608-a3bf-324c2dd7f2ec] % domain.XMLDesc(0)
2014-11-07 16:49:58.105 TRACE nova.compute.manager [instance: 57557a92-9331-4608-a3bf-324c2dd7f2ec] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 251: ordinal not in range(128)
we need to restrict it from nova-api layer or, we need to handle this
in libvirt driver
domain xml is below:
2014-11-07 16:49:58.104 ERROR nova.virt.libvirt.driver [-] Error defining a domain with XML: <domain type="kvm">
<uuid>57557a92-9331-4608-a3bf-324c2dd7f2ec</uuid>
<name>instance-000002a1</name>
<memory>65536</memory>
<vcpu cpuset="0-5,12-17">1</vcpu>
<metadata>
<nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0">
<nova:package version="2014.2"/>
<nova:name>测试</nova:name> <<<<<<<<----------------------- '测试'
<nova:creationTime>2014-11-07 08:49:56</nova:creationTime>
<nova:flavor name="m1.nano">
<nova:memory>64</nova:memory>
<nova:disk>0</nova:disk>
<nova:swap>0</nova:swap>
<nova:ephemeral>0</nova:ephemeral>
<nova:vcpus>1</nova:vcpus>
</nova:flavor>
<nova:owner>
<nova:user uuid="fba8a67b69004320b2ace0b35aeebb18">admin</nova:user>
<nova:project uuid="d7beb7f28e0b4f41901215000339361d">admin</nova:project>
</nova:owner>
<nova:root type="image" uuid="44c37b90-0ec3-460a-bdf2-bd8bb98c9fdf"/>
</nova:instance>
</metadata>
<sysinfo type="smbios">
<system>
<entry name="manufacturer">OpenStack Foundation</entry>
<entry name="product">OpenStack Nova</entry>
<entry name="version">2014.2</entry>
<entry name="serial">24cbc683-3b5c-4b3a-be40-5661739c9352</entry>
<entry name="uuid">57557a92-9331-4608-a3bf-324c2dd7f2ec</entry>
</system>
</sysinfo>
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1390380/+subscriptions