← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1319537] [NEW] missing gettext import in guestfs.py

 

Public bug reported:

When starting a node with a fresh icehouse install on centos 6.5, i got
the following stack trace:

2014-05-14 19:17:24.878 10299 ERROR nova.compute.manager [req-b3070db8-a684-44e1-9a7e-62856c8e56be 5bfe831f015648cba5bbd71a356f0b6b b1c977531c9642ef9a32ad955ad1c29e] [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69] Instance failed to spawn
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69] Traceback (most recent call last):
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1720, in _spawn
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     block_device_info)
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2246, in spawn
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     admin_pass=admin_password)
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2615, in _create_image
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     project_id=instance['project_id'])
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 192, in cache
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     *args, **kwargs)
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 413, in create_image
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     copy_qcow2_image(base, self.path, size)
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 249, in inner
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     return f(*args, **kwargs)
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 379, in copy_qcow2_image
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     disk.extend(target, size, use_cow=True)
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/disk/api.py", line 155, in extend
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     if not is_image_partitionless(image, use_cow):
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/disk/api.py", line 205, in is_image_partitionless
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     fs.setup()
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/disk/vfs/guestfs.py", line 95, in setup
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     LOG.debug(_("Setting up appliance for %(imgfile)s %(imgfmt)s") %
2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69] NameError: global name '_' is not defined

After adding

from nova.openstack.common.gettextutils import _

to /usr/lib/python2.6/site-packages/nova/virt/disk/vfs/guestfs.py

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1319537

Title:
  missing gettext import in guestfs.py

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  When starting a node with a fresh icehouse install on centos 6.5, i
  got the following stack trace:

  2014-05-14 19:17:24.878 10299 ERROR nova.compute.manager [req-b3070db8-a684-44e1-9a7e-62856c8e56be 5bfe831f015648cba5bbd71a356f0b6b b1c977531c9642ef9a32ad955ad1c29e] [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69] Instance failed to spawn
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69] Traceback (most recent call last):
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1720, in _spawn
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     block_device_info)
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2246, in spawn
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     admin_pass=admin_password)
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2615, in _create_image
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     project_id=instance['project_id'])
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 192, in cache
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     *args, **kwargs)
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 413, in create_image
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     copy_qcow2_image(base, self.path, size)
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 249, in inner
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     return f(*args, **kwargs)
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 379, in copy_qcow2_image
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     disk.extend(target, size, use_cow=True)
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/disk/api.py", line 155, in extend
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     if not is_image_partitionless(image, use_cow):
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/disk/api.py", line 205, in is_image_partitionless
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     fs.setup()
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]   File "/usr/lib/python2.6/site-packages/nova/virt/disk/vfs/guestfs.py", line 95, in setup
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69]     LOG.debug(_("Setting up appliance for %(imgfile)s %(imgfmt)s") %
  2014-05-14 19:17:24.878 10299 TRACE nova.compute.manager [instance: e1b6d3f9-db81-49bb-b21c-ff0be1c6ee69] NameError: global name '_' is not defined

  After adding

  from nova.openstack.common.gettextutils import _

  to /usr/lib/python2.6/site-packages/nova/virt/disk/vfs/guestfs.py

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


Follow ups

References