Attempting to resize an image that is a whole disk:
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp temp_level, payload)2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp self.gen.next()2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/exception.py", line 87, in wrapped2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp return f(*args, **kw)2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 211, in decorated_function2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp pass2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp self.gen.next()2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 197, in decorated_function2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 238, in decorated_function2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp kwargs['instance']['uuid'], e, sys.exc_info())2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp self.gen.next()2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 226, in decorated_function2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 2046, in finish_resize2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp self._set_instance_error_state(context, instance['uuid'])
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp self.gen.next()
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 2034, in finish_resize
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp disk_info, image)
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 2002, in _finish_resize
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp block_device_info)
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/exception.py", line 112, in wrapped
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp temp_level, payload)
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp self.gen.next()
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/exception.py", line 87, in wrapped
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp return f(*args, **kw)
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2946, in finish_migration
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp disk.can_resize_fs(info['path'], size, use_cow=True)):
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/virt/disk/api.py", line 136, in can_resize_fs
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp inject_data(image, use_cow=True)
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/virt/disk/api.py", line 274, in inject_data
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp fs.setup()
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/virt/disk/vfs/localfs.py", line 84, in setup
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp raise e
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp Exception: Failed to mount image: Failed to mount filesystem: Unexpected error while running command.
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp Command: sudo nova-rootwrap /etc/nova/rootwrap.conf mount /dev/nbd2 /tmp/openstack-vfs-localfsvFKSfy
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp Exit code: 32
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp Stdout: ''
2012-12-28 14:43:59 TRACE nova.openstack.common.rpc.amqp Stderr: 'mount: you must specify the filesystem type\n'
the can_resize method shouldn't be failing if the mount doesn't work.
Vish
Vish -- this system should probably have guestfs installed, which would have meant this code path wasn't followed. I believe guestfs is more secure for this stuff.