yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #10195
[Bug 1240373] Re: VMware: Sparse glance vmdk's size property is mistaken for capacity
** Also affects: openstack-vmwareapi-team
Importance: Undecided
Status: New
--
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/1240373
Title:
VMware: Sparse glance vmdk's size property is mistaken for capacity
Status in OpenStack Compute (Nova):
Confirmed
Status in The OpenStack VMwareAPI subTeam:
New
Bug description:
Scenario:
a sparse vmdk whose file size is 800MB and whose capacity is 4GB is uploaded to glance without specifying the size property.
(glance uses the file's size for the size property in this case)
nova boot with flavor tiny (root disk size of 1GB) said image.
Result:
The vmwareapi driver fails to spawn the VM because the ESX server throws a fault when asked to 'grow' the disk from 4GB to 1GB (driver thinks it is attempt to grow from 800MB to 1GB)
Relevant hostd.log on ESX host:
2013-10-15T17:02:24.509Z [35BDDB90 verbose 'Default'
opID=HB-host-22@3170-d82e35d0-80] ha-license-manager:Validate -> Valid
evaluation detected for "VMware ESX Server 5.0" (lastError=2,
desc.IsValid:Yes)
2013-10-15T17:02:25.129Z [FFBE3D20 info 'Vimsvc.TaskManager'
opID=a3057d82-8e] Task Created :
haTask--vim.VirtualDiskManager.extendVirtualDisk-526626761
2013-10-15T17:02:25.158Z [35740B90 warning 'Vdisksvc' opID=a3057d82-8e]
New capacity (2097152) is not greater than original capacity (8388608).
I am still not exactly sure if this is consider user error on glance
import, a glance shortcoming of not introspecting the vmdk, or a bug
in the compute driver. Regardless, this bug is to track any potential
defensive code we can add to the driver to better handle this
scenario.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1240373/+subscriptions