xenapi: issues with resize/boot when root_gb=0 in flavor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
John Garbutt |
Bug Description
I am running tempest tests, with an image, whose auto_disk_config has been set:
nova image-meta IMAGEID set auto_disk_
stack@DevStackO
This is the error that I get in cpu log:
Traceback (most recent call last):
File "/opt/stack/
rval = self.proxy.
File "/opt/stack/
return getattr(proxyobj, method)(ctxt, **kwargs)
File "/opt/stack/
temp_level, payload)
File "/usr/lib/
self.gen.next()
File "/opt/stack/
return f(self, context, *args, **kw)
File "/opt/stack/
pass
File "/usr/lib/
self.gen.next()
File "/opt/stack/
return function(self, context, *args, **kwargs)
File "/opt/stack/
function(self, context, *args, **kwargs)
File "/opt/stack/
e, sys.exc_info())
File "/usr/lib/
self.gen.next()
File "/opt/stack/
return function(self, context, *args, **kwargs)
File "/opt/stack/
block_
File "/opt/stack/
dest, instance_type)
File "/opt/stack/
context, instance, dest, instance_type, vm_ref, sr_path)
File "/opt/stack/
instance_type)
File "/opt/stack/
auto_
File "/opt/stack/
_resize_
File "/opt/stack/
run_
File "/opt/stack/
cmd=' '.join(cmd))
ProcessExecutio
Command: sudo nova-rootwrap /etc/nova/
Exit code: 1
Stdout: ''
Stderr: "resize2fs 1.42 (29-Nov-
description: | updated |
summary: |
- XenAPI: Resize tempest test is failing + XenAPI: Resize tempest test is failing (shrink problem) |
tags: | added: xenserver |
Changed in nova: | |
assignee: | nobody → Mate Lakat (mate-lakat) |
Changed in nova: | |
milestone: | none → havana-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-rc1 → 2013.2 |
you need to check for instance_type == 0 in the resize disk code in vm_utils I think.
It should not resize the disk, even is auto_disk_configure = True when instance_type disk size == 0.