← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1183003] Re: nova resize fails when force_config_drive=True

 

*** This bug is a duplicate of bug 1163598 ***
    https://bugs.launchpad.net/bugs/1163598

** No longer affects: nova/grizzly

** This bug has been marked a duplicate of bug 1163598
   InstanceMetadata content can be None

-- 
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/1183003

Title:
  nova resize fails when force_config_drive=True

Status in OpenStack Compute (Nova):
  Fix Committed

Bug description:
  When force_config_drive is set to true, nova resize errors with

  TypeError: 'NoneType' object is not iterable

  This is due to 'files' being initialized as None instead of '[ ]' in
  nova.virt.libvirt.driver._create_image()

  
  TRACE:

  2013-05-22 12:37:46.037 ERROR nova.openstack.common.rpc.amqp [req-fc8b63ae-431e-4c4c-87b6-329462ec74c2 cf5d1b5d1b07400eae7b8c2103c53b85 9e6487f6bf5c44dbad4ea6776d47c922] Exception during message handling
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, method, **args)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwargs)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 117, in wrapped
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     temp_level, payload)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 94, in wrapped
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 209, in decorated_function
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     pass
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 195, in decorated_function
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 260, in decorated_function
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     function(self, context, *args, **kwargs)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 237, in decorated_function
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     e, sys.exc_info())
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 224, in decorated_function
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2488, in finish_resize
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     self._set_instance_error_state(context, instance['uuid'])
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2476, in finish_resize
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     disk_info, image)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2443, in _finish_resize
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     block_device_info)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3528, in finish_migration
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     block_device_info=None)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1858, in _create_image
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     content=files, extra_md=extra_md)
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/api/metadata/base.py", line 158, in __init__
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp     for (path, contents) in content:
  2013-05-22 12:37:46.037 1525 TRACE nova.openstack.common.rpc.amqp TypeError: 'NoneType' object is not iterable

  
  This bug was encountered on Ubuntu 12.04 with nova-compute 1:2013.1-0ubuntu2.1~cloud0

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