← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1390380] Re: 'ascii' codec can't decode when create a instance

 

a fix found 
commit 60c90f73261efb8c73ecc02152307c81265cab13
Author: Rick Harris <rconradharris@xxxxxxxxx>
Date:   Tue Jun 24 14:03:17 2014 -0500

    libvirt+lxc: Unmount guest FS from host on error
    
    If an error occurs during `_create_domain`, we need to ensure that the guest's
    FS is unmounted from the host in all cases.
    
    This is necessary because, if we leave the FS mounted to the host, the
    `lvremove` triggered by `delete` won't work because the filesystem will
    'still be in use'.
    
    The solution is to wrap the code in a `try/finally` to ensure the cleanup
    routines (which unmount) are always called.
    
    Change-Id: If863cf813dddc1e4554fb87b945c68b75b25f9a2
    Closes-Bug: 1333827


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

** Changed in: oslo.i18n
       Status: New => Invalid

-- 
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):
  Invalid
Status in Oslo Internationalization Library:
  Invalid

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>&#27979;&#35797;</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