yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #05380
[Bug 1152268] Re: xenapi: issues with resize/boot when root_gb=0 in flavor
** Changed in: nova
Status: Fix Committed => Fix Released
--
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/1152268
Title:
xenapi: issues with resize/boot when root_gb=0 in flavor
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
I am running tempest tests, with an image, whose auto_disk_config has
been set:
nova image-meta IMAGEID set auto_disk_config=true
stack@DevStackOSDomU:~/tempest$ nosetests
tempest.tests.compute.servers.test_server_actions:ServerActionsTestXML.test_resize_server_confirm
This is the error that I get in cpu log:
Traceback (most recent call last):
File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 393, in _process_data
rval = self.proxy.dispatch(ctxt, version, method, **args)
File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
return getattr(proxyobj, method)(ctxt, **kwargs)
File "/opt/stack/nova/nova/exception.py", line 117, in wrapped
temp_level, payload)
File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/opt/stack/nova/nova/exception.py", line 94, in wrapped
return f(self, context, *args, **kw)
File "/opt/stack/nova/nova/compute/manager.py", line 208, in decorated_function
pass
File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/opt/stack/nova/nova/compute/manager.py", line 194, in decorated_function
return function(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 259, in decorated_function
function(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 236, in decorated_function
e, sys.exc_info())
File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/opt/stack/nova/nova/compute/manager.py", line 223, in decorated_function
return function(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 2208, in resize_instance
block_device_info)
File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 236, in migrate_disk_and_power_off
dest, instance_type)
File "/opt/stack/nova/nova/virt/xenapi/vmops.py", line 869, in migrate_disk_and_power_off
context, instance, dest, instance_type, vm_ref, sr_path)
File "/opt/stack/nova/nova/virt/xenapi/vmops.py", line 786, in _migrate_disk_resizing_down
instance_type)
File "/opt/stack/nova/nova/virt/xenapi/vm_utils.py", line 724, in resize_disk
auto_configure_disk(session, copy_ref, instance_type['root_gb'])
File "/opt/stack/nova/nova/virt/xenapi/vm_utils.py", line 769, in auto_configure_disk
_resize_part_and_fs(dev, start, old_sectors, new_sectors)
File "/opt/stack/nova/nova/virt/xenapi/vm_utils.py", line 2032, in _resize_part_and_fs
run_as_root=True)
File "/opt/stack/nova/nova/utils.py", line 243, in execute
cmd=' '.join(cmd))
ProcessExecutionError: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf resize2fs /dev/xvdb1 -63s
Exit code: 1
Stdout: ''
Stderr: "resize2fs 1.42 (29-Nov-2011)\n/sbin/resize2fs: invalid option -- '6'\nUsage: /sbin/resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [new_size]\n\n"
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1152268/+subscriptions