← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1392964] [NEW] UnicodeDecodeError

 

Public bug reported:

I create a instance on nova, I got these errors.

2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 155, in extend
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     if not is_image_partitionless(image, use_cow):
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 205, in is_image_partitionless
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     fs.setup()
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/localfs.py", line 81, in setup
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     self.teardown()
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     six.reraise(self.type_, self.value, self.tb)
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/localfs.py", line 75, in setup
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     if not mount.do_mount():
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/mount/api.py", line 218, in do_mount
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     status = self.get_dev() and self.map_dev() and self.mnt_dev()
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/mount/api.py", line 193, in mnt_dev
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     discard_warnings=True, run_as_root=True)
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 172, in trycmd
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     return processutils.trycmd(*args, **kwargs)
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/processutils.py", line 225, in trycmd
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     out, err = execute(*args, **kwargs)
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/processutils.py", line 191, in execute
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     sanitized_stderr = strutils.mask_password(stderr)
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/strutils.py", line 274, in mask_password
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     message = six.text_type(message)
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281] UnicodeDecodeError: 'utf8' codec can't decode byte 0xa5 in position 7: invalid start byte
2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]


I created a instance via nova CLI.

# nova boot --image precise --flavor 2 --nic net-
id=f11d09a5-b3f2-41bb-9260-0b2cbc8d2568 vm03

I installed icehouse version of opentack and ubuntu 12.04.5 LTS.


# dpkg -l | grep nova
ii  nova-api-ec2                     1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - EC2 API frontend
ii  nova-api-metadata                1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - metadata API frontend
ii  nova-api-os-compute              1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - OpenStack Compute API frontend
ii  nova-cert                        1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - certificate management
ii  nova-common                      1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - common files
ii  nova-compute                     1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - compute node base
ii  nova-compute-kvm                 1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - compute node (KVM)
ii  nova-compute-libvirt             1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - compute node libvirt support
ii  nova-conductor                   1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - conductor service
ii  nova-consoleauth                 1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - Console Authenticator
ii  nova-novncproxy                  1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - NoVNC proxy
ii  nova-scheduler                   1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - virtual machine scheduler
ii  python-nova                      1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute Python libraries
ii  python-novaclient                1:2.17.0-0ubuntu1~cloud0                     client library for OpenStack Compute API
root@cheftest02:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise


Does anyone have a idea ?

** Affects: nova
     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/1392964

Title:
  UnicodeDecodeError

Status in OpenStack Compute (Nova):
  New

Bug description:
  I create a instance on nova, I got these errors.

  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 155, in extend
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     if not is_image_partitionless(image, use_cow):
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 205, in is_image_partitionless
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     fs.setup()
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/localfs.py", line 81, in setup
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     self.teardown()
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     six.reraise(self.type_, self.value, self.tb)
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/localfs.py", line 75, in setup
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     if not mount.do_mount():
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/mount/api.py", line 218, in do_mount
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     status = self.get_dev() and self.map_dev() and self.mnt_dev()
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/mount/api.py", line 193, in mnt_dev
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     discard_warnings=True, run_as_root=True)
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 172, in trycmd
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     return processutils.trycmd(*args, **kwargs)
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/processutils.py", line 225, in trycmd
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     out, err = execute(*args, **kwargs)
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/processutils.py", line 191, in execute
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     sanitized_stderr = strutils.mask_password(stderr)
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/strutils.py", line 274, in mask_password
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]     message = six.text_type(message)
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281] UnicodeDecodeError: 'utf8' codec can't decode byte 0xa5 in position 7: invalid start byte
  2014-11-15 18:01:23.825 2176 TRACE nova.compute.manager [instance: 52888037-bb00-449c-b38f-7f1c19017281]

  
  I created a instance via nova CLI.

  # nova boot --image precise --flavor 2 --nic net-
  id=f11d09a5-b3f2-41bb-9260-0b2cbc8d2568 vm03

  I installed icehouse version of opentack and ubuntu 12.04.5 LTS.

  
  # dpkg -l | grep nova
  ii  nova-api-ec2                     1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - EC2 API frontend
  ii  nova-api-metadata                1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - metadata API frontend
  ii  nova-api-os-compute              1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - OpenStack Compute API frontend
  ii  nova-cert                        1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - certificate management
  ii  nova-common                      1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - common files
  ii  nova-compute                     1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - compute node base
  ii  nova-compute-kvm                 1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - compute node (KVM)
  ii  nova-compute-libvirt             1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - compute node libvirt support
  ii  nova-conductor                   1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - conductor service
  ii  nova-consoleauth                 1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - Console Authenticator
  ii  nova-novncproxy                  1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - NoVNC proxy
  ii  nova-scheduler                   1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute - virtual machine scheduler
  ii  python-nova                      1:2014.1.3-0ubuntu1~cloud0                   OpenStack Compute Python libraries
  ii  python-novaclient                1:2.17.0-0ubuntu1~cloud0                     client library for OpenStack Compute API
  root@cheftest02:~# lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 12.04.5 LTS
  Release:        12.04
  Codename:       precise

  
  Does anyone have a idea ?

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


Follow ups

References