Resize image is not supported for XCP brand
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
msinhore | ||
XCP |
New
|
Undecided
|
Unassigned |
Bug Description
Selecting a flavor different of m1.tiny for an instance, this operation isn't supported when XCP is used. The XCP is related of XenServer described on table below:
XenServer 5.5 == XCP 0.5
XenServer 5.6 == XCP 1.0
XenServer 5.6sp2 == XCP 1.1
XenServer 6.0 == XCP 1.5
Based on this, the operation to resize the VHD is not supported as is showed in the backtrace below:
from 5GB to 20GB from (pid=1358) _resize_instance /usr/lib/
2012-06-21 16:14:50 ERROR nova.utils [req-f499f181-
olling back.
2012-06-21 16:14:50 TRACE nova.utils Traceback (most recent call last):
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils vdis = create_
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils rv = f(*args, **kwargs)
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils vdis = self._create_
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils self._resize_
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils str(new_disk_size))
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils return tpool.execute(f, *args)
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils rv = meth(*args,
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils return self.__
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils result = _parse_
2012-06-21 16:14:50 TRACE nova.utils File "/usr/lib/
2012-06-21 16:14:50 TRACE nova.utils raise Failure(
2012-06-21 16:14:50 TRACE nova.utils Failure: ['SR_OPERATION_
2012-06-21 16:14:50 TRACE nova.utils
2012-06-21 16:14:50 ERROR nova.compute.
ce failed to spawn
Below the part of code mentioned in the backtrace:
if virtual_size < new_disk_size:
# Resize up. Simple VDI resize will do the trick
if self._product_
else:
To fix this, is need to get the variable product_band and, since all XCP versions are larger than XenServer 5.x, add it to use only VDI.resize.
I attach a path for the Folsom.
description: | updated |
Changed in nova: | |
milestone: | none → folsom-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-3 → 2012.2 |
The patch for essex is attached.